赞
踩
在https://download.csdn.net/download/lulugay/11986331有做好的bsp文件
petalinux-create --type project --template zynq --name pynqz2_dpu
cd pynqz2_dpu
petalinux-config --get-hw-description=<path to pynqz2_dpu.hdf>
generate boot args automatically
and enter the following bootargs in user set kernel bootargs
console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlyprintk quiet rootfstype=ext4 rootwait cma=256M
将 <path to plnx project>/project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi
的内容改为
/include/ "system-conf.dtsi" &amba { xlnk { compatible = "xlnx,xlnk-1.0"; }; }; &amba{ dpu{ #address-cells = <1>; #size-cells = <1>; compatible = "xilinx,dpu"; base-addr = <0x4f000000>; //CHANGE THIS ACCORDING TO YOUR DESIGN dpucore { compatible = "xilinx,dpucore"; interrupt-parent = <&intc>; interrupts = <0 29 4>; //CHANGE THIS ACCORDING TO YOUR DESIGN core-num = <0x1>; //CHANGE THIS ACCORDING TO YOUR DESIGN }; }; };
IMAGE_INSTALL_append = "dpu"
petalinux-config -c rootfs
petalinux-build
petalinux-package --boot --force --fsbl images/linux/zynq_fsbl.elf --fpga images/linux/*.bit --u-boot
/images/linux/BOOT.BIN
,/images/linux/image.ub
,/images/linux/rootfs.tar.gz
这些文件会在后面的步骤里用到
如果有必要的话,可以将做好的petalinux工程打包成bsp
petalinux-package --bsp -p . -o xilinx-pynq-z2-v2019.1-dpu3.0.bsp
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。