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 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:/<code>$ sudo ./developerflash.nvidia.com/embedded/sh jetson-linuxagx-orin-devkit internal</code> * Unpack (as rootWatch for few minutes, get used to doing most of this as root)typically it crashes early, preserving privilegesthen go for lunch. - `tar xjpf === Upgrading Nano to Jetson Linux 36...` * Download "Sample Root Filesystem" 3 === * Unpack ==== Buildroot approach (as root..avoids SDK Manager) into rootfs directory inside of the BSP archive above. ==== * Run '<code>sudo mkfs.ext4 /apply_binaries.sh' from the BSP dev/sdb </code> - Note: If apply_binaries (or frankly, anything, this is brittle) fails, remove and recreate rootfs - the OS might be left in an unbootable state. * <code>sudo umount /dev/sdb </code> * Reboot AGX into "Recovery Mode" <code>lsblk - hold the recovery button and reset button, release simultaneously ((sic) reset first?)f</code> * Connect USB-C cable to the debug port ("front" USB-c) Transfer rootfs onto sd card<code>sudo dd if=/home/dpsh/Downloads/rootfs.ext4 of=/dev/sdc1 bs=1M status=progress</code> * Nvidia AGX device should appear in Make sure the `lsusb` data was transferred to SD/NVMe * Run '.<code>sync</nvautoflash.sh' code> * Watch for few minutes, typically it crashes early, then go for lunch.[[Category: Firmware]]