ext4 rootfsis provided to the Vitis IDE, the generated sd_card.img file includes the following:
xclbinfile for PL kernel
- The host application
- The Linux kernel image
- The device tree
- The u-boot configuration file: boot.scr
ext4 rootfsin the Ext4 partition
To package an image with Ext4 rootfs in the Vitis IDE:
- Select Vitis IDE. to create a new application project in the
- Select the platform (for example,
xilinx_zcu102_base_202120_1), and click Next.
- Provide a name for the application project (for example,
- For the System Project selection, select Create New.
- For the Target
processor, select the processor that can run the Linux
domain (for example,
psu_cortexa53 SMP), and click Next.
- In the Domain page, select xrt and provide the following application settings:
- Sysroot path (for example, xilinx-zynqmp-common-v2021.2/sysroots/cortexa72-cortexa53-xilinx-linux)
- Root FS (for example, xilinx-zynqmp-common-v2021.2/rootfs.ext4)
- Kernel Image (for example, xilinx-zynqmp-common-v2021.2/Image)
- Click Next.
- Select an application template (for example, Vector Addition) and click Finish.
- Select the system project and click the Build () button to build the project.
- Verify that the sd_card.img file was created in the package directory under the Emulation-SW, Emulation-HW or Hardware directory.
Tip: To change the path for sysroot, rootfs, or kernel after the application project has been created, double-click the .sprj file and change the path in the Options dialog box.