Inquiry Regarding Jetson AGX Thor rootfs Cloning

Test Environment:

  • Jetson AGX Thor Dev-kit

  • JetPack 7.0

  • 32GB USB device

  • Ubuntu 22.04 Host PC

I have been following NVIDIA’s official guide ( Flashing Support for Jetson Thor — NVIDIA Jetson Linux Developer Guide )

for cloning rootfs with initrd, and encountered a few issues:

  1. On the Host PC, when executing:
./bootloader/mksparse --fillpattern=0 system.img.raw system.img

I received the error:

size of system.img.raw is not multiple of 4096

I resolved this by using the following script and was able to continue testing:

filesize=$(stat -c%s system.img.raw)
remainder=$((filesize % 4096))
if [ $remainder -ne 0 ]; then
    pad=$((4096 - remainder))
    dd if=/dev/zero bs=1 count=$pad >> system.img.raw
fi
  1. After flashing the image to the Jetson AGX Thor, the Debian packages appear correctly installed, but the files I had added under /home/<username> on the Host PC are missing.

If there is another setting I may have missed?

I would greatly appreciate your guidance on this matter.

Thank you.

Hi,

What is your original rootfs size?

Thanks

Thank you for your reply.
The original rootfs size is:

image

After cloning the image file, the full process is shown in the image below.

I appreciate your support.

Is this still an issue to support? Any result can be shared?

Hi.

Cloning the rootfs with initrd still didn’t work,
so we eventually decided to use another method — backup and restore. This method worked successfully.

Additionally, we confirmed that the same issue occurs on the Jetson AGX Orin Dev-kit with JetPack 6 as well.
Anyway, thank you very much for your help and support.