Difference between revisions of "Jetson Orin Notes"

From Humanoid Robots Wiki
Jump to: navigation, search
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
Notes on programming/interfacing with Jetson Orin hardware.
 
Notes on programming/interfacing with Jetson Orin hardware.
  
 +
=== Upgrading AGX to Jetson Linux 36.3 ===
  
# Upgrading AGX to Jetson Linux 36.3
+
==== BSP approach (avoids SDK Manager) ====
  
## BSP approach (avoids SDK Manager)
+
* Requires Ubuntu 22.04. Very unhappy to work on Gentoo.  
* Requires Ubuntu 22.04. Very unhappy to work on Gentoo.  
+
* Requires Intel/AMD 64bit CPU.
* Requires Intel/AMD 64bit CPU.  
+
* Download "Driver Package (BSP)" from [https://developer.nvidia.com/embedded/jetson-linux here]
 +
* Unpack (as root, get used to doing most of this as root), preserving privileges
 +
** <code>tar xjpf ...</code>
 +
* Download "Sample Root Filesystem"
 +
* Unpack (as root..) into rootfs directory inside of the BSP archive above.
 +
* Run <code>sudo ./tools/l4t_flash_prerequisites.sh</code>
 +
* Run <code>./apply_binaries.sh</code> from the BSP
 +
** Note: If apply_binaries (or frankly, anything, this is brittle) fails, remove and recreate rootfs - the OS might be left in an unbootable state.
 +
* Reboot AGX into "Recovery Mode" - hold the recovery button and reset button, release simultaneously ((sic) reset first?)
 +
* Connect USB-C cable to the debug port ("front" USB-c)
 +
* Nvidia AGX device should appear in the <code>lsusb</code> under NVIDIA CORP. APX
 +
* Run <code>./flash.sh </code> Different options for different usecases(https://docs.nvidia.com/jetson/archives/r36.3/DeveloperGuide/IN/QuickStart.html#in-quickstart)
 +
Jetson AGX Orin Developer Kit (eMMC):
  
* Download "Driver Package (BSP)" from https://developer.nvidia.com/embedded/jetson-linux
+
<code>$ sudo ./flash.sh jetson-agx-orin-devkit internal</code>
* Unpack (as root, get used to doing most of this as root), preserving privileges
+
 
  - `tar xjpf ...`
+
 
* Download "Sample Root Filesystem"
+
* Watch for few minutes, typically it crashes early, then go for lunch.
* Unpack (as root..) into rootfs directory inside of the BSP archive above.
+
 
* Run './apply_binaries.sh' from the BSP
+
 
  - Note: If apply_binaries (or frankly, anything, this is brittle) fails, remove and recreate rootfs - the OS might be left in an unbootable state.
+
=== Upgrading Nano to Jetson Linux 36.3 ===
* Reboot AGX into "Recovery Mode" - hold the recovery button and reset button, release simultaneously ((sic) reset first?)
+
==== Buildroot approach (avoids SDK Manager) ====
* Connect USB-C cable to the debug port ("front" USB-c)
+
* <code>sudo mkfs.ext4 /dev/sdb </code>
* Nvidia AGX device should appear in the `lsusb`
+
* <code>sudo umount /dev/sdb </code>
* Run './nvautoflash.sh'
+
* <code>lsblk -f</code>
* Watch for few minutes, typically it crashes early, then go for lunch.
+
* Transfer rootfs onto sd card
 +
<code>sudo dd if=/home/dpsh/Downloads/rootfs.ext4 of=/dev/sdc1 bs=1M status=progress</code>
 +
* Make sure the data was transferred to SD/NVMe
 +
<code>sync</code>
  
 
[[Category: Firmware]]
 
[[Category: Firmware]]

Latest revision as of 16:09, 5 September 2024

Notes on programming/interfacing with Jetson Orin hardware.

Upgrading AGX to Jetson Linux 36.3[edit]

BSP approach (avoids SDK Manager)[edit]

  • Requires Ubuntu 22.04. Very unhappy to work on Gentoo.
  • Requires Intel/AMD 64bit CPU.
  • Download "Driver Package (BSP)" from here
  • Unpack (as root, get used to doing most of this as root), preserving privileges
    • tar xjpf ...
  • Download "Sample Root Filesystem"
  • Unpack (as root..) into rootfs directory inside of the BSP archive above.
  • Run sudo ./tools/l4t_flash_prerequisites.sh
  • Run ./apply_binaries.sh from the BSP
    • Note: If apply_binaries (or frankly, anything, this is brittle) fails, remove and recreate rootfs - the OS might be left in an unbootable state.
  • Reboot AGX into "Recovery Mode" - hold the recovery button and reset button, release simultaneously ((sic) reset first?)
  • Connect USB-C cable to the debug port ("front" USB-c)
  • Nvidia AGX device should appear in the lsusb under NVIDIA CORP. APX
  • Run ./flash.sh Different options for different usecases(https://docs.nvidia.com/jetson/archives/r36.3/DeveloperGuide/IN/QuickStart.html#in-quickstart)

Jetson AGX Orin Developer Kit (eMMC):

$ sudo ./flash.sh jetson-agx-orin-devkit internal


  • Watch for few minutes, typically it crashes early, then go for lunch.


Upgrading Nano to Jetson Linux 36.3[edit]

Buildroot approach (avoids SDK Manager)[edit]

  • sudo mkfs.ext4 /dev/sdb
  • sudo umount /dev/sdb
  • lsblk -f
  • Transfer rootfs onto sd card

sudo dd if=/home/dpsh/Downloads/rootfs.ext4 of=/dev/sdc1 bs=1M status=progress

  • Make sure the data was transferred to SD/NVMe

sync