Hi!
Previously I had trouble flashing my AGX Xavier (link previous topic).
Since the device is bootable, I tried to do image-based OTA. But I failed at applying the ota payload on device.
Error message:
sudo -E ./nv_ota_start.sh /dev/mmcblk0 /ota/ota_payload_package.tar.gz
Command: ./nv_ota_start.sh /dev/mmcblk0 /ota/ota_payload_package.tar.gz
Current rootfs is on /dev/mmcblk0
init_ota_log /ota_log
Create log file at /ota_log/ota_20230219-225104.log
OTA_LOG_FILE=/ota_log/ota_20230219-225104.log
Extract /ota/ota_payload_package.tar.gz
update_nv_boot_control_in_rootfs /ota_work
2888-400-0004--1-2-jetson-agx-xavier-devkit-
check_prerequisites
get_chip_id chip_id
decompress_ota_package ota_package.tar /ota_work
decompress_ota_package: start at Sun 19 Feb 2023 10:51:35 PM EST
Sha1 checksum for /ota_work/ota_package.tar (68327049f190dd16254b0ef18e0a88f01bb8f6cf) matches
decompress_ota_package: end at Sun 19 Feb 2023 10:51:53 PM EST
nv_ota_update_with_layout_change.sh /dev/mmcblk0
Command: nv_ota_update_with_layout_change.sh /dev/mmcblk0
check_bsp_version /ota_work /dev/mmcblk0 BASE_VERSION
check_target_board /ota_work TARGET_BOARD
set_msi_emmc_min_size jetson-agx-xavier-devkit MSI_EMMC_MIN_SIZE
ota_check_rollback /ota_work jetson-agx-xavier-devkit R32-7
OTA_PACKAGE version: branch:35 revision:2.1 major.minor:2.1
16384+0 records in
16384+0 records out
8388608 bytes (8.4 MB, 8.0 MiB) copied, 2.97825 s, 2.8 MB/s
boot_device_size=8388608
VER_b's offset is 2203648 and size is 65536
VER's offset is 2269184 and size is 65536
VER_b version: branch:32 revision:7.2 major.minor:7.2
VER version: branch:32 revision:7.2 major.minor:7.2
Check BCT/MB1/MB1_BCT partiton for fresh OTA
Checking BCT partition
Checking MB1 partition
Checking MB1_BCT partition
ver_check_res=0
ota_choose_images /ota_work jetson-agx-xavier-devkit R32-7
COMPATIBLE_SPEC=2888-400-0004--1-2-jetson-agx-xavier-devkit-
_BOARD_SPEC_NAME=2888-400-0004-
Copy files from ./images-R35A-R35i/2888-400-0004-/ to ./images-R35A-R35i/
Copy files from ./images-R32x-R35i/2888-400-0004-/ to ./images-R32x-R35i/
Copy files from ./images-R35-ToT/2888-400-0004-/ to ./images-R35-ToT/
ota_check_free_space_on_emmc
There is enough free space(655001600 bytes > 335544320 bytes) on eMMC
ota_check_partitions /ota_work
16384+0 records in
16384+0 records out
8388608 bytes (8.4 MB, 8.0 MiB) copied, 3.22532 s, 2.6 MB/s
boot_device_size=8388608
Checking partitions on the boot device through secondary GPT
Checking partition BCT in the ota index file
The start and end offset for BCT partition matches
Checking partition mb1 in the ota index file
The start and end offset for mb1 partition matches
Checking partition mb1_b in the ota index file
The start and end offset for mb1_b partition matches
Checking partition MB1_BCT in the ota index file
The start and end offset for MB1_BCT partition matches
Checking partition MB1_BCT_b in the ota index file
The start and end offset for MB1_BCT_b_rsv partition matches
Checking partition MEM_BCT in the ota index file
The start and end offset for MEM_BCT partition matches
Checking partition MEM_BCT_b in the ota index file
The start and end offset for MEM_BCT_b_rsv partition matches
Checking partition spe-fw in the ota index file
The start and end offset for spe-fw partition matches
Checking partition spe-fw_b in the ota index file
The start and end offset for spe-fw_b_rsv partition matches
Checking partition mb2 in the ota index file
The start and end offset for mb2 partition matches
Checking partition mb2_b in the ota index file
The start and end offset for mb2_b_rsv partition matches
Checking partition mts-preboot in the ota index file
The start and end offset for mts-preboot partition matches
Checking partition mts-preboot_b in the ota index file
The start and end offset for mts-preboot_b_rsv partition matches
Checking partition SMD in the ota index file
The start and end offset for SMD partition matches
Checking partition SMD_b in the ota index file
The start and end offset for SMD_b partition matches
Checking partitions on the user device through primary GPT
Checking partition APP in the ota index file
The start and end offset for APP partition matches
Checking partition mts-mce in the ota index file
The start and end offset for mts-mce partition matches
Checking partition mts-mce_b in the ota index file
The start and end offset for mts-mce_b_rsv partition matches
Checking partition mts-proper in the ota index file
The start and end offset for mts-proper partition matches
Checking partition mts-proper_b in the ota index file
The start and end offset for mts-proper_b_rsv partition matches
Checking partition cpu-bootloader in the ota index file
The start and end offset for cpu-bootloader partition matches
Checking partition cpu-bootloader_b in the ota index file
The start and end offset for cpu-bootloader_b_rsv partition matches
Checking partition bootloader-dtb in the ota index file
The start and end offset for bootloader-dtb partition matches
Checking partition bootloader-dtb_b in the ota index file
The start and end offset for bootloader-dtb_b_rsv partition matches
Checking partition secure-os in the ota index file
The start and end offset for secure-os partition matches
Checking partition secure-os_b in the ota index file
The start and end offset for secure-os_b_rsv partition matches
Checking partition eks in the ota index file
The start and end offset for eks partition matches
Checking partition eks_b in the ota index file
The start and end offset for eks_b_rsv partition matches
Checking partition bpmp-fw in the ota index file
The start and end offset for bpmp-fw partition matches
Checking partition bpmp-fw_b in the ota index file
The start and end offset for bpmp-fw_b_rsv partition matches
Checking partition bpmp-fw-dtb in the ota index file
The start and end offset for bpmp-fw-dtb partition matches
Checking partition bpmp-fw-dtb_b in the ota index file
The start and end offset for bpmp-fw-dtb_b_rsv partition matches
Checking partition xusb-fw in the ota index file
The start and end offset for xusb-fw partition matches
Checking partition xusb-fw_b in the ota index file
The start and end offset for xusb-fw_b_rsv partition matches
Checking partition rce-fw in the ota index file
The start and end offset for rce-fw partition matches
Checking partition rce-fw_b in the ota index file
The start and end offset for rce-fw_b_rsv partition matches
Checking partition adsp-fw in the ota index file
The start and end offset for adsp-fw partition matches
Checking partition adsp-fw_b in the ota index file
The start and end offset for adsp-fw_b_rsv partition matches
Checking partition sce-fw in the ota index file
The start and end offset for sce-fw partition matches
Checking partition sce-fw_b in the ota index file
The start and end offset for sce-fw_b_rsv partition matches
Checking partition sc7 in the ota index file
The start and end offset for sc7 partition matches
Checking partition sc7_b in the ota index file
The start and end offset for sc7_b_rsv partition matches
Checking partition BMP in the ota index file
The start and end offset for BMP partition matches
Checking partition BMP_b in the ota index file
The start and end offset for BMP_b partition matches
Checking partition recovery in the ota index file
The start and end offset for recovery_rsv partition matches
Checking partition recovery-dtb in the ota index file
The start and end offset for recovery-dtb_rsv partition matches
Checking partition kernel-bootctrl in the ota index file
The start and end offset for kernel-bootctrl partition matches
Checking partition kernel-bootctrl_b in the ota index file
The start and end offset for kernel-bootctrl_b partition matches
Checking partition kernel in the ota index file
The start and end offset for kernel partition matches
Checking partition kernel_b in the ota index file
The start and end offset for kernel_b partition matches
Checking partition kernel-dtb in the ota index file
The start and end offset for kernel-dtb partition matches
Checking partition kernel-dtb_b in the ota index file
The start and end offset for kernel-dtb_b partition matches
Checking partition CPUBL-CFG in the ota index file
The start and end offset for CPUBL-CFG partition matches
Checking partition RP1 in the ota index file
The start and end offset for RP1 partition matches
Checking partition RP2 in the ota index file
The start and end offset for RP2 partition matches
enable_a_b_redundancy
mount: /opt/nvidia/esp: can't find UUID=D.
./nv_ota_common.func: line 167: [: Error: check and mount esp partition failed.
2: integer expression expected
both_slots_valid
mount: /opt/nvidia/esp: can't find UUID=D.
Error: check and mount esp partition failed.
nvbootctrl - command-line wrapper for the boot_control HAL.
Usage:
nvbootctrl [Options] Command
Options:
-t <target> - target available: bootloader or rootfs. Default: bootloader.
Commands:
get-number-slots - Prints number of slots.
get-current-slot - Prints currently running SLOT.
set-active-boot-slot SLOT - On next boot, load and execute SLOT.
dump-slots-info - Prints info for slots.
verify - Verify the bootloader and rootfs boot.
set-SR-BR SLOT - On next warm reset, load and execute SLOT. (T194 bootloader only)
is-rootfs-ab-enabled - Rootfs only. Return 0 if rootfs A/B is disabled;
- Return 1 if rootfs A/B is enabled, current slot is A;
- Return 2 if rootfs A/B is enabled, current slot is B;
SLOT parameter is the zero-based slot-number.
Slot 0 is not bootable, device is not ready for OTA. Please do RCM flash to recover it
Failed to run "both_slots_valid"
It looks like some kind of partition issue. Could you provide some insights? Thanks!