How to change the rootfs to boot from another partition

Hello everyone , I use the hardware is Jetson Xavier NX, Jetpack 4.5.1.
I want make the 300M RCMROOTFS into real ubuntu rootfs which boot from.
My steps are:

  1. Created a minimum ubuntu rootfs system, ubunt.tbz2
  2. mkfs.ext4 /dev/mmcblk0p10
    mount /dev/mmcblk0p10 /mnt
  3. copy the ubunt.tbz2 to Tegra device
  4. tar -vxjf ubunt.tbz2 -C /mnt
  5. modify the Tegra device file /boot/extlinux/extlinux.conf

However when I reboot, there is a Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
boot.log (25.7 KB)
what’s wrong with it?
My fundamental goal is to create a file system for upgrading the image of partition mmcblk0p1.
Is there any other better way?
Due to some reasons, I can’t upgrade jetpack 4.5.1 to 4.6.


To update Jetpack, you can just refer to the instruction of Updating a Jetson Device with apt command.
You don’t need to partition, format, copy contents of rootfs by yourself.

Thankyou KevinFFF
However I actually want to use the partition RECROOTFS as a emergency rescue system, when the APP /dev/mmcblk0p1 is fault, it can boot from RECROOTFS. How can achieve it?

It seems you could refer to the following instruction for redundant rootfs.
How to Create Redundant Root File Systems

NO, I already mentioned earlier that I need to use jetpack4.5.1,insted of jetpack 4.6

Does the following command work on your board?

$ sudo ROOTFS_AB=1 ./  jetson-xavier-nx-devkit-emmc mmcblk0p1

Thanks KevinFFF
Now I have the A/B partition, I would like to know where nvbootctrl controls the boot partition by modifying it

You could use the following command to check current slot status of rootfs.

$sudo nvbootctrl -t rootfs dump-slots-info

If current active slot is slotA, you could use the following command switch to slotB.

$sudo nvbootctrl set-active-boot-slot 1

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