Hi,
I only have access to a machine running ubuntu (and windows). Not other versions of linux available. And i prefer using ubuntu over windows. But I am having problems with the aocl driver in ubuntu. The boards works perfectly fine in windows. In ubuntu the aocl diagnose command runs successfully but the aocl flash command fails. The error says that the hardware cable is not connected. The usb blaster cable is connected and the board is listed in the output of the 'lsusb' command. So can you please tell me how to solve this driver issues?
output of aocl diagnose :
aocl diagnose: Running diagnostic from /home/johnspaul92/altera/14.1/hld/board/terasic/de5net/linux64/libexec
Verified that the kernel mode driver is installed on the host machine.
Using platform: Altera SDK for OpenCL
Using Device with name: de5net_a7 : Altera's Preferred Board
Using Device from vendor: Altera Corporation
clGetDeviceInfo CL_DEVICE_GLOBAL_MEM_SIZE = 4294967296
clGetDeviceInfo CL_DEVICE_MAX_MEM_ALLOC_SIZE = 4293918720
Memory consumed for internal use = 1048576
Actual maximum buffer size = 4293918720 bytes
Writing 4095 MB to global memory ...
Write speed: 1975.88 MB/s [1959.28 -> 1990.31]
Reading and verifying 4095 MB from global memory ...
Read speed: 2813.43 MB/s [2798.11 -> 2827.39]
Successfully wrote and readback 4095 MB buffer
Transferring 8192 KBs in 16 512 KB blocks ... 2009.26 MB/s
Transferring 8192 KBs in 8 1024 KB blocks ... 2546.06 MB/s
Transferring 8192 KBs in 4 2048 KB blocks ... 2742.12 MB/s
Transferring 8192 KBs in 2 4096 KB blocks ... 2580.77 MB/s
Transferring 8192 KBs in 1 8192 KB blocks ... 2701.07 MB/s
PCIe Gen2.0 peak speed: 500MB/s/lane
Writing 8192 KBs with block size (in bytes) below:
Block_Size Avg Max Min End-End (MB/s)
524288 1276.34 1396.63 1201.31 1236.97
1048576 1459.67 1780.07 1378.81 1441.02
2097152 1941.49 2053.72 1825.71 1936.21
4194304 1821.83 1883.68 1763.92 1819.59
8388608 1941.08 1941.08 1941.08 1941.08
Reading 8192 KBs with block size (in bytes) below:
Block_Size Avg Max Min End-End (MB/s)
524288 1744.30 2009.26 1588.37 1687.13
1048576 2424.19 2546.06 2344.27 2403.30
2097152 2693.70 2742.12 2656.59 2679.92
4194304 2506.41 2580.77 2436.22 2496.38
8388608 2701.07 2701.07 2701.07 2701.07
Write top speed = 2053.72 MB/s
Read top speed = 2742.12 MB/s
Throughput = 2397.92 MB/s
DIAGNOSTIC_PASSED
output of aocl flash :
aocl flash: Running flash from /home/johnspaul92/altera/14.1/hld/board/terasic/de5net/linux64/libexec
========================= Page Selection =========================
Please select the flash page where to store your FPGA configure data:
[0] Factory Image Location(Address 0x00040000), SW5.2 = "1" (Right Position)
[1] User Image Location(Address 0x020C0000), SW5.2 = "0" (Left Position)
Enter a digital number 0 or 1 (Or other values to exit the program) followed by pressing the "Enter" key:
1
Flash Programming...
Info: *******************************************************************
Info: Running Quartus II 64-Bit Convert_programming_file
Info: Version 14.1.0 Build 186 12/03/2014 Patches 0.19 SJ Full Version
Info: Copyright (C) 1991-2014 Altera Corporation. All rights reserved.
Info: Your use of Altera Corporation's design tools, logic functions
Info: and other software and tools, and its AMPP partner logic
Info: functions, and any output files from any of the foregoing
Info: (including device programming or simulation files), and any
Info: associated documentation or information are expressly subject
Info: to the terms and conditions of the Altera Program License
Info: Subscription Agreement, the Altera Quartus II License Agreement,
Info: the Altera MegaCore Function License Agreement, or other
Info: applicable license agreement, including, without limitation,
Info: that your use is for the sole purpose of programming logic
Info: devices manufactured by Altera and sold by Altera or its
Info: authorized distributors. Please refer to the applicable
Info: agreement for further details.
Info: Processing started: Tue Aug 25 11:07:47 2015
Info: Command: quartus_cpf --convert flash.cof
Inconsistency detected by
ld.so: dl-close.c: 762: _dl_close: Assertion `map->l_init_called' failed!
Info (210033): Memory Map File flash.map contains memory usage information for file flash.pof
Info: Quartus II 64-Bit Convert_programming_file was successful. 0 errors, 0 warnings
Info: Peak virtual memory: 884 megabytes
Info: Processing ended: Tue Aug 25 11:08:24 2015
Info: Elapsed time: 00:00:37
Info: Total CPU time (on all processors): 00:00:34
Error (213013): Programming hardware cable not detected
Error: quartus_pgm failed at /home/johnspaul92/altera/14.1/hld/board/terasic/de5net/linux64/libexec/
flash.pl line 74, <STDIN> line 1.
aocl flash: Program failed.