I’m trying to modify initrd by customising
bootloader/l4t_initrd.img and re-flashing the jetson, I’ve tried various flash commands:
./flash.sh -r -I bootloader/l4t_initrd.img jetson-xavier mmcblk0p1
./flash.sh -k kernel jetson-xavier mmcblk0p1
./flash.sh -k kernel -k kernel-dtb jetson-xavier mmcblk0p1
./flash.sh jetson-xavier mmcblk0p1
The modification so far is just to echo into /dev/kmsg like the other commands to prove the modification worked.
General steps for unpacking and creating the initrd
# unpack and edit `init` mkdir -p init cd init gzip -cd ../l4t_initrd.img | cpio -imd --quiet # repacking find . -print0 | cpio --null --quiet -H newc -o | gzip -9 -n > ../l4t_initrd.img
When I grep the logs, e.g.
grep <customWord> /var/logs -R there’s nothing in there.
(this is after booting up and going through the oem config)
Any idea what I’m missing, my goal is drop into a shell but for now just an echo into the logs would prove customisations work.
Note, everything else is default, sources are 32.3.1 with sample root fs and ./apply_binaries.sh ran.
Any help would be greatly appreciated :)