Showing results for 
Search instead for 
Did you mean: 

Arria 10 aocl diagnose error

I am attempting to install OpenVINO version 2019.1.1for Linux with FPGA on an Ubuntu 16.04 machine with an Arria 10 FPGA per the configuration guide.
I got through step 2 from the guide and successfully programmed the card such that it now appears in the output of lspci -v, shown below:

82:00.0 Processing accelerators: Altera Corporation Device 2494 (rev 01) (prog-if 01)
	Subsystem: Altera Corporation Device a151
	Physical Slot: 4
	Flags: bus master, fast devsel, latency 0, IRQ 33
	Memory at fbd40000 (64-bit, prefetchable) [size=512]
	Memory at fbd00000 (64-bit, prefetchable) [size=256K]
	Capabilities: [50] MSI: Enable- Count=1/4 Maskable- 64bit+
	Capabilities: [78] Power Management version 3
	Capabilities: [80] Express Endpoint, MSI 00
	Capabilities: [100] Virtual Channel
	Capabilities: [200] Vendor Specific Information: ID=1172 Rev=0 Len=044 <?>
	Capabilities: [300] #19
	Kernel driver in use: aclpci_a10_ref
	Kernel modules: altera_cvp, aclpci_a10_ref_drv



Next, running aocl install is successful, with output shown below:


root@AUTODRIVE-BOLT:/media/autodrive/Crystal_SSD2/FPGA_Files/fpga_support_files# source 
Adding to Path (OpenVINO AOCL)
INTELFPGAOCLSDKROOT is set to /opt/altera/aocl-pro-rte/aclrte-linux64. Using that.

aoc was not found, but aocl was found. Assuming only RTE is installed.

AOCL_BOARD_PACKAGE_ROOT is set to /opt/altera/aocl-pro-rte/aclrte-linux64/board/a10_ref. Using that.
Adding /opt/altera/aocl-pro-rte/aclrte-linux64/bin to PATH
Adding /opt/altera/aocl-pro-rte/aclrte-linux64/host/linux64/lib to LD_LIBRARY_PATH
Adding /opt/altera/aocl-pro-rte/aclrte-linux64/board/a10_ref/linux64/lib to LD_LIBRARY_PATH
[] OpenVINO environment initialized

root@AUTODRIVE-BOLT:/media/autodrive/Crystal_SSD2/FPGA_Files/fpga_support_files# aocl install
Do you want to install /opt/altera/aocl-pro-rte/aclrte-linux64/board/a10_ref? [y/n] y
aocl install: Adding the board package /opt/altera/aocl-pro-rte/aclrte-linux64/board/a10_ref to the list of installed pckages
aocl install: Setting up FCD
aocl install: Running install from /opt/altera/aocl-pro-rte/aclrte-linux64/board/a10_ref/linux64/libexec
Looking for kernel source files in /lib/modules/4.15.0-50-generic/build
Using kernel source files from  /lib/modules/4.15.0-50-generic/build
Building driver for BSP with name a10_ref
make: Entering directory '/usr/src/linux-headers-4.15.0-50-generic'
  CC   /tmp/opencl_driver_WLHMjN/aclpci_queue.o
  CC   /tmp/opencl_driver_WLHMjN/aclpci.o
  CC   /tmp/opencl_driver_WLHMjN/aclpci_fileio.o
  CC   /tmp/opencl_driver_WLHMjN/aclpci_dma.o
  CC   /tmp/opencl_driver_WLHMjN/aclpci_pr.o
  CC   /tmp/opencl_driver_WLHMjN/aclpci_cmd.o
  LD   /tmp/opencl_driver_WLHMjN/aclpci_a10_ref_drv.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/opencl_driver_WLHMjN/aclpci_a10_ref_drv.mod.o
  LD   /tmp/opencl_driver_WLHMjN/aclpci_a10_ref_drv.ko
make: Leaving directory '/usr/src/linux-headers-4.15.0-50-generic'



However, aocl diagnose fails, with the following output: 


autodrive@AUTODRIVE-BOLT:/media/autodrive/Crystal_SSD2/FPGA_Files/fpga_support_files$ aocl diagnose
No devices attached for package:
Vendor: Intel(R) Corporation
MMD INFO : [acla10_ref0] uniphy(s) did not calibrate.  Expected 0 but read 2
MMD INFO :      If there are more failures than Uniphy controllers connected, 
MMD INFO :      ensure the uniphy_status core is correctly parameterized.

Phys Dev Name  Status   Information
acla10_ref0   Failed   Board name not available.
                       Failed initial tests, so not working as expected.
                       Please try again after reprogramming the device.

Found no active device installed on the host machine.

Please make sure to: 
      1. Set the environment variable AOCL_BOARD_PACKAGE_ROOT to the correct board package.
      2. Install the driver from the selected board package.
      3. Properly install the device in the host machine.
      4. Configure the device with a supported OpenCL design.
      5. Reboot the machine if the PCI Express link failed.


Call "aocl diagnose <device-names>" to run diagnose for specified devices
Call "aocl diagnose all" to run diagnose for all devices


I would  greatly appreciate any help in understanding how to properly set up this FPGA for use with OpenVINO.

0 Kudos
0 Replies