1)
Set Up PetaLinux Working Environment
source ~/PetaLinux/settings.sh
Test: echo $PETALINUX
2) Create project from BSP named: MyLinux.
Change current directory to ~/PetaLinux$
petalinux-create -t project -n MyLinux -s avnet-digilent-zedboard-v2020.2-final.bsp
or
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
petalinux-create -t project -n MyLinux --template zynq
(I didn't test it, yet)
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)
3) Configuring and BuildingVerify images/system.bit or outputs/project_1.bit file content for CPU type: MicroZed REV-F requires 7z010clg4*
cd MyLinux
petalinux-config --get-hw-description=./hardware/avnet-digilent-zedboard-2020.2/outputs
or
petalinux-config --get-hw-description=./hardware/MZ7010_FMCCC_2020_1
Note: Warning about version! Answer 'y'. petalinux-config --get-hw-description <PATH-TO-XSA-FILE/DIR>
Ensure DTG Settings > (template) MACHINE_NAME is selected (ZEDBOARD).
. PetaLinux QSPI Partition map.
4) Managing Image Size
petalinux-config -c rootfs
and
petalinux-config -c kernel
Note: 2020.1 can halt with error on UART port. Select 'manual' in the Serial settings.
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 https://github.com/Xilinx/Vitis-Tutoria ... tomization