From 28762038681c9158829c7586d6564446ef667c11 Mon Sep 17 00:00:00 2001 From: Adrian Mangeac Date: Thu, 25 Jul 2019 13:21:08 +0200 Subject: fpgautil: Add README file Change-Id: Ib887c7633aa3273a4afdab01585fe5cea3ca004d Signed-off-by: Adrian Mangeac --- recipes-apps/fpgautil/README | 54 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 recipes-apps/fpgautil/README diff --git a/recipes-apps/fpgautil/README b/recipes-apps/fpgautil/README new file mode 100644 index 0000000..10ee047 --- /dev/null +++ b/recipes-apps/fpgautil/README @@ -0,0 +1,54 @@ + The fpgautil command line tool provides an easy-to-use interface for FPGA +management. It allows the loading of fpga via overlay or through sysfs +interface, as well as reading fpga configurations using the Xilinx zynqMP fpga +manager. + +Usage: fpgautil -b -o + +Options: -b (Bin file path) + -o (DTBO file path) + -f Optional: + f := + Default: + -s Optional: + s := + -k Optional: + -r Optional: + Default: By default Read back contents will be stored in readback.bin +file + -t Optional: + 0 - Configuration Register readback + 1 - Configuration Data Frames readback + Default: 0 (Configuration register readback) + -R Optional: Remove overlay from a live tree + +Examples: + (Load Full bitstream using Overlay) + fpgautil -b top.bit.bin -o can.dtbo + (Load Partial bitstream through the sysfs interface) + fpgautil -b top.bit.bin -f Partial + (Load Authenticated bitstream through the sysfs interface) + fpgautil -b top.bit.bin -f Full -s AuthDDR + (Load Parital Encrypted Userkey bitstream using Overlay) + fpgautil -b top.bit.bin -o pl.dtbo -f Partial -s EnUsrKey -k <32byte +key value> + +NOTE: + A binary file built for testing purposes can be downloaded from the +following location: +http://linux.enea.com/EneaLinux8.0/Xilinx-utils/fpga.bin.tar.bz2 + +In order to load the fpga with the example file, do the following: +1. Extract the binary file under /lib/firmware rootfs folder + $ tar -xpf system.bin.tar.bz2 -C /lib/firmware + +2. (Re)Boot the target + +3. Load the binary file + $ fpgautil -b /lib/firmware/system.bin + +[ 39.243008] fpga_manager fpga0: writing system.bin to Xilinx ZynqMP FPGA +Manager +Time taken to load BIN is 15500.000000 Milli Seconds +BIN FILE loaded through zynqMP FPGA manager successfully -- cgit v1.2.3-54-g00ecf