首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何安装新的网络适配器驱动程序?

如何安装新的网络适配器驱动程序?
EN

Ask Ubuntu用户
提问于 2019-11-10 13:30:53
回答 1查看 2.2K关注 0票数 0

我有ubuntu服务器18.04.3,并通过导航到ixgbe/src文件夹并运行,试图为我的新的X550-10g-T1网络适配器卡安装ixgbe 5.6.3驱动程序。

代码语言:javascript
复制
make install

我犯了一大堆错误,我不知道这意味着什么

代码语言:javascript
复制
below:make[1]: Entering directory '/usr/src/linux-headers-5.3.9-050309-generic'
  CC [M]  /home/jonathan/ixgbe-5.6.3/src/ixgbe_main.o
In file included from /home/jonathan/ixgbe-5.6.3/src/kcompat.h:68:0,
                 from /home/jonathan/ixgbe-5.6.3/src/ixgbe_osdep.h:17,
                 from /home/jonathan/ixgbe-5.6.3/src/ixgbe_type.h:45,
                 from /home/jonathan/ixgbe-5.6.3/src/ixgbe_dcb.h:7,
                 from /home/jonathan/ixgbe-5.6.3/src/ixgbe.h:24,
                 from /home/jonathan/ixgbe-5.6.3/src/ixgbe_main.c:31:
./include/generated/utsrelease.h:2:32: error: invalid digit "9" in octal constant
 #define UTS_UBUNTU_RELEASE_ABI 050309
                                ^
/home/jonathan/ixgbe-5.6.3/src/kcompat.h:814:5: note: in expansion of macro ‘UTS_UBUNTU_RELEASE_ABI’
 #if UTS_UBUNTU_RELEASE_ABI > 255
     ^~~~~~~~~~~~~~~~~~~~~~
./include/generated/utsrelease.h:2:32: error: invalid digit "9" in octal constant
 #define UTS_UBUNTU_RELEASE_ABI 050309
                                ^
/home/jonathan/ixgbe-5.6.3/src/kcompat.h:812:9: note: in expansion of macro ‘UTS_UBUNTU_RELEASE_ABI’
         UTS_UBUNTU_RELEASE_ABI)
         ^~~~~~~~~~~~~~~~~~~~~~
/home/jonathan/ixgbe-5.6.3/src/kcompat.h:5049:6: note: in expansion of macro ‘UBUNTU_VERSION_CODE’
 #if (UBUNTU_VERSION_CODE && UBUNTU_VERSION_CODE >= UBUNTU_VERSION(3,13,0,24))
      ^~~~~~~~~~~~~~~~~~~
./include/generated/utsrelease.h:2:32: error: invalid digit "9" in octal constant
 #define UTS_UBUNTU_RELEASE_ABI 050309
                                ^
/home/jonathan/ixgbe-5.6.3/src/kcompat.h:812:9: note: in expansion of macro ‘UTS_UBUNTU_RELEASE_ABI’
         UTS_UBUNTU_RELEASE_ABI)
         ^~~~~~~~~~~~~~~~~~~~~~
/home/jonathan/ixgbe-5.6.3/src/kcompat.h:5049:29: note: in expansion of macro ‘UBUNTU_VERSION_CODE’
 #if (UBUNTU_VERSION_CODE && UBUNTU_VERSION_CODE >= UBUNTU_VERSION(3,13,0,24))
                             ^~~~~~~~~~~~~~~~~~~
/home/jonathan/ixgbe-5.6.3/src/ixgbe_main.c:10990:12: warning: ‘struct tc_block_offload’ declared inside parameter list will not be visible outside of this definition or declaration
     struct tc_block_offload *f)
            ^~~~~~~~~~~~~~~~
/home/jonathan/ixgbe-5.6.3/src/ixgbe_main.c: In function ‘ixgbe_setup_tc_block’:
/home/jonathan/ixgbe-5.6.3/src/ixgbe_main.c:10994:7: error: dereferencing pointer to incomplete type ‘struct tc_block_offload’
  if (f->binder_type != TCF_BLOCK_BINDER_TYPE_CLSACT_INGRESS)
       ^~
/home/jonathan/ixgbe-5.6.3/src/ixgbe_main.c:10994:24: error: ‘TCF_BLOCK_BINDER_TYPE_CLSACT_INGRESS’ undeclared (first use in this function); did you mean ‘FLOW_BLOCK_BINDER_TYPE_CLSACT_INGRESS’?
  if (f->binder_type != TCF_BLOCK_BINDER_TYPE_CLSACT_INGRESS)
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                        FLOW_BLOCK_BINDER_TYPE_CLSACT_INGRESS
/home/jonathan/ixgbe-5.6.3/src/ixgbe_main.c:10994:24: note: each undeclared identifier is reported only once for each function it appears in
/home/jonathan/ixgbe-5.6.3/src/ixgbe_main.c:10998:7: error: ‘TC_BLOCK_BIND’ undeclared (first use in this function); did you mean ‘FLOW_BLOCK_BIND’?
  case TC_BLOCK_BIND:
       ^~~~~~~~~~~~~
       FLOW_BLOCK_BIND
