AGX Orin Flashing Error

I have been trying to flash the Agx orin with jetpack 35.4.1 and everytime I have been getting this error. Can someone please help me to figure out whats wrong here?

blockdev: cannot open /dev/mmcblk0boot0: No such file or directory
[ 0]: l4t_flash_from_kernel: Starting to create gpt for emmc
Active index file is /mnt/internal/flash.idx
Number of lines is 76
max_index=75
writing item=59, 1:3:primary_gpt, 512, 19968, gpt_primary_1_3.bin, 16896, fixed--0, a9898d6f0565f1801f722e46015b5bddbb62eab7
Writing primary_gpt partition with gpt_primary_1_3.bin
Offset is not aligned to K Bytes, no optimization is applied
dd if=/mnt/internal/gpt_primary_1_3.bin of=/dev/mmcblk0 bs=1 skip=0 seek=512 count=16896
16896+0 records in
16896+0 records out
16896 bytes (17 kB, 16 KiB) copied, 0.0201594 s, 838 kB/s
Writing primary_gpt partition done
Error: Invalid argument during seek for read on /dev/mmcblk0
[ 9]: l4t_flash_from_kernel: Error: partprobe failed. This indicates that:

  • the xml indicates the gpt is larger than the device storage
  • the xml might be invalid
  • the device might have a problem.
    Please make correction.
    Flash failure
    Cleaning up…

When I tried to flash it using sdk manager, I got this error. I have flashed many more Orins before but this is the first time I am facing this issue.

Hi,

Please first try 35.5.
Maybe your AGX Orin is a new one that has a smaller eMMC chip so old BSP does not support it.

35.5 would not work as the camera and our software is built in for 35.4

If there is a solution to get 35.4 working that would be really helpful.

Then you can put this into Linux_for_Tegra/p3701.conf.common:

# update_local_cfgfile
update_local_cfgfile()
{
	# Update "num_sectors" in local cfgfile for the device
	# with FAB=501 and BOARDSKU=0004/0005
	local local_cfgfile="${1}"
	if [ "${board_FAB}" == "501" ] && [[ "${board_sku}" == "0004" || "${board_sku}" == "0005" ]]; then
		sed -i 's/num_sectors=\"124321792\"/num_sectors=\"124190720\"/' "${local_cfgfile}"
	fi
}

Then remember to call it in flash.sh:

CFGCONV+="${EBT_TAG} ";
CFGCONV+="${LNX_TAG} ";
CFGCONV+="${SOS_TAG} ";
CFGCONV+="${NCT_TAG} ";
CFGCONV+="${VER_TAG} ";
CFGCONV+="${NVC_TAG} ";
CFGCONV+="${MB2BL_TAG} ";
CFGCONV+="${MPB_TAG} ";
CFGCONV+="${IST_TAG} ";
CFGCONV+="${MBP_TAG} ";
CFGCONV+="${MB1_TAG} ";
CFGCONV+="${BPFDTB_TAG} ";
CFGCONV+="${BPF_TAG} ";
CFGCONV+="${SCE_TAG} ";
CFGCONV+="${SPE_TAG} ";
CFGCONV+="${DRAMECC_TAG} ";
CFGCONV+="${BADPAGE_TAG} ";
CFGCONV+="${TOS_TAG} ";
CFGCONV+="${EKS_TAG} ";
CFGCONV+="${FB_TAG}  ";
CFGCONV+="${WB0_TAG} ";
CFGCONV+="${APP_TAG} ";
CFGCONV+="${EFI_TAG} ";
CFGCONV+="${DTB_TAG} ";
CFGCONV+="${TBCDTB_TAG} ";
CFGCONV+="${TBC_TAG} ";
CFGCONV+="${GPT_TAG} ";
CFGCONV+="${CBOOTOPTION_TAG} ";
CFGCONV+="${ESP_TAG} ";
CFGCONV+="${REC_TAG} ";
CFGCONV+="${RECDTB_TAG} ";
CFGCONV+="${BOOTCTRL_TAG} ";
CFGCONV+="${RECROOTFS_TAG} ";
CFGCONV+="${CUSTINFO_TAG} ";
CFGCONV+="${APE_TAG} ";
CFGCONV+="${FSIFW_TAG} ";
CFGCONV+="${UDA_TAG} ";
CFGCONV+="${EXTDEV_TAG} ";
...
...
...
4322 # Update localcfgfile
4323 if declare -F -f update_local_cfgfile > /dev/null 2>&1; then
4324 	update_local_cfgfile "${localcfgfile}"
4325 fi