Forum Discussion
Case #: 00288368 - Unable to configure Arria 10 GX FPGA Development Kit for OpenCL
I am trying to configure our Intel Arria 10 GX FPGA Development Kit for use with the OpenCL SDK by following thefollowing guide. I am able to reach "Installing the OpenCL Runtime Driver - step 3". However, when I get to the point where I try to program the flash memory "Programming the Flash memory on the Intel Arria 10 GX FPGA Development Kit - step 1,b", aocl flash is unable to detect the device. This happened after I installed the Intel SDK for OpenCL Applications version 7.0.0 (note that we need the SDK because we also use GPUs in our development environment).
Note that even before I install the SDK for OpenCL Applications, I was having an issue configuring the Arria 10 Development Kit where when I get to the last step in the guide where it asks for a hard reboot of the machine, the board is not detected anymore by the OpenCL runtime after I perform the reboot. However this is a different issue which I think might not be relevent to the first part above. I do, however, feel that there might be a hardware issue with the board not being able to boot from the on-board flash.
Please we need to be able to resolve the first issue ASAP since our research depends on it. The second issue can be tackled later.
Copying here a known issue with Ubuntu 16.04 (kernel 4.14 or newer), just in case anyone land here searching on this.
25 Replies
- MuhammadAr_U_Intel
Contributor
Hi,
Please refer to the document below.
https://www.intel.com/content/www/us/en/programmable/documentation/tgy1490191698959.html
I believe the problem you are facing is mentioned as first two topics under "Troubleshooting"
--
Arslan
- MuhammadAr_U_Intel
Contributor
Copying here a known issue with Ubuntu 16.04 (kernel 4.14 or newer), just in case anyone land here searching on this.
- HRZ
Frequent Contributor
That step requires JTAG. If it cannot find the board, either your cable has a problem or your JTAG service is not working correctly. Try "quartus_pgm -a" to see if it detects the board. If not, kiill the jtagd service and run "quartus_pgm -a" again as root. Note that there is a long-standing issue with the jtag service that unless the first time quartus_pgm is called, it is called by the root account, the cable will never be detected.
- aejjeh
New Contributor
No this is not a JTAG issue. The JTAG server is able to detect and program the board (which happens in the first step of the setup guide. However, the opencl runtime seems to be not detecting the board as an opencl device, thus aocl flash is failing. I hope the people who were working on my case can please get in touch and resume helping me resolve the issue. This is pretty urgent for our research lab at the moment.
- HRZ
Frequent Contributor
If you think the problem is the run-time not detecting the board, then check "/etc/OpenCL/vendors/" and make sure that Altera.icd exists in that path. If not, copy it from the "hld" folder in your Quartus installation.
- aejjeh
New Contributor
The issue I'm facing is different from what is described in troubleshoot. I donot get a programming error. The issue is that when I run "aocl flash acl0 boardtest.aocx " after running "aocl install", I get the help message from aocl saying that the arguments are wrong. When I try to do "aocl diagnose" I get the following error:
Warning: No devices attached for package: /opt/intelFPGA_pro/18.0/hld/board/a10_ref --------------------------------------------------------------------Note that before we installed the Intel OpenCL SDK that issue didn't happen; I was able to run "aocl diagnose" and see the device listed after doing "aocl install". I hope this makes sense.
- MuhammadAr_U_Intel
Contributor
@aejjeh Can you share the console output after aocl install ? Did you see any Error.
Also to confirm you are using tool version 18.0 ?
- SSFyTMT
New Contributor
I have the nearly the same issue. I'm using tool version 17.1.2 on Ubuntu 16.04. I've also tried this under windows 7 using 17.1.2. But this issue is present from a fresh install.
Is it possible the JTAG'd FPGA image is being blown away in the "warm reboot" step. So that when the PCIe bus is re-enumerated - there is nothing to recognize? I've also tried to skip the warm reboot step and rescan the PCIe bus using "sudo bash -c 'echo 1 > /sys/bus/pci/rescan'" - still no luck getting aocl diagnose or aocl list-devices to recognize the board.
Any help on this issue? Any way to flash the device with the .aocx file through the Quartus GUI?
- SSFyTMT
New Contributor
I believe I was able to confirm that using /sbin/reboot or just restarting windows 7 does not blow way the FPGA that is configuring using quartus_pgm in the "Initializing the Intel Arria 10 GX FPGA Development Kit for use with OpenCL" steps of AN 807.
Basically I watched the behavior of the on board LEDs. From a cold boot they act very different than after the top.sof is programmed via jtag. After a reboot, they do NOT revert to the same behavior as after a cold reboot.
So now I'm stuck. Both in Windows 7 and in Ubuntu 16.04 I get to the "aocl flash boardtext.aocx" step and only get the help message like my arguments are wrong. At this point I have a $5,000 paper weight.
- MuhammadAr_U_Intel
Contributor
Correct with a soft reset also called (warm reboot) FPGA won't loose the configuration.
Can you share the console output log file from the "aocl install step until aocl flash and aocl diagnose" so we can further take a look.
Also confirm what version of OpenCL you are using?