JetPack-5.1 Installation for MILBOARD-XV | Forecr - Forecr.io

JetPack-5.1 Installation for MILBOARD-XV

Jetson AGX Xavier

10 March 2023
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-XV

Host OS: Ubuntu 18.04


In this blog post, we will install JetPack-5.1 for MILBOARD-XV. First, we will include our Image and DTB file in Jetson OS image. Then, we will install the Jetson OS into the MILBOARD-XV.


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

Including the Image and DTB file in Jetson OS Image

Open the NVIDIA SDK Manager. Select “JetPack 5.1” for Target Operating System and “Jetson AGX Xavier modules” for Target Hardware (The “Host Machine” components are not required). Then, continue to Step 2.


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


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


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.


Open the target HW image folder. (${HOME}/nvidia/nvidia_sdk/JetPack_5.1_Linux_JETSON_AGX_XAVIER_TARGETS/Linux_for_Tegra/)


For AGX Xavier:

    Download the BSP files from this GitHub link and extract it:


For AGX Xavier Industrial:

    Download the BSP files from this GitHub link and extract it:


Hint: The following steps have done for AGX Xavier, but they are the same with Industrial one (only the DTB file & flashing scripts are different).


Copy the “Image” file from the extracted folder to the “kernel” folder.


Then, copy the DTB file into the “kernel/dtb” folder.


Return to the “JetPack_5.1_Linux_JETSON_AGX_XAVIER_TARGETS” folder and copy the "nvgpu.ko" file.


Return to the “Linux_for_Tegra” folder and open a Terminal.


Create the system binaries with this command below:


sudo ./apply_binaries.sh


Update the NVGPU kernel file and remove the old LAN743x Ethernet driver on the sample root file-system with these commands below:


sudo mv ../nvgpu.ko rootfs/usr/lib/modules/5.10.104-tegra/kernel/drivers/gpu/nvgpu/nvgpu.ko
sudo rm rootfs/usr/lib/modules/5.10.104-tegra/kernel/drivers/net/ethernet/microchip/lan743x.ko


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



For AGX Xavier, create the system image with this command:


sudo ./flash.sh --no-flash jetson-xavier mmcblk0p1


For AGX Xavier Industrial, create the system image with this command:


sudo ./flash.sh --no-flash jetson-agx-xavier-industrial mmcblk0p1


A few seconds later...

Jetson OS Installation

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


While the MILBOARD-XV'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:7019 NVidia Corp." for AGX Xavier & "0955:7919 NVidia Corp." for AGX Xavier Industrial)


For AGX Xavier, flash the Jetson OS with this script:


sudo ./flash.sh -r jetson-xavier mmcblk0p1


For AGX Xavier Industrial, flash the Jetson OS with this script:


sudo ./flash.sh -r jetson-agx-xavier-industrial mmcblk0p1


A few seconds later...


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-XV (language, keyboard type, location, username & password etc.).


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

Jetson SDK Components Installation

[Optional] Delete LibreOffice & ThunderBird packages (if you don’t need) and remove the unnecessary packages to increase the free space. To do this, type these commands to the MILBOARD-XV side:


sudo apt remove -y libreoffice* thunderbird*
sudo apt autoremove -y
sudo apt clean


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


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


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


Type the IP address, username and password of the MILBOARD-XV and install the SDK Components.

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



Thank you for reading our blog post.