Rootfs A/B After flashing default to Slot B

Hello Nvidia team,
I have a question about Rootfs A/B.
Enable Root File System Redundancy during the flashing process.
After flashing, enter the system, the default is to enter slot A .

nvidia@tegra-ubuntu:~$ lsblk
NAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0          7:0    0    16M  1 loop
nvme0n1      259:0    0 238.5G  0 disk
├─nvme0n1p1  259:1    0    27G  0 part /
├─nvme0n1p2  259:2    0    27G  0 part
├─nvme0n1p3  259:3    0   100M  0 part
├─nvme0n1p4  259:4    0   768K  0 part
├─nvme0n1p5  259:5    0   512M  0 part /boot/efi
├─nvme0n1p6  259:6    0 384.8M  0 part
├─nvme0n1p7  259:7    0   100M  0 part
├─nvme0n1p8  259:8    0   768K  0 part
├─nvme0n1p9  259:9    0   512M  0 part
├─nvme0n1p10 259:10   0 384.8M  0 part
├─nvme0n1p11 259:11   0   400M  0 part
└─nvme0n1p12 259:12   0   335M  0 part
nvidia@tegra-ubuntu:~$ sudo nvbootctrl -t rootfs dump-slots-info
[sudo] password for nvidia:
Current rootfs slot: A
Active rootfs slot: A
num_slots: 2
slot: 0,             retry_count: 3,             status: normal
slot: 1,             retry_count: 3,             status: normal
nvidia@tegra-ubuntu:~$

I know that you can switch using the following command.

sudo nvbootctrl -t rootfs set-active-boot-slot 1

I’d like to know if there’s a way to select slot B during the flashing process, and then have the system default to slot B instead of slot A after flashing.
Thanks.

Hi @meishujie
According to NVIDIA documentation, you can change the boot chain selection using the --boot-chain-select argument for flash.sh during flashing.

The command should be something like:
sudo ROOTFS_AB=1 ./l4t_initrd_flash.sh -p "--boot-chain-select B" $DEVKIT internal

Could you try that and see if it solves your problem? If not, could you tell us your Jetpack version and Jetson model?

If you have any further questions, feel free to ask.

Best Regards,

Isaac Barrios
Embedded SW Engineer at RidgeRun
Contact us: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com/
Website: www.ridgerun.com

Thank you for sharing.
I actually tried it, and adding the parameter --boot-chain-select B during flashing works.