Failed to flash the JetPack 6.0 to AGX Orin

Hi,

I am using JetPack 6.0 L4T36.3.0 for Jetson AGX Orin. I had built the source from scratch following the developer guide Kernel Customization — NVIDIA Jetson Linux Developer Guide 1 documentation.
Trying to flash the built firmware onto AGX Orin 64GB using flash.sh script.

Command used: $ sudo ./flash.sh jetson-agx-orin-devkit mmcblk0p1

Flash is getting failed. Please find the log below.
FlashFailed.txt (1.3 KB)

Help is most appreciated.

Regards,
Samad.

How did you build the source?
Was there any error?

Hi,
Thanks for reply.
I had followed the Kernel Customization — NVIDIA Jetson Linux Developer Guide 1 documentation fro developer guide.

  1. BSP and RootFS source: https://developer.nvidia.com/downloads/embedded/l4t/r36_release_v3.0/sources/public_sources.tbz2
    https://developer.nvidia.com/downloads/embedded/l4t/r36_release_v3.0/release/tegra_linux_sample-root-filesystem_r36.3.0_aarch64.tbz2

  2. Unzip source code and rootfs
    c. Extract the .tbz2 file:
    $ tar xf public_sources.tbz2 -C /Linux_for_Tegra/…
    d. Extract the kernel and the NVIDIA out-of-tree modules source files:
    $ cd /Linux_for_Tegra/source
    $ tar xf kernel_src.tbz2
    $ tar xf kernel_oot_modules_src.tbz2
    $ tar xf nvidia_kernel_display_driver_source.tbz2
    This extracts the kernel source to the kernel/ subdirectory, and the NVIDIA out-of-tree kernel modules sources to the current directory.

  3. Activate RT

  • $./generic_rt_build.sh “enable”
  1. Compile kernel
  • cd /Linux_for_Tegra/source
  • ./generic_rt_build.sh “enable”
  • export CROSS_COMPILE=/bin/aarch64-buildroot-linux-gnu-
    ToolChain: aarch64–glibc–stable-final.tar.gz
  • make -C kernel
  • export INSTALL_MOD_PATH=/Linux_for_Tegra/rootfs/
  • sudo -E make install -C kernel
  • cp kernel/kernel-jammy-src/arch/arm64/boot/Image /Linux_for_Tegra/kernel/Image
  1. Compile modules
  • cd /Linux_for_Tegra/source
  • export IGNORE_PREEMPT_RT_PRESENCE=1
  • export KERNEL_HEADERS=$PWD/kernel/kernel-jammy-src
  • make modules
  • sudo -E make modules_install
  1. Compile DTB
  • export KERNEL_HEADERS=$PWD/kernel/kernel-jammy-src
  • make dtbs
  • cp nvidia-oot/device-tree/platform/generic-dts/dtbs/*
    /Linux_for_Tegra/kernel/dtb/
  1. Installing the flash requirements
  • sudo tools/l4t_flash_prerequisites.sh
  1. Created user using l4t_create_default_user.sh script.

There were no errors while building the source.

Did you make any changes in device tree?
Actually if you just want to use RT kernel, they are available as Debian packages:
https://docs.nvidia.com/jetson/archives/r36.3/DeveloperGuide/SD/SoftwarePackagesAndTheUpdateMechanism.html#real-time-kernel-using-ota-update

I haven’t changed the dtb. I wanted to flash with manually build Image. We want to do some customizations later on.
Whether the build process is valid? Toolchain that I used is fine?
Any clue about the issue will be helpful.

Device tree is not tied with the kernel, so if you don’t do any customization on device tree, you can just skip building them and use default ones.

Without building the device tree, I tried first. I got the same flash error. Again I included the device tree build. Same error with/without building device tree.

Then please delete everything and download the BSP again to see if you hit the same issue.

Now it is flashing successfully. Built again and also used the toolchain aarch64–glibc–stable-2022.08-1.tar.bz2
Thanks for the support.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.