When
initramfs rootfs
(rootfs.cpio) is provided to
the Vitis IDE, the generated sd_card.img
includes the following:- The xclbin file for PL kernel
- The host application
- The Linux kernel image
- The device tree
- The boot.scr
- The init.sh, platform_desc.txt, and
initramfs
rootfs in FAT32 partition
Note: The sd_card.img file does not contain the
ext4 partition.
- In the Vitis IDE, select to create a new application project.
- Select the platform (for example,
xilinx_zcu102_base_202010_1
), and click Next. - Provide the application project name (for example, vadd).
- 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 the
xrt
domain and provide the application settings as follows:- Sysroot path (for example, your_linux_component_dir/sysroots/aarch64-xilinx-linux)
- Root FS (for example, your_linux_component_dir/rootfs.cpio.gz.u-boot)
- Kernel Image (for example, your_linux_component_dir/Image)
- Click Next.
- Select the application template (for example, Vector Addition).
- 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.
Note: The common Linux components package does not provide initramfs rootfs.
For more information about generating initramfs rootfs, refer to
PetaLinux Tools Documentation: Reference Guide (UG1144).
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.