Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
8 years ago

a10gx board installation on Linux system - errors

An a10gx board previously used on a Windows machine with a 16.1_pro package w/o any problems (installed, initialized (flash was programmed with 'acl0 boardtest.aocx', loaded and ran 'hello-world' and 'vector_addition') is now intended for use on a Linux machine with the 17.0 package, The variables on this Linux system are pretty standard:

QUARTUS_BASEDIR=/local/home/evgeniy/intelFPGA_pro/17.0/

QUARTUS_ROOTDIR=/local/home/evgeniy/intelFPGA_pro/17.0/quartus

QSYS_ROOTDIR=/local/home/evgeniy/intelFPGA_pro/17.0/qsys/bin

ALTERAOCLSDKROOT=/local/home/evgeniy/intelFPGA_pro/17.0/hld

AOCL_BOARD_PACKAGE_ROOT=/local/home/evgeniy/intelFPGA_pro/17.0/hld/board/a10_ref

PATH=$PATH:$QUARTUS_ROOTDIR:$QUARTUS_ROOTDIR/bin:$QSYS_ROOTDIR:$ALTERAOCLSDKROOT/bin:$AOCL_BOARD_PACKAGE_ROOT/linux64/lib

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ALTERAOCLSDKROOT/host/linux64/lib:$AOCL_BOARD_PACKAGE_ROOT/linux64/lib

The system is able to see the board with the 'aoc --list-boards' command. However, the installation with 'aocl install' fails. Please, see attached screenshot.

'aocl-diagnose' also fails.

Any suggestions?

Thank you!

12 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Back to a10gx installation. Got my RedHat 7.3 workstation. All variables, which worked in Ubuntu copied to this setup and edited accordingly. When running 'aocl install' getting the following:

    $ aocl install

    aocl install: Running install from /home/usd16869/intelFPGA_pro/17.0/hld/board/a10_ref/linux64/libexec

    Looking for kernel source files in /lib/modules/3.10.0-514.el7.x86_64/build

    Using kernel source files from /lib/modules/3.10.0-514.el7.x86_64/build

    Building driver for BSP with name a10_ref

    make: Entering directory `/usr/src/kernels/3.10.0-514.el7.x86_64'

    CC [M] /tmp/opencl_driver_0Vk6Yp/aclpci_queue.o

    CC [M] /tmp/opencl_driver_0Vk6Yp/aclpci.o

    CC [M] /tmp/opencl_driver_0Vk6Yp/aclpci_fileio.o

    CC [M] /tmp/opencl_driver_0Vk6Yp/aclpci_dma.o

    CC [M] /tmp/opencl_driver_0Vk6Yp/aclpci_pr.o

    CC [M] /tmp/opencl_driver_0Vk6Yp/aclpci_cmd.o

    LD [M] /tmp/opencl_driver_0Vk6Yp/aclpci_a10_ref_drv.o

    Building modules, stage 2.

    MODPOST 1 modules

    CC /tmp/opencl_driver_0Vk6Yp/aclpci_a10_ref_drv.mod.o

    LD [M] /tmp/opencl_driver_0Vk6Yp/aclpci_a10_ref_drv.ko

    make: Leaving directory `/usr/src/kernels/3.10.0-514.el7.x86_64'

    [sudo] password for usd16869:

    Couldn't create directory '/opt/Intel'

    ERROR: Permission denied

    Unable to set up FCD. Please contact your board vendor or see section "Linking Your Host Application to the Khronos ICD Loader Library" of the Programming Guide for instructions on manual setup.

    'aoc --list-boards' command sees the board.

    i tried to change permission to the entire 'intelFPGA_pro' directory tree, but got similar result. Also, as suggested in the aocl_programming_guide' edited the makefile in the board/a10_ref/source directory to include the following:

    AOCL_LDFLAGS=$(shell aocl ldflags)

    AOCL_LDLIBS=$(shell aocl ldlibs)

    host_prog : host_prog.o

    g++ -o host_prog host_prog.o $(AOCL_LDFLAGS) -lOpenCL $(AOCL_LDLIBS)

    Still the same error. What can be wrong now?

    Thanks!