# Simple flashing guide

The simple flashing guide describes how to flash your Auvidea carrier board system, so it can boot and run. With this guide, everything you will need is included in the download package you can get from Auvidea. This flashing guide is recommended for the Auvidea carrier board series. If you are using an Orin nano or Orin NX module pleas see the Orin nano & Orin NX flashing guide.

## Before you start <a href="#toc105583589" id="toc105583589"></a>

* If you are using an AGX Orin, you have to use the Advanced flashing guide
* Please make sure to use a Linux host PC with Ubuntu 18.04 LTS or Ubuntu 20.04 LTS (other versions may work, but some caused problems in the past!) operating system. Please use a native setup (no virtual machine). This Host PC should have a high bandwidth internet connection for the download of 3 GB+ installation file in the following steps
* You should make sure that Python 2.x is installed, as it is required for the NVIDIA SDK Manager. You can check your installation in the command line with: `python --version` example return: `Python 2.7.17`*.* If you do not get a return or error, you do not have Python 2.x installed. (Please use: `sudo apt install python` to install Python 2.x to your system)
* You will also need a high-quality standard USB 2.0 Type A to micro-USB 2.0 cable

## Download installation file from Auvidea <a href="#toc105583590" id="toc105583590"></a>

* Download the installation file for your setup from Auvidea. JNxxx means the carrier board series starting with JN, for example JN30D. Please check the description to download the right file for your module (NX, TX2,…)

{% embed url="<https://auvidea.eu/firmware/>" %}

* Open a terminal window (CTRL + ALT + T) on your Linux host PC and navigate to your download location

| Device  | Example                         |
| ------- | ------------------------------- |
| Host PC | `cd <path_to_downloadeded_tar>` |

* Extract the tar.gz file you just downloaded

| Device           | Example                                                                                                                                                                                |
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Host PC          | `tar xvzf bootloader.tar.gz`                                                                                                                                                           |
| Terminal host PC | \<img src="<https://1153080878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcixk9yXsEHXsWD91v3ir%2Fuploads%2F5xhw3ReOAzkpRxv4RFYM%2F1.png?alt=media>" alt="Text |

Description automatically generated" data-size="original"> |

* Change directory to the extracted bootloader folder

| Device           | Example                                                                                                                                                                                |
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Host PC          | `cd ./bootloader`                                                                                                                                                                      |
| Terminal host PC | \<img src="<https://1153080878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcixk9yXsEHXsWD91v3ir%2Fuploads%2FKJ0409aVmVqfdzFG44ec%2F2.png?alt=media>" alt="Text |

Description automatically generated" data-size="original"> |

## Connect carrier board to host PC <a href="#toc105583591" id="toc105583591"></a>

1. Connect the system to the Linux host PC. Please use a USB 2.0 cable (micro-USB on the carrier board)
2. Connect your system to power&#x20;
   * Apply correct Voltage to prevent damage
   * The system should start automatically and detect the host PC and enter the flashing state (also called force recovery mode)
     * In some cases, you have to manually enable flashing state by pressing or shorting pins before connecting to your power source.  Please check the Pinout description of your product if you have to set a Jumper
     * If your Jetson has an already running image, you can use `sudo reboot --force forced-recovery` to reboot in to force recovery mode
3. Check that the connection is established with the “`lsusb`” command. You should find one entry with “Nvidia Corp.” as highlighted below

| Device                   | Example                                                                                                                                                                                                          |
| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Host PC                  | `lsusb`                                                                                                                                                                                                          |
| Terminal host PC example | \<img src="<https://1153080878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcixk9yXsEHXsWD91v3ir%2Fuploads%2Fvf12nd1trDejjS70SyS0%2F3.png?alt=media>" alt="Graphical user interface, text |

Description automatically generated" data-size="original"> |

Your system is now connected properly and ready to be flashed

## Flashing of system <a href="#toc105583592" id="toc105583592"></a>

* Use the flashcmd script in the extracted bootloader folder to transfer the software into the Jetson compute module and flash it

| Device           | Example                                                                                                                                                                                |
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Host PC          | `sudo bash ./flashcmd.txt`                                                                                                                                                             |
| Terminal host PC | \<img src="<https://1153080878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcixk9yXsEHXsWD91v3ir%2Fuploads%2Fmb0mkas95MLkA553t2SK%2F4.png?alt=media>" alt="Text |

Description automatically generated" data-size="original"> |

* Please connect a monitor to the system. After the flashing process has completed, the system will automatically boot and show the Ubuntu desktop or the first setup screen

| Device                                                     | Example                                                                                                                                                                                                      |
| ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| HDMI monitor Jetson system after following the first setup | \<img src="<https://1153080878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcixk9yXsEHXsWD91v3ir%2Fuploads%2F6GRM54vK9DXOdj0XYrlO%2F5.png?alt=media>" alt="A screenshot of a computer |

Description automatically generated with low confidence" data-size="original"> |

{% hint style="success" %}
You now have a functioning system ready for your needs.
{% endhint %}

## Maintaining functionality <a href="#ref113283851" id="ref113283851"></a>

After successful flashing please be aware that if you use “~~*sudo apt-get upgrade*~~” some applied changes performed in this guide (Bootloader, Kernels, DTBs, …) will be overwritten by standard Nvidia packages. This will most probably brick some board functionality and some interfaces may not work correctly anymore.

When overriding the Auvidea configurations only basic functionality like 1080p HDMI, some USB ports, Ethernet could work

Without the correct configurations and packages 4k HDMI, PCIe ports, some USB ports, CSI, CAN, … will not work!

If you know what you are doing, you can exclude the Nvidia Debian packages from the Nvidia sources.list from being updated. This prevents overriding relevant files and changes.

If you are unsure, we recommend DO NOT UPGRADE YOUR SYSTEM.

In the case you accidental upgraded your system and some board functionality stopped working correctly, we recommend to reflash your system according to this guide.

{% hint style="warning" %}
using `sudo apt-get upgrade` will stop your carrier board from working correctly!
{% endhint %}

## Installing additional NVIDIA SDK components <a href="#toc105583593" id="toc105583593"></a>

* Now you can install additional NVIDIA SDK components. Please connect the system to the Internet. Open a terminal window on the system (CTRL ALT T). Use apt-get to install the components. If this fails, please check the Internet connection of the system

<table><thead><tr><th width="233">Device</th><th>Example</th></tr></thead><tbody><tr><td>Jetson system</td><td><pre class="language-bash" data-title="install_jetpack.sh" data-overflow="wrap" data-line-numbers><code class="lang-bash">sudo apt-get update &#x26;&#x26; sudo apt-get install nvidia-jetpack
</code></pre></td></tr><tr><td>Terminal Jetson system (example)</td><td><img src="https://1153080878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fcixk9yXsEHXsWD91v3ir%2Fuploads%2FbUU2FuysPsC4kudhU59t%2F6.png?alt=media" alt="Text

Description automatically generated" data-size="original"></td></tr></tbody></table>

### &#x20;<a href="#toc105583594" id="toc105583594"></a>
