How to flash custom rootfs

Hello, I am using Jetson Orin Nano Devkit with L4T35.4.1, nvme sotrage. I am trying to flash image with custom rootfs. I know the ‘backup_retore’ tools from JP, that’s not I am trying.

I have made a copy of running Jetson System as a folder (not as a tar), replaced the default rootfs in Linux_for_Tegra directory and tried normal flash with

sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -p “-c ./bootloader/t186ref/cfg/flash_t234_qspi.xml” -c ./tools/kernel_flash/flash_l4t_t234_nvme.xml --showlogs --network usb0 jetson-orin-nano-devkit nvme0n1p1

I have added a lot of things. So now the default rootfs size is 7.6 Gb and custom rootfs size is around 11 Gb.

Belos is the end of debug output

[ 222]: l4t_flash_from_kernel: Successfully flash the qspi
[ 222]: l4t_flash_from_kernel: Failed to write to APP
[ 222]: l4t_flash_from_kernel: The device size indicated in the partition layout xml is smaller than the actual size. This utility will try to fix the GPT.
[ 222]: l4t_flash_from_kernel: Error flashing external device
Flash failure
Cleaning up…

But surprisingly the newly created system.ing.raw is the same as default 59.1 GB.

Hi,

Please refer to below topics whether meet your requirements.

Thanks

@DavidDDD Thanks for that. I saw that too and tried this method. But this method is also not working. I also used -S perameter with 60GiB, 30GiB although the modified rootfs is about 11Gb. My nvme is 128 Gb. But none of this work.

I have looked into this issue and modifed the command for 35.4.1 but still not working.
Not enough space when flashing customized rootfs - Jetson & Embedded Systems / Jetson AGX Orin - NVIDIA Developer Forums

I rename the orginal rootfs, now I can not flash that also.

Am I missing somehting ?

There is no update from you for a period, assuming this is not an issue anymore.
Hence, we are closing this topic. If need further support, please open a new one.
Thanks
~0924

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