This section explains how to copy image files to SD card partitions. Assuming the two partitions get mounted at /media/BOOT and /media/rootfs.
- Change to the root directory of your PetaLinux
project.
cd <plnx-proj-root>
- Copy BOOT.BIN and image.ub to the BOOT partition of the 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/
- Extract the 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
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.