(1) 上記URLのダウンロードセンターから、 AOCL-16.1.0.196-linux をダウンロードしてください。(およそ21GBytesあります)
(2) RedHawk7.2用パッチ(
intelFPGA_driver.patch)をダウンロードしておいてください。
(3) 下記手順で作業を行ってください。(以下の例では、 /home/intelFPGA/下にインストールしています。)
# cd /root/Downloads
# tar xvf AOCL-16.1.0.196-linux.tar
# ll
合計 21379716
-rw-r--r-- 1 root root 21819719680 7月 27 17:18 AOCL-16.1.0.196-linux.tar
drwxr-xr-x 2 root root 4096 7月 27 17:30 components
-rw-r--r-- 1 3490 200 7474 3月 10 12:05 readme.txt
-rwxrwxrwx 1 3490 200 2884 3月 10 12:05 setup.sh
-rwxrwxrwx 1 3490 200 2877 3月 10 12:05 setup_pro.sh
# cd components/
# ll
合計 21308308
-rwxr-xr-x 1 3490 200 420601828 10月 26 2016 AOCLSetup-16.1.0.196-linux.run
-rwxr-xr-x 1 3490 200 2524607114 3月 9 09:44 QuartusProSetup-16.1.0.196-linux.run
-rwxr-xr-x 1 3490 200 2843020246 3月 9 09:25 QuartusSetup-16.1.0.196-linux.run
-rw-r--r-- 1 3490 200 3185122130 10月 26 2016 arria10_part1-16.1.0.196.qdz
-rw-r--r-- 1 3490 200 3879099003 10月 26 2016 arria10_part2-16.1.0.196.qdz
-rw-r--r-- 1 3490 200 3241624891 10月 26 2016 arria10_part3-16.1.0.196.qdz
-rw-r--r-- 1 3490 200 1412844756 10月 26 2016 arriav-16.1.0.196.qdz
-rw-r--r-- 1 3490 200 1227344304 10月 26 2016 cyclonev-16.1.0.196.qdz
-rw-r--r-- 1 root root 429 7月 27 17:30 memo.txt
-rw-r--r-- 1 3490 200 3085425517 10月 26 2016 stratixv-16.1.0.196.qdz
# cd ..
# ./setup.sh
# ./setup_pro.sh
# export ALTERAOCLSDKROOT=/home/intelFPGA/16.1/hld
# /home/intelFPGA/16.1/hld/bin/aocl version
aocl 16.1.0.196 (Intel(R) FPGA SDK for OpenCL(TM), Version 16.1.0 Build 196, Copyright (C) 2016 Intel Corporation)
# cd /usr/src/linux-4.1.27RedHawk7.2.2/
# # ./ccur-config -c -n
Note: Do not use the -c option for building a new kernel;
it should only be used for building driver modules.
Autodetected currently running kernel flavor: trace
Using configuration: configs/x86_64/trace
Make invocation arguments: 'REDHAWKFLAVOR=-trace'
Backing up existing .config to .config.bak
Cleaning source tree...
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
SYSTBL arch/x86/syscalls/../include/generated/asm/syscalls_32.h
SYSHDR arch/x86/syscalls/../include/generated/asm/unistd_32_ia32.h
SYSHDR arch/x86/syscalls/../include/generated/asm/unistd_64_x32.h
SYSTBL arch/x86/syscalls/../include/generated/asm/syscalls_64.h
SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h
SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_64.h
SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_x32.h
HOSTCC scripts/basic/bin2c
HOSTCC arch/x86/tools/relocs_32.o
HOSTCC arch/x86/tools/relocs_64.o
HOSTCC arch/x86/tools/relocs_common.o
HOSTLD arch/x86/tools/relocs
CHK include/config/kernel.release
UPD include/config/kernel.release
WRAP arch/x86/include/generated/asm/clkdev.h
WRAP arch/x86/include/generated/asm/cputime.h
WRAP arch/x86/include/generated/asm/dma-contiguous.h
WRAP arch/x86/include/generated/asm/early_ioremap.h
WRAP arch/x86/include/generated/asm/mcs_spinlock.h
WRAP arch/x86/include/generated/asm/scatterlist.h
CHK include/generated/uapi/linux/version.h
UPD include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
CC arch/x86/purgatory/purgatory.o
AS arch/x86/purgatory/stack.o
AS arch/x86/purgatory/setup-x86_64.o
CC arch/x86/purgatory/sha256.o
AS arch/x86/purgatory/entry64.o
CC arch/x86/purgatory/string.o
LD arch/x86/purgatory/purgatory.ro
BIN2C arch/x86/purgatory/kexec-purgatory.c
CC kernel/bounds.s
CHK include/generated/bounds.h
UPD include/generated/bounds.h
CC arch/x86/kernel/asm-offsets.s
CHK include/generated/asm-offsets.h
UPD include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
Configuring version: 4.1.27-rt31-RedHawk-7.2.2-trace
Preparing configuration for a trace kernel...
Linking vmlinux to /boot/vmlinux-4.1.27-rt31-RedHawk-7.2.2-trace
Creating Module.symvers...
Note: Be sure to supply 'REDHAWKFLAVOR=-trace' on all subsequent
make invocations to build modules for the running kernel.
Configuration complete.
# cd /home/intelFPGA/16.1/hld/board/s5_ref/linux64/driver
# patch -p0 < intelFPGA_driver.patch
# ./make_all.sh
Using kernel source files from /lib/modules/4.1.27-rt31-RedHawk-7.2.2-trace/build
make: ディレクトリ `/usr/src/linux-4.1.27RedHawk7.2.2' に入ります
CC [M] /home/intelFPGA/16.1/hld/board/s5_ref/linux64/driver/aclpci_queue.o
CC [M] /home/intelFPGA/16.1/hld/board/s5_ref/linux64/driver/aclpci.o
CC [M] /home/intelFPGA/16.1/hld/board/s5_ref/linux64/driver/aclpci_fileio.o
CC [M] /home/intelFPGA/16.1/hld/board/s5_ref/linux64/driver/aclpci_dma.o
CC [M] /home/intelFPGA/16.1/hld/board/s5_ref/linux64/driver/aclpci_cvp.o
CC [M] /home/intelFPGA/16.1/hld/board/s5_ref/linux64/driver/aclpci_cmd.o
LD [M] /home/intelFPGA/16.1/hld/board/s5_ref/linux64/driver/aclpci_drv.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/intelFPGA/16.1/hld/board/s5_ref/linux64/driver/aclpci_drv.mod.o
LD [M] /home/intelFPGA/16.1/hld/board/s5_ref/linux64/driver/aclpci_drv.ko
# make -C /lib/modules/`uname -r`/build M=`pwd` clean
# /home/intelFPGA/16.1/hld/bin/aocl install
aocl install: Running install from /home/intelFPGA/16.1/hld/board/s5_ref/linux64/libexec
Using kernel source files from /lib/modules/4.1.27-rt31-RedHawk-7.2.2-trace/build
make: ディレクトリ `/usr/src/linux-4.1.27RedHawk7.2.2' に入ります
CC [M] /tmp/opencl_driver_bnMGxg/aclpci_queue.o
CC [M] /tmp/opencl_driver_bnMGxg/aclpci.o
CC [M] /tmp/opencl_driver_bnMGxg/aclpci_fileio.o
CC [M] /tmp/opencl_driver_bnMGxg/aclpci_dma.o
CC [M] /tmp/opencl_driver_bnMGxg/aclpci_cvp.o
CC [M] /tmp/opencl_driver_bnMGxg/aclpci_cmd.o
LD [M] /tmp/opencl_driver_bnMGxg/aclpci_drv.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/opencl_driver_bnMGxg/aclpci_drv.mod.o
LD [M] /tmp/opencl_driver_bnMGxg/aclpci_drv.ko
make: ディレクトリ `/usr/src/linux-4.1.27RedHawk7.2.2' から出ます
Warning: 'mmdlib' is not defined in /home/intelFPGA/16.1/hld/board/s5_ref/board_env.xml.
Unable to set up ACD. 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.