Forum Discussion

maxdd's avatar
maxdd
Icon for New Contributor rankNew Contributor
4 years ago

N3000 Sample Test: Native Loopback fail

I try to run Sample Test: Native Loopback by using 'sudo ./hello_fpga', but it gives error

Using OPAE C library version '1.3.7' build '81afe79'
Error no matching accelerator: not found

'lspci | grep acc' gives

08:00.0 Processing accelerators: Intel Corporation Device 0b30

I also try to use 'sudo ./hello_fpga -B 0x08' but it gives the same error.

Any idea on how to solve this? Thanks!

9 Replies

  • Wincent_Altera's avatar
    Wincent_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi,

    I might need the below info (PrintScreen will help)

    • rpm -qa | grep opae
      check the OPAE version, also to confirm the step is correct.

    The hello_fpga sample host application uses the OPAE library to test the hardware in native loopback mode (NLB).

    I would suggest referring back to session 7.2.1 at link below (for detailed setup)

    What you have to do is the following

    1. cd sw_sample
    2. gcc -o hello_fpga -std=gnu99 -rdynamic -ljson-c -luuid -lpthread -lopae-c -lm -Wl,-rpath -lopae-c hello_fpga.c
    3. sudo sh -c "echo 20 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages"
    4. sudo ./hello_fpga

    [guest@hw-rae-a3-l sw_sample]$ sudo ./hello_fpga

    Using OPAE C library version '1.3.3' build 'c6c0d9f'

    Running Test

    Running on bus 0x07.

    dfh = 100000008000001f

    id[0] = c000c9660d824272

    id[1] = 9aeffe5f84570612

    dfh = 2000000080000000

    id[0] = a9149a35bace01ea

    id[1] = ef82def7f6ec40fc

    dfh = 2000000080000000

    id[0] = a9149a35bace01ea

    id[1] = ef82def7f6ec40fc

    dfh = 2000000080000000

    id[0] = a9149a35bace01ea

    id[1] = ef82def7f6ec40fc

    dfh = 2000000080000000

    id[0] = a9149a35bace01ea

    id[1] = ef82def7f6ec40fc

    dfh = 1000010080001070

    id[0] = f89e433683f9040b

    id[1] = d8424dc4a4a3c413

    Found NLB0 at offset 0x28000

    Done Running Test

    Let me know if this helps.

    Regards,

    WeiChuan_C_Intel

    • maxdd's avatar
      maxdd
      Icon for New Contributor rankNew Contributor

      Thanks for the reply.

      When following the tutorial, I don't know what is this variable '$OPAE_PLATFORM_ROOT'. After installation, I only have two folders. Here is the folder structures. (I only show 2 levels)

      intelrtestack
      ├── bin
      │   ├── init_env.sh
      │   ├── sr_vista_rot_2x2x25-v1.3.16.bin
      │   └── sr_vista_rot_4x25G-v1.3.16.bin
      ├── src
      │   ├── opae-1.3.7-5
      │   ├── opae.admin-1.0.3
      │   ├── opae-intel-fpga-driver-2.0.1-10.src.rpm
      │   └── opae.pac_sign-1.0.4
      └── sw_sample
          └── hello_fpga.c
      
      inteldevstack
      ├── bin
      │   ├── sr_vista_rot_2x2x25-v1.3.16.bin
      │   └── sr_vista_rot_4x25G-v1.3.16.bin
      ├── intelFPGA_pro
      │   ├── devdata
      │   ├── ip
      │   ├── licenses
      │   ├── logs
      │   ├── nios2eds
      │   ├── qsys
      │   ├── quartus
      │   └── syscon
      ├── rtl
      │   └── n3000_1_3_v1.5.7
      └── src
          ├── opae-1.3.7-5
          ├── opae.admin-1.0.3
          ├── opae-intel-fpga-driver-2.0.1-10.src.rpm
          └── opae.pac_sign-1.0.4

      I am using 'N3000-2', the link you send me is for 'Intel Arria 10 GX FPGA', not for 'N3000-2', is that correct?

      Here is the output

      rpm -qa | grep opae
      opae-intel-fpga-driver-2.0.1-10.x86_64
      opae-libs-1.3.7-5.el7.x86_64
      opae-devel-1.3.7-5.el7.x86_64
      opae-tools-1.3.7-5.el7.x86_64
      opae-tools-extra-1.3.7-5.el7.x86_64
      opae.admin-1.0.3-2.el7.noarch
      opae.pac_sign-1.0.4-3.el7.x86_64
      • Wincent_Altera's avatar
        Wincent_Altera
        Icon for Regular Contributor rankRegular Contributor

        Hi Max,

        How about the test result of "fpgainfo fme" and "fpgabist" ?

        Apologize for wrong doc, can you please try out doc below

        Just want to ensure that the step is correct, please let me know if you are still unable to get it.

        Regards,

        WeiChuan_C_Intel