Altera_Forum
Honored Contributor
11 years agoNallatech 385 OpenCL BSP - Update from 13.1 to 14.0
Hi,
In order to update your board from 13.1 to 14.0 you will need to:- Install the Altera Quartus-II 14.0 / Altera OpenCL SDK 14.0 Tools
- Set up your environment variables to use Altera Tools 14.0 only
- Install the 14.0 Nallatech 385 OpenCL BSP
- Update the 385 on-board flash with an aocx compiled with the 14.0 Altera Tools / 14.0 Nallatech BSP
- Only run host application which load 14.0 aocx file
1- install the altera quartus-ii 14.0 / altera opencl sdk 14.0 tools You must install all 3 elements highlighted in the image attached (link at the bottom of article):
- quartus ii software (includes nios ii eds)
- stratix v device support (includes all variations)
- altera sdk for opencl (standalone installer)
- alteraoclsdkroot
- path
- ld_library_path (Linux only)
- lm_license_file
- quartus_rootdir
# aocl version
aocl 14.0.200 (Altera Runtime Environment for OpenCL, Version 14.0 Build 200, Copyright (C) 2014 Altera Corporation)
Also, check that the license has been set up correctly: - the LM_LICENSE_FILE environment variable must be set with the full path to the license file and the license file name itself (it is not good enough to just put the path the license file in the License Manager “License file:” (file:///\\”) field) - if the license file was generated with a MAC address it must be eth0's MAC address (http://altera.us/support/kdb/solutions/rd06112013_373.html) - OpenCL license does not appear in License Manager list but that is to be expected 3- install the 14.0 nallatech 385 opencl bsp Unlike for previous versions of the Altera OpenCL SDK, the 385 Board Support Package for OpenCL is not included within the OpenCL SDK installer and you must obtain the BSP from Nallatech. First, you will need to contact Nallatech to obtain a license file to install your Nallatech 14.0 OpenCL BSP, go to: http://www.nallatech.com/opencl-bsp.html Go to the request link at the bottom of the page. Nallatech will ask for some information about the board and the MAC address of the Quartus-II Build PC. Nallatech can provide a get_mac application to help customers identify which MAC address for a given host is used by the license tool. If using the get_mac application to determine your MAC address, make sure the network device is enabled. Then, when you receive your license file, rename it to nalla_lic.dat place it in the directory set in environment variable ALTERAOCLSDKROOT You will also receive an email providing you access to the Nallatech Support Lounge where you can download the OpenCL BSP iso. Nallatech strongly advise to always verify the download was successful by verifying the md5 checksum of the iso with the md5sum command in Linux or other methods. If you are having trouble using the Support Lounge, contact Nallatech for an alternative download method. In Linux, make sure to use the mount command with the following options only - permission might be altered if using other options: mount -o loop nalla_aocl_bsp_q14_0.iso /mnt/temp For example, in CentOS 6, a right-click on the ISO file and then selecting the "Mount" menu is not acceptable and will result in a faulty installation. When running the installer, the license string should be detected automatically; if not, you can type (or paste it) in the installer field. During installation make sure that the network device of which you provided Nallatech the MAC address to generate your BSP license is enabled. Installer dependencies include: openssl, openssl.i686 & openssl-devel You might have to run: yum install openssl Finally: - add $ALTERAOCLSDKROOT/board/nalla_pcie/linux64/lib to LD_LIBRARY_PATH
- set AOCL_BOARD_PACKAGE_ROOT to $ALTERAOCLSDKROOT/board/nalla_pcie
- aocl install
- aoc –-list-boards
- aocl diagnostic
- aocl diagnose acl0
FAILED to read auto-discovery string at byte 16: Expected version is 13, found 11 You will need to: - Rebuild a design with the 14.0 setup; for example: "aoc –v –-board pcie385_a7 vectorAdd.cl"; this might take several hours
- Connect your programming cable to the board - when the board is not powered (instructions for 385 board: http://www.alteraforum.com/forum/attachment.php?attachmentid=8908&d=1400634781) - For redhat users please refer to: http://www.altera.com/download/drivers/dri-usb_b-lnx.html
- Power the 385 host up (385 must be in the host, powered up. The USB-Blaster cable must be connected to the 385. The USB-Blaster must be connected to the computer you are running the "aocl flash ..." command from.)
- Make sure the USB-Blaster cable is connected to both the 385 and the computer on which you are running the "aocl flash..." command
- Reprogram the flash; for example: "aocl flash acl0 vector_add.aocx"
- Once the programming operation has finished (20min), power down the host (make sure all the LEDs on the 385 board)
- Power the host back up
When running a host application which loads an aocx file, make sure that aocx file has been compiled with the 14.0 flow (Quartus-II 14.0 / OpenCL SDK 14.0 / Nallatech OpenCL BSP 14.0). The aocx files compiled with previous versions of the tools will not work. Thanks, G -- edits history --
- 07/16/2014 - openssl-devel & openssl.i686 are not required
- 07/16/2014 - add LD_LIBRARY_PATH settings in step 3.
- 08/07/2014 - change "aocl diagnostic acl0" to "aocl diagnose acl0" | Add "aocl diagnostic" command
- 08/08/2014 - network device must be enabled during BSP installation
- 08/27/2014 - always check download with md5sum
- 09/23/2014 - Explain error message "FAILED to read auto-discovery string at byte 16: Expected version is 13, found 11" in section 4
- 09/25/2014 - Add mount options
- 09/30/2014 - LD_LIBRARY_PATH must include full path and license file name itself
- 10/01/2014 - Only program the flash once when updating BSP
- 10/01/2014 - 385 must be powered when running "aocl flash..."