mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-07-10 17:22:03 +08:00
62d2cc4264
* 3s savings * limit * bump * revert that
14 lines
436 B
Bash
Executable File
14 lines
436 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# don't restart whole SoC on subsystem crash
|
|
for i in {0..7}; do
|
|
echo "related" | sudo tee /sys/bus/msm_subsys/devices/subsys${i}/restart_level
|
|
done
|
|
|
|
# use max freq to boot up quickly, then limit
|
|
echo 1689600 | sudo tee /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq
|
|
echo 1689600 | sudo tee /sys/devices/system/cpu/cpufreq/policy4/scaling_max_freq
|
|
|
|
# boot wifi
|
|
echo 1 | sudo tee /sys/kernel/boot_wlan/boot_wlan
|