Difference between revisions of "Xavier/JetPack 5.0.2/Getting Started/Installing Jetpack"

From RidgeRun Developer Connection
Jump to: navigation, search
(Considerations for Docker)
m
 
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
{{Xavier/Head}}
+
{{Xavier/Head|previous=JetPack 5.0.2/Getting Started|next=JetPack 5.0.2/Getting Started/Wizard Flashing|metakeywords=jetpack,configure,configuration,installer,installation,install}}
 
</noinclude>
 
</noinclude>
  
=Requirements=
+
{{DISPLAYTITLE:NVIDIA Jetson Xavier - Installing JetPack 5.0.2|noerror}}
Supported host operating systems are Ubuntu Linux x64 Version 18.04 or 16.04
 
  
=Download Installer to Host Computer=
+
In this section, you will find a guide to getting Jetpack installed on your host computer. This section assumes that you already have the NVIDIA SDK Manager installed, to learn about the SDK Manager check our Getting Started section,
1. Download JetPack 4.1 from https://developer.nvidia.com/embedded/downloads
 
  
2. Move binary into installation directory, <code>/home/$USER/JetPack-L4T/</code> is recommended
+
The following subsections show the four-step procedure to get Jetpack 5.0.2 installed on your host computer:
 +
<br>
  
 +
 +
==Step 1: Choose the hardware configuration==
 +
<br>
 +
<big>'''A.'''</big> Launch the sdkmanager UI by running the following command in a terminal:
 
<syntaxhighlight lang=bash>
 
<syntaxhighlight lang=bash>
mkdir -p /home/$USER/JetPack-L4T/
+
sdkmanager
mv JetPack-${VERSION}.run /home/$USER/JetPack-L4T/
 
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
<br>
 +
 +
 +
At this point, you should see the login window. After logging in, you should see the configuration options for your environment similar to Figure 1 below.
 +
<br>
 +
 +
 +
[[File:NVIDIA sdkmanager dev env setup UI.png|800px|thumb|center|Figure 1: NVIDIA SDK Manager Development Environment Setup]]
 +
<br>
 +
 +
 +
<big>'''B.'''</big> Select the Product Category. Depending on the version of the SDK Manager installed, there will be one or two options. For SDK Manager version 1.8.0.10363, the options are DRIVE and Jetson. Make sure that you select the Jetson option, as in Figure 1 above. In older SDK Manager versions, the only option available is Jetson, as shown in Figure 2 below.
 +
<br>
 +
 +
 +
<big>'''C.'''</big> Select the Jetson Xavier modules as your target hardware. This option should appear under the Target Hardware dropdown list such as in Figure 2. Optionally, you can also select the Host Machine option to have options for the installation of some developer tools on your host machine in Step 2. Both Host Machine and Jetson Xavier options can be selected simultaneously.
 +
<br>
 +
 +
 +
[[File:Orin target hardware.png|800px|thumb|center|Figure 2: NVIDIA SDK Manager Development Environment Setup: Target Hardware]]
 +
<br>
 +
 +
 +
<big>'''D.'''</big> Select the JetPack 5.0.2 from the Target Operating System dropdown list, at the end you should have something similar to Figure 3.
 +
<br>
 +
 +
 +
[[File:Sdkm1.png|800px|thumb|center|Figure 3: NVIDIA SDK Manager Development Environment Setup: Target OS]]
 +
<br>
 +
 +
<big>'''E.'''</big> When you are ready, click the '''CONTINUE TO STEP 02''' button.
 +
 +
 +
==Step 2: Software Packages Selection and License==
 +
<br>
  
3. Set the Jetpack binary as executable and set correct permissions.
 
  
<syntaxhighlight lang=bash>
+
<big>'''F.'''</big> In this stage, the SDK Manager will present the software components that can be installed in your computer (host) and in the Xavier (target or device), see Figure 5 for reference. For the host, you can select to install CUDA-related tools, VPI libraries, and Nsight. For the target components, make sure to select the Jetson OS option. Optionally you can select the Jetson SDK components, you can learn more about these components in our [[Xavier/JetPack_5.0.2/Getting_Started/Components|JetPack Components]] section.
cd /home/$USER/JetPack-L4T
+
<br>
chmod +x JetPack-${VERSION}.run
 
</syntaxhighlight>
 
  
=Run the Installer=
+
[[File:Orin accept terms.png|800px|thumb|center|Figure 5: NVIDIA SDK Manager Software Packages and License Agreement.]]
 +
<br>
  
1. Run the Binary
 
<syntaxhighlight lang=bash>
 
./JetPack-${VERSION}.run
 
