Forum Discussion

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

Nallatech OpenCL BSPs - troubleshooter

Hi,

this article is aimed at addressing errors that users sometimes run into when using or installing the Altera OpenCL SDK and Nallatech 385/395 OpenCL Board Support Package (BSP).

There are 4 sections in this article:

  • SECTION 1 - Nallatech 385/395 BSP Installation
  • SECTION 2 - aocl utilities Issues
  • SECTION 3 - Compiling Issues with aoc compiler
  • SECTION 4 - Running host code

Feel free to post updates below and I will update this article with new content.

Thanks,

Gigi

Edits:

  • 10/01/2014 - Add clarifications about permissions issue (scripts in libexec folder must have +x permissions)
  • 10/01/2014 - Add Q_3-3 & its solution
  • 10/03/2014 - Add Q_2-5 & its solution
  • 10/20/2014 - Add Q_4-2, Q_4-3, Q_4-4 & their solutions
  • 10/30/2014 - Add Q_2-6 & its solution

20 Replies

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

    Hi

    I set up the environment variables .

    But it is still showed that no board supports : (((

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

    Hi

    Can you browse to:

    <hld_location>/board/nalla_pcie/linux64/libexec

    And run the "ls -l" command and post the results here.

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

    Hi

    I typed the command "ls -l"

    32 -rw-rw-r--. 1 30636 Jul 19 13:06 diagnostic

    12 -rw-rw-r--. 1 10949 Jul 19 13:06 flash

    4 -rw-rw-r--. 1 1569 Jul 19 13:06 install

    12 -rw-rw-r--. 1 10431 Jul 19 13:06 reprogram

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

    Hi

    These files all need execution permissions.

    You can manually add execution permissions to these files or you can reinstall the BSP making sure you (1) erase the current install of the 'nalla_pcie' folder & then (2) mount the installation iso with "mount -o loop nalla_aocl_bsp_q14_0.iso /mnt/temp".

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

    Hi

    I can use aocl install

    But I typed the " aocl flash acl0 base.aocx " , error message happened as shown

    """

    This shouldn't happen: 6ee4c670-6bf3-4db4-872e-fb383606a7e3

    Error: dd00cd6b-c947-40ff-95a0-41bcf30dcc31

    device_id = 0x4

    Unrecognised card type, so can't instantiate appropriate Flash/UFM/UCD classes!

    Start to Flash the device acl0 ...

    MMD INFO : [acl0] Reprogramming device through Flash with RBF file...

    aocl flash: Program failed.

    """""

    The board problem I have been post early (about lspci)

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

    Hi,

    The BSP version that was used to create the file in flash must match the BSP version that you have installed on the host.

    You need to update the flash with the base.aocx file for the BSP you have installed on your host.

    Because you can't use the software utilities at this point (because of the firmware mismatch), you will need to update the flash via JTAG.

    1. Power the host down

    2. Connect USB-Blaster REV-C to 385 board and host

    3. Connect the USB cable to the host

    4. Power up the host

    5. When in OS, browse to BSP location; for example: /opt/altera/15.0/hld/boards/nalla_pcie/hardware/p385_hpc_a7

    6. Run the perl script to update the flash: "perl flash_recovery.pl base.aocx"

    7. This will take around 20min, when finished power down the host (a reboot will not be enough)

    8. Power up the host

    9. When in OS, run "aocl diagnose acl0" to verify everything is OK

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

    Hi gigi, i need to say thanks in behalf of the rest of the guys in the forum.. you really making such a comprehensive open CL FAQ. even this is a bit older version, i guess this is quite a good reference as well may applicable to newer version. Perhaps. Maybe the admin can consider to place this somewhere :D

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

    ./lin_installer.exe: error loading shared libraries: libssl.so.10

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

    What OS are you using?

    Are you running the ./setup_linux.sh script ?

    Thanks

    G