
Recall first from Building a CUDA-enabled Yocto image
- The Yocto build host and the Jetson target use separate kernels and toolchains.
- BitBake recipes provide build inputs, while the image manifest lists installed binary packages.
- The running device tree and driver probe results determine whether described hardware is usable.
Size the root filesystem and choose its device
4 min readYou can build an image. This lesson answers how to lay out the rootfs and partitions and ship updates over the air.
NVIDIA documents one example where the distinction matters. A Jetson Orin Nano developer kit with JetPack 5-era firmware needs a firmware update before it can boot a JetPack 6 SD card image. Replacing the card changes the system files, while the board still has to start with compatible firmware. Jetson Orin Nano Developer Kit getting started guide
In NVIDIA's Jetson Linux partition layout, APP is the primary root filesystem partition. With rootfs redundancy enabled, APP holds rootfs A and APP_b holds rootfs B. The running system mounts the selected filesystem at /. Partition layouts also account for boot components, partition tables, and other entries required by the board. On QSPI-based configurations, the module's QSPI NOR holds early boot firmware, including UEFI on Orin. The Linux root filesystem can live on another device. The exact partition layout comes from the board configuration and its partition XML for the selected BSP release. Jetson Linux partition configuration
- eMMC is soldered storage. For an eMMC-equipped target, use the BSP configuration for that exact module and carrier. Put the board in Force Recovery and use the release's host flashing procedure to provision its internal storage. NVIDIA's
flash.shsupports internal flashing on applicable targets. - SD is removable. A supported developer kit can boot from a board-specific SD image written to the card on a host. That operation prepares the card. Provision or update the module's boot firmware separately if its version requires it.
- NVMe is a separate block device. For supported Jetson Linux layouts, NVIDIA's initrd flash workflow uses
l4t_initrd_flash.shto provision the external drive and can also provision internal boot storage as required by the target. Select an external layout for the drive capacity and desired redundancy. Copying a root filesystem image onto an NVMe partition supplies only one component of that layout. Jetson Linux flashing support
On a running system, use these read-only commands to identify the current root mount and inspect the visible block devices:
findmnt -no SOURCE,FSTYPE /
lsblk -o NAME,SIZE,FSTYPE,PARTLABEL,MOUNTPOINTS
Match the root source to its device and partition label where available. If the source is a device-mapper volume, inspect the device relationships in the lsblk tree. A blank PARTLABEL is possible, and QSPI firmware partitions need not appear in this block-device listing. The commands help identify the running root filesystem. Use the flash configuration to establish where firmware was provisioned.
Size each root slot for the largest planned installed filesystem, including filesystem overhead and space for growth. Use the filesystem's expanded size when checking whether the delivered image fits. A compressed download can be much smaller than the image written to disk. Budget persistent data, OTA staging space where your workflow needs it, and every other entry in the selected layout. Measure the available device capacity and compare values in the same units.
For a hypothetical budget, allow 12 GiB per root slot, 6 GiB for persistent data, 3 GiB for separate OTA staging, and 1 GiB for the remaining partitions and layout overhead. The sum is 34 GiB. An available capacity of 32 GiB falls short by 2 GiB. These are planning inputs. On a real board, check the generated sizes of both root slots and the full layout before flashing. Reducing the download size leaves this partition calculation unchanged.
Ship a BSP image and test rollback
3 min readA A board support package supplies the boot and operating system components needed for a particular board. A Jetson BSP update can include boot firmware, the kernel, device trees, and the root filesystem. Keep those components compatible with one another. On a GPU system, a root filesystem that mounts successfully can still contain userspace libraries that fail to initialize against the installed driver stack.
NVIDIA's image-based OTA workflow builds a payload on a host for a supported source-to-target BSP transition and applies it on the Jetson with the release's OTA tools. Check the supported transition for the module, root device, redundancy configuration, and starting release. A change to the partition layout or boot firmware has its own release-specific requirements. For a custom Yocto image, verify that your updater supports the generated storage layout, understands the boot slot state, and can coordinate any required BSP firmware changes. Jetson Linux software packages and update mechanism
In an ordinary update on a supported A/B layout, the alternate root slot receives the new image while the current slot remains available. On Jetson rootfs redundancy configurations, the bootloader and rootfs slots are linked. Check which boot components the update changes and whether the previous slot can still boot with any updated shared firmware. Jetson Linux root file system
- Validate the candidate. Match the payload to the board, current BSP, and layout. Authenticate it and verify its integrity before applying it. Check that the target image fits the inactive slot and that staging has enough free space.
- Install the update. If A is running, write the new root image to B. Apply any boot component changes in the order required by the supported update procedure. Schedule the trial boot only after the writes finish and the updater completes its checks.
- Evaluate the trial. Boot B and verify the services the device needs. For a CUDA appliance, run a small known GPU workload and check its result. Verify that persistent storage mounts and that the application can use it.
- Accept or recover. Coordinate the BSP's boot-success mechanism with the health checks your product needs. If the trial fails to boot within its retry policy, the redundant boot scheme can select the prior usable slot. A device that reaches userspace but fails an application check needs an explicit recovery policy. Check when the BSP marks a boot successful, since your product checks may finish later.
Keep logs, configuration that must survive an update, and application records on storage that both slots can mount. If B upgrades a shared database to a format A cannot read, a successful boot back into A still leaves the application offline. Use a compatible migration or retain a recoverable copy until the trial is accepted. Test interruptions during installation and a failed trial boot separately. Record the selected slot and the application result after recovery.
Review partitioning and filesystem inspection in M4 and the deployment and recovery workflow in M14.
Provision trust for production devices
1 min readGoing deeperExplore the mechanism
Jetson Secure Boot starts with the SoC BootROM. In a PKC-based configuration, the device uses a public-key hash provisioned in one-time-programmable fuses to anchor verification of signed early boot components. The signing private key stays in the release infrastructure. Subsequent verification depends on the configured boot chain. UEFI Secure Boot uses its own enrolled keys and policy for verifying EFI binaries.
The symmetric Secure Boot Key, or SBK, is used for encryption of supported boot components in configurations that use it. Signing establishes authenticity and integrity. SBK encryption protects confidentiality for the components it covers. A product that needs root filesystem confidentiality requires a separate disk encryption design. The OTA agent also needs a policy for authenticating downloaded releases.
Fuse burning is irreversible. Before production provisioning, validate the exact module's signing and flashing procedure on development units, then verify both boot slots, signed updates, and recovery on a representative fused unit. Check that the recovery artifacts and the prior slot satisfy any configured rollback protection. Record which key set each device trusts so the factory and update service can provision compatible artifacts. Jetson Linux Secure Boot · M16
The next lesson, Why containers and how the GPU gets injected, moves from the image on the board to running GPU applications in containers on top of it.
Key takeaways
- Jetson Linux calls the primary root filesystem partition APP and the secondary root filesystem partition APP_b when rootfs redundancy is enabled.
- The module and BSP release determine which flash layout to use for eMMC, SD, or NVMe.
- An A/B update reserves an alternate root filesystem and requires a working fallback path through the boot chain.
- Shared application data must remain usable if the device returns to the previous slot.
Reflect
- Explain to a colleague, in two sentences: identify the root filesystem device and distinguish it from Jetson boot firmware storage.
- 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
- Man pagefindmnt(8): locate mounted filesystems
- Man pagelsblk(8): list block devices and partition metadata
Official documentation first. Links checked when the lesson was published.