Jetson Thor OTA Update Error

Hi Nvidia;

I downloaded the ota_tools_R39.2.0_aarch64.tbz2 from nvidia official website. Then, following the official guide, I attempted to create an OTA package. I have used below commands.

export BASE_BSP=/home/metin/nvidia/nvidia_sdk/JetPack_7.1_Linux_JETSON_AGX_THOR_TARGETS/Linux_for_Tegra
sudo -E ./tools/ota_tools/version_upgrade/l4t_generate_ota_package.sh \
  --external-device nvme0n1 jetson-agx-thor-devkit R38-4

Then I copied ota_tools_R39.2.0_aarch64.tbz2 and ota_payload_package.tar.gz to jetson device,

I have run the following command and reboot.

cd ~/
tar xjpf ota_tools_R39.2.0_aarch64.tbz2
cd Linux_for_Tegra/tools/ota_tools/version_upgrade
sudo ./nv_ota_start.sh ~/ota_payload_package.tar.gz

After 3-5 minutes later it gives an error

mount: /mnt: can’t find PARTUUID=160d7aed-5131-4b23-a959-a6a6b80d1a71.
mount: /mnt: can’t find PARTUUID=160d7aed-5131-4b23-a959-a6a6b80d1a71.
mount: /mnt: can’t find PARTUUID=160d7aed-5131-4b23-a959-a6a6b80d1a71.
mount: /mnt: can’t find PARTUUID=160d7aed-5131-4b23-a959-a6a6b80d1a71.
mount: /mnt: can’t find PARTUUID=160d7aed-5131-4b23-a959-a6a6b80d1a71.
mount: /mnt: can’t find PARTUUID=160d7aed-5131-4b23-a959-a6a6b80d1a71.
mount: /mnt: can’t find PARTUUID=160d7aed-5131-4b23-a959-a6a6b80d1a71.

[ 22.907914] No ttyTCU0 is found
[ 22.910764] No ttyAMA0 is found
[ 22.913937] ttyUTC0: Press [ENTER] to start bash in 30 seconds…
[ 25.917827] ttyUTC0: Press [ENTER] to start bash in 27 seconds…
[ 28.921831] ttyUTC0: Press [ENTER] to start bash in 24 seconds…
[ 31.925486] ttyUTC0: Press [ENTER] to start bash in 21 seconds…
[ 34.929585] ttyUTC0: Press [ENTER] to start bash in 18 seconds…
[ 37.933602] ttyUTC0: Press [ENTER] to start bash in 15 seconds…
[ 39.890020] Starting bash…
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
bash-5.2#

Hello @metinsama,

This error means the OTA recovery environment is trying to mount a partition with this PARTUUID: 160d7aed-5131-4b23-a959-a6a6b80d1a71, but that partition is not found from the recovery environment.

One thing to double-check is the BSP version used to generate the payload. Your path shows: JetPack_7.1_Linux_JETSON_AGX_THOR_TARGETS/Linux_for_Tegra, but you are using ota_tools_R39.2.0_aarch64.tbz2. If the target OTA is R39.2 / JetPack 7.2, the OTA payload should be generated from the matching R39.2 Linux_for_Tegra BSP, not the JetPack 7.1 / R38.4 BSP.

I would check:

cat /etc/nv_tegra_release
lsblk -o NAME,SIZE,TYPE,MOUNTPOINTS,PARTUUID,PARTLABEL,FSTYPE
blkid
cat /proc/cmdline

Run those once in normal boot and, if possible, again from the OTA recovery shell. If the PARTUUID in the error is not listed, then the OTA recovery environment is referencing a rootfs/partition UUID that does not exist or the NVMe is not visible there.

Let me know which results you get. You could also take a look at this wiki from RidgeRun with useful tips for OTA: JetPack OTA Updates Tips and Tricks

Juan Navarro
Embedded SW Engineer at RidgeRun
Contact us: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com
Website: www.ridgerun.com

Hi juanignava,

I have tried with ota_tools_R38.4.0_aarch64.tbz2 , The system was opened with lot of error and it looks like UEFI didn’t upgrade — it’s still 38.4.

Running these on the Thor that failed to ota update; what do these show?

grep -i "root=PARTUUID=" /boot/extlinux/extlinux.conf

ls -al /dev/disk/by-partuuid/160d7aed-5131-4b23-a959-a6a6b80d1a71

Hi whitesscott,

i fresh flashed the module and here is the outputs.

APPEND ${cbootargs} root=PARTUUID=f97d4fd8-2029-400f-b6b8-3bb893cca924 rw rootwait rootfstype=ext4 mminit_loglevel=4 earlycon=tegra_utc,mmio32,0xc5a0000 console=ttyUTC0,115200 clk_ignore_unused firmware_class.path=/etc/firmware fbcon=map:0 efi=runtime audit_backlog_limit=8192 video=efifb:off console=tty0
APPEND ${cbootargs} root=PARTUUID=f97d4fd8-2029-400f-b6b8-3bb893cca924 rw rootwait rootfstype=ext4 mminit_loglevel=4 earlycon=tegra_utc,mmio32,0xc5a0000 console=ttyUTC0,115200 clk_ignore_unused firmware_class.path=/etc/firmware fbcon=map:0 efi=runtime audit_backlog_limit=8192 video=efifb:off console=tty0

ls: cannot access ‘/dev/disk/by-partuuid/160d7aed-5131-4b23-a959-a6a6b80d1a71’: No such file or directory

