Skip to content

Flash AGX Orin through flash script or for Emulation of Orin into Nano or NX

naitiknakrani-eic edited this page Aug 9, 2023 · 3 revisions
  1. Prepare the host Linux system for flashing the AGX Orin Board

  2. Download the latest Jetson Linux release package and sample file system for your Jetson developer kit from here

    a. For the any L4T Latest release this kind of page will be shown from these are supposed to be downloaded as shown in the picture.

image

b. You will be able to see these two files after downloading

  i.	Jetson_Linux_Rxx.x.x_aarch64.tbz2

 ii.	Tegra_Linux_Sample-Root-Filesystem_Rxx.x.x_aarch64.tbz2
  1. Create environment variables for L4T_RELEASE_PACKAGE, SAMPLE_FS_PACKAGE and BOARD as follows:

    a. ${L4T_RELEASE_PACKAGE} contains the pathname of a file that contains the Jetson Linux release package name.

            $ export L4T_RELEASE_PACKAGE= $path/Jetson_Linux_Rxx.x.x_aarch64.tbz2
    

    b. ${SAMPLE_FS_PACKAGE} contains the sample file system package’s filename: Tegra_Linux_Sample-Root-Filesystem_L4TRELEASEVERSION.tbz2.

            $ export SAMPLE_FS_PACKAGE=Tegra_Linux_Sample-Root-Filesystem_Rxx.x.x_aarch64.tbz2
    

    c. ${BOARD} contains the name of a supported configuration of Jetson module and carrier board. In case of emulation this enviorument variable can be set according to whichever module is expected.

        $ echo $BOARD= jetson-agx-orin-devkit
        $ echo $BOARD= jetson-agx-orin-devkit-as-nano4gb
        $ echo $BOARD= jetson-agx-orin-devkit-as-nano8gb
        $ echo $BOARD= jetson-agx-orin-devkit-as-nx-8gb
        $ echo $BOARD= jetson-agx-orin-devkit-as-nx-16gb
    
  2. Enter the following commands to unzip the files and assemble the rootfs:

        $ tar xf ${L4T_RELEASE_PACKAGE}
        $ cd Linux_for_Tegra/rootfs/
        $ sudo tar xpf ../../${SAMPLE_FS_PACKAGE}
        $ cd ..
        $ sudo ./apply_binaries.sh
    
  3. Connect the board to the host machine with USB-C to USB-A cable.

  4. Put board in the force recovery mode. Press the force recovery button, keep it till 5 sec and press reset button and then release both at once.

  5. Using lsusb command you can check whether the board is connected or not. To determine whether the developer kit is in force recovery mode.

  6. Then run

       $ sudo ./flash.sh ${BOARD} mmcblk0p1
    

Refrence

Clone this wiki locally