For anyone who finds themselves unlucky enough to end up in the never ending boot cycle, but can access the bash
terminal through the serial console, do the following:
- Mount the bootloader stuff:
mount /dev/mmcblk0p1 /mnt
- Check that
/mnt/boot/extlinux/extlinux.conf
has this stuff:
root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyTCU0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 rootfstype=ext4
- If it does, I cant help you (if it doesnt exist, then create the file - lookup what it should look like). If it doesn’t you’ll need to
sed
it in. For Xavier, you can do the following:
sed -i "s|^\([ \t]*APPEND \${cbootargs}\) .*|\1 root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyTCU0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0|" /mnt/boot/extlinux/extlinux.conf
for others, refer to here - You should now be able to boot into recovery mode and re-flash.