Forum Discussion
I'm using 17.1.2.304 as reported by aocl version on Ubuntu 16.04
From Ubuntu 16.04 "aocl install" run with sudo:
aocl install: Running install from /home/user/intelFPGA_pro/17.1/hld/board/a10_ref/linux6/libexec
/home/user/intelFPGA_pro/17.1/hld/board/a10_ref/linux64/libexec/install: 9: [: aclpci_a10_ref_drv: unexpected operator
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'
CC [M] /tmp/opencl_driver_fon1Cy/aclpci_queue.o
CC [M] /tmp/opencl_driver_fon1Cy/aclpci.o
CC [M] /tmp/opencl_driver_fon1Cy/aclpci_fileio.o
CC [M] /tmp/opencl_driver_fon1Cy/aclpci_dma.o
CC [M] /tmp/opencl_driver_fon1Cy/aclpci_pr.o
CC [M] /tmp/opencl_driver_fon1Cy/aclpci_cmd.o
LD [M] /tmp/opencl_driver_fon1Cy/aclpci_a10_ref_drv.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/opencl_driver_fon1Cy/aclpci_a10_ref_drv.mod.o
LD [M] /tmp/opencl_driver_fon1Cy/aclpci_a10_ref_drv.ko
make: Leaving directory '/usr/src/linux-headers-4.15.0-34-generic'
*********
If you notice the unexpected operator error at line 9 of install, I've traced that to the piece of code below. The uninstall script gives the same error, but I don't think it's causing any issues as the MODULE_NAME is being built correctly and it's just the check that's failing.
********
BSP_NAME=`aocl board-name`
MODULE_NAME=aclpci_$BSP_NAME\_drv
if [ "$MODULE_NAME" == "aclpci__drv" ]
then
echo Failed to determine BSP name
exit 1
fi
***********
aocl flash is exactly the same as Windows 7 - just the help printout.