> For the complete documentation index, see [llms.txt](https://tk233.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tk233.gitbook.io/notes/tools/nvidia-jetson/using-jetson-agx-orin-with-provided-ubuntu-20.04-system.md).

# Using Jetson AGX Orin with Provided Ubuntu 20.04 System

We broadly follow these instructions:

{% embed url="<https://developer.nvidia.com/embedded/learn/get-started-jetson-agx-orin-devkit>" %}

{% embed url="<https://developer.nvidia.com/embedded/learn/jetson-agx-orin-devkit-user-guide/developer_kit_layout.html>" %}

{% embed url="<https://docs.nvidia.com/jetson/archives/r36.4/DeveloperGuide/IN/QuickStart.html>" %}

## Power Up

Connect USB keyboard and mouse, DisplayPort port, and USB Type-C power cable

<figure><img src="/files/3YrlUDvZmdaVTTVKM86j" alt=""><figcaption></figcaption></figure>

## Install Jetpack Tools

First, use this command to check board support package (BSP) version

```bash
cat /etc/nv_tegra_release
```

As seen in the output, the BSP is up-to-date, the apt sources lists are the latest, and we can proceed

<figure><img src="/files/9wtJl7r3HzTkoYTjMdRd" alt=""><figcaption></figcaption></figure>

Run the commands to install Jetpack

```bash
sudo apt update
sudo apt dist-upgrade
sudo reboot
sudo apt install nvidia-jetpack
```

Add the following lines to \~/.bashrc

{% code title=".bashrc" %}

```bash
...

# CUDA
export PATH="/usr/local/cuda/bin:$PATH"
export LD_LIBRARY_PATH="/usr/local/cuda/lib64:$LD_LIBRARY_PATH"

...
```

{% endcode %}

Now it should detect CUDA

```bash
nvcc --version
```

<figure><img src="/files/OLnOQI0EZlueOAPz1Ykw" alt=""><figcaption></figcaption></figure>

## Install PyTorch

Install conda according to the "Install Conda" section in this guide

{% content-ref url="/pages/R8XonjLXqv2I5j9T43TW" %}
[Quick Start With Chipyard on Ubuntu or WSL](/notes/risc-v-soc/quick-start-with-chipyard-on-ubuntu-or-wsl.md)
{% endcontent-ref %}

```bash
conda create -yn tensorrt python=3.10
```

{% code overflow="wrap" %}

```bash
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
```

{% endcode %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://tk233.gitbook.io/notes/tools/nvidia-jetson/using-jetson-agx-orin-with-provided-ubuntu-20.04-system.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
