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;
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.
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.