1)
Set Up PetaLinux Working Environment
source ~/PetaLinux/settings.sh
Test: echo $PETALINUX
2) Create project from BSP named: MyLinux.
~/PetaLinux$ petalinux-create -t project -n MyLinux -s mz7010_fmccc_2020_1.bsp
INFO: Create project: MyLinux
INFO: New project successfully created in /home/mkm/PetaLinux/MyLinux
or
Creating an Empty Project
petalinux-create --type project --template <PLATFORM> --name <PROJECT_NAME>
--template <PLATFORM> - The following platform types are supported:
- versal (for Versal adaptive SoC)
- zynqMP (for Zynq UltraScale+ MPSoC)
- zynq (for Zynq 7000 devices)
- microblaze (for MicroBlaze processor)
cd MyLinux
petalinux-config petalinux-config --get-hw-description <PATH-TO-XSA-FILE/DIR>
Ensure DTG Settings > (template) MACHINE_NAME is selected (ZEDBOARD).
4) Managing Image Size
petalinux-config -c rootfs
and
petalinux-config -c kernel
If the kernel or the root file system size increases and is greater than 128 MB, make the following changes in <plnx-proj-root>/project-spec/meta-user/recipes-bsp/u-boot/files/bsp.cfg:
5) Building a System Image#define CONFIG_SYS_BOOTM_LEN <value greater than image size>
and
Undef CONFIG_SYS_BOOTMAPSZ
cd MyLinux
petalinux-build
6) Packaging and Booting
Create BOOT.BIN file
petalinux-package --boot --u-boot