Skip to content

Nvidia Jetson Orin Nano Super Flash #3326

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
SuperElectron opened this issue Apr 9, 2025 · 1 comment
Open

Nvidia Jetson Orin Nano Super Flash #3326

SuperElectron opened this issue Apr 9, 2025 · 1 comment
Assignees

Comments

@SuperElectron
Copy link

ISSUE

I run the installation instruction for kairos on a Nvidia Jetson Orin Nano Super and it fails.

This is where the error comes from:

IMAGE=quay.io/kairos/ubuntu:22.04-core-arm64-nvidia-jetson-agx-orin-master
docker run --privileged \
        -e container_image=$IMAGE \
        -e STATE_SIZE="25500" \
        -e RECOVERY_SIZE="21000" \
        -e DEFAULT_ACTIVE_SIZE="7000" \
        -v $PWD/bootloader:/bootloader --entrypoint /prepare_nvidia_orin_images.sh -ti --rm quay.io/kairos/auroraboot:v0.6.4


mv: cannot stat '/tmp/arm-builder.1GeWgiEsAO/tmpefi/EFI/BOOT/*pf2': No such file or directory

And I traced the error back to this script:

Script to Replicate the Issue

I have created a script from the docs

  • note I am using "personal" not "business" which means I use quay.io/kairos/auroraboot:v0.6.4 below

The Error happens at # >>>>>>>>>>>>>>> ERRORS OUT in the script below.

#!/bin/bash
###########################################################
##  Run this script on a host computer, to flash the Nvidia Jetson
##  ./install.sh
###########################################################

# Trap errors and print line number and command
set -euo pipefail
trap 'echo "❌ Error on line $LINENO: $BASH_COMMAND"; exit 1' ERR

DL_DIR=./.cache
mkdir -p "${DL_DIR}"

###########################################################
# Download Jetpack SDK and prepare it
cd "${DL_DIR}"
wget https://developer.nvidia.com/downloads/embedded/l4t/r36_release_v4.3/release/Jetson_Linux_r36.4.3_aarch64.tbz2 -O "tegra.bz2" && \
  tar xvf "tegra.bz2" && \
  cd "Linux_for_Tegra"

# Drop extlinux
echo "" > ./bootloader/extlinux.conf
IMAGE=quay.io/kairos/ubuntu:22.04-core-arm64-nvidia-jetson-agx-orin-master
docker run -ti --rm -v $PWD/rootfs:/rootfs quay.io/luet/base util unpack "$IMAGE" /rootfs
sudo rm rootfs/boot/initrd
sudo mkdir -p rootfs/boot/extlinux/
sudo touch rootfs/boot/extlinux/extlinux.conf

############################################################

# >>>>>>>>>>>>>>> ERRORS OUT
# mv: cannot stat '/tmp/arm-builder.YSWRKAwJZU/tmpefi/EFI/BOOT/*pf2': No such file or directory
# https://github.com/kairos-io/AuroraBoot/blob/main/image-assets/prepare_nvidia_orin_images.sh#L43
IMAGE=quay.io/kairos/ubuntu:22.04-core-arm64-nvidia-jetson-agx-orin-master
docker run --privileged \
        -e container_image=$IMAGE \
        -e STATE_SIZE="25500" \
        -e RECOVERY_SIZE="21000" \
        -e DEFAULT_ACTIVE_SIZE="7000" \
        -v $PWD/bootloader:/bootloader --entrypoint /prepare_nvidia_orin_images.sh -ti --rm quay.io/kairos/auroraboot:v0.6.4

wget 'https://kairos.io/examples/images/flash_t234_qspi_sdmmc.xml' -O ./bootloader/generic/cfg/flash_t234_qspi_sdmmc.xml

stat -c %s bootloader/efi.img
stat -c %s bootloader/recovery_partition.img
stat -c %s bootloader/state_partition.img
stat -c %s bootloader/oem.img
stat -c %s bootloader/persistent.img

############################################################
printf "***************************************************
################
[STEP 1]: Adjust configs as needed

- look at the file
./bootloader/generic/cfg/flash_t234_qspi_sdmmc.xml

- reference docs as needed
https://kairos.io/docs/installation/nvidia_agx_orin/
https://kairos.io/examples/images/flash_t234_qspi_sdmmc.xml

################
[STEP 2]: Test connection from your laptop to the Jetson board

$ lsusb
Bus 003 Device 029: ID 0955:7020 NVIDIA Corp. L4T (Linux for Tegra) running on Tegra

################
[STEP 3]: Put the Jetson board into recovery mode (and wait 60 seconds)

$ ssh <username>@192.168.55.1
$ sudo reboot --force forced-recovery

################
[STEP 4]: Flash the jetson board from YOUR LAPTOP
$ cd ${DL_DIR}
$ sudo ./flash.sh jetson-agx-orin-devkit internal

"

Details about host computer and Jetson

Host computer

$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.5 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.5 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

Jetson Orin Nano Super

nvidia@ubuntu:~$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.5 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.5 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

# copied the Jetpack Version
nvidia@ubuntu:~$ jtop
Model: NVIDIA Jetson Orin Nano Engineering Reference Developer Kit Super - Jetpack 6.2 [L4T 36.4.3]

nvidia@ubuntu:~$ nvidia-smi
Wed Apr  9 17:07:53 2025       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 540.4.0                Driver Version: 540.4.0      CUDA Version: 12.6     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  Orin (nvgpu)                  N/A  | N/A              N/A |                  N/A |
| N/A   N/A  N/A               N/A /  N/A | Not Supported        |     N/A          N/A |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|  No running processes found                                                           |
+---------------------------------------------------------------------------------------+


I am happy to help with a little bit of direction, if needed.

@mudler mudler transferred this issue from kairos-io/AuroraBoot Apr 10, 2025
@mudler mudler removed their assignment Apr 10, 2025
@jimmykarily jimmykarily moved this to Under review 🔍 in 🧙Issue tracking board Apr 14, 2025
@mudler
Copy link
Member

mudler commented Apr 14, 2025

@SuperElectron mh that's weird but maybe there is a bug as we moved some grub settings across packages.

@SuperElectron can you try to edit the jetson nano script to cp -rf /arm/raw/grubartifacts/grub2/*.pf2 $WORKDIR/tmpefi/EFI/BOOT/fonts instead of mv $WORKDIR/tmpefi/EFI/BOOT/*pf2 $WORKDIR/tmpefi/EFI/BOOT/fonts , re-build the auroraboot image and report back ? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Under review 🔍
Development

No branches or pull requests

3 participants