hiphi: recovery/root: Load ADSP firmware
* Required for USB to work properly Co-authored-by: Andrew Hexen <SyberHexen@gmail.com> Co-authored-by: Captain Throwback <captainthrowback@hotmail.com> Co-authored-by: nebrassy <nebras30@gmail.com> Signed-off-by: 7Soldier <reg.fm4@gmail.com>
This commit is contained in:
parent
3e605f1369
commit
a0da322eab
2 changed files with 18 additions and 0 deletions
|
@ -32,6 +32,10 @@ on fs
|
|||
wait /dev/block/platform/soc/${ro.boot.bootdevice}
|
||||
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
|
||||
|
||||
# Load ADSP firmware for PMIC
|
||||
start runatboot
|
||||
wait /sys/class/power_supply/battery
|
||||
|
||||
on post-fs
|
||||
start boot-hal-1-2
|
||||
|
||||
|
@ -44,3 +48,10 @@ service set_permissive /system/bin/set_permissive.sh
|
|||
disabled
|
||||
oneshot
|
||||
seclabel u:r:recovery:s0
|
||||
|
||||
service runatboot /system/bin/runatboot.sh
|
||||
user root
|
||||
group root
|
||||
disabled
|
||||
oneshot
|
||||
seclabel u:r:recovery:s0
|
||||
|
|
7
recovery/root/system/bin/runatboot.sh
Executable file
7
recovery/root/system/bin/runatboot.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/system/bin/sh
|
||||
mkdir /firmware
|
||||
SLOT=$(getprop ro.boot.slot_suffix)
|
||||
mount /dev/block/bootdevice/by-name/modem$SLOT /firmware -O ro
|
||||
echo "1" > /proc/sys/kernel/firmware_config/force_sysfs_fallback
|
||||
echo "1" > /sys/kernel/boot_adsp/boot
|
||||
exit 0
|
Loading…
Reference in a new issue