nvidia@tegra-ubuntu:~/Desktop/Linux_for_Tegra/tools/ota_tools/version_upgrade$ sudo ./nv_ota_start.sh /dev/sda /home/nvidia/Desktop/ota_payload_package.tar.gz [sudo] password for nvidia: Command: ./nv_ota_start.sh /dev/sda /home/nvidia/Desktop/ota_payload_package.tar.gz init_ota_log /ota_log Creating log dir at /ota_log Create log file at /ota_log/ota_20221006-014638.log OTA_LOG_FILE=/ota_log/ota_20221006-014638.log Extract /home/nvidia/Desktop/ota_payload_package.tar.gz update_nv_boot_control_in_rootfs /ota_work 3668-100---1--jetson-xavier-nx-devkit-emmc- check_prerequisites get_chip_id chip_id decompress_ota_package ota_package.tar /ota_work decompress_ota_package: start at Thu Oct 6 01:46:59 UTC 2022 Sha1 checksum for /ota_work/ota_package.tar (3ef655bf5eb1677bd67ed89695f8b1e6da52bd93) matches decompress_ota_package: end at Thu Oct 6 01:47:22 UTC 2022 nv_ota_update_without_layout_change.sh Command: nv_ota_update_without_layout_change.sh check_target_board /ota_work TARGET_BOARD get_chip_id CHIP_ID update_utilities_for_BUP_update /ota_work enable_a_b_redundancy Nvidia A/B-Redundancy Update tool Version 2.1 enabling A/B redundancy A/B Redundancy has been enabled. get_rootfs_a_b_enabled ROOTFS_AB_ENABLED UNIFIED_AB_ENABLED ROOTFS_AB_ENABLED=0 UNIFIED_AB_ENABLED=0 check_bsp_version /ota_work BASE_VERSION get_update_control /ota_work UPDATE_BOOTLOADER UPDATE_ROOTFS UPDATE_BOOTLOADER=1, UPDATE_ROOTFS=1 update_bootloader /ota_work 0 0x19 get_update_slot bootloader 0 update_slot update_slot=B update_bootloader_with_UE /ota_work 0x19 Nvidia A/B-Redundancy Update tool Version 2.1 verifying update Verify bootloader update begins. The rotate count has been restored. The current slot 0 is marked as boot successful SM: S1 The priority of current slot 0 has been restored. Verify rootfs update begins. RootFS A/B is not enabled, verification finishes. Nvidia A/B-Redundancy Update tool Version 2.1 Got payload file: /ota_work/bl_update_payload current slot 0 SM: S11 Set slot 1 as unbootable and start updating. Start running: /usr/sbin/nv_bootloader_payload_updater --no-dependent-partition /ota_work/bl_update_payload Start running: /opt/nvidia/l4t-bootloader-config/nv-l4t-bootloader-config.sh -c 3668-100---1--jetson-xavier-nx-devkit-emmc- Got update payload: /ota_work/bl_update_payload Tegra User Block Device: /dev/disk/by-partlabel Tegra Boot Block Device: /dev/mtdblock0 HEADER: MAGIC NVIDIA__BLOB__V2 HEX_VALUE 16909857 BLOB_SIZE 50355250 HEADER_SIZE 48 NUMBER_OF_ELEMENTS 29 HEADER_TYPE 0 UNCOMP_SIZE 50355250 MB1_RATCHET_LV 0 MTS_RATCHET_LV 0 ROLLBACK_FUSE_LV 0 Device TN Spec: 3668-300-0001-B.0-1-2-jetson-xavier-nx-devkit-emmc-mmcblk0p1 Device Compatible Spec: 3668-100---1--jetson-xavier-nx-devkit-emmc- Device TN Spec: 3668-300-0001-B.0-1-2-jetson-xavier-nx-devkit-emmc-mmcblk0p1 Device Compatible Spec: 3668-100---1--jetson-xavier-nx-devkit-emmc- Device is fused board. ENTRY_TABLE: PART POS LEN VER TNSPEC TYPE UPDATABLE spe-fw 3528 94960 12914 0 1 mb2 98488 181328 12914 0 1 cpu-bootloader 279816 471760 12914 0 1 secure-os 751576 410560 12914 0 1 bpmp-fw 1162136 856352 12914 0 1 eks 2018488 5136 12914 0 1 adsp-fw 2023624 81312 12914 0 1 rce-fw 2104936 271952 12914 0 1 mts-preboot 2376888 24016 12914 0 1 mts-mce 2400904 143200 12914 0 1 mts-proper 2544104 3430416 12914 0 1 sc7 5974520 65504 12914 0 1 bpmp-fw-dtb 6040024 391616 12914 3668-100-0001--1-2-jetson-xavier-nx-devkit-emmc-mmcblk0p1 0 1 bpmp-fw-dtb 6431640 391616 12914 3668-301-0001--1-2-jetson-xavier-nx-devkit-emmc-mmcblk0p1 0 0 bootloader-dtb 6823256 208736 12914 3668-100-0001--1-2-jetson-xavier-nx-devkit-emmc-mmcblk0p1 0 1 bootloader-dtb 7031992 208736 12914 3668-301-0001--1-2-jetson-xavier-nx-devkit-emmc-mmcblk0p1 0 0 VER 7240728 102 12914 3668-100-0001--1-2-jetson-xavier-nx-devkit-emmc-mmcblk0p1 0 1 VER 7240830 100 12914 3668-301-0001--1-2-jetson-xavier-nx-devkit-emmc-mmcblk0p1 0 0 mb1 7240930 250432 12914 3668-100-0001--1-2-jetson-xavier-nx-devkit-emmc-mmcblk0p1 2 1 mb1 7491362 250432 12914 3668-301-0001--1-2-jetson-xavier-nx-devkit-emmc-mmcblk0p1 2 0 BCT 7741794 2888 12914 3668-100-0001--1-2-jetson-xavier-nx-devkit-emmc-mmcblk0p1 2 1 BCT 7744682 2888 12914 3668-301-0001--1-2-jetson-xavier-nx-devkit-emmc-mmcblk0p1 2 0 MB1_BCT 7747570 30400 12914 3668-100-0001--1-2-jetson-xavier-nx-devkit-emmc-mmcblk0p1 0 1 MB1_BCT 7777970 30400 12914 3668-301-0001--1-2-jetson-xavier-nx-devkit-emmc-mmcblk0p1 0 0 MEM_BCT 7808370 198656 12914 3668-100-0001--1-2-jetson-xavier-nx-devkit-emmc-mmcblk0p1 0 1 MEM_BCT 8007026 198656 12914 3668-301-0001--1-2-jetson-xavier-nx-devkit-emmc-mmcblk0p1 0 0 kernel 8205682 41732096 12914 1 1 kernel-dtb 49937778 208736 12914 3668-100-0001--1-2-jetson-xavier-nx-devkit-emmc-mmcblk0p1 1 1 kernel-dtb 50146514 208736 12914 3668-301-0001--1-2-jetson-xavier-nx-devkit-emmc-mmcblk0p1 1 0 Saving Entry table to /opt/ota_package/entry_table spe-fw write: slot = 1 offset = 1572864 bytes = 94960 mb2 write: slot = 1 offset = 2097152 bytes = 181328 cpu-bootloader write: slot = 1 offset = 13500416 bytes = 471760 secure-os write: slot = 1 offset = 18874368 bytes = 410560 bpmp-fw write: slot = 1 offset = 29491200 bytes = 856352 eks write: slot = 1 offset = 21561344 bytes = 5136 adsp-fw write: slot = 1 offset = 22675456 bytes = 81312 rce-fw write: slot = 1 offset = 24772608 bytes = 271952 mts-preboot write: slot = 1 offset = 2424832 bytes = 24016 mts-mce write: slot = 1 offset = 2686976 bytes = 143200 mts-proper write: slot = 1 offset = 7077888 bytes = 3430416 sc7 write: slot = 1 offset = 11403264 bytes = 65504 bpmp-fw-dtb write: slot = 1 offset = 32112640 bytes = 391616 bootloader-dtb write: slot = 1 offset = 15400960 bytes = 208736 VER write: slot = 1 offset = 33357824 bytes = 102 MB1_BCT write: slot = 1 offset = 720896 bytes = 30400 MEM_BCT write: slot = 1 offset = 1048576 bytes = 198656 Writing 41732096 bytes to /dev/disk/by-partlabel/kernel_b for kernel Writing 208736 bytes to /dev/disk/by-partlabel/kernel-dtb_b for kernel-dtb mb1 write: slot = 0 offset = 131072 bytes = 250432 mb1 write: slot = 1 offset = 393216 bytes = 250432 Update bup successfully SM: S12 Setting slot 1 as active boot slot Nvidia A/B-Redundancy Update tool Version 2.1 Got payload file: /ota_work/xusb_only_payload current slot 0 SM: S11 Set slot 1 as unbootable and start updating. Start running: /usr/sbin/nv_bootloader_payload_updater --no-dependent-partition /ota_work/xusb_only_payload Start running: /opt/nvidia/l4t-bootloader-config/nv-l4t-bootloader-config.sh -c 3668-100---1--jetson-xavier-nx-devkit-emmc- Got update payload: /ota_work/xusb_only_payload Tegra User Block Device: /dev/disk/by-partlabel Tegra Boot Block Device: /dev/mtdblock0 HEADER: MAGIC NVIDIA__BLOB__V2 HEX_VALUE 16909857 BLOB_SIZE 133288 HEADER_SIZE 48 NUMBER_OF_ELEMENTS 1 HEADER_TYPE 0 UNCOMP_SIZE 133288 MB1_RATCHET_LV 0 MTS_RATCHET_LV 0 ROLLBACK_FUSE_LV 0 Device TN Spec: 3668-300-0001-B.0-1-2-jetson-xavier-nx-devkit-emmc-mmcblk0p1 Device Compatible Spec: 3668-100---1--jetson-xavier-nx-devkit-emmc- Device TN Spec: 3668-300-0001-B.0-1-2-jetson-xavier-nx-devkit-emmc-mmcblk0p1 Device Compatible Spec: 3668-100---1--jetson-xavier-nx-devkit-emmc- Device is fused board. ENTRY_TABLE: PART POS LEN VER TNSPEC TYPE UPDATABLE xusb-fw 168 133120 12914 0 1 Saving Entry table to /opt/ota_package/entry_table xusb-fw write: slot = 1 offset = 11862016 bytes = 133120 GetEntryTable failed for mb1 Skipping partition: mb1 GetEntryTable failed for BCT Skipping partition: BCT GetEntryTable failed for BCT Skipping partition: BCT GetEntryTable failed for mb1 Skipping partition: mb1 Update bup successfully SM: S12 Setting slot 1 as active boot slot Copy /opt/ota_package/entry_table into /ota_work/entry_table.ota_backup Bootloader on non-current slot(B) is updated update_rootfs /ota_work 0 update_rootfs_with_a_b_disabled /ota_work write_base_recovery /ota_work Verifying image /ota_work/recovery.img.R32_3_4 with sha1 chksum file /ota_work/recovery.img.R32_3_4.sha1sum Sha1 checksum for /ota_work/recovery.img.R32_3_4 (d00d271731b98ae8e81d4d8647b0993f4695a2ab) matches Verifying image /ota_work/recovery.dtb.R32_3_4 with sha1 chksum file /ota_work/recovery.dtb.R32_3_4.sha1sum Sha1 checksum for /ota_work/recovery.dtb.R32_3_4 (77f6ac98f47c33bc0062245bc6d5586606056d02) matches Backed up kernel and kernel-dtb partition under /ota_work before writing them Writing base recovery image into /dev/disk/by-partlabel/recovery Read back base recovery image into /ota_work/image.tmp and verify it Reading 49471488 bytes from /dev/disk/by-partlabel/recovery: 1KB block=48312 remainder=0 offset=49471488 Verifying image /ota_work/image.tmp with sha1 chksum file /ota_work/recovery.img.R32_3_4.sha1sum Sha1 checksum for /ota_work/image.tmp (d00d271731b98ae8e81d4d8647b0993f4695a2ab) matches Writing base recovery dtb into /dev/disk/by-partlabel/recovery-dtb Read back base recovery dtb into /ota_work/image.tmp and verify it Reading 208944 bytes from /dev/disk/by-partlabel/recovery-dtb: 1KB block=204 remainder=48 offset=208896 Verifying image /ota_work/image.tmp with sha1 chksum file /ota_work/recovery.dtb.R32_3_4.sha1sum Sha1 checksum for /ota_work/image.tmp (77f6ac98f47c33bc0062245bc6d5586606056d02) matches write_kernel_bootctrl /ota_work images-R32-ToT 512+0 records in 512+0 records out 262144 bytes (262 kB, 256 KiB) copied, 0.00601418 s, 43.6 MB/s Backed up kernel-bootctrl partition under /ota_work before writing them Writing bootctrl update file into /dev/disk/by-partlabel/kernel-bootctrl Read back bootctrl update file into /ota_work/image.tmp and verify it Reading 20 bytes from /dev/disk/by-partlabel/kernel-bootctrl: 1KB block=0 remainder=20 offset=0 backup_extlinux_conf /ota_work Backing up /boot/extlinux/extlinux.conf Rootfs is to be updated in recovery kernel once device is rebooted.