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

问题:

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
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值