Broadcom BCM5720 在 Ubuntu 20.04 服务器中无法工作

Broadcom BCM5720 在 Ubuntu 20.04 服务器中无法工作

我需要帮助,我可以设法获取我的戴尔 T420 的网卡(Broadcom BCM5720)

网络显示为“未认领”。我设法连接无线 USB 来获取互联网并尝试解决该问题,但我需要配置网卡。

我从戴尔下载了 QLogic_E3_Manual:https://dl.dell.com/FOLDER06268051M/1/QLogic_E3_Manual_External_End_User_35.07.00.11.zip 并且它说 BCM52XX 网卡的模块是 bnx 模块:bnx2、bnx2x、cnic、bnc2i 和 bnx2fc

我正在 modules.conf 中加载 bnx 模块

我正在寻找 bge 模数,但没有找到安装它的方法,考虑到这篇文章:http://manpages.ubuntu.com/manpages/bionic/man4/bge.4freebsd.html。但我不确定这个模块是不是我需要的。

有任何想法吗?

添加一些命令的输出:

root@emergente:~# uname -a
Linux emergente 5.4.0-26-generic #30-Ubuntu SMP Mon Apr 20 16:58:30 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

root@emergente:~# lshw -C network
  *-network:0 UNCLAIMED
       description: Ethernet controller
       product: NetXtreme BCM5720 2-port Gigabit Ethernet PCIe
       vendor: Broadcom Inc. and subsidiaries
       physical id: 0
       bus info: pci@0000:01:00.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pm vpd msi msix pciexpress cap_list
       configuration: latency=0
       resources: memory:d90a0000-d90affff memory:d90b0000-d90bffff memory:d90c0000-d90cffff memory:dd000000-dd0007ff
  *-network:1 UNCLAIMED
       description: Ethernet controller
       product: NetXtreme BCM5720 2-port Gigabit Ethernet PCIe
       vendor: Broadcom Inc. and subsidiaries
       physical id: 0.1
       bus info: pci@0000:01:00.1
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pm vpd msi msix pciexpress cap_list
       configuration: latency=0
       resources: memory:d90d0000-d90dffff memory:d90e0000-d90effff memory:d90f0000-d90fffff memory:dd000800-dd000fff
  *-usb:1
       description: Wireless interface
       product: WN7512BEP Wireless LAN adapter
       vendor: Arcadyan
       physical id: 8
       bus info: usb@2:1.8
       logical name: wlxac1826809bac
       version: 1.01
       serial: ac:18:26:80:9b:ac
       capabilities: usb-2.00 ethernet physical wireless
       configuration: broadcast=yes driver=rt2800usb driverversion=5.4.0-26-generic firmware=0.36 ip=192.168.1.251 link=yes maxpower=450mA multicast=yes speed=480Mbit/s wireless=IEEE 802.11


root@emergente:~#  lspci |grep net
01:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5720 2-port Gigabit Ethernet PCIe
01:00.1 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5720 2-port Gigabit Ethernet PCIe

root@emergente:~# ls /sys/class/net
lo  wlxac1826809bac

