Zynq> fpga info 0
Xilinx Device
Descriptor @ 0x2ffbb628
Family: Zynq PL
Interface type: Device configuration interface (Zynq)
Device Size: 13321404 bytes
Cookie: 0x45 (69)
Device name: 7z045
No Device Function Table.
Zynq> fpga info 1
fpga_dev_info: Invalid device number 1
fpga - loadable FPGA image support
Usage:
fpga [operation type] [device number] [image address] [image size]
fpga operations:
dump [dev] [address] [size] Load device to memory buffer
info [dev] list known device information
load [dev] [address] [size] Load device from memory buffer
loadp [dev] [address] [size] Load device from memory buffer with partial bitstream
loadb [dev] [address] [size] Load device from bitstream buffer (Xilinx only)
loadbp [dev] [address] [size] Load device from bitstream buffer with partial bitstream(Xilinx only)
Load device from filesystem (FAT by default) (Xilinx only)
loadfs [dev] [address] [image size] [blocksize]
[
loadmk [dev] [address] Load device generated with mkimage
For loadmk operating on FIT format uImage address must include
subimage unit name in the form of addr:
下面附赠个例子:
Bora> mmc rescan
Bora> mmc info
Device: sdhci@e0100000
Manufacturer ID: 1b
OEM: 534d
Name: 00000
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: No
Capacity: 1.9 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
Bora> fatls mmc 0:1
4045672 belk-4.0.0_bora_fpga.bit
4045564 belk-4.0.0_bora_fpga.bin
2 file(s), 1 dir(s)
Bora> fatload mmc 0:1 ${loadaddr} belk-4.0.0_bora_fpga.bin
reading belk-4.0.0_bora_fpga.bin
4045564 bytes read in 272 ms (14.2 MiB/s)
Bora> fpga load 0 ${loadaddr} ${filesize}
在下载的时候会报zynq_align_dma_buffer: Bitstream is not swapped(1) - swap it
说是需要转换大小端,重新操作fpga load 就不会报,后续原因待查。