本文使用的是Xilinx XCZU21DR作为加速卡主控APU
1.Create a project for 21DR
$mkdir <your project directory>
$cd <your project directory>
$petalinux-create --type project --template zynqMP --name fhk21dr
2.Get hardware description for FPGA(vivado)
2.1.Vivado->File->Export->Export Hardware
2.2Move this xxx.hdf file to <your project directory>
$mkdir myhdf
$cp xxx.hdf myhdf/
$petalinux-config --get-hw-description=./myhdf/
3.Configure you project
Generate .config file
4.Compile and output elf file
$ petalinux-build
5.Package BOOT.bin
$petalinux-package --boot --fsbl /tftpboot/zynqmp_fsbl.elf --fpga /tftpboot/system.bit --u-boot /tftpboot/u-boot.elf
6.SD card boot configure
6.1.format your SD card
6.2.copy image.ub and BOOT.bin to SD card
7.Test your system
- Plug SD card to you board
- Power on