/home/jonathan/ixgbe-5.6.3/src/ixgbe_main.c:10999:10: error: implicit declaration of function ‘tcf_block_cb_register’; did you mean ‘tc_indr_block_cb_register’?  -Werror=implicit-function-declaration]
   return tcf_block_cb_register(f->block, ixgbe_setup_tc_block_cb,
          ^~~~~~~~~~~~~~~~~~~~~
          tc_indr_block_cb_register
/home/jonathan/ixgbe-5.6.3/src/ixgbe_main.c:11005:7: error: ‘TC_BLOCK_UNBIND’ undeclared (first use in this function); did you mean ‘TC_BLOCK_BIND’?
  case TC_BLOCK_UNBIND:
       ^~~~~~~~~~~~~~~
       TC_BLOCK_BIND
/home/jonathan/ixgbe-5.6.3/src/ixgbe_main.c:11006:3: error: implicit declaration of function ‘tcf_block_cb_unregister’; did you mean ‘tc_indr_block_cb_unregister’? [-Werror=implicit-function-declaration]
   tcf_block_cb_unregister(f->block, ixgbe_setup_tc_block_cb,
   ^~~~~~~~~~~~~~~~~~~~~~~
   tc_indr_block_cb_unregister
/home/jonathan/ixgbe-5.6.3/src/ixgbe_main.c: At top level:
/home/jonathan/ixgbe-5.6.3/src/ixgbe_main.c:11878:22: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  .ndo_select_queue = ixgbe_select_queue,
                      ^~~~~~~~~~~~~~~~~~
/home/jonathan/ixgbe-5.6.3/src/ixgbe_main.c:11878:22: note: (near initialization for ‘ixgbe_netdev_ops.ndo_select_queue’)
/home/jonathan/ixgbe-5.6.3/src/ixgbe_main.c: In function ‘ixgbe_setup_tc_block’:
/home/jonathan/ixgbe-5.6.3/src/ixgbe_main.c:11012:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
cc1: some warnings being treated as errors
scripts/Makefile.build:280: recipe for target '/home/jonathan/ixgbe-5.6.3/src/ixgbe_main.o' failed
make[2]: *** [/home/jonathan/ixgbe-5.6.3/src/ixgbe_main.o] Error 1
Makefile:1626: recipe for target '_module_/home/jonathan/ixgbe-5.6.3/src' failed
make[1]: *** [_module_/home/jonathan/ixgbe-5.6.3/src] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.3.9-050309-generic'
Makefile:87: recipe for target 'default' failed
make: *** [default] Error 2

readMe告诉我要获取tar和un,然后进入src文件夹并执行make。

我的内核版本是5.3.9

编辑: ubuntu清楚地看到新安装的NIC,但不能使用它或安装驱动程序。

lspci -nnk \ grep 0200 -A3

代码语言:javascript
复制
jonathan@jonney-linux-server:~$ lspci -nnk | grep 0200 -A3
01:00.0 Ethernet controller [0200]: Intel Corporation Ethernet Controller 10G X550T [8086:15d1] (rev 01)
        Subsystem: Intel Corporation Ethernet Converged Network Adapter X550-T1 [8086:0002]
        Kernel driver in use: ixgbe
        Kernel modules: ixgbe
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 09)
        Subsystem: ASUSTeK Computer Inc. P8 series motherboard [1043:8505]
        Kernel driver in use: r8169
        Kernel modules: r8169

编辑:一些更多的日志请求。

https://drive.google.com/open?id=11r6SOjA1lHObAN28lk9XBHrU2lbKzDa0

对不起,我无法复制和粘贴文本,因为我现在正从ubuntu服务器本地直接运行这些命令(因为我无法通过ssh连接到新的以太网适配器,以便通过我的桌面操作系统机器在其上运行)

EN

回答 1

Ask Ubuntu用户

发布于 2019-11-10 21:50:17

啊,我让它开始工作了!

我将此添加到网络计划中,并删除了以前在我的旧网络设备上分配的静态ip,并且它工作了。

代码语言:javascript
复制
network:
    version: 2
    ethernets:
      enp0s3:
        dhcp4: yes
        dhcp6: yes
票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1187717

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档