.. _AR.BootArchitecture.PartitionConfiguration: .. include:: /content/swdocs.rsts .. spelling:: emmc NVMe oem OEM sdmmc subdevice subdevice subdevices Partition Configuration !!!!!!!!!!!!!!!!!!!!!!! |NVIDIA(r)| |Jetson(tm)| 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 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Certain Jetson platforms have very similar characteristics, including identical partition configurations. This topic groups such platforms together and discusses each group. Supported platforms are grouped like this: +-----------------------------------+----------------------------------------------------------+ | Group | Includes platforms | +===================================+==========================================================+ | |NVIDIA(r)| | | Jetson AGX Orin (P3701-0000) | | | | | |Jetson AGX Orin(tm)| series | .. | | | Jetson AGX Orin Industrial (P3701-0002) | +-----------------------------------+----------------------------------------------------------+ | |NVIDIA(r)| | | Jetson Xavier NX (P3668-0000, for development only) | | |Jetson Xavier(tm) NX| series | | Jetson Xavier NX (P3668-0001, 8\ |GB| RAM) | | | | Jetson Xavier NX 16GB (P3668-0003, 16\ |GB| RAM) | +-----------------------------------+----------------------------------------------------------+ | |NVIDIA(r)| | | Jetson AGX Xavier (P2888-0001, 16\ |GB| RAM) | | |Jetson AGX Xavier(tm)| series | | Jetson AGX Xavier (P2888-0004, 32\ |GB| RAM) | | | | Jetson AGX Xavier 64GB (P2888-0005, 64\ |GB| RAM) | | | | Jetson AGX Xavier Industrial (P2888-0008, 32\ |GB| RAM)| +-----------------------------------+----------------------------------------------------------+ Partition Configuration Files @@@@@@@@@@@@@@@@@@@@@@@@@@@@@ A partition configuration file describes all of 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. In each row, "File" specifies the filename of the partition configuration file the defines the configuration, and "Device Type" specifies the ``type`` attribute of the ```` block in that file which defines the configuration. (See ` Element Tag Attributes`_ for more information.) .. _ar.bootarchitecture.partitionconfiguration-partitionconfigurationfiles.table: +------------------------------------------------------+--------------------------------------+----------------+ | Platform & Configuration | File | Device Type | +======================================================+======================================+================+ | **Jetson Orin platforms in** ** ``/Linux_for_Tegra/bootloader/t186ref/cfg/`` | | | +------------------------------------------------------+--------------------------------------+----------------+ | Jetson AGX Orin (P3701-0000), QSPI_NOR partition | ``flash_l4t_t234_qspi_sdmmc.xml`` | ``spi`` | | | | | | .. | | | | Jetson AGX Orin Industrial (P3701-0001), QSPI_NOR | | | | partition | | | +------------------------------------------------------+--------------------------------------+----------------+ | **Jetson Xavier NX series and Jetson AGX Xavier series in** ``/Linux_for_Tegra/bootloader/t186ref/cfg/``| +------------------------------------------------------+--------------------------------------+----------------+ | Jetson Xavier NX (development, P3668-0000), | ``flash_l4t_t194_spi_sd_p3668.xml`` | ``spi`` | | QSPI_NOR partition | | | +------------------------------------------------------+--------------------------------------+----------------+ | Jetson Xavier NX (development, P3668-0000), | ``flash_l4t_t194_spi_sd_p3668.xml`` | ``sdcard`` | | SD Card partition | | | +------------------------------------------------------+--------------------------------------+----------------+ | Jetson Xavier NX (production, P3668-0001) | ``flash_l4t_t194_spi_emmc_p3668.xml``| ``spi`` | | and Jetson Xavier NX 16GB (P3668-0003), | | | | QSPI_NOR partition | | | +------------------------------------------------------+--------------------------------------+----------------+ | Jetson Xavier NX (production, P3668-0001) | ``flash_l4t_t194_spi_emmc_p3668.xml``| ``sdmmc_user`` | | and Jetson Xavier NX 16GB (P3668-0003), | | | | emmc_user partition | | | +------------------------------------------------------+--------------------------------------+----------------+ | Jetson AGX Xavier (P2888-0001 and P2888-0004) | ``flash_l4t_t194_sdmmc.xml`` | ``sdmmc_boot`` | | and Jetson AGX Xavier 64GB (P3668-0005), | | | | sdmmc_boot partition | | | +------------------------------------------------------+--------------------------------------+----------------+ | Jetson AGX Xavier (P2888-0001 and P2888-0004) | ``flash_l4t_t194_sdmmc.xml`` | ``sdmmc_user`` | | and Jetson AGX Xavier 64GB (P3668-0005), | | | | sdmmc_user partition | | | +------------------------------------------------------+--------------------------------------+----------------+ | Jetson AGX Xavier Industrial (P2888-0008), | ``flash_l4t_t194_spi_emmc_jaxi.xml`` | ``spi`` | | spi partition | | | +------------------------------------------------------+--------------------------------------+----------------+ | Jetson AGX Xavier Industrial (P2888-0008), | ``flash_l4t_t194_spi_emmc_jaxi.xml`` | ``sdmmc_user`` | | sdmmc_user partition | | | +------------------------------------------------------+--------------------------------------+----------------+ Each file's name typically incorporates its processor name (``t194``, ``t234``, or ``t239``), 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 (e.g. ``p3668``). During the flashing procedure, ``flash.sh``: - Reads the partition configuration file ``.xml`` - Translates keywords into values specified in ``.conf`` or in command line options - Saves the translated data in ``bootloader/flash.xml`` Then ``bootloader/tegraflash.py`` reads in ``bootloader/flash.xml`` and flashes the device as specified by ``bootloader/flash.xml``. For details, see the section `List of Translated Keywords <#list-of-translated-keywords>`__. 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: - A standard XML prolog - One or more ```` elements, each of which defines one partition layout - Within each ```` element, a ```` element for each device (i.e. each type of flashed memory) the layout uses - Within each ```` element, a ```` element for each partition in that device's partition layout - Within each ```` element, a group of other elements that specify various properties of the partition Element ########################## The ```` element has the 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. .. todo:: This passed review in the original (.docx) format, but it's at odds with the files as I read them. Each element represents one type of memory that the system can be flashed to. The only reference to subdevices elsewhere in the document is in the discussion of V4L2 architecture, which is pretty far removed from partition definition. Please explain what "subdevice" means in this context, or if it's inappropriate, what to say. The ```` element has this syntax:: Element Tag Attributes $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ The following table describes the ```` tag's attributes and their legal values. +-------------+-----------------------+----------------------------------------+ | Device | Values | Description | | attributes | | | +=============+=======================+========================================+ | device type | ``sdmmc_boot``; | **Required.** Specifies the type of | | | ``sdmmc_user SPI``; | device. eMMC ``boot0`` and ``boot1`` | | | ``nvme`` | hardware partitions are treated as a | | | | single ``sdmmc_boot`` entry. | +-------------+-----------------------+----------------------------------------+ | instance | 0-3 | **Required.** Specifies the device | | | | instance: 0 for SPI or NVMe, or 3 | | | | (typically) for eMMC. | +-------------+-----------------------+----------------------------------------+ Element ################### Each ```` element has the syntax:: Element Tag Attributes $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ This table describes the attributes supported for partition elements and their legal values. +------------+---------------------------------------+----------------------------------------+ | Device | Values | | | attributes | | | +============+=======================================+========================================+ | name | See the files listed in the table of | **Required.** Specifies a name for the | | | `partition configuration files | partition. The name can have a maximum | | | <#partition-configuration-files>`__. | of 36 characters. There are three | | | | kinds of partitions: mandatory, | | | | optional, and user-defined. All | | | | mandatory and optional partition names | | | | must be associated with the specific | | | | partition type. All user-defined | | | | partition names must be associated | | | | with partition type `data`. | +------------+---------------------------------------+----------------------------------------+ | type | See the files listed in the table of | **Required.** Specifies the type of | | | `partition configuration files | partition. Certain partition types are | | | <#partition-configuration-files>`__. | valid only when they are associated | | | | with specific partition names. | +------------+---------------------------------------+----------------------------------------+ | oem_sign | ``True``, ``False``, | **Jetson AGX Xavier series only**: | | | or unspecified. | If ``True``, append a generic | | | | signature header to the binary and | | | | perform OEM signing on it. If | | | | ``False``, append a NULL signature | | | | header to the binary and perform NULL | | | | signing on it. | +------------+---------------------------------------+----------------------------------------+ .. todo:: In the first entry, it's not clear what "...must be associated with the specific partition type" means. Please clarify. In the third entry, the original appeared to specify two unconditional but mutually exclusive actions. I interpreted it to mean they correspond to the True and False values. Is that accurate? Child Elements ########################## These are tags for specifying the properties of a ```` element: .. raw:: html :file: PartitionConfiguration/PartitionElementChildElements.htm List of Translated Keywords ########################### This table lists keywords that you can use as the text of certain ```` child elements. When the partition configuration file processor encounters one of these keywords, it substitutes the value shown or described in the table. ================= ============================================================ Keyword Default translated value in ``flash.xml`` ================= ============================================================ MB1FILE ``mb1_t194_prod.bin`` SPEFILE ``spe_t194.bin`` TEGRABOOT ``nvtboot_t194.bin`` MTSPREBOOT ``preboot_c10_prod_cr.bin`` APPSIZE 30064771072 APPFILE ``system.img`` MTS_MCE ``mce_c10_prod_cr.bin`` MTSPROPER ``mts_c10_prod_cr.bin`` TBCFILE ``uefi_jetson.bin`` TBCDTB-FILE Appropriate bootloader DTB file name TOSFILE ``tos_t194.img`` EKSFILE ``eks.img`` BPFFILE ``bpmp_t194.bin`` BPFDTB-FILE Appropriate BPMP DTB file name CAMERAFW ``camera-rtcpu-rce.bin`` WBOBOOT ``warmboot_t194_prod.bin`` LNXSIZE 67108864 LNXFILE ``boot.img`` DTB_FILE Appropriate kernel DTB file name RECFILE Name of appropriate recovery kernel image RECDTB-FILE Name of appropriate recovery kernel dtb file BOOTCTRL-FILE ``kernel_bootctrl.bin`` ================= ============================================================ .. _AR.BootArchitecture.PartitionConfiguration-ExternalStorageDevicePartition: 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 Xavier NX development module SD Card partition from the table of `partition configuration files <#partition-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 (e.g. 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\ |nbsp|\ = 2000409264 sectors. .. code-block:: xml 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.