APF9328 APF27 APF51 OPOS6UL SP FPGA configuration: Difference between revisions
From ArmadeusWiki
m (KevinJ moved page APF9328,APF27,APF51 FPGA configuration to APF9328 APF27 APF51 FPGA configuration) |
No edit summary |
||
| Line 9: | Line 9: | ||
{{Warning | For APF51, please use binary format '''.bin''', bitstream format '''.bit''' doesn't work.}} | {{Warning | For APF51, please use binary format '''.bin''', bitstream format '''.bit''' doesn't work.}} | ||
== Configuring from uBoot == | |||
{{Warning| for the APF9328, please check that your bitfile size is smaller than the firmware partition size (256KB) before trying the following commands or you may corrupt your Linux kernel FLASH partition !!!}} | |||
{{Note | For the APF51 and U-Boot versions earlier than 2013.04, only binary file format ('''.bin''') can be used; do not try '''.bit''' file. <br> For the APF51 and U-Boot versions 2013.04 or later you can also use .bit files with the U-Boot command: <pre class="apf"> BIOS> fpga loadb </pre>}} | |||
* Load FPGA firmware image file with U-Boot through Ethernet: | |||
<pre class="apf"> | |||
BIOS> tftpboot ${loadaddr} fpgafirmware.bin | |||
</pre> | |||
''fpgafirmware.bin'' is of course the name of your bitfile stored in your TFTP shared directory (''/tftpboot/'') | |||
then you can type the c command to reconnect to the terminal | |||
* Test your new FPGA firmware's downloading: | |||
** for .bin binary files <pre class="apf">BIOS> fpga load 0 ${loadaddr} ${filesize}</pre> | |||
** for .bit binary files <pre class="apf">BIOS> fpga loadb 0 ${loadaddr} ${filesize}</pre> | |||
* For your convenience a set of U-Boot script to facilitate firmware management with the APF boards: | |||
** ''download_firmware'': assuming your firmware is in /tftpboot and name apfXX-firmware.bin (where apfXX is the name of your board apf27, apf51, apf9328..) will download the firmware in RAM with the command: run download_firmware | |||
** ''flash_firmware'': save the previously downloaded firmware from RAM into the flash. | |||
** ''update_firmware'': will execute the previous 2 scripts in sequence. | |||
** ''load_firmware'': read a firmware from the flash (there is dedication partition named firmware for this purpose) and load it into the FPGA. | |||
Revision as of 13:15, 3 October 2025
Configuring from Linux
Please use the FPGA loader linux driver.
Configuring from uBoot
- Load FPGA firmware image file with U-Boot through Ethernet:
BIOS> tftpboot ${loadaddr} fpgafirmware.bin
fpgafirmware.bin is of course the name of your bitfile stored in your TFTP shared directory (/tftpboot/)
then you can type the c command to reconnect to the terminal
- Test your new FPGA firmware's downloading:
- for .bin binary files
BIOS> fpga load 0 ${loadaddr} ${filesize} - for .bit binary files
BIOS> fpga loadb 0 ${loadaddr} ${filesize}
- for .bin binary files
- For your convenience a set of U-Boot script to facilitate firmware management with the APF boards:
- download_firmware: assuming your firmware is in /tftpboot and name apfXX-firmware.bin (where apfXX is the name of your board apf27, apf51, apf9328..) will download the firmware in RAM with the command: run download_firmware
- flash_firmware: save the previously downloaded firmware from RAM into the flash.
- update_firmware: will execute the previous 2 scripts in sequence.
- load_firmware: read a firmware from the flash (there is dedication partition named firmware for this purpose) and load it into the FPGA.