- Create the project using the BSP.
- Go to the project directory using the
cd
command. - Run the
petalinux-config --silentconfig
command. - Open the platform-auto.h file and add the following command
in the
bootcmd
options of the U-Boot environment (project-spec/configs/u-boot-xlnx/platform-auto.h). The values can vary based on hardware.$ "bootcmd=sf probe 0;sf read 0x82000000 0xAA0000 0xC00000;bootm 0x82000000\0"
-
$save
and exit. - Run the
petalinux-build
command. - Create the mcs file with build images using the following
command.
$ petalinux-package --boot --fpga images/linux/system.bit --u-boot --kernel --flash-size 128