Edit the build/vck190_linux/project-spec/configs/config
file. In this configuration file, ensure that the root file system type is EXT4 by setting the following config options:
CONFIG_SUBSYSTEM_ROOTFS_EXT4=y
CONFIG_SUBSYSTEM_RFS_FORMATS="cpio cpio.gz cpio.gz.u-boot tar.gz jffs2 ext4"
To ensure the EXT4 root file system is generated, the bootargs in the uio-system-user.dtsi
must be as follows:
bootargs = "console=ttyAMA0 earlycon=pl011,mmio32,0xFF000000,115200n8 clk_ignore_unused root=/dev/mmcblk1p2 rw rootwait rootfs=ext4 uio_pdrv_genirq.of_id=generic-uio";
Lastly, the config
file specifies the machine name as follows:
CONFIG_SUBSYSTEM_MACHINE_NAME="versal-vck190-reva-x-ebm-02-reva"
Next, add user packages by appending the CONFIG_* lines to the build/vck190_linux/project-spec/configs/rootfs_config
file. By default, most config options are set to “is not set.” Update the following config options to =y
:
Packages for base XRT support: This is required for the AMD Vitis™ application acceleration development flow. It includes XRT and ZOCL.
CONFIG_packagegroup-petalinux-xrt=y
Packages for easy system management (recommended):
CONFIG_dnf
CONFIG_e2fsprogs-resize2fs
CONFIG_parted
CONFIG_imagefeature-package-management=y
Packages for libsysfs, libmetal, and OpenAMP libraries: The libmetal library provides common user APIs used to access devices, handle device interrupts, and request memory across different operating environments. OpenAMP builds on top of libmetal to provide a framework for remote processor management and inter-processor communication.
CONFIG_libmetal=y
CONFIG_open-amp=y
CONFIG_libsysfs=y
The package for the AI Engine:
CONFIG_ai-engine-driver=y
Enable debug tweaks:
CONFIG_YOCTO_ENABLE_DEBUG_TWEAKS=y
Enable PetaLinux auto login:
CONFIG_auto-login=y