I just have installed jetpack 5.12 and for beginning tried to recompile and flash kernel to my Jetson AGX Orin 64GB-DRAM develop kit.
After flashing board never come up.
Here is my proceedure:
- Download toolchain from https://developer.nvidia.com/embedded/jetson-linux/bootlin-toolchain-gcc-93
extract and set environment (according to Welcome — Jetson Linux Developer Guide documentation ) - Run the following commands to export the environment variables:
export KERNEL_DIR=kernel-5.10
export CROSS_COMPILE=$HOME/l4t-gcc/bin/aarch64-buildroot-linux-gnu-
export JETPACK=$HOME/nvidia/nvidia_sdk/JetPack_5.1.2_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra
export KERNEL_OUT=$JETPACK/images
export KERNEL_MODULES_OUT=$JETPACK/images/modules - Download BSP sources from the Jetson Download Center for NVIDIA Jetson Linux 35.4.1 and extract the sources into Jetpack directory:
mkdir -p sources && cd sources
tar -xvf public_sources.tbz2 Linux_for_Tegra/source/public/kernel_src.tbz2 --strip-components=3
tar -xvf kernel_src.tbz2 - steps of building the BSP sources to generate the kernel Image, the external modules, and the device tree blob.
4.1 Create the directories for the build outputs:
mkdir -p $KERNEL_MODULES_OUT
4.2 Clean the environment: ( install before: sudo apt-get install python3-sphinx )
cd $JETPACK/sources/kernel/$KERNEL_DIR
make mrproper
4.3 Setup the default configuration:
make ARCH=arm64 O=$KERNEL_OUT tegra_defconfig
4.4 Build the BSP: ( install before: sudo apt-get install libssl-dev )
make ARCH=arm64 O=$KERNEL_OUT CROSS_COMPILE=$CROSS_COMPILE -j4
4.5. Install the modules to the output directory created in step 1:
make modules_install ARCH=arm64 O=$KERNEL_OUT CROSS_COMPILE=$CROSS_COMPILE INSTALL_MOD_PATH=$KERNEL_MODULES_OUT
4.6. Backup the binaries that come installed by default in Jetpack:
BKUP_DATE=date "+%Y_%m_%d_%H_%M_%S"
mv $JETPACK/kernel/Image{,.$BKUP_DATE}
mv $JETPACK/kernel/kernel_supplements.tbz2{,.$BKUP_DATE}
mv $JETPACK/kernel/dtb{,.$BKUP_DATE}
4.7. Copy the binaries built to the default locations expected by the flashing tool:
cd $KERNEL_OUT
cp ./arch/arm64/boot/Image $JETPACK/kernel/
cp -r ./arch/arm64/boot/dts/nvidia $JETPACK/kernel/dtb
4.8. Update the kernel modules in the kernel supplements tarball:
cd $KERNEL_MODULES_OUT
tar --owner root --group root -cjf $JETPACK/kernel/kernel_supplements.tbz2 lib/modules
4.9. Install tegra binaries:
cd $JETPACK
sudo ./apply_binaries.sh - Set target to recovery mode and Execute the flash script:
./flash.sh jetson-agx-orin-devkit mmcblk0p1
After success in all steps, after reset I tried to run
sudo screen /dev/ttyACM0 115200
failed - /dev/ttyACM0 not found
Target is not running with display, keyboard and mouse connected.