Files
pawlet_rpi5/ramdisk/init.rpi5.rc
oxmc 35268611ad init.rpi5.rc: fix debuggable property, add logcat_uart service
stop console was incorrectly called on ro.debuggable=1; replace with
start console. Add logcat_uart service writing to /dev/ttyAMA0 for
UART log access on RPi5/CM4, matching the rpi4 init.rc behaviour.
2026-06-16 06:06:21 -07:00

28 lines
679 B
Plaintext

import /vendor/etc/init/hw/init.${ro.hardware}.usb.rc
on init
symlink /sdcard /storage/sdcard0
# Memory reserve tuning for RPi 5
write /proc/sys/vm/min_free_kbytes 27386
write /proc/sys/vm/lowmem_reserve_ratio "0 0 0"
on fs
mount_all /vendor/etc/fstab.${ro.hardware} --early
on late-fs
mount_all /vendor/etc/fstab.${ro.hardware} --late
on property:ro.debuggable=1
start console
start logcat_uart
service logcat_uart /system/bin/logcat -b all -v threadtime -f /dev/ttyAMA0
class late_start
user root
group root log
disabled
on property:sys.boot_completed=1
swapon_all /vendor/etc/fstab.zram.${persist.vendor.zram.size}