</syntaxhighlight>
 
  
 +
<big>'''G.'''</big> Optionally choose the Download and Target HW image folders. By default the SDK Manager downloads all the files required to the /home/$USER/Downloads/nvidia/sdkm_downloads directory and sets up the JetPack SDK files in the directory /home/$USER/nvidia/nvidia_sdk, as illustrated in the bottom section in Figure 5.
 +
<br>
  
2. Press next to start the installation
 
  
[[Image:Jetpack01.png|frameless|center|455px|Start Installation]]
+
<big>'''H.'''</big> When you are ready, mark the checkbox with the option: '''I accept the terms and conditions of the license agreement''', similarly to Figure 5, and then press the button '''CONTINUE TO STEP 03'''.
<div style="text-align: center;">'''Figure 1'''. Start Installation</div>
+
<br>
<br>  
 
  
  
3. Select install location
+
<big>'''I.'''</big> At this point, the SDK Manager will ask for your sudo password to be able to install the JetPack SDK components, as shown in Figure 6.
 +
<br>
  
[[Image:Jetpack4.0 installer 07.png|frameless|center|455px|Start Installation]]
 
<div style="text-align: center;">'''Figure 2'''. Installation Configuration</div>
 
<br>
 
  
4. Select platform
+
[[File:Orin password.png|800px|thumb|center|Figure 6: NVIDIA SDK Manager Software Packages Selection and License: Password Prompt.]]
 +
<br>
  
[[File:Jetpack4.0 installer 03.png|400px|frameless|center|Installing location]]
 
<div style="text-align: center;">'''Figure 3'''. Select Development Enviroment</div>
 
<br>
 
  
5. Select desired components, standard installation is recommended
+
==Step 3: Setup Process==
 +
<br>
 +
<big>'''J.'''</big> Now the SDK Manager will start downloading and setting the required components. You should see a window similar to Figure 7.
 +
<br>
  
[[File:Jetpack4.0 installer 04.png|400px|frameless|center|Installing location]]
 
<div style="text-align: center;">'''Figure 4'''. Component Selection</div>
 
<br>
 
  
6. Accept terms and conditions
+
[[File:Orin downloads.png|800px|thumb|center|Figure 7: NVIDIA SDK Manager Setup Process: Wait for the download to finish.]]
 +
<br>
  
[[File:Jetpack4.0 installer 05.png|400px|frameless|center|Installing location]]
+
<br>
<div style="text-align: center;">'''Figure 5'''. Terms and Conditions</div>
+
<big>'''K.'''</big> Once the SDK Manager finishes setting up the host environment, it will open a prompt to allow the user to flash the Xavier to Figure 8. At this point, you can choose to flash the Xavier using the SDK Manager UI or skip flashing for now. If you wish to test the JetPack OS without any modifications, you can proceed to flash the board right away, for more details check our [[Xavier/JetPack_5.0.2/Getting_Started/Wizard_Flashing|Flashing the board with GUI installer]] section. If you would like to customize the kernel or the device tree, then you might prefer to skip flashing for now and then check our [[Xavier/JetPack_5.0.2/Compiling_Code|Compiling Source Code]] and [[Xavier/JetPack_5.0.2/Flashing_Board|Flashing Board From Cmdline]] sections.
<br>  
+
<br>
  
7. Wait for installation to complete 
+
<!--
 +
7. Select the '''manual setup''', select OEM Configuration as '''Runtime''', and the last select the Storage Device as '''EMMC'''.
 +
-->
  
[[File:Jetpack4.0 installer 06.png|400px|frameless|center|Installing location]]
+
[[File:Flashxavier.png|800px|thumb|center|Figure 8: NVIDIA SDK Manager Setup Process: Flash Prompt.]]
<div style="text-align: center;">'''Figure 6'''. Terms and Conditions</div>
+
<br>
<br>  
 
  
This might take a while since Jetpack must download all packages and install some of them on the host computer.
+
==Step 4: Finalization==
 +
<br>
  
= Considerations for Docker =
 
  
If you want to run JetPack inside a newly created docker container take into account the following considerations.
+
<big>'''L.'''</big> Whether you chose to flash the Xavier or skip flashing, you should see a summary of the software components installed to host and target, and a success message, as shown in Figure 9. You can now close the SDK Manager.
 +
<br>
  
<syntaxhighlight lang=bash>
 
sudo apt install lsb-release x11-utils libgtk2.0-0 gksudo
 
  
# Ugly hack to avoid dealing with policy files and be able to spawn GUI apps
+
[[File:Orin success.png|800px|thumb|center|Figure 9: NVIDIA SDK Manager Finalization: Summary and Success Message.]]
sudo ln -s /usr/bin/gksudo /usr/local/bin/pkexec
 
