Open zjuan22 opened 6 years ago
A couple questions:
# make all
or # make install
?# lsb_release -a
# gcc --version
I've tested with Ubuntu 14.04, kernel v4.13.8, and gcc 4.9.4. If you're using a newer version of Ubuntu or gcc, I'm wondering that would cause problems.Thanks for your fast response,
1) it fails in #make all, also in #make install. 2) Yes, we are in sudo user 3) We have ran: lsb_realease -a LSB Version: core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:printing-9.20160110ubuntu0.2-amd64:printing-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch Description: Ubuntu 16.04.4 LTS Codename: xenial 4) or version of is gcc 5.4.0.
We are using a newer version of Ubuntu. Do you recommend install ubuntu 14.04 to work with the Netfpga? There are other repos of sume_riffa driver in Github compatible with latest versions of Ubuntu?
Cheers,
Hi,
The sume_riffa driver may fail because the kernel API has changed recently. Try to modify the following lines in this file lib/sw/std/driver/sume_riffa_v1_0_0/sume_riffa.c and rebuild the driver.
@@ -849,7 +849,7 @@ sume_tx_timeout(struct net_device *netdev) }
/ Statistics. Everyone likes numbers. / -static struct rtnl_link_stats64 +static void sume_get_stats64(struct net_device netdev, struct rtnl_link_stats64 *storage) {
@@ -883,8 +883,6 @@ sume_get_stats64(struct net_device netdev, struct rtnl_link_stats64 storage) COPY_STAT(rx_compressed); COPY_STAT(tx_compressed);
Hi,
I get the following error when installing the SUME drivers. Is there anything that can be done?
Hi @mharris-t, I have the exact same issue. Did you find a solution? sume_riffa driver seems not to work with that kernel version.
@juraul1 Nope. I also basically faced the issue of NetFPGA not getting detected by my system's motherboard. And since only limited amount of motherboards detect NetFPGA, I had to scrap the idea of using it and went onto work with BMv2 unfortunately.
@juraul1
I recommend you to search this repository (link provided below). The repo owner documented the installation of NetFPGA. And some of the error messages can be queried in GitLab and you may find a solution to your issue. The repo helped me solve few of the issues I faced while installing SUME drivers. I am sorry that I cannot help you much, it's been some time since I finished my master's thesis and I do not remember much 😅
@mharris-t yeah I just checked, my motherboard unfortunately do not recognize the board either. Thanks for the answer and for the link! :)
We are following the P4-Netfga wiki tutorial (https://github.com/NetFPGA/P4-NetFPGA-public/wiki/Getting-Started). When we run the step 9) Build and load the SUME drivers. The console shows an error message as follow:
make -C /lib/modules/4.13.0-43-generic/build M=/home/weihen/workarea/netfpga/P4-NetFPGA/lib/sw/std/driver/sume_riffa_v1_0_0 modules make[1]: Entering directory '/usr/src/linux-headers-4.13.0-43-generic'
CC [M] /home/weihen/workarea/netfpga/P4-NetFPGA/lib/sw/std/driver/sume_riffa_v1_0_0/sume_riffa.o scripts/Makefile.build:323: recipe for target '/home/weihen/workarea/netfpga/P4-NetFPGA/lib/sw/std/driver/sume_riffa_v1_0_0/sume_riffa.o' fai led Makefile:1550: recipe for target 'module/home/weihen/workarea/netfpga/P4-NetFPGA/lib/sw/std/driver/sume_riffa_v1_0_0' failed make[1]: Leaving directory '/usr/src/linux-headers-4.13.0-43-generic'
Makefile:68: recipe for target 'modules' failed
Can you help us, please?