APF6 SP FPGA configuration: Difference between revisions

From ArmadeusWiki
No edit summary
Line 3: Line 3:


== Configuring from Linux ==
== Configuring from Linux ==
# Load ''periph.rbf'' [[Target_Software_Installation#APF6_SP | to the FPGA from U-Boot]]
# Load ''periph.rbf'' [[Target_Software_Installation#APF6_SP | to the FPGA from U-Boot]]
# Use the [[FPGA_loader | FPGA loader linux driver]] to load ''core.rbf''
# Use the [[FPGA_loader | FPGA loader linux driver]] to load ''core.rbf''


{{Note| On '''APF6_SP''', the command load_fpga work only throught PCIe, see [[PCIe fpga load]] to know how it works}}
{{Note| On '''APF6_SP''', the command load_fpga work only throught PCIe, see [[PCIe fpga load]] to know how it works}}
== Configuring from U-Boot ==
=== APF6_SP ===
* To «autoload» your firmware while U-Boot is starting, simply add your bitstream to your rootfs, for example :
<pre class="apf">
/lib/firmware/fpga/firmware.periph.rbf
</pre>
{{Note| By default, directory /lib/firmware/fpga doesn't exists, then simply create it with <pre class="apf"># mkdir /lib/firmware/fpga</pre>}}
* Then reboot under U-Boot and configure your environment variables '''firmware_autoload''' and '''firmware_path''' :
<pre class="apf">
BIOS> setenv firmware_path /lib/firmware/fpga/firmware.periph.rbf
BIOS> setenv firmware_autoload 1
</pre>
* Do not forget to save your environment variables:
<pre class="apf">
BIOS> saveenv
</pre>
* That's all, now your bitstream will be loaded with U-Boot at boot:
<pre class="apf">
U-Boot SPL 2014.07 (Apr 23 2015 - 16:16:45)
U-Boot 2014.07 (Apr 23 2015 - 16:16:45)
[...]
39688 bytes read in 260 ms (148.4 KiB/s)
Hit any key to stop autoboot:  0
</pre>

Revision as of 15:05, 3 October 2025


Configuring from Linux

  1. Load periph.rbf to the FPGA from U-Boot
  2. Use the FPGA loader linux driver to load core.rbf
Note Note: On APF6_SP, the command load_fpga work only throught PCIe, see PCIe fpga load to know how it works


Configuring from U-Boot

APF6_SP

  • To «autoload» your firmware while U-Boot is starting, simply add your bitstream to your rootfs, for example :
/lib/firmware/fpga/firmware.periph.rbf
Note Note: By default, directory /lib/firmware/fpga doesn't exists, then simply create it with
# mkdir /lib/firmware/fpga


  • Then reboot under U-Boot and configure your environment variables firmware_autoload and firmware_path :
BIOS> setenv firmware_path /lib/firmware/fpga/firmware.periph.rbf
BIOS> setenv firmware_autoload 1
  • Do not forget to save your environment variables:
BIOS> saveenv
  • That's all, now your bitstream will be loaded with U-Boot at boot:
U-Boot SPL 2014.07 (Apr 23 2015 - 16:16:45)

U-Boot 2014.07 (Apr 23 2015 - 16:16:45)

[...]

39688 bytes read in 260 ms (148.4 KiB/s)
Hit any key to stop autoboot:  0