xilinx elf to auto boot bin

1. transfer elf to bin file:

$arm-linux-objcopy -O binary -R .note -R .comment -S spi_software.elf spi_software.bin

2. package bootloader/xilinux fpga/uboot.bin together

create zynq boot image -> add boot image partition 

three files are needed, the sequence must be followed:

zynq_fsbl_elf ----- (bootloader) First Step Boot Loader
FPGA.bit ----- (datafile) FPGA file  ***.bit
u-boot.elf ----- (datafile) uboot file,Attention: not uboot.bin


get output--->  boot.bin

3. boot in uboot, load boot.bin in uboot console, and run (boot.ibn & spi_software.bin are in sd card)

>>mmcinfo

>>fatload mmc 0 [addr] spi_software.bin

>>go [addr]


[addr] must be 0 here, as boot.elf is from address 0, still not sure how to modify it.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值