Steps to configure PetaLinux for SD card ext file system boot and build the system image are as follows:
- Change to root directory of your PetaLinux
project.
cd <plnx-proj-root>
- Launch top level system configuration
menu.
petalinux-config
- Select .
- Select EXT4
(SD/eMMC/SATA/USB) as the root file system type.Note: Choose this setting to configure your PetaLinux build for EXT root. By default, it adds the SD/eMMC device name in bootargs. For other devices (SATA/USB), you must change the ext4 device name, as shown in the following examples:
- eMMC or SD root = /dev/mmcblkYpX
- SATA or USB root= /dev/sdX
- Exit menuconfig and save configuration settings.Note: The boot arguments is automatically updated in the <plnx-proj-root>/components/plnx_workspace/device-tree/device-tree/system-conf.dtsi. These changes are reflected only after the build.
- Build PetaLinux images. For more information, see Building a System Image.
- Generate boot image. For more information, see Generate Boot Image for Zynq UltraScale+ MPSoC.
- The generated rootfs.tar.gz file is present in images/linux directory.