ROOTFS AB OTA for SSD with Increased size on Xavier NX emmc

Hi Devs,

we are currently trying to do Image based OTA with ROOTFS AB for Jetpack 5.1.4 which is booted with 2TB SSD. Our customized rootfs is occupying 12GB whereas the ROOTFSSIZE is 14GB and taking 7.5 GB for Each partition in AB in file p3668.conf.common +108.

which is ultimately causing

tar: usr/lib/aarch64-linux-gnu/libnvinfer_static.a: Wrote only 1024 of 10240 bytes
tar: usr/lib/aarch64-linux-gnu/libvulkan.so.1.2.131: Cannot write: No space left on device
tar: usr/lib/aarch64-linux-gnu/libopencv_text.so.4.2.0: Cannot write: No space left on device
tar: usr/lib/aarch64-linux-gnu/libgcab-1.0.so.0.1.0: Cannot write: No space left on device

Partition mount

/dev/loop26    ext4      6.8G  495M  6.0G   8% ../../../Linux_for_Tegra/bootloader/mnt

we also tried to increase the ROOTFSSIZE to 30GB in p3668.conf.common +108 file.

which is causing

[   5.7857 ] Start sector for secure-os_b, expected >= 58918912, actual 0
Error: Return value 4
Command tegrabct_v2 --chip 0x19 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo flash.xml.bin
signed_dir=/wrking_dir/375u_stcm/sdk/Linux_for_Tegra/ota_base_dir_tmp/internal_device/images-R35-ToT/3668-100--
grep: /wrking_dir/375u_stcm/sdk/Linux_for_Tegra/bootloader/signed/flash.idx: No such file or directory
grep: /wrking_dir/375u_stcm/sdk/Linux_for_Tegra/bootloader/signed/flash.idx: No such file or directory

Please help me to generate OTA with ROOFS AB for SSD which can have a rootfs size more than 12GB

command used to flash the device via usb in recovery mode

sudo ROOTFS_RETRY_COUNT_MAX=1 ROOTFS_AB=1 ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_nvme_rootfs_ab.xml -p "-c bootloader/t186ref/cfg/flash_l4t_t194_spi_emmc_p3668_rootfs_ab.xml" -S 800GiB --flash-only --showlogs --network usb0 jetson-xavier-nx-devkit-emmc nvme0n1p1

command used to generate OTA

sudo -E BASE_BSP=./Linux_for_Tegra TARGET_BSP=./Linux_for_Tegra ROOTFS_AB=1 ./tools/ota_tools/version_upgrade/l4t_generate_ota_package.sh --external-device  nvme0n1 -S 800GiB jetson-xavier-nx-devkit-emmc R35-6

Please let me know if any additional details required

Thanks,
Jai

hello jaivishnu.m,

just an FYI.
when -S option is used. please update allocation attribute as 0x8 of the APP partition in the corresponding layout file.