Preparing the SD Card - 2020.2 English

PetaLinux Tools Documentation Reference Guide (UG1144)

Document ID
UG1144
Release Date
2020-11-24
Version
2020.2 English

Steps to prepare the SD card for PetaLinux SD card ext file system boot as are follows:

For more information on how to format and partition the SD card, see Partitioning and Formatting an SD Card.

  1. The SD card is formatted with two partitions using a partition editor such as gparted.
  2. The first partition should be at least 500 MB in size and formatted as a FAT32 file system. Ensure that there is 4 MB of free space preceding the partition. The first partition contains the boot loader, device tree, and kernel images. Label this partition as BOOT.
  3. The second partition should be formatted as an ext4 files system and can take up the remaining space on the SD card. This partition stores the system root file system. Label this partition as RootFS.
  4. Copy the files as follows:
    • FAT partition:BOOT.BIN, boot.scr, and Image
    • EXT partition: rootfs.tar.gz/rootfs.cpio.gz

For optimal performance ensure that the SD card partitions are 4 MB aligned.