
Recall first from JetPack and flashing with SDK Manager
- JetPack combines the Jetson Linux BSP with a release-specific set of compute and vision packages.
- SDK Manager can flash the base system in Force Recovery Mode and install selected target packages after Linux boots.
- A microSD image must be compatible with the developer kit's existing boot firmware.
What L4T supplies to a Jetson board
3 min readYou flashed a stock image. This lesson answers how L4T is structured and how meta-tegra brings Jetson into Yocto.
A Jetson Orin can reach the UEFI menu and still fail to mount its Linux root filesystem. These events happen at different stages. Reaching the menu shows that the firmware reached UEFI. Mounting the root filesystem requires Linux to start, find the intended storage, and open the filesystem. The AArch64 boot documentation describes the handoff between firmware and the Linux kernel, including how the kernel receives the device tree. Booting AArch64 Linux
L4T stands for Linux for Tegra, also called Jetson Linux in NVIDIA documentation. It is NVIDIA's Linux board support release for Jetson. It includes boot firmware and deployment tools, a board-enabled Linux kernel, device trees, and software for the target root filesystem. Think about where each artifact is used and which program consumes it. The host used to prepare or inspect an image and the Jetson that executes it have separate roles.
The kernel image, commonly called Image in an arm64 boot setup, contains the executable Linux kernel. Linux uses built-in drivers as it starts, and it can load additional drivers as kernel modules. Modules stored on the root filesystem need to match the running kernel. Replacing the kernel while keeping modules built for an incompatible kernel can leave the system able to boot while a device that depends on one of those modules fails to work.
The device tree describes the hardware that firmware passes to Linux. A device tree blob, or DTB, is the compiled form of that description. In NVIDIA's Orin board files, the pattern tegra234*.dtb identifies a family of files associated with the Tegra234 SoC. You still need the description for the actual module and carrier board. The carrier board is the board the Jetson module plugs into. Device tree nodes and properties can describe enabled controllers, interrupts, and the connections to regulators that supply power to devices. Linux uses that information when matching devices to drivers and setting them up. Linux and the Devicetree
Two boards based on the same SoC can route a peripheral differently or expose different ports. A kernel may reach a login prompt with an unsuitable DTB, while one of those peripherals stays unavailable. The reverse is also possible: the DTB describes the device correctly, but the running kernel lacks the driver. A hardware diagnosis needs both the board description and the code that uses it.
The root filesystem, often written rootfs, provides the directory tree mounted at / for the running system. It holds programs, libraries, and configuration such as the files under /etc. It also provides persistent storage for files shipped with the operating system, including loadable kernel modules where the distribution installs them. In a stock Jetson Linux setup, the target root filesystem is Ubuntu-based and includes NVIDIA software. Yocto can assemble its own root filesystem from recipes while using compatible firmware, kernel support, and NVIDIA software for the board. The exact location of the boot files depends on the deployment layout, so a file visible under /boot tells you what is stored there. To know what started the current boot, check the boot configuration and the running system as well.
How Orin reaches Linux userspace
3 min readThe normal Orin boot sequence starts in BootROM, code built into the SoC. BootROM loads MB1, an early NVIDIA boot stage. MB1 performs low-level hardware initialization, including configuring memory from board-specific boot settings. MB2 continues platform setup and loads later boot components. NVIDIA's UEFI firmware then handles boot selection and launches the selected boot option. This is the sequence to follow when locating a failure. The diagram omits auxiliary firmware stages.
A Linux boot option starts the kernel with the device tree and kernel command line. The boot setup can also supply an initramfs, an initial filesystem loaded into memory. Early userspace in an initramfs can make the final root filesystem available before starting the regular userspace on it. The kernel command line commonly includes a root= argument identifying the intended root device. The firmware's selected boot option and Linux's root device answer different questions. The first determines what firmware launches. The second identifies where Linux is supposed to find its target filesystem.
Read boot evidence in order. If you can see the UEFI menu, you have a confirmed firmware milestone. If you see Linux reporting that it cannot mount root, you also have evidence that the kernel started. At that point, compare the configured root identifier with the deployed storage and check whether the storage controller and filesystem are usable when Linux needs them. Storage support can depend on the DTB, a built-in driver, or a module available in early userspace. A successful mount exposes the filesystem contents. Starting the expected userspace is a later milestone. mount(2)
On a running Jetson, the following read-only commands let you compare the running kernel, its command line, the board model, and the current root mount. The model command assumes the running kernel exposes the device tree model property. That property is a NUL-terminated string, so tr removes the terminating byte and printf ends the line.
uname -r
cat /proc/cmdline
tr -d '\000' < /sys/firmware/devicetree/base/model
printf '\n'
findmnt /
uname -r reports the running kernel release. /proc/cmdline records the arguments passed to it, and findmnt / shows what is mounted at / now. The model property describes the active device tree's board model. Several DTBs or boot configurations can report the same model string, so use it as a board identity check. Running these commands in a WSL2 instance or VM gives you information about that environment, regardless of which Jetson files you have downloaded there.
How meta-tegra adds Jetson to Yocto
3 min readA Yocto build uses layers to organize metadata. The meta-tegra layer supplies Jetson board support metadata. Depending on its release, it supplies or integrates recipes for the Tegra kernel, device trees, NVIDIA firmware and userspace packages, and the tooling that prepares deployment artifacts. The layer lets BitBake apply this board support when building an image for a selected Jetson. Its release needs to be compatible with the rest of the Yocto layer set and with the Jetson Linux release it integrates.
A A Yocto machine configuration is board-specific metadata that supplies settings for a hardware target. The MACHINE variable selects it. A build configuration using a meta-tegra revision that provides the Orin Nano Developer Kit machine can select it in conf/local.conf:
MACHINE = "jetson-orin-nano-devkit"
The value corresponds to conf/machine/jetson-orin-nano-devkit.conf within the layer. Read that file and the include files it references when tracing a setting. Common Tegra settings can live in an included file, while the machine file ties them to a board. The resulting configuration can select kernel and device tree settings and supply board-specific parameters for creating deployable artifacts. The image recipe specifies what goes into the userspace image, such as the packages and features to install. Selecting the machine gives the build a hardware target. Selecting the image gives it a userspace target. The same machine can therefore support a small bring-up image and a larger application image.
BSP bring-up means establishing that the board support package runs on the intended hardware and makes the required devices usable. Begin with the machine for a supported reference board and confirm the actual module, carrier board, and intended boot storage. Use a compatible layer set and identify which deployable artifacts the build produces for that arrangement. A root filesystem by itself is only one artifact. The board also needs the appropriate firmware and a boot path that starts the intended kernel with its board description.
On the reference board, record the furthest confirmed milestone during startup. A firmware menu confirms UEFI execution. Kernel messages confirm Linux execution. A login, the actual root mount, and the expected board model give you evidence about the userspace, storage, and board configuration that came up. Then verify whichever devices the image must support. A successful BitBake build establishes that the build completed. A login establishes that a system reached userspace. An individual device still needs its own check if the product depends on it.
If you later move the same module to a custom carrier, start from the working reference configuration and identify which hardware connections changed. A carrier change can require a different Linux device tree and, where the hardware difference affects initialization before Linux starts, different early boot settings. Keep track of the selected machine, the artifacts you deployed, and the last confirmed startup stage. That record lets you investigate a change in the board configuration separately from a change in the packages installed in userspace.
The next lesson, Building a CUDA-enabled Yocto image, uses the Jetson machine selection and board support established here to build an image with CUDA userspace support.
Key takeaways
- On Jetson Orin, MB1 and MB2 prepare the platform before UEFI runs.
- The Linux kernel image contains executable code, and the device tree describes the board Linux is running on.
- meta-tegra integrates Jetson board support into Yocto while Yocto assembles the target root filesystem.
- A successful image build and a successful boot on the selected board are separate milestones.
Reflect
- Explain to a colleague, in two sentences: trace startup from BootROM through MB1, MB2, and UEFI to Linux userspace.
- Which objective are you least sure about? Re-read that section, then do its exercise in the practice pack.
- What surprised you when you ran the commands yourself?
On a real board
Repeat the key commands on your Raspberry Pi or lab board over SSH or the serial console. Note anything that behaves differently from your PC, such as missing tools, a BusyBox shell or a read-only filesystem.
References and further reading
- Kernel documentationLinux and the Devicetree
- Kernel documentationBooting AArch64 Linux
- Man pagemount(2): mount a filesystem
Official documentation first. Links checked when the lesson was published.