A/B rootfs.if Slot A boot failed,system not fall-back to slot A and boot

Enviroment:Jetson Xavier Nx,R3273
I want to verify the A/B rootfs boot OK.
the Jetson Xavier Nx is rootfs mode:unified bootloader and rootfs a/b is enabled
Now the system is in Slot A。
nvbootctrl get-current-slot,the return value 0;

then I use “dd” command to destroy the section “/dev/mmcblk0p1”. This whole command “dd if=/dev/zero of=dev/mmcblk0p1 bs=1M count=1”
later,I turn off the power and turn on the power,and the boot is failed in slot A and hang,but the system don’t fall-back to slot B and restart boot.
I desired the system in slot A boot failed.but after boot retrysometimes,the system will boot from slot B. but the reality is not,I want to know why??? what should i do to switch to the good slot(B)。

hello zhuliushun126,

this is an incorrect test approach.
please do software command, (i.e. $ sudo reboot) to perform a warm reboot instead of cold boot.

BTW, this is quite old release version,
could you please moving forward to the latest linux-tegra-r3275 release to verify the issue.

what are the difference between reboot(warm boot) and power on/off(cold boot)?
what things does the operation(power on/off) influence?which power supply?

by the way ,how about boot with the reset gpio? is the same with reboot(warm boot)?
now i describe three ways to restart target board?" what kind of way should i use to restart the target device?

hello zhuliushun126,

just double confirm you’re given -t rootfs options to check RootFS status.
for instance,
here’re our commands to set RootFS active slots, and issue a reboot for testing.
$ sudo nvbootctrl set-active-boot-slot 1 -t rootfs
$ sudo reboot

hello JerryChang
I did the command “nvbootctrl set-active-boot-slot 1 -t rootfs”,the print is “Warning unified bootloader and rootfs a/b is enabled,can NOT inquiry rootfs info!”
after I use the dd command to destroy the mmcblk0p1(slot 0),later i can’t input the reboot command instruction. maybe the root file system is corruption, is there no reboot instruction in slot 0 ?

hello zhuliushun126,

all right, please setup serial console to gather complete UART logs, it shall reboot several times and finally boot into slot-B.
you may press the reboot button, or power-off/on to reboot the target.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.