Partition Configuration — NVIDIA Jetson Linux Developer Guide (original) (raw)

NVIDIA® Jetson™ Linux supports formatting mass storage media into multiple partitions for storing data, such as the device OS image, bootloader image, device firmware, and bootloader splash screen.

How Jetson Partition Configurations Are Described#

Some Jetson platforms have similar characteristics, such as identical partition configurations. This topic groups these platforms and provides information about each group. The supported platforms are grouped in the following way:

Partition Configuration Files#

A partition configuration file describes the mass storage devices and partitions on a platform.

The following table describes the definitions of all of the partition configurations supported by Jetson Linux. The File column specifies the filename of the partition configuration file the defines the configuration, and the Device columns specify the <device> block in that file that defines the configuration (refer to Element Tag Attributes for more information).

Each file’s name typically incorporates its processor name (t234 or t234), the type of memory the partitions are flashed to (sd for SD Card, spi for SPI, or emmc for eMMC), and in some cases, the module’s part number, for example, p3668).

During the flashing procedure, flash.sh:

bootloader/tegraflash.py reads in bootloader/flash.xml and flashes the device that was specified by bootloader/flash.xml.

Refer to List of Translated Keywords for more information.

Format of a Partition Configuration File#

Each partition configuration file defines one or more partition layouts for a specific configuration of a specific Jetson device. The file is composed of the following XML elements:

<partition_layout> Element#

The <partition_layout> element has the following syntax:

Element#

The partition configuration file contains a device element for each subdevice; for example, for the eMMC boot and user hardware partitions. This element must be present even if the devices are not divided into subdevices.

The <device> element has the following syntax:

Element Tag Attributes#

The following table describes the <device> tag’s attributes and their legal values.

Element#

Each <partition> element has the following syntax:

Element Tag Attributes#

This table describes the attributes supported for partition elements and their legal values.

Child Elements#

The following tags specify the properties of a <partition> element:

Tag Values Description
<allocation_policy> sequential Specifies the type of allocation policy. Sequential partitions begin immediately after the preceding partition.
<filesystem_type> basic The filesystem_type value basic specifies a “raw” partition. (The legacy “ext2” file system has been deprecated.)
<partition_size> Required. Specifies the size of the partition in bytes. May be a decimal number or a hexadecimal number of up to 16 digits. The partition size may be equal to or greater than the size of the file to be written to the partition. Specifying a greater size allows you to increase the file size later without changing the partition configuration file. If the partition size is less than an erase block size, it aligns itself to the partition erase block boundary. The size property of the secondary GPT partition, which is defined at the end of each device, must always be 0xffffffffffffffff. TegraFlash calculates this partition's size automatically; the preceding partition is extended to fill any free space before the secondary GPT.
<file_system_attribute> 0 Not implemented.
<allocation_attribute> 0x008 or 0x808. Must be 0x808 for the partition immediately preceding the secondary GPT.
<percent_reserved> 0 Reserved for future use.
or empty Specifies the name of the file to write into the partition. If the filename is empty, no data is written to the partition.

List of Translated Keywords#

The following table provides keywords that you can use as the text for some <partition> child elements. When the partition configuration file processor encounters one of these keywords, it substitutes the value shown or described in the table.

External Storage Device Partition#

To create a partition configuration file for flashing to an external storage device, start with a default SD card partition table as a template (for example, the Jetson AGX Orin development module sdmmc_user partition from the table ofpartition configuration files). Change the device type to nvme, and the instance number to zero, as in the example below. An external partition configuration file must contain at least three partitions: master_boot_record, primary_gpt, and secondary_gpt.

For both SCSI devices (e.g. SCSI flash drives and hard disk drives) and NVMe devices, for example NVMe SSDs, the device type is nvme. You must also update num_sectors to correctly specify the total amount of storage available on your external device. For example, if an NVMe device has 1024209543168 bytes available, you must change num_sectors to 1024209543168/512 = 2000409264 sectors.

sequential basic 512 0 8 0 **Required.** Contains protective MBR. sequential basic PPTSIZE 0 8 0 **Required.** Contains primary GPT of the `sdmmc_user` device. All partitions defined after this entry are configured in the kernel, and are accessible by standard partition tools such as gdisk and parted. sequential basic 0xFFFFFFFFFFFFFFFF 0 8 0 **Required.** Contains secondary GPT of the `sdmmc_user` device.