网络驱动程序已更新 - Linux 仍在加载旧驱动程序版本

网络驱动程序已更新 - Linux 仍在加载旧驱动程序版本

我最近更新了一台服务器的 bnx2 网络驱动程序。如果我显示有关该模块的信息,它会正确显示新版本,2.0.23b

modinfo bnx2

filename:       /lib/modules/2.6.32-5-amd64/kernel/drivers/net/bnx2.ko
version:        2.0.23b
license:        GPL
description:    Broadcom NetXtreme II BCM5706/5708/5709/5716 Driver
author:         Michael Chan <[email protected]>
srcversion:     6E0DD070AB24C11F50B2712
alias:          pci:v000014E4d0000163Csv*sd*bc*sc*i*
alias:          pci:v000014E4d0000163Bsv*sd*bc*sc*i*
alias:          pci:v000014E4d0000163Asv*sd*bc*sc*i*
alias:          pci:v000014E4d00001639sv*sd*bc*sc*i*
alias:          pci:v000014E4d000016ACsv*sd*bc*sc*i*
alias:          pci:v000014E4d000016AAsv*sd*bc*sc*i*
alias:          pci:v000014E4d000016AAsv0000103Csd00003102bc*sc*i*
alias:          pci:v000014E4d0000164Csv*sd*bc*sc*i*
alias:          pci:v000014E4d0000164Asv*sd*bc*sc*i*
alias:          pci:v000014E4d0000164Asv0000103Csd00003106bc*sc*i*
alias:          pci:v000014E4d0000164Asv0000103Csd00003101bc*sc*i*
depends:        
vermagic:       2.6.32-5-amd64 SMP mod_unload modversions 
parm:           disable_msi:Disable Message Signaled Interrupt (MSI) (int)
parm:           stop_on_tx_timeout:For debugging purposes, prevent a chip  reset when a tx timeout occurs (int)

但如果我使用 ethtool 显示版本信息,它会显示旧版本2.0.2

ethtool -i eth0
driver: bnx2
version: 2.0.2
firmware-version: 5.0.11 NCSI 2.0.5
bus-info: 0000:01:00.0

/lib/modules/2.6.32-5-amd64/kernel/drivers/net/bnx2.ko该文件只有一个位置存在bnx2.ko,那就是新版本 2.0.23b。

/var/log/messages可以看到旧的驱动程序已被加载:

...
Oct 14 15:22:02 localhost kernel: [    0.827101] Broadcom NetXtreme II Gigabit Ethernet Driver bnx2 v2.0.2 (Aug 21, 2009)
Oct 14 15:22:02 localhost kernel: [    0.827139] bnx2 0000:01:00.0: PCI INT A -> GSI 36 (level, low) -> IRQ 36
Oct 14 15:22:02 localhost kernel: [    0.827283] bnx2 0000:01:00.0: firmware: requesting bnx2/bnx2-mips-09-5.0.0.j3.fw
Oct 14 15:22:02 localhost kernel: [    0.829565] bnx2 0000:01:00.0: firmware: requesting bnx2/bnx2-rv2p-09-5.0.0.j3.fw
Oct 14 15:22:02 localhost kernel: [    0.832217] eth0: Broadcom NetXtreme II BCM5716 1000Base-T (C0) PCI Express found at mem da000000, IRQ 36, node addr a4:ba:db:43:b1:53
Oct 14 15:22:02 localhost kernel: [    0.832250] bnx2 0000:01:00.1: PCI INT B -> GSI 48 (level, low) -> IRQ 48
Oct 14 15:22:02 localhost kernel: [    0.832373] bnx2 0000:01:00.1: firmware: requesting bnx2/bnx2-mips-09-5.0.0.j3.fw
Oct 14 15:22:02 localhost kernel: [    0.834499] bnx2 0000:01:00.1: firmware: requesting bnx2/bnx2-rv2p-09-5.0.0.j3.fw
...

有任何想法系统仍然从哪里获取旧驱动程序吗?

答案1

您可能需要运行 depmod 来使用任何新模块更新模块依赖关系图:

#depmod -a

dpkg-reconfigure linux-image-2.6.32-5-amd64运行也需要解决方案。

相关内容