JetPack-6.x Installation for MILBOARD-AGX - Forecr.io

JetPack-6.x Installation for MILBOARD-AGX

Jetson AGX Orin

03 June 2024

WHAT YOU WILL LEARN?

1- Including the Kernel Files in Jetson OS Image
2- Installing the Jetson OS
3- Installing the Jetson SDK Components
ENVIRONMENT
Hardware: MILBOARD-AGX
Host OS: Ubuntu 22.04 LTS

In this tutorial, we will install JetPack-6 for MILBOARD-AGX. First, we will include our Image, DTB & pinmux files in Jetson OS image. Then, we will install the Jetson OS into the MILBOARD-AGX. Finally, we will install the Jetson SDK components into it.

Attention: If you want to transfer the root file-system to an external drive and it has another JetPack version root file system, please format it before starting this blog post.

Including the Kernel Files in Jetson OS Image

Open the NVIDIA SDK Manager. Select the correct JetPack version for Target Operating System and “Jetson AGX Orin modules” for Target Hardware (The “Host Machine” components are not required).


Then, continue to Step 2.

SDK Manager step-1


Choose only “Jetson Linux”, accept the terms & conditions and continue to Step 3.

SDK Manager step-2


The SDK Manager will ask the username’s password. Fill it and continue.

SDK Manager step-2 password
SDK Manager step-3


After the Jetson OS has created, the SDK Manager asks the Jetson module’s flashing style. Just skip it and exit from the SDK Manager.

SDK Manager step-3 end
SDK Manager step-3 exit


Open the target HW image folder.


For JetPack-6.0:

          AGX Orin or AGX Orin Industrial: ~/nvidia/nvidia_sdk/JetPack_6.0_Linux_JETSON_AGX_ORIN_TARGETS/
Target HW image folder

For JetPack-6.0:

        Download the BSP files from GitHub link and extract it (AGX Orin, AGX Orin Industrial)


Hint: The following steps have done for AGX Orin, but they are the same for the other Jetson module types (only the BSP files and flashing commands are different).

Jetson BSP files downloaded from GitHub


Copy all files to the target HW image folder.

BSP files moved in target HW image folder


Open a Terminal in the “Linux_for_Tegra” folder.

Inside of the Linux_for_Tegra folder


Create the system binaries with these commands below:


sudo ./tools/l4t_flash_prerequisites.sh
sudo ./apply_binaries.sh

Install required packages
Apply binaries
End of applying binaries


Apply the new BSP files and interface configurations with the following commands below:


cd ..
sudo ./replace_bsp_files.sh
cd Linux_for_Tegra/

Include custom BSP files


Hint: If you want to configure your username-password & hostname with default settings, you can create user without the Ubuntu installation wizard. To do this, the user generation command structure should be:


sudo tools/l4t_create_default_user.sh -u {USERNAME} -p {PASSWORD} -a -n {HOSTNAME} --accept-license

For example (username:"nvidia", password:"nvidia", device-name:"nvidia-desktop"):


sudo tools/l4t_create_default_user.sh -u nvidia -p nvidia -a -n nvidia-desktop --accept-license

Jetson OS Installation

Connect the recovery USB (between installer PC & MILBOARD-AGX's recovery USB) and power connection of your MILBOARD-AGX.


While the MILBOARD-AGX's power connector plugged in,
• connect reset & recovery pins with ground (GND) pin together
• remove the reset pin
• remove the recovery pin on ground (GND) pin after 3 seconds later. This will set it to Recovery mode.


Then, type “lsusb” and check the device connected in Recovery mode.

• "0955:7023 NVidia Corp." for AGX Orin 64GB
• "0955:7223 NVidia Corp." for AGX Orin 32GB
• "0955:7023 NVidia Corp." for AGX Orin Industrial
lsusb command's result


For AGX Orin, flash the Jetson OS with this command below:


sudo ./flash.sh jetson-agx-orin-devkit mmcblk0p1


For AGX Orin Industrial, flash the Jetson OS with this command below:


sudo ./flash.sh jetson-agx-orin-devkit-industrial mmcblk0p1

Jetson flashing command


At the end of the script, the device will reboot. Complete your Ubuntu installation wizard (if you have not created a user with tools/l4t_create_default_user.sh script file) from the MILBOARD-AGX (language, keyboard type, location, username & password etc.).

End of the flashing command



[Optional] If you will use the recovery USB port as host (to be able to connect USB devices), please verify that the FDT parameter has been applied in the extlinux.conf file. In JetPack-6 installation, this parameter may not included in it. If this parameter is missing in it, please open it with a text editor and write "FDT" with the DTB file (located in the /boot/dtb/ folder).

FDT parameter in the extlinux.conf file

Then, please open a terminal from the Jetson Orin and type the following command below. This will update its current device-tree and reboot it.
Otherwise, you can use this port for virtual network communication (file transfer etc. between host PC with 192.168.55.1 IP address) in default.


sudo switch_dtb.sh

Recovery USB mode switch command

Jetson SDK Components Installation

Connect the MILBOARD-AGX to the Ethernet. Then, open the NVIDIA SDK Manager. Select the correct JetPack version for Target Operating System and “Jetson AGX Orin modules” for Target Hardware (The “Host Machine” components are not required. Additional SDKs (DeepStream) are optional).

Then, continue to Step 2.

SDK Manager step-1


Choose at least “Jetson Runtime Components” (“Jetson SDK Components” are optional. It depends on your use case), accept the terms & conditions and continue to Step 3.

SDK Manager step-2


The SDK Manager will ask the username’s password. Fill it and continue.

SDK Manager step-2 password


Type the IP address, username and password of Jetson Orin module and install the SDK Components.

SDK Manager step-3

At the end of the installation, the MILBOARD-AGX becomes ready. 


To avoid kernel update with "apt upgrade" or "apt-get upgrade" commands, please follow this guide on the Jetson module.




Thank you for reading our blog post.