Copying Image Files - 2023.2 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
Release Date
2023.2 English

This section explains how to copy image files to SD card partitions. Assuming the two partitions get mounted at /media/BOOT and /media/rootfs.

  1. Change to the root directory of your PetaLinux project.
    cd <plnx-proj-root>
  2. Copy BOOT.BIN and image.ub to BOOT partition of SD card. The image.ub file has device tree and kernel image files.
    cp images/linux/BOOT.BIN /media/BOOT/
    cp images/linux/image.ub /media/BOOT/
    cp images/linux/boot.scr /media/BOOT/
  3. Extract rootfs.tar.gz file to the root file system partition of the SD card and extract the file system.
    sudo tar xvfp rootfs.tar.gz -C /media/rootfs

In order to boot this SD card ext image, see Booting PetaLinux Image on Hardware with an SD Card. To Create an SD image using PetaLinux use the petalinux-package --wic command.