问题:petalinux-package --boot --fpga xxx.bit --u-boot ERROR: This tool requires 'bootgen'

来源:互联网 发布:淘宝网131458 编辑:程序博客网 时间:2024/05/22 12:03

问题:

petalinux-package --boot --fpga xxx.bit --u-boot

ERROR: This tool requires 'bootgen' and it is missing. Please source Xilinx Tools settings first

老外的解决方法:

1. sourced settings with: cd <xilinx>; source settings.sh
2. Embarked on the workflow:
petalinux-create —type project —template zynq —name <myproject>
cd <xilinx>/etc/template/project/template-zynq/subsystems/linux/hw-description
petalinux-config --get-hw-description -p <myproject - absolute path>
petalinux-build
petalinux-boot —qemu —kernel
3. the last command just complained about IP address but the system actually booted up and seemed to work
4. The workflow manual (the same webpage where you download Petalinux from) says to run this to create a bin file for SD card:
   petalinux-package —boot —format BIN —fsbl images/linux/zynq_fsbl.elf —u-boot

unfortunately, you need a "bootgen" utility that is only available in SDK
5. I downloaded "Vivado full image for Linux with SDK" from http://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/vivado-design-tools.html
6. 5GB later and 20 minutes of installation time I was able to run the petalinux-package
export PATH=$PATH:/<SDK inst. folder>/Xilinx/SDK/2014\.4/bin
   cd <myproject>
   petalinux-package —boot —format BIN —fsbl images/linux/zynq_fsbl.elf —u-boot
7. success and there is a BOOT.BIN file in <myproject>/images/linux as well as in "/tftpboot"   


参考:http://forum.trenz-electronic.de/index.php?topic=368.0



0 0
原创粉丝点击