Forum Discussion
N3000 Sample Test: Native Loopback fail
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)
- https://www.intel.com/content/www/us/en/programmable/documentation/iyu1522005567196.html
- Follow the provided step, please let me know if you facing any problem.
What you have to do is the following
- cd sw_sample
- gcc -o hello_fpga -std=gnu99 -rdynamic -ljson-c -luuid -lpthread -lopae-c -lm -Wl,-rpath -lopae-c hello_fpga.c
- sudo sh -c "echo 20 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages"
- 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