Files
pawlet_rpi4/ramdisk/init.rpi4.rc
oxmc bce8f248ba init.rpi4.rc: enable console and logcat_uart on debuggable builds
start console (was incorrectly stop) so the UART shell is interactive.
Add logcat_uart service writing to /dev/ttyS0 so Java crashes are
visible on the serial console.
2026-06-16 09:38:49 +00:00

28 lines
655 B
Plaintext

import /vendor/etc/init/hw/init.${ro.hardware}.usb.rc
on init
symlink /sdcard /storage/sdcard0
# Memory reserve tuning for RPi 4
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.rpi4 --early
on late-fs
mount_all /vendor/etc/fstab.rpi4 --late
on property:ro.debuggable=1
start console
start logcat_uart
service logcat_uart /system/bin/logcat -b all -v threadtime -f /dev/ttyS0
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}