Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This document provides a comprehensive overview of the partitions of all boot devices on SP7350 platform. The SP7350 platform supports 5 boot devices, including SPI-NOR flash, SPI-NAND flash, 8-bit NAND flash, eMMC device, and SD card.

...

Partition

Size (kB)

Descriptions

iboot

96

image of i-boot for external boot

xboot

192

image of x-boot, including training firmware of DDR

dtb

128

image of device-tree blob (not used)

uboot

768

image of U-Boot

fip

864

image of fip, including TF-A and OP-TEE

kernel

Actual size of image

image of Linux kernel with U-Boot header

rootfs

Depend on size of flash

image of jfffs2 root file-system

...

Partition

Size

Descriptions

nand_header

1 block

header of the NAND flash

xboot1

Actual size of image

image of x-boot, including training firmware of DDR

uboot1

Actual size of image

image of U-Boot (factory default)

uboot2

Actual size of image

image of U-Boot (the latest update)

fip

2 MB

image of fip, including TF-A and OP-TEE

env

512 kB

image of environment variable of U-Boot

env_redund

512 kB

image of environment variable of U-Boot (redundant)

dtb

256 kB

image of device-tree blob (not used)

kernel

25 MB

image of Linux kernel with U-Boot header

rootfs (ubifs)

Depend on size of flash

image of ubifs root file-system

It is essential to ensure that the combined size of the nand_header, xboot1, uboot1, and uboot2 partitions does not exceed 4 MB. This constraint is crucial as the fip partition initiates at a 4 MB offset.

Note

To adjust partitions, please modify the define MTDPARTS_DEFAULT in the file:

...

Partition

Size

Descriptions

GPT

17 kB

GUID partition table, including MBR, header and 128 partition table

uboot1

1 MB

image of U-Boot (factory default)

uboot2

1 MB

image of U-Boot (the latest update)

fip

1 MB

image of fip, including TF-A and OP-TEE

env

512 kB

image of environment variable of U-Boot

env_redund

512 kB

image of environment variable of U-Boot (redundant)

dtb

256 kB

image of device-tree blob (not used)

kernel

32 MB

image of Linux kernel with U-Boot header

rootfs (ext4)

Depend on size of device

image of ubifs root file-system

SD card

The SP7350 platform offers support for booting from an SD card, providing a convenient solution for updating system images, particularly during the developmental stage or debugging. Although the SD card

...

Partitions

...

Files in boot partition

may exhibit lower performance compared to the eMMC device, its utility in certain scenarios remains valuable.

Partitioning

The SD card is divided into two essential partitions: the Boot (boot) partition and the root file-system (rootfs) partition, as shown in figure below:

...

Boot (boot) partition

Size of Boot partition is 256 MB. It contains essential files crucial for system booting. Boot partition should be formatted to DOS/Windows FAT32 or FAT16 file-system and is required to be the first partition on the SD card. Refer to table below for files in root directory in boot partition:

File name

Descriptions

ISPBOOOT.BIN

image of x-boot image

fip.img

fip image which includes TF-A and OP-TEE images

u-boot.img

image of U-Boot image

uEnv.txt

uenvcmd command of U-Boot

uImage

image of Linux kernel image ( with U-Boot header

Root file-system (rootfs) partition

The Root file-system (rootfs) partition houses the Linux ext4-formatted root file-system. The size of the rootfs partition for a newly built SD card is close to the actual size of the initial root file-system. Users are advised to extend the partition to the end of the SD card using tools such as fdisk. Following the extension of the partition, the file system should be extended using tools like resize2fs. Alternatively, users can employ integrated tools such as parted or gparted to extend both the partition and file-system simultaneously.