Jetson Nano – How to Setup (2)

Jetson Nano

This article explains “How to write an image from Recovery Mode to an SD Card”, which I could not write here.

The host PC is assumed to be Ubuntu 20.04 installed.

Image preparation

Select the latest Jetson Linux for Jetson Nano from https://developer.nvidia.com/embedded/jetson-linux-archive, download the L4T Driver Package and Sample Root File system and execute the following on the host PC.

In this article, the L4T Driver Package downloaded as jetson-210_linux_r32.7.2_aarch64.tbz2 and the Sample Root File sysmte as tegra_linux_sample-root-filesystem_r32.7.2_aarch64.tbz2 are used for explanation.

tar xf jetson-210_linux_r32.7.2_aarch64.tbz2
sudo tar xf tegra_linux_sample-root-filesystem_r32.7.2_aarch64.tbz2 -C Linux_for_Tegra/rootfs
cd Linux_for_Tegra
sudo ./apply_binaries.shCode language: Bash (bash)

Recovery Mode

To put the Jetson Nano into Recovery Mode, for the Jetson Nano Developer Kit A02, short Pin 3 and Pin 4 of J40 with a jumper pin and turn on the power. For the Developer Kit B01 and 2GB, short Pin9 and Pin10 of J50 with jumper pins and turn on the power.

Connect the host PC to the Jetson Nano with a Micro USB cable and perform the following on the host PC to confirm that the Jetson Nano has entered Recovery Mode.

$ lsusb | grep -i nvidia
Bus 001 Device 008: ID 0955:7f21 NVIDIA Corp. APXCode language: Bash (bash)

Image writing

Writing the Jetson Nano image by doing the following

Jetson Nano Devoper Kit A02/B01

sudo ./flash.sh -x 0x21 jetson-nano-devkit mmcblk0p1

Jetson Nano Devoper Kit 2GB

sudo ./flash.sh -x 0x21 -u jetson_rsa_priv.pem jetson-nano-2gb-devkit mmcblk0p1

Jetson Nano Production Mode (with Carrier board B01)

sudo ./flash.sh -x 0x21 jetson-nano-emmc mmcblk0p1

Difference between「How to download SD Card Image from JetPack SDK and write it to SD Card」

In this article, we introduced two ways to write an image to an SD Card. And this article introduces the second method.

Since it is easier to write an SD Card Image from the JetPack SDK than from the method introduced here, what is the benefit of putting the Jetson Nano into Recovery Mode and writing it?

In fact, Jetson Nano has an internal ROM (QSPI-NOR Flash), and writing to the internal ROM requires Recovery Mode here. This article explains “How to write an image from Recovery Mode to an SD Card”, but it is actually “How to write an image from Recovery Mode to internal ROM and SD Card”.

Normally, the internal ROM does not need to be rewritten, but if you want to achieve Secure Boot, you need to write the internal ROM. Secure Boot is discussed in another article.

That’s all.