#set envirment
s1:
source /opt/pkg/petalinux/settings.sh
source /opt/Xilinx/Vivado/2017.4/settings64.sh
#create petalinux project
s2:
petalinux-create --type project --template zynq --name ax_peta
cd ax_peta
#set hw information config
s3:
petalinux-config --get-hw-description ../top_hw_platform_0
#set kernel
s4:
petalinux-config -c kernel
#set rootfs
s5:
petalinux-config -c rootfs
#build uboot、kernel、rootfs、device tree
s6:
petalinux-build
#generator BOOT.BIN and image.ub
s7:
petalinux-package --boot --fsbl ./images/linux/zynq_fsbl.elf --fpga ./images/linux/top.bit --u-boot --force
Petalinux 配置流程
于 2022-08-14 15:54:44 首次发布