Application Acceleration With FPGAs
Programmable Acceleration Cards (PACs), DCP, DLA, Software Stack, and Reference Designs
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
426 Discussions

./pac_hssi_e10: error while loading shared libraries: fpga_hssi.so: cannot open shared object file: No such file or directory when I was following the 10Gbps Ethernet Accelerator Functional Unit Design Example user guide

User1582192733150209
332 Views

Dear Sir/Madam,

 

I am having a software error issue when I was running the example based on the 10Gbps Ethernet Accelerator Functional Unit Design Example user guide.

error was this

./pac_hssi_e10: error while loading shared libraries: fpga_hssi.so: cannot open shared object file: No such file or directory.

 

I just list what I have done here ,any suggestion is welcome.

 

There are two PAC CARD inserted in my server

[root@fig01 bin]# ls -lrt /sys/class/fpga/intel-fpga-dev.*/

/sys/class/fpga/intel-fpga-dev.0/:

total 0

-rw-r--r--.  1 root root 4096 Feb 27 12:59 uevent

drwxr-xr-x. 12 root root    0 Feb 27 12:59 intel-fpga-fme.0

drwxr-xr-x.  4 root root    0 Feb 27 12:59 intel-fpga-port.0

lrwxrwxrwx.  1 root root    0 Feb 27 12:59 subsystem -> ../../../../../../class/fpga

drwxr-xr-x.  2 root root    0 Feb 27 13:00 power

lrwxrwxrwx.  1 root root    0 Feb 27 13:32 device -> ../../../0000:3b:00.0

 

/sys/class/fpga/intel-fpga-dev.1/:

total 0

-rw-r--r--.  1 root root 4096 Feb 27 12:59 uevent

drwxr-xr-x.  4 root root    0 Feb 27 12:59 intel-fpga-port.1

drwxr-xr-x. 12 root root    0 Feb 27 12:59 intel-fpga-fme.1

lrwxrwxrwx.  1 root root    0 Feb 27 12:59 subsystem -> ../../../../../../class/fpga

drwxr-xr-x.  2 root root    0 Feb 27 13:00 power

lrwxrwxrwx.  1 root root    0 Feb 27 13:32 device -> ../../../0000:d8:00.0

You have new mail in /var/spool/mail/root

 

Check further information including Pr Interface Id and BMC version

[root@fig01 bin]# fpgainfo fme

Board Management Controller, microconetroller FW version 26889

Last Power Down Cause: POK_CORE

Last Reset Cause: None

//****** FME ******//

Object Id                     : 0xED00001

PCIe s:b:d:f                  : 0000:D8:00:0

Device Id                     : 0x09C4

Socket Id                     : 0x00

Ports Num                     : 01

Bitstream Id                  : 0x123000200000185

Bitstream Version             : 0x562800030201

Pr Interface Id               : 69528db6-eb31-577a-8c36-68f9faa081f6

Board Management Controller, microcontroller FW version unavailable

Last Power Down Cause: unavailable

Last Reset Cause: unavailable (can't open)

//****** FME ******//

Object Id                     : 0xED00000

PCIe s:b:d:f                  : 0000:3B:00:0

Device Id                     : 0x09C4

Socket Id                     : 0x00

Ports Num                     : 01

Bitstream Id                  : 0x123000200000185

Bitstream Version             : 0x562800030201

Pr Interface Id               : 69528db6-eb31-577a-8c36-68f9faa081f6

Check hssi information as needed as below

root@fig01 sw]# ls /sys/class/fpga

intel-fpga-dev.0  intel-fpga-dev.1

[root@fig01 sw]# ls /sys/class/fpga/intel-fpga-dev.0/

device  intel-fpga-fme.0  intel-fpga-port.0  power  subsystem  uevent

[root@fig01 sw]# ls /sys/class/fpga/intel-fpga-dev.0/intel-fpga-fme.0/

altr-asmip2.0.auto  bitstream_id        cache_size  dperf   emif_mgmt  fpga_manager           modalias   power  revision   subsystem     uevent

avmmi-bmc.2.auto    bitstream_metadata  dev         driver  errors     intel-pac-hssi.1.auto  ports_num  pr     socket_id  thermal_mgmt  version

[root@fig01 sw]# ls /sys/class/fpga/intel-fpga-dev.1/

device  intel-fpga-fme.1  intel-fpga-port.1  power  subsystem  uevent

[root@fig01 sw]# ls /sys/class/fpga/intel-fpga-dev.1/intel-fpga-fme.1/

altr-asmip2.3.auto  bitstream_id        cache_size  dperf   emif_mgmt  fpga_manager           modalias   power  revision   subsystem     uevent

avmmi-bmc.5.auto    bitstream_metadata  dev         driver  errors     intel-pac-hssi.4.auto  ports_num  pr     socket_id  thermal_mgmt  version

 

So we can summary as below

PAC Card 0

3B:00:00

intel-fpga-dev.0

intel-fpga-fme.0

intel-fpga-port.0

intel-pac-hssi.1.auto

 

PAC Card 1

D8:00:00

intel-fpga-dev.1

intel-fpga-fme.1

intel-fpga-port.1

intel-pac-hssi.4.auto

 

and further operation will based on above information.

 

[root@fig01 build_synth]# sudo fpgaconf -B 0xd8 -D 0 -F 0 eth_e2e_e10.gbs 

[root@fig01 build_synth]# pwd

/root/inteldevstack/a10_gx_pac_ias_1_2_pv/hw/samples/eth_e2e_e10/build_synth

[root@fig01 build_synth]# cd ..

[root@fig01 eth_e2e_e10]# ls

bin build_synth hw README sw

[root@fig01 eth_e2e_e10]# cd sw

[root@fig01 sw]# make

make: Nothing to be done for 'all'.

the reason was I have done make before, but I can confirm relavant files was generated as below

make file.JPG

 

[root@fig01 sw]# sudo sh -c "echo 10 > /sys/class/fpga/intel-fpga-dev.1/intel-fpga-fme.1/intel-pac-hssi.4.auto/hssi_mgmt/config"

[root@fig01 sw]# sudo chmod 666 /dev/intel-fpga-port.1

[root@fig01 sw]# export LD_LIBRARY_PATH='pwd':$LD_LIBRARY_PATH

[root@fig01 sw]# ./pac_hssi_e10 -b 0xd8 -d 00 -f 00 --action=loopback_enable

./pac_hssi_e10: error while loading shared libraries: fpga_hssi.so: cannot open shared object file: No such file or directory

[root@fig01 sw]# 

 

would you please any other test I can try?

 

thanks

 

Jim

 

 

0 Kudos
3 Replies
JohnT_Intel
Employee
214 Views

Hi,

 

 

 

There is some issue on excuting "export LD_LIBRARY_PATH='pwd':$LD_LIBRARY_PATH" which the current directory is not added into the environment. Please use "export LD_LIBRARY_PATH=$(pwd):$LD_LIBRARY_PATH" which will fixed the issue.

User1582192733150209
214 Views

Hi JohnT,

 

Thanks for your suggestion and solution.

 

best Regard

 

JohnT_Intel
Employee
214 Views

Glad to be able to help you.

Reply