Forum Discussion

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

PCI driver for DE5-net board on Windows7

I am trying to install DE5-net board from Terasic on windows 7. I followed the instructions on Altera OpenCL getting started guide and the OpenCL guide by terasic.

If I run the "aocl install" command, it gives this info:

"Device Node (hwid:PCI\VEc.....): does not exist and is not configured. Pre-installing"

Although the installation is completed successfully, I get a missing DLL error (WDAPI1100.dll) when I try to program the device. If I add the path to this DLL to the environment variable, I get the MMD ERROR: failed to scan for the PCI device.

I am able to flash the "hello_world" program using "aocl flash" command. But I can't program the "hello_world.aocx" file using the "aocl program" command.

It looks like a PCIe driver issue to me. I have tried re-installing the drivers after uninstalling the anti-virus also but it didn't help. I also contacted Terasic but they so far they are also not able to figure out the problem.

Any help would be appreciated.

9 Replies

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

    What version of the Altera SDK for OpenCL are you using? All I can think about off the top of my head is copying that DLL file to C:\Windows\System32 and trying one more time (although I think this is equivalent to adding that DLL file to your path). Can you try running "aocl diagnose" and then "aocl diagnose acl0" as well?

    Since "aocl install" just calls the board vendor's driver installation files and works for other vendors, it sounds something Terasic may just need more time to troubleshoot on their end.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I did copy the dll now. Still the similar error.

    If I run the "aocl diagnose" or "aocl diagnose acl0", I get the following error

    C:\altera\14.1\hld\board\terasic\tests\hello_world>aocl diagnose

    aocl diagnose: Running diagnostic from C:\altera\14.1\hld\board\terasic\de5net/w

    indows64/libexec

    Verified that the kernel mode driver is installed on the host machine.

    Using board package from vendor: Terasic Technologies

    Querying information for all supported devices that are installed on the host ma

    chine ...

    MMD ERROR: failed to scan for the PCI device.

    Found no active device installed on the host machine.

    Please make sure to:

    1. Set the environment variable AOCL_BOARD_PACKAGE_ROOT to the correct boa

    rd package.

    2. Install the driver from the selected board package.

    3. Properly install the device in the host machine.

    4. Configure the device with a supported OpenCL design.

    5. Reboot the machine if the PCI Express link failed.

    DIAGNOSTIC_FAILED

    C:\altera\14.1\hld\board\terasic\tests\hello_world>aocl diagnose acl0

    aocl diagnose: Running diagnostic from C:\altera\14.1\hld\board\terasic\de5net/w

    indows64/libexec

    Verified that the kernel mode driver is installed on the host machine.

    MMD ERROR: failed to scan for the PCI device.

    Using platform: Altera SDK for OpenCL

    Failed clGetDeviceIDs.

    Error code: -1

    Verified that the kernel mode driver is installed on the host machine.

    MMD ERROR: failed to scan for the PCI device.

    Using platform: Altera SDK for OpenCL

    Failed clGetDeviceIDs.

    Error code: -1

    aocl diagnose: failed.

    I get this error if I try to run aocl install now. Earlier it was not able to find the device:

    +------------------------------------------------------+

    + Installing kernel driver module... +

    +------------------------------------------------------+

    WDREG utility v11.00. Build Feb 27 2012 14:45:04

    Processing HWID *WINDRVR6

    Installing a signed driver package for *WINDRVR6

    CM_Get_DevNode_Status ret value 0, status 180200b, problem 0

    LOG ok: 1, ENTER: DriverPackageInstallA

    LOG ok: 1, ENTER: DriverPackageInstallW

    LOG ok: 1, Looking for Model Section [DeviceList.NTamd64]...

    LOG ok: 1, Installing INF file 'C:\altera\14.1\hld\board\terasic\de5net\windows6

    4\driver\windrvr6.inf' (Plug and Play).

    LOG ok: 1, Looking for Model Section [DeviceList.NTamd64]...

    LOG ok: 1, Installing devices with Id "*WINDRVR6" using INF "C:\Windows\System32

    \DriverStore\FileRepository\windrvr6.inf_amd64_neutral_c28ab21bf526a086\windrvr6

    .inf".

    LOG ok: 1, Will force install because driver is not better and force flag is set

    .

    LOG ok: 1, ENTER UpdateDriverForPlugAndPlayDevices...

    LOG ok: 0, RETURN UpdateDriverForPlugAndPlayDevices.

    LOG ok: 1, Installation was successful.

    LOG ok: 0, Install completed

    LOG ok: 1, RETURN: DriverPackageInstallW (0x0)

    LOG ok: 1, RETURN: DriverPackageInstallA (0x0)

    difx_install_preinstall_inf: err 0, last event 0, last error 0. SUCCESS

    install: completed successfully

    +------------------------------------------------------+

    + Installing board drivers... +

    +------------------------------------------------------+

    WDREG utility v11.00. Build Feb 27 2012 14:45:04

    Processing HWID PCI\VEN_1172&DEV_AB00&SUBSYS_00041172&REV_01

    Installing a non-signed driver package for PCI\VEN_1172&DEV_AB00&SUBSYS_00041172

    &REV_01

    Device node (hwid:PCI\VEN_1172&DEV_AB00&SUBSYS_00041172&REV_01): exists and is c

    onfigured. Installing.

    Error: Failed to install the INF file (C:\altera\14.1\hld\board\terasic\de5net\w

    indows64\driver\acl_boards.inf)

    CM_Get_DevNode_Status ret value 0, status 1802400, problem 1c

    LOG ok: 1, ENTER: DriverPackageInstallA

    LOG ok: 1, ENTER: DriverPackageInstallW

    LOG ok: 2, DRIVER_PACKAGE_LEGACY_MODE flag set but not supported on Plug and Pla

    y driver on VISTA. Flag will be ignored.

    LOG ok: 1, Looking for Model Section [DeviceList.NTamd64]...

    LOG ok: 1, Installing INF file 'C:\altera\14.1\hld\board\terasic\de5net\windows6

    4\driver\acl_boards.inf' (Plug and Play).

    LOG ok: 1, Looking for Model Section [DeviceList.NTamd64]...

    LOG ok: 1, Installing devices with Id "PCI\VEN_1172&DEV_AB00&SUBSYS_00041172&REV

    _01" using INF "C:\Windows\System32\DriverStore\FileRepository\acl_boards.inf_am

    d64_neutral_3393fe1978a41ba4\acl_boards.inf".

    LOG ok: 1, ENTER UpdateDriverForPlugAndPlayDevices...

    LOG ERROR(3): error e0000206, RETURN UpdateDriverForPlugAndPlayDevices.

    LOG ERROR(3): error e0000206, Installation failed.

    LOG ERROR(3): error e0000206, PnP Install failed.

    LOG ok: 1, Attempting to rollback ...

    LOG ok: 1, No devices to rollback

    LOG ok: 1, RETURN: DriverPackageInstallW (0xE0000206)

    LOG ok: 1, RETURN: DriverPackageInstallA (0xE0000206)

    difx_install_preinstall_inf: err e0000206, last event 3, last error e0000206. U

    NKNOWN

    Error: Failed trying to install the driver

    aocl install: failed.

    ----------------------------------------------------------------------

    Thank you for your reply.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    I am facing similar issues with my DE5-net boards. I was able to install the drivers using "aocl install". I can even see the device as Altera FPGA Accelerator 13.0. I also compiled hello_world.cl for de5 board and executed successfully "aocl flash acl0 hello_world.aocx".

    But upon executing "aocl program acl0 hello_world.aocx", I am getting the following error:

    "The application was unable to start correctly(0xc000007b). Click OK to close the application".

    I get the same error message when I execute "aocl diagnose".

    Has anyone faced/solved this issue. Any pointers towards solving would be a great help. I have been stuck with this issue since a long time. I have tried a lot of ways and even the contacted the Terasic support team.

    Thanks a lot in advance.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    1. Set the environment variable AOCL_BOARD_PACKAGE_ROOT to the correct boa

    rd package.

    2. Install the driver from the selected board package.

    3. Properly install the device in the host machine.

    4. Configure the device with a supported OpenCL design.

    5. Reboot the machine if the PCI Express link failed.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I have the same problem with DE5a-Net board on Windows 10. Has anyone found a fix for this problem?

    Found fix for my problem. Windows driver problems fixed by the following;

    1) disable driver signature enforcement

    2) open device manager, and update driver for unknown PCI device

    3) location of driver %AOCL_BOARD_PACKAGE_ROOT%\windows64\drivers

    4) install driver

    Now aocl diagnose works for me :)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Now aocl diagnose works for me :)

    --- Quote End ---

    Caveat... not working after running the Fan Control Demonstration test_ub2.bat (to reduce noise levels in the office).

    Is there an incompatibility in programming with JTAG, and using aocl commands?

    I shall investigate further, any assistance welcome.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello all,

    I want to know if there is any possible way to get PCI driver for DE5-net on LINUX??. That will help me alot.

    I found there is many reference designs connecting PCI to DDR3 and using PCI linux driver but NOT On DE5-net.

    My another question: is there any way to connect PCI to DDR3 on DE5-net ? I tried different ways but No success!

    Thanks,

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

    The DE5-Net OpenCL BSP comes with a PCI-E driver for both Windows and Linux. Furthermore, PCI-E and DDR3 and every other necessary IP core already exist in the BSP. However, that is just for using with OpenCL. If you are not using OpenCL, I recommend seeking help in other sections of the forum.