Moti_Tawil
New Contributor
5 months agoAgilex 7 dk_si_agi027fa FPGA issue
Hello.
My name is Moti. I am working on a project with agilex 7 that requires me to create a driver to communicate with the FPGA registers of agilex 7 dk_si_agi027fa.
The first step was to build GSRD for this board. We followed the instructions in this page:
We flashed the results (u-boot, fs and linux images) to an sd card, and I was able to bring up linux on the board with a sample driver (that works properly).
Unfortunately, I wasn't able to communicate with any fpga registers.
The following output:
root@MiWiFi-RA80-srv:~# cat /sys/class/fpga_manager/fpga0/state
unknown
leads us to understand that the .rbf file wasn't loaded properly, and needs to be loaded into the board.
(state "unknown" means fpga is not configured -> probably because the .rbf file wasn't loaded).
we want to ask:
- Is that the correct next step?
- I am using agilex7_dk_si_agi027fa_gsrd_ghrd.core.rbf as mentioned in GSRD - is that the correct one?
- how do I load the .rbf? i tried following instructions from the web - copied it to the sd card and ran the following command, but I keep receiving "error 4":
SOCFPGA_AGILEX # fatload mmc 0:1 0x2000000 agilex7_dk_si_agi027fa_gsrd_ghrd.core.rbf
1658880 bytes read in 77 ms (20.5 MiB/s)
SOCFPGA_AGILEX # fpga load 0 0x2000000 ${filesize}
..
U-Boot SMC: Error sending bitstream! SDM: Config status: (0xf0040000) SDM Err: Bitstream element not understood. Internal error. Catchall Error. Command 'load' failed: Error 4
I also noticed fpga fails to load during boot and the errors seem similar to the ones i get when i try to manually load the .rbf file:
## Loading fpga from FIT Image at 02000000 ...
Trying 'fpga-4' fpga subimage
Description: FPGA bitstream for GHRD
Type: FPGA Image
Compression: uncompressed
Data Start: 0x0297e764
Data Size: 1658880 Bytes = 1.6 MiB
Load Address: 0x0a000000
Hash algo: crc32
Hash value: 654d6710
Verifying Hash Integrity ... crc32+ OK
Loading fpga from 0x0297e764 to 0x0a000000
..
U-Boot SMC: Error sending bitstream!
SDM: Config status: (0xf0040000)
SDM Err: Bitstream element not understood. Internal error.
Catchall Error.
..
U-Boot SMC: Error sending bitstream!
SDM: Config status: (0xf0040000)
SDM Err: Bitstream element not understood. Internal error.
Catchall Error.
FPGA image is corrupted or invalid
Trying 'fpga-4' fpga subimage
Description: FPGA bitstream for GHRD
Type: FPGA Image
Compression: uncompressed
Data Start: 0x0297e764
Data Size: 1658880 Bytes = 1.6 MiB
Load Address: 0x0a000000
Hash algo: crc32
Hash value: 654d6710
Verifying Hash Integrity ... crc32+ OK
Loading fpga from 0x0297e764 to 0x0a000000
..
U-Boot SMC: Error sending bitstream!
SDM: Config status: (0xf0040000)
SDM Err: Bitstream element not understood. Internal error.
Catchall Error.
..
U-Boot SMC: Error sending bitstream!
SDM: Config status: (0xf0040000)
SDM Err: Bitstream element not understood. Internal error.
Catchall Error.
FPGA image is corrupted or invalid
Your assistance on the above will be much appreciated.
Thanks.