OTA from 4.6.5 to 5.1.4 fails

OTA update fails because of dd error, probably, there is some bug with 64gb version…

ota-fail.txt (123.9 KB)

The end of log:

action=Write item=89, 1:3:secondary_gpt, 31272713728, 16896, gpt_secondary_1_3.bin, 16896, fixed-<reserved>-0, d0acee65decc2a04c29c0d5c08e3ca299b80e62b
Do write action
Writing secondary_gpt partition with gpt_secondary_1_3.bin
Sha1 checksum matched for /mnt/ota_work/internal_device/images-R32x-R35i/gpt_secondary_1_3.bin
read-back partition secondary_gpt to check whether to update it
Offset is not aligned to K Bytes, no optimization is applied
dd if=/dev/mmcblk0 of=/tmp/tmp.img bs=1 skip=31272713728 seek=0 count=16896
dd: /dev/mmcblk0: cannot skip: Invalid argument
0+0 records in
0+0 records out
0 bytes copied, 8e-05 s, 0 B/s
write /mnt/ota_work/internal_device/images-R32x-R35i/gpt_secondary_1_3.bin into partition secondary_gpt
Offset is not aligned to K Bytes, no optimization is applied
dd if=/mnt/ota_work/internal_device/images-R32x-R35i/gpt_secondary_1_3.bin of=/dev/mmcblk0 bs=1 skip=0 seek=31272713728 count=16896
dd: /dev/mmcblk0: cannot seek: Invalid argument
0+0 records in
0+0 records out
0 bytes copied, 7.5808e-05 s, 0.0 kB/s
Offset is not aligned to K Bytes, no optimization is applied
dd if=/dev/mmcblk0 of=/tmp/tmp.img bs=1 skip=31272713728 seek=0 count=16896
dd: /dev/mmcblk0: cannot skip: Invalid argument
0+0 records in
0+0 records out
0 bytes copied, 8.976e-05 s, 0.0 kB/s
Sha1 checksum does not match (da39a3ee5e6b4b0d3255bfef95601890afd80709 != d0acee65decc2a04c29c0d5c08e3ca299b80e62b) for /tmp/tmp.img
Writing secondary_gpt partition done
Failed to run_task Write sdmmc_user secondary_gpt /mnt/ota_work/internal_device/images-R32x-R35i/flash.idx
Error happens when running "l4t_update_partitions.sh jetson-agx-xavier-devkit upgradetasklist.txt"
/mnt/ota_work
Failed to run "ota_update_all_in_recovery /mnt/ota_work"
Reached OTA max retries (0 times)
ERROR: Failed to run command and keep in recovery mode to waiting for check

Hardware spec:

# cat /etc/nv_boot_control.conf
TNSPEC 2888-402-0005-C.0-1-2-jetson-xavier-mmcblk0p1
COMPATIBLE_SPEC 2888-402-0005--1-2-jetson-agx-xavier-devkit-
TEGRA_CHIPID 0x19
TEGRA_OTA_BOOT_DEVICE /dev/mmcblk0boot0
TEGRA_OTA_GPT_DEVICE /dev/mmcblk0boot1

hello pim_pam,

please check developer guide, Updating Jetson Linux with Image-Based Over-the-Air Update.
may I know your steps in details for running OTA update.

Yes, I am doing steps from this guide. I can provide output from any step if it can help….

Also, these steps were working with another hardware version of xavier:

# cat /etc/nv_boot_control.conf
TNSPEC 2888-400-0004-P.0-1-2-jetson-xavier-mmcblk0p1
COMPATIBLE_SPEC 2888-400-0004--1-2-jetson-agx-xavier-devkit-
TEGRA_CHIPID 0x19
TEGRA_OTA_BOOT_DEVICE /dev/mmcblk0boot0
TEGRA_OTA_GPT_DEVICE /dev/mmcblk0boot1

And one more thing - I have this fix OTA tools: broken support of AGX Xavier 64Gb - #10 by KevinFFF

hello pim_pam,

if that’s only happened with 64GB version, you may see-also Jetson PCN Center to apply the related overlay.