ls -al /dev/disk/by-partuuid/f97d4fd8-2029-400f-b6b8-3bb893cca924
should be ../../nvme0n1p1

Then rerun all your ota_update commands again and it hopefully should work.

Where you have "Jetpack 7.2 / r39.2"  cd Linux_for_Tegra
tar xf ota_tools_R39.2.0_aarch64.tbz2

export BASE_BSP="/home/metin/nvidia/nvidia_sdk/JetPack_7.1_Linux_JETSON_AGX_THOR_TARGETS/Linux_for_Tegra"
cd Linux_for_Tegra

sudo -E ./tools/ota_tools/version_upgrade/l4t_generate_ota_package.sh \
  --external-device nvme0n1 jetson-agx-thor-devkit R38-4

Then using the Jetpack 7.2 / r39.2 Linux_for_Tegra/bootloader/jetson-agx-thor-devkit/ota_payload_package.tar.gz
copy ota_tools_R39.2.0_aarch64.tbz2 and ota_payload_package.tar.gz to jetson Thor,

cd ~/
tar xjpf ota_tools_R39.2.0_aarch64.tbz2
cd Linux_for_Tegra/tools/ota_tools/version_upgrade
sudo ./nv_ota_start.sh ~/ota_payload_package.tar.gz

Hi metinsama,

Are you using the devkit or custom board for Thor?

Is there any error when you were generating the image-based OTA payload.
Please also check tools/ota_tools/version_upgrade/Image_based_OTA_Examples.md for the example flow for OTA.

Hi,

It is a custom board. Before preparing the OTA package, I ran the command sudo ./l4t_initrd_flash.sh --erase-all --no-flash jetson-agx-thor-devkit internal for Jp7.1 and Jp7.2, then moved the OTA package and OTA tools and started the OTA upgrade while following nvidia document. It seems UEFI updated well. However, I can’t access the shell and the system is stuck. I have added the log as well.

[    9.747143] Finding OTA work dir on external storage devices
[    9.749733] Checking whether device /dev/mmcblk?p1 exist
[    9.756786] Device /dev/mmcblk?p1 does not exist
[    9.759641] Checking whether device /dev/sd?1 exist
[    9.765656] Device /dev/sd?1 does not exist
[    9.768058] Checking whether device /dev/nvme?n1p1 exist
[    9.774034] Looking for OTA work directory on the device(s): /dev/nvme0n1p1
[    9.776663] mount /dev/nvme0n1p1 /mnt
[    9.802780] EXT4-fs (nvme0n1p1): mounted filesystem 90a44326-de08-4bdc-b068-3cb279c516ce r/w with ordered data mode. Quota mode: none.
[    9.805673] is_boot_part_for_disk_enc /dev/nvme0n1p1 /mnt
[    9.830086] OTA work directory /mnt/ota_work is not found on /dev/nvme0n1p1
[    9.836669] EXT4-fs (nvme0n1p1): unmounting filesystem 90a44326-de08-4bdc-b068-3cb279c516ce.
[    9.844237] Internal storage device(/dev/mmcblk0p1) does not exist
[    9.846697] OTA work directory is not found on internal and external storage devices
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
bash-5.2# [   19.816958] tegra-mc 8108020000.memory-controller: sync_state() pending due to 8181200000.host1x
[   19.817003] tegra-mc 8108020000.memory-controller: sync_state() pending due to bus@0:aconnect@9000000
[   19.820951] tegra186-emc 8108020000.memory-controller:external-memory-controller@8108800000: sync_state() pending due to 8181200000.host1x
[   19.833500] tegra186-emc 8108020000.memory-controller:external-memory-controller@8108800000: sync_state() pending due to bus@0:aconnect@9000000
[   19.846452] tegra186-emc 8108020000.memory-controller:external-memory-controller@8108800000: sync_state() pending due to 88090b0000.hda
[   19.867073] tegra186-emc 8108020000.memory-controller:external-memory-controller@8108800000: sync_state() pending due to 81893d0000.rtcpu
[   19.879597] tegra-mc 8108020000.memory-controller: sync_state() pending due to 81893d0000.rtcpu
[   19.888408] tegra186-emc 8108020000.memory-controller:external-memory-controller@8108800000: sync_state() pending due to 8808c00000.display
[   19.900931] tegra-mc 8108020000.memory-controller: sync_state() pending due to 8808c00000.display
[   19.909652] tegra186-emc 8108020000.memory-controller:external-memory-controller@8108800000: sync_state() pending due to 0000:01:00.0
[   19.921859] tegra-mc 8108020000.memory-controller: sync_state() pending due to 0000:01:00.0

bash-5.2#
bash-5.2#
bash-5.2#

Best Regards.

Please provide the log as file for further check.

  1. generate the OTA payload (log from host)
  2. perform OTA update on the board (log from serial console)

This is from your first post above, it looks like you are putting ota_work at $HOME/ota_work.

cd ~/
tar xjpf ota_tools_R39.2.0_aarch64.tbz2
cd Linux_for_Tegra/tools/ota_tools/version_upgrade
sudo ./nv_ota_start.sh ~/ota_payload_package.tar.gz

If that is correct then you need to move ota_work to root /ota_work since:

nv_ota_internals.sh:OTA_PACKAGE_MOUNTPOINT=/mnt
nv_ota_internals.sh:OTA_WORK_DIR="${OTA_PACKAGE_MOUNTPOINT}/ota_work"