root@emergente:~# ifconfig -a
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 170  bytes 14775 (14.7 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 170  bytes 14775 (14.7 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlxac1826809bac: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.251  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::ae18:26ff:fe80:9bac  prefixlen 64  scopeid 0x20<link>
        ether ac:18:26:80:9b:ac  txqueuelen 1000  (Ethernet)
        RX packets 3783  bytes 669361 (669.3 KB)
        RX errors 0  dropped 14  overruns 0  frame 0
        TX packets 6283  bytes 7173986 (7.1 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


root@emergente:~# lsmod
Module                  Size  Used by
ccm                    20480  3
nls_iso8859_1          16384  1
dm_multipath           32768  0
scsi_dh_rdac           16384  0
scsi_dh_emc            16384  0
scsi_dh_alua           20480  0
intel_rapl_msr         20480  0
intel_rapl_common      24576  1 intel_rapl_msr
sb_edac                32768  0
x86_pkg_temp_thermal    20480  0
intel_powerclamp       20480  0
ipmi_ssif              36864  0
coretemp               20480  0
rt2800usb              32768  0
rt2x00usb              24576  1 rt2800usb
rt2800lib             131072  1 rt2800usb
rt2x00lib              61440  3 rt2800usb,rt2x00usb,rt2800lib
kvm_intel             286720  0
mac80211              843776  3 rt2x00lib,rt2x00usb,rt2800lib
kvm                   663552  1 kvm_intel
cfg80211              704512  2 rt2x00lib,mac80211
intel_cstate           20480  0
dcdbas                 20480  0
libarc4                16384  1 mac80211
input_leds             16384  0
joydev                 24576  0
intel_rapl_perf        20480  0
mei_me                 40960  0
mei                   106496  1 mei_me
ipmi_si                65536  0
ipmi_devintf           20480  0
mac_hid                16384  0
ipmi_msghandler       106496  3 ipmi_devintf,ipmi_si,ipmi_ssif
acpi_power_meter       20480  0
sch_fq_codel           20480  5
bnx2fc                 94208  0
libfcoe                73728  1 bnx2fc
libfc                 131072  2 bnx2fc,libfcoe
scsi_transport_fc      61440  2 libfc,bnx2fc
cnic                   61440  1 bnx2fc
uio                    20480  1 cnic
bnx2x                 749568  0
mdio                   16384  1 bnx2x
bnx2                   81920  0
ip_tables              32768  0
x_tables               40960  1 ip_tables
autofs4                45056  2
btrfs                1249280  0
zstd_compress         167936  1 btrfs
raid10                 57344  0
raid456               155648  0
async_raid6_recov      24576  1 raid456
async_memcpy           20480  2 raid456,async_raid6_recov
async_pq               24576  2 raid456,async_raid6_recov
async_xor              20480  3 async_pq,raid456,async_raid6_recov
async_tx               20480  5 async_pq,async_memcpy,async_xor,raid456,async_raid6_recov
xor                    24576  2 async_xor,btrfs
raid6_pq              114688  4 async_pq,btrfs,raid456,async_raid6_recov
libcrc32c              16384  3 bnx2x,btrfs,raid456
raid1                  45056  0
raid0                  24576  0
multipath              20480  0
linear                 20480  0
crct10dif_pclmul       16384  1
mgag200                32768  0
crc32_pclmul           16384  0
drm_vram_helper        20480  1 mgag200
i2c_algo_bit           16384  1 mgag200
ttm                   106496  1 drm_vram_helper
hid_generic            16384  0
ghash_clmulni_intel    16384  0
drm_kms_helper        184320  3 mgag200
syscopyarea            16384  1 drm_kms_helper
aesni_intel           372736  2
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
crypto_simd            16384  1 aesni_intel
usbhid                 57344  0
uas                    28672  0
cryptd                 24576  2 crypto_simd,ghash_clmulni_intel
ahci                   40960  0
hid                   131072  2 usbhid,hid_generic
glue_helper            16384  1 aesni_intel
usb_storage            77824  1 uas
drm                   491520  5 drm_kms_helper,drm_vram_helper,mgag200,ttm
lpc_ich                24576  0
libahci                32768  1 ahci
tg3                   172032  0
megaraid_sas          163840  4
wmi                    32768  0

root@emergente:~# dmesg |grep QLogic
[    7.530596] bnx2x: QLogic 5771x/578xx 10/20-Gigabit Ethernet Driver bnx2x 1.713.36-0 (2014/02/10)
[    7.568020] cnic: QLogic cnicDriver v2.5.22 (July 20, 2015)
[    7.723639] bnx2fc: QLogic FCoE Driver bnx2fc v2.12.10 (October 15, 2015)

root@emergente:~# more /etc/modules-load.d/modules.conf
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
bnx2
bnx2x
cnic
bnc2i
bnx2fc



root@emergente:~$ lspci -nnk | grep 0200 -A3
01:00.0 Ethernet controller [0200]: Broadcom Inc. and subsidiaries NetXtreme BCM5720 2-port Gigabit Ethernet PCIe [14e4:165f]
        DeviceName: NIC1
        Subsystem: Broadcom Inc. and subsidiaries NetXtreme BCM5720 2-port Gigabit Ethernet PCIe [14e4:165f]
        Kernel modules: tg3
01:00.1 Ethernet controller [0200]: Broadcom Inc. and subsidiaries NetXtreme BCM5720 2-port Gigabit Ethernet PCIe [14e4:165f]
        DeviceName: NIC2
        Subsystem: Broadcom Inc. and subsidiaries NetXtreme BCM5720 2-port Gigabit Ethernet PCIe [14e4:165f]
        Kernel modules: tg3

olver@emergente:~$ sudo modprobe tg3
olver@emergente:~$


olver@emergente:~$ dmesg | grep tg3
[    1.417559] tg3.c:v3.137 (May 11, 2014)
[    1.437058] tg3 0000:01:00.0: phy probe failed, err -19
[    1.573417] tg3 0000:01:00.0: VPD access failed.  This is likely a firmware bug on this device.  Contact the card vendor for a firmware update
[    1.639121] tg3 0000:01:00.0: Problem fetching invariants of chip, aborting
[    1.913546] tg3 0000:01:00.1: phy probe failed, err -19
[    2.045464] tg3 0000:01:00.1: VPD access failed.  This is likely a firmware bug on this device.  Contact the card vendor for a firmware update
[    2.045656] tg3 0000:01:00.1: Problem fetching invariants of chip, aborting

更新1:

olver@emergente:~$ sudo modprobe tg3 && dmesg | grep tg3
[sudo] password for olver:
[    1.417559] tg3.c:v3.137 (May 11, 2014)
[    1.437058] tg3 0000:01:00.0: phy probe failed, err -19
[    1.573417] tg3 0000:01:00.0: VPD access failed.  This is likely a firmware bug on this device.  Contact the card vendor for a firmware update
[    1.639121] tg3 0000:01:00.0: Problem fetching invariants of chip, aborting
[    1.913546] tg3 0000:01:00.1: phy probe failed, err -19
[    2.045464] tg3 0000:01:00.1: VPD access failed.  This is likely a firmware bug on this device.  Contact the card vendor for a firmware update
[    2.045656] tg3 0000:01:00.1: Problem fetching invariants of chip, aborting
[259674.731634] tg3.c:v3.137 (May 11, 2014)
[259674.741732] tg3 0000:01:00.0: phy probe failed, err -19
[259674.741929] tg3 0000:01:00.0: Problem fetching invariants of chip, aborting
[259674.753716] tg3 0000:01:00.1: phy probe failed, err -19
[259674.754227] tg3 0000:01:00.1: Problem fetching invariants of chip, aborting
[356350.395520] tg3.c:v3.137 (May 11, 2014)
[356350.409101] tg3 0000:01:00.0: phy probe failed, err -19
[356350.409278] tg3 0000:01:00.0: Problem fetching invariants of chip, aborting
[356350.425109] tg3 0000:01:00.1: phy probe failed, err -19
[356350.425610] tg3 0000:01:00.1: Problem fetching invariants of chip, aborting

在@chili555的帮助下,我知道 tg3 驱动程序无法正常工作,我尝试了一些方法以使网卡与其他模块一起工作,但没有成功。我尝试了以下命令:

modprobe -r broadcom
modprobe -r tg3
modprobe broadcom
modprobe tg3

但是网卡仍然无人认领,并且 lspci -nnk | grep 0200 -A3 继续显示 tg3 模块作为内核模块,即使在 modprobe -r tg3 之后也是如此。

现在我按照@kyodake 的建议升级到了 5.4.0-47-generic 内核

答案1

我也遇到了同样的问题。相应的驱动程序 bnx2 是 linux-modules-extra 软件包的一部分,该软件包在我的服务器上被意外删除;bnx2x 和 tg3 位于 linux-modules 中。如果您有其他网络方式,请尝试下载 linux-modules-extra 软件包,或者您可以启动 live-usb 来添加它。

答案2

当我第一次遇到这个问题时,这个答案帮助了我:安装 Broadcom 无线驱动程序- 下次我勾选安装第三方软件的框,然后驱动程序就安装好了,我就可以连接到网络了

答案3

尝试这个:

sudo apt update

sudo apt dist-upgrade

sudo service fwupd start

sudo fwupdmgr refresh

sudo fwupdmgr update

相关内容