OTA update for bootloader

Hi,

I am tried to generate OTA payload for boot loader update, while run the scripts got below error and we are using l4t 36.5.

Ref: OTA update - #46 by JerryChang

sudo ./tools/ota_tools/version_upgrade/l4t_generate_ota_package.sh -b --external-device nvme0n1 jetson-orin-nano-devkit R36-5
Target board(JETSON_ORIN_NANO_DEVKIT) and base version(R36_5) is not supported
Failed to run “ota_validate_params jetson-orin-nano-devkit R36-5 internal /home/mxt02/Desktop/OTA/update_36_5/Linux_for_Tegra/tools/ota_tools/version_upgrade/ota_board_specs.conf BOARD_SPECS_ARRAY CHIPID”
Usage: sudo ./tools/ota_tools/version_upgrade/l4t_generate_ota_package.sh [options]
Where,
: target board. Supported boards: jetson-agx-orin-devkit, jetson-agx-orin-devkit-industrial, jetson-orin-nano-devkit, jetson-orin-nano-devkit-super, jetson-orin-nano-devkit-super-maxn.
: the version of the base BSP. Supported versions: R35-5, R35-6, R36-3, R36-4.
options:
-u : PKC key used for odm fused board
-v : Secure Boot Key (SBK) key used for ODM fused board
-i : Key for disk encryption support
-s Skip generating system image.
-b Update bootloader only. Only valid if is R36.
-r Update rootfs only. Only valid if is R36.
-o Specify the script to update rootfs partition.
-f Specify the rootfs image to be written to rootfs partition.
-p Specify the options directly passed into flash.sh when generating images.
–external-device : Specify the external device to be OTAed. Supported devices: nvme0n1.
This option is only valid for jetson-orin-nano-devkit.
-S : Specify the size of rootfs partition on external device. Only valid when --external-device option is set. KiB, MiB, GiB short hands are allowed
Ths size set through this option must be the same as the size of rootfs partition on the external device to be OTAed.
-E : Specify the image to update ESP.
-T : Specify the number of the sectors of the external storage device.
–rootfs-uuid : Specify UUID for rootfs tp be updated through OTA
–rootfs-b-uuid : Specify UUID for rootfs B on the device to be updated through OTA.
–uda-uuid : Specify UUID for UDA on the device to be updated through OTA.
–uefi-keys <keys_conf>: Specify UEFI keys configuration file.
–uefi-enc <UEFI_ENC_key>: Key file (0x19: 16-byte; 0x23: 32-byte) to encrypt UEFI payloads.
Example:

  1. Upgrade from R35.6 to R36 ToT on Jetson AGX Orin Devkit
    sudo ./tools/ota_tools/version_upgrade/l4t_generate_ota_package.sh jetson-agx-orin-devkit R35-6
  2. Upgrade from R35.6 to R36 ToT on Jetson Orin NX/Nano with NVMe device that has 24GiB APP partition
    sudo ./tools/ota_tools/version_upgrade/l4t_generate_ota_package.sh --external-device nvme0n1 -S 24GiB jetson-orin-nano-devkit R35-6
  3. Upgrade from R35.6 to R36 ToT on Jetson Orin NX/Nano with NVMe device that has 24GiB APP partition and with rootfs A/B enabled
    sudo ROOTFS_AB=1 ./tools/ota_tools/version_upgrade/l4t_generate_ota_package.sh --external-device nvme0n1 -S 24GiB jetson-orin-nano-devkit R35-6

hello muralikrishnan.t,

please refer to Topic 369235, the current OTA Tools does not support for R36.5 Image-based OTA update.
it’s still under investigation.

Hi,

How to know ota failure with log.

hello muralikrishnan.t,

FYI, please visit the jetson-linux-r365 for the updated OTA package, OTA Tools r36.5 (updated on 5/22).