</syntaxhighlight>
 
  
 
<noinclude>
 
<noinclude>
{{Xavier/Foot|JetPack 4.1/Getting Started|JetPack 4.1/Getting Started/Wizard Flashing}}
+
{{Xavier/Foot|JetPack 5.0.2/Getting Started|JetPack 5.0.2/Getting Started/Wizard Flashing}}
 
</noinclude>
 
</noinclude>

Latest revision as of 10:51, 13 February 2023



Previous: JetPack 5.0.2/Getting Started Index Next: JetPack 5.0.2/Getting Started/Wizard Flashing



Nvidia-preferred-partner-badge-rgb-for-screen.png




In this section, you will find a guide to getting Jetpack installed on your host computer. This section assumes that you already have the NVIDIA SDK Manager installed, to learn about the SDK Manager check our Getting Started section,

The following subsections show the four-step procedure to get Jetpack 5.0.2 installed on your host computer:


Step 1: Choose the hardware configuration


A. Launch the sdkmanager UI by running the following command in a terminal:

sdkmanager



At this point, you should see the login window. After logging in, you should see the configuration options for your environment similar to Figure 1 below.


Figure 1: NVIDIA SDK Manager Development Environment Setup



B. Select the Product Category. Depending on the version of the SDK Manager installed, there will be one or two options. For SDK Manager version 1.8.0.10363, the options are DRIVE and Jetson. Make sure that you select the Jetson option, as in Figure 1 above. In older SDK Manager versions, the only option available is Jetson, as shown in Figure 2 below.


C. Select the Jetson Xavier modules as your target hardware. This option should appear under the Target Hardware dropdown list such as in Figure 2. Optionally, you can also select the Host Machine option to have options for the installation of some developer tools on your host machine in Step 2. Both Host Machine and Jetson Xavier options can be selected simultaneously.


Figure 2: NVIDIA SDK Manager Development Environment Setup: Target Hardware



D. Select the JetPack 5.0.2 from the Target Operating System dropdown list, at the end you should have something similar to Figure 3.


Figure 3: NVIDIA SDK Manager Development Environment Setup: Target OS


E. When you are ready, click the CONTINUE TO STEP 02 button.


Step 2: Software Packages Selection and License



F. In this stage, the SDK Manager will present the software components that can be installed in your computer (host) and in the Xavier (target or device), see Figure 5 for reference. For the host, you can select to install CUDA-related tools, VPI libraries, and Nsight. For the target components, make sure to select the Jetson OS option. Optionally you can select the Jetson SDK components, you can learn more about these components in our JetPack Components section.

Figure 5: NVIDIA SDK Manager Software Packages and License Agreement.



G. Optionally choose the Download and Target HW image folders. By default the SDK Manager downloads all the files required to the /home/$USER/Downloads/nvidia/sdkm_downloads directory and sets up the JetPack SDK files in the directory /home/$USER/nvidia/nvidia_sdk, as illustrated in the bottom section in Figure 5.


H. When you are ready, mark the checkbox with the option: I accept the terms and conditions of the license agreement, similarly to Figure 5, and then press the button CONTINUE TO STEP 03.


I. At this point, the SDK Manager will ask for your sudo password to be able to install the JetPack SDK components, as shown in Figure 6.


Figure 6: NVIDIA SDK Manager Software Packages Selection and License: Password Prompt.



Step 3: Setup Process


J. Now the SDK Manager will start downloading and setting the required components. You should see a window similar to Figure 7.


Figure 7: NVIDIA SDK Manager Setup Process: Wait for the download to finish.



K. Once the SDK Manager finishes setting up the host environment, it will open a prompt to allow the user to flash the Xavier to Figure 8. At this point, you can choose to flash the Xavier using the SDK Manager UI or skip flashing for now. If you wish to test the JetPack OS without any modifications, you can proceed to flash the board right away, for more details check our Flashing the board with GUI installer section. If you would like to customize the kernel or the device tree, then you might prefer to skip flashing for now and then check our Compiling Source Code and Flashing Board From Cmdline sections.


Figure 8: NVIDIA SDK Manager Setup Process: Flash Prompt.


Step 4: Finalization



L. Whether you chose to flash the Xavier or skip flashing, you should see a summary of the software components installed to host and target, and a success message, as shown in Figure 9. You can now close the SDK Manager.


Figure 9: NVIDIA SDK Manager Finalization: Summary and Success Message.



Previous: JetPack 5.0.2/Getting Started Index Next: JetPack 5.0.2/Getting Started/Wizard Flashing