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.