Hi ,
I need help flashing my Jetson Orin NX after building a custom kernel. Flashing fails, and I’ve attached the flashing logs (logs.txt) for reference.
logs.txt (91.6 KB)
Platform Details
-
Board: Jetson Orin NX (Devkit)
-
JetPack: 6.2
-
L4T Version: 36.4.3
-
Root filesystem: NVMe-based storage
What I’m Trying to Do
I am cross-compiling the kernel, device tree, and NVIDIA out-of-tree modules on the host PC, installing them into Linux_for_Tegra, and then flashing the board to NVMe.
Host Setup & Dependencies
sudo apt install wget lbzip2 build-essential bc zip libgmp-dev \
libmpfr-dev libmpc-dev vim-common libncurses-dev \
bison flex libssl-dev libelf-dev
Source Download
cd ~/nvidia/nvidia_sdk/JetPack_6.2_Linux_JETSON_ORIN_NX_TARGETS/Linux_for_Tegra
wget https://developer.nvidia.com/downloads/embedded/l4t/r36_release_v4.3/sources/public_sources.tbz2
Extract Kernel and NVIDIA Sources
tar -xjf public_sources.tbz2 Linux_for_Tegra/source/kernel_src.tbz2 --strip-components 2
tar -xjf public_sources.tbz2 Linux_for_Tegra/source/kernel_oot_modules_src.tbz2 --strip-components 2
tar -xjf public_sources.tbz2 Linux_for_Tegra/source/nvidia_kernel_display_driver_source.tbz2 --strip-components 2
Environment Variables
export DEVDIR=~/nvidia/nvidia_sdk/JetPack_6.2_Linux_JETSON_ORIN_NX_TARGETS/Linux_for_Tegra
export CROSS_COMPILE=$HOME/l4t-gcc/aarch64--glibc--stable-2022.08-1/bin/aarch64-buildroot-linux-gnu-
export INSTALL_MOD_PATH=$DEVDIR/rootfs/
export KERNEL_HEADERS=$DEVDIR/sources/kernel/kernel-jammy-src
Prepare Sources Directory
cd $DEVDIR
mkdir sources
tar -xjf kernel_src.tbz2 -C sources
tar -xjf kernel_oot_modules_src.tbz2 -C sources
tar -xjf nvidia_kernel_display_driver_source.tbz2 -C sources
Kernel Build Steps
cd $DEVDIR/sources/kernel/kernel-jammy-src
make menuconfig
cd $DEVDIR/sources
make -C kernel
sudo -E make install -C kernel
make dtbs
cp nvidia-oot/device-tree/platform/generic-dts/dtbs/* $DEVDIR/kernel/dtb/
make modules
sudo -E make modules_install
Flashing Command
cd $DEVDIR
sudo ./flash.sh jetson-orin-nano-devkit-nvme nvme0n1p1
Issue
The flashing process fails, and I’ve attached the complete flashing logs in logs.txt.
Request for Help
-
Please examine my kernel build and flashing process and let me know if I missed or did something incorrectly.
-
Based on the attached logs, please help identify why flashing fails.
-
Since I am using NVMe-based storage, are there any additional steps or a different flashing procedure I should follow?
-
Is there a recommended workflow for building and flashing a custom kernel on JetPack 6.2 for Orin NX with NVMe rootfs?
Any guidance would be greatly appreciated.
Thanks in advance.