Inccorct End sector for APP

Hello I am trying to flash my Orin Nano Devkit but its failing with the error:

End sector for APP, expected at: 119537630, actual: 0
Error: Return value 4

I have changed the line ROOTFSSIZE=55GiB; to ROOTFSSIZE=64GiB; in p3767.conf.common

It flashes successfully when I leave it as 55GiB but I want 64GiB giving two 32GiB partitions for APP and APP_b given by the function in p3767.conf.common:

if [ "${ROOTFS_AB}" == 1 ]; then
    rootfs_ab=1;
    val=$(echo ${ROOTFSSIZE} | sed 's/GiB//g');
    val=`expr ${val} / 2`;
    ROOTFSSIZE="${val}GiB";
fi;

the Flashing command I use is:

sudo ROOTFS_AB=1 ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_t234_nvme_rootfs_ab.xml -p "-c bootloader/generic/cfg/flash_t234_qspi.xml" --showlogs --network usb0  jetson-orin-nano-devkit internal

I have also tryed adding -S 64GiB to the flash command but results in the same error.

Please can you let me know if I am missing something

Hi,

Please take a look at the following options in flash.sh:

        -T <ext num sectors> ---The number of the sectors of the external storage device.
                                The default value is 119537664 if this option is not set.
        -U <int num sectors> ---The number of the sectors of the internal storage device.
                                The default value is 119537664 if this option is not set.

This is because the default disk size specified here is 57GB (119537664/1024/1024/1024*512), and you cannot go beyond this limit if no other value is specified.
You can get the actual sector size of a disk with sudo fdisk -l, and specify it with the -U option to overwrite the default value.

sudo ROOTFS_AB=1 ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_t234_nvme_rootfs_ab.xml -p "-c bootloader/generic/cfg/flash_t234_qspi.xml -U <new sector size>" --showlogs --network usb0  jetson-orin-nano-devkit internal
1 Like

Hi DaveYYY thanks for your help.

Just to clarify, fdisk reports my NVMe disk I am using as having 500118192 sectors.

My new APP size of (64Gib) is:
image

  • Do I still need to change the line in p3767.conf.common to ROOTFSSIZE=64GiB;

  • For -U “new sector size” should I use what fdisk reports as 500118192 or 134217728

If you want to get a larger rootfs then of course you need.

It means the disk size, so 500118192.
The story is that the default disk size is 57GB, and we have to leave some space for partitions other than the rootfs, so rootfs is only 55GB while the disk is 57GB.

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