Forum Discussion
@MUsman Sorry for the delay in my response. I have been a little busy. Since my post, I have moved the board to a new machine which only has the board connected to it (no other openCL drivers are installed). After installing Quartus and the Intel FPGA OpenCL SDK (version 18.0) I started following the AN 807 steps to set up the board for OpenCL. Unlike the old machine where the Intel FPGA OpenCL SDK/drivers/runtime was working until we had to install the regular Intel OpenCL SDK (for GPU, AVX); I am now unable to get it to work at all on the new machine. here are the steps I've taken so far:
1. After verifying that the jtag is working by running jtagconfig and quartus_pgm -l, and after setting the jtag clock to 6M, I ran the following two commands:
- quartus_pgm -c 1 -m JTAG -o "p;max5_150.pof@2"
- quartus_pgm -c 1 -m JTAG -o “p;top.sof”
2. I performed a pcie bus rescan using the command that @SSFyTMT referred to in his earlier post, followed by an lspci but did not see the board in the pci list.
3. I performed a soft reboot and then ran lscpi but I still did not see the board in the list.
4. I tried to run aocl install, I think it succeeded and this is the output:
root@hpvmfpga:/srv/FPGA_Tools/a10_ref_initialization# aocl install
Do you want to install /opt/intelFPGA_pro/18.0/hld/board/a10_ref? [y/n] y
aocl install: Running install from /opt/intelFPGA_pro/18.0/hld/board/a10_ref/linux64/libexec
Looking for kernel source files in /lib/modules/4.15.0-34-generic/build
Using kernel source files from /lib/modules/4.15.0-34-generic/build
Building driver for BSP with name a10_ref
make: Entering directory '/usr/src/linux-headers-4.15.0-34-generic'
Makefile:976: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
CC [M] /tmp/opencl_driver_Foizmr/aclpci_queue.o
CC [M] /tmp/opencl_driver_Foizmr/aclpci.o
CC [M] /tmp/opencl_driver_Foizmr/aclpci_fileio.o
CC [M] /tmp/opencl_driver_Foizmr/aclpci_dma.o
CC [M] /tmp/opencl_driver_Foizmr/aclpci_pr.o
CC [M] /tmp/opencl_driver_Foizmr/aclpci_cmd.o
LD [M] /tmp/opencl_driver_Foizmr/aclpci_a10_ref_drv.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/opencl_driver_Foizmr/aclpci_a10_ref_drv.mod.o
LD [M] /tmp/opencl_driver_Foizmr/aclpci_a10_ref_drv.ko
make: Leaving directory '/usr/src/linux-headers-4.15.0-34-generic'5. After running aocl instal I ran aocl flash and the following error comes up:
root@hpvmfpga:/srv/FPGA_Tools/a10_ref_initialization# aocl flash acl0 ./boardtest.aocx
sh: 1: Syntax error: "(" unexpected
aocl flash - Initialize the FPGA with a specific startup configuration.
Usage: aocl flash <device_name> <file.aocx>
Supply the .aocx file for the design you wish to set as the default
configuration which is loaded on power up.
Description:
This command initializes the board with a default configuration
that is loaded onto the FPGA on power up. Not all boards will
support this, check with your board vendor documentation.6. Running lspci at this stage, still the board doesn't appear.
Any suggestions as to what might be the issue? I am running Ubuntu 16.04 by the way.