所需信息:

所需信息:

解决了!2014 年 1 月 1 日。(查看上次编辑)

我的 Win PC 主板的 PCI-EX 插槽坏了,所以我不得不把它换到我的 Ubuntu 盒子上。除了 NIC,其他一切都很好。我一直收到电缆拔出的消息。NIC 在 Win XP(双启动设置)中工作正常,所以它与硬件无关。Ubuntu 12.04 没有“看到板载 NIC Marvell 88E8056”。

我已经从 Marvel 下载并安装了 sk98lin 驱动程序模块。它显示为内核模块。但 Ubuntu 一直在加载旧的 sky2 驱动程序模块。我尝试将 sky2 模块“列入黑名单”,但它一直在加载它。

以下是相关的终端输出:

hans@hans-GA-78LMT-S2P:~$ lspci -k | grep -A5 Ethernet 
02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 20) 
    Subsystem: Foxconn International, Inc. Device 0e0a 
    Kernel driver in use: sky2 
    Kernel modules: sk98lin, sky2 

hans@hans-GA-78LMT-S2P:~$ ifconfig -a 
eth1      Link encap:Ethernet  HWaddr 00:1c:25:51:24:43  
          inet6 addr: fe80::21c:25ff:fe51:2443/64 Scope:Link 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:304 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:69952 (69.9 KB) 
          Interrupt:19 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0 
          inet6 addr: ::1/128 Scope:Host 
          UP LOOPBACK RUNNING  MTU:16436  Metric:1 
          RX packets:168 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:168 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:0 
          RX bytes:13344 (13.3 KB)  TX bytes:13344 (13.3 KB) 

有人能解决这个问题吗?如果有,请具体清楚。我接触电脑已经很长时间了(还记得打孔卡吗?),但对 Linux 类型的系统来说我是个菜鸟。

所需信息:

以下是 70 个持久网络规则文件的内容:

# This file was automatically generated by the /lib/udev/write_net_rules 
# program, run by the persistent-net-generator.rules rules file. 
# 
# You can modify it, as long as you keep each rule on a single 
# line, and change only the value of the NAME= key. 

# PCI device 0x1969:/sys/devices/pci0000:00/0000:00:06.0/0000:02:00.0 (atl1c) 
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="90:2b:34:ad:c3:22", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" 

# PCI device 0x11ab:/sys/devices/pci0000:00/0000:00:07.0/0000:02:00.0 (sky2) 
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1c:25:51:24:43", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" 

# PCI device 0x11ab:/sys/devices/pci0000:00/0000:00:07.0/0000:02:00.0 (sk98lin) 
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="sk98lin", ATTR{address}=="00:1c:25:51:24:43", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" 

# PCI device 0x11ab:/sys/devices/pci0000:00/0000:00:07.0/0000:02:00.0 (sky2) 
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1c:25:51:24:43", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

要求额外输出:

删除旧文件后,新自动生成的 70-persistant-net.rules 文件:

# This file was automatically generated by the /lib/udev/write_net_rules 
# program, run by the persistent-net-generator.rules rules file. 
# 
# You can modify it, as long as you keep each rule on a single 
# line, and change only the value of the NAME= key. 

# PCI device 0x11ab:/sys/devices/pci0000:00/0000:00:07.0/0000:02:00.0 (sky2) 
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1c:25:51:24:43", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

lsmod 和 modinfo:

hans@hans-GA-78LMT-S2P:~$ lsmod | grep "sk98\|sky" 
sky2                   59043  0 


hans@hans-GA-78LMT-S2P:~$ modinfo sky2 
filename:       /lib/modules/3.2.0-39-generic/kernel/drivers/net/ethernet/marvell/sky2.ko 
version:        1.30 
license:        GPL 
author:         Stephen Hemminger <[email protected]> 
description:    Marvell Yukon 2 Gigabit Ethernet driver 
srcversion:     973DE291F18F5911153FD7C 
alias:          pci:v000011ABd00004381sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004380sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004370sv*sd*bc*sc*i* 
alias:          pci:v000011ABd0000436Dsv*sd*bc*sc*i* 
alias:          pci:v000011ABd0000436Csv*sd*bc*sc*i* 
alias:          pci:v000011ABd0000436Bsv*sd*bc*sc*i* 
alias:          pci:v000011ABd0000436Asv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004369sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004368sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004367sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004366sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004365sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004364sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004363sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004362sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004361sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004360sv*sd*bc*sc*i* 
alias:          pci:v000011ABd0000435Asv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004357sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004356sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004355sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004354sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004353sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004352sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004351sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004350sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004347sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004346sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004345sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004344sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004343sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004342sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004341sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004340sv*sd*bc*sc*i* 
alias:          pci:v00001186d00004B03sv*sd*bc*sc*i* 
alias:          pci:v00001186d00004B02sv*sd*bc*sc*i* 
alias:          pci:v00001186d00004001sv*sd*bc*sc*i* 
alias:          pci:v00001186d00004B00sv*sd*bc*sc*i* 
alias:          pci:v00001148d00009E01sv*sd*bc*sc*i* 
alias:          pci:v00001148d00009E00sv*sd*bc*sc*i* 
alias:          pci:v00001148d00009000sv*sd*bc*sc*i* 
depends:        
intree:         Y 
vermagic:       3.2.0-39-generic SMP mod_unload modversions 
parm:           debug:Debug level (0=none,...,16=all) (int) 
parm:           copybreak:Receive copy threshold (int) 
parm:           disable_msi:Disable Message Signaled Interrupt (MSI) (int) 
parm:           legacy_pme:Legacy power management (int) 


hans@hans-GA-78LMT-S2P:~$ modinfo sk98lin 
filename:       /lib/modules/3.2.0-39-generic/kernel/drivers/net/ethernet/marvell/sk98lin.ko 
version:        10.93.3.3 
license:        GPL 
description:    Marvell/SysKonnect Yukon Ethernet Network Driver 
author:         Mirko Lindner <[email protected]> 
srcversion:     B6855C93810A36F7A9088B6 
alias:          pci:v000011ABd00005005sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004382sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004381sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004380sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004370sv*sd*bc*sc*i* 
alias:          pci:v000011ABd0000436Dsv*sd*bc*sc*i* 
alias:          pci:v000011ABd0000436Csv*sd*bc*sc*i* 
alias:          pci:v000011ABd0000436Bsv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004369sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004368sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004367sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004366sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004365sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004364sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004363sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004362sv*sd*bc*sc*i* 
alias:          pci:v000011ABd0000435Asv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004357sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004356sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004355sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004354sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004353sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004352sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004350sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004347sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004346sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004345sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004344sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004343sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004342sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004341sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004340sv*sd*bc*sc*i* 
alias:          pci:v000011ABd00004320sv*sd*bc*sc*i* 
alias:          pci:v00001186d00004C00sv*sd*bc*sc*i* 
alias:          pci:v00001186d00004B03sv*sd*bc*sc*i* 
alias:          pci:v00001186d00004B02sv*sd*bc*sc*i* 
alias:          pci:v00001186d00004B01sv*sd*bc*sc*i* 
alias:          pci:v00001186d00004001sv*sd*bc*sc*i* 
alias:          pci:v00001148d00009E01sv*sd*bc*sc*i* 
alias:          pci:v00001148d00009E00sv*sd*bc*sc*i* 
alias:          pci:v00001148d00009000sv*sd*bc*sc*i* 
alias:          pci:v00001148d00004320sv*sd*bc*sc*i* 
depends:        
vermagic:       3.2.0-39-generic SMP mod_unload modversions 
parm:           Speed_A:array of charp 
parm:           Speed_B:array of charp 
parm:           AutoNeg_A:array of charp 
parm:           AutoNeg_B:array of charp 
parm:           DupCap_A:array of charp 
parm:           DupCap_B:array of charp 
parm:           FlowCtrl_A:array of charp 
parm:           FlowCtrl_B:array of charp 
parm:           Role_A:array of charp 
parm:           Role_B:array of charp 
parm:           ConType:array of charp 
parm:           WolType:array of charp 
parm:           IntsPerSec:array of int 
parm:           Moderation:array of charp 
parm:           ModerationMask:array of charp 
parm:           LowLatency:array of charp 
parm:           TxModeration:array of int 
parm:           MsiIrq:array of charp 
parm:           RSS:array of charp 

十二月 04,

好的,到目前为止我明白了:

lspci -k | grep -A5 Ethernet 
02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 20) 
    Subsystem: Foxconn International, Inc. Device 0e0a 
    Kernel driver in use: sk98lin 
    Kernel modules: sk98lin, sky2 
03:06.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link) 
    Subsystem: Foxconn International, Inc. Device 0e0a 
hans@hans-GA-78LMT-S2P:~$ ifconfig -a 
eth0      Link encap:Ethernet  HWaddr 00:1c:25:51:24:43  
          inet6 addr: fe80::21c:25ff:fe51:2443/64 Scope:Link 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 
          RX packets:105 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:1000 
          RX bytes:7491 (7.4 KB)  TX bytes:188 (188.0 B) 
          Interrupt:42 Memory:fdcfc000-0 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0 
          inet6 addr: ::1/128 Scope:Host 
          UP LOOPBACK RUNNING  MTU:16436  Metric:1 
          RX packets:104 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:104 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:0 
          RX bytes:8224 (8.2 KB)  TX bytes:8224 (8.2 KB) 

hans@hans-GA-78LMT-S2P:~$ 

但 Ubuntu 仍然报告电缆已拔出。有什么建议吗?

汉斯

12 月 6 日。Anders:- 这是 lsmod 的输出:-

hans@hans-GA-78LMT-S2P:~$ lsmod -a 
Usage: lsmod 
hans@hans-GA-78LMT-S2P:~$ lsmod 
Module                  Size  Used by 
snd_hda_codec_realtek   224173  1 
k8temp                 13057  0 
snd_hda_intel          33719  3 
snd_hda_codec         127706  2 snd_hda_codec_realtek,snd_hda_intel 
snd_hwdep              17764  1 snd_hda_codec 
snd_pcm                97275  2 snd_hda_intel,snd_hda_codec 
snd_seq_midi           13324  0 
snd_rawmidi            30748  1 snd_seq_midi 
snd_seq_midi_event     14899  1 snd_seq_midi 
snd_seq                61929  2 snd_seq_midi,snd_seq_midi_event 
snd_timer              29990  2 snd_pcm,snd_seq 
snd_seq_device         14540  3 snd_seq_midi,snd_rawmidi,snd_seq 
psmouse                97485  0 
sp5100_tco             13791  0 
snd                    79041  15 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device 
i2c_piix4              13301  0 
serio_raw              13211  0 
edac_core              53746  0 
edac_mce_amd           23709  0 
soundcore              15091  1 snd 
snd_page_alloc         18529  2 snd_hda_intel,snd_pcm 
radeon                808704  2 
bnep                   18281  2 
rfcomm                 47604  0 
bluetooth             180153  10 bnep,rfcomm 
parport_pc             32866  1 
ppdev                  17113  0 
ttm                    76949  1 radeon 
drm_kms_helper         46978  1 radeon 
drm                   241971  4 radeon,ttm,drm_kms_helper 
i2c_algo_bit           13423  1 radeon 
mac_hid                13253  0 
shpchp                 37201  0 
lp                     17799  0 
parport                46562  3 parport_pc,ppdev,lp 
usbhid                 47238  0 
firewire_ohci          41000  0 
hid                    99636  1 usbhid 
pata_atiixp            13204  0 
firewire_core          63600  1 firewire_ohci 
crc_itu_t              12707  1 firewire_core 
floppy                 70207  0 
sk98lin               187175  1 
usb_storage            49243  0 
hans@hans-GA-78LMT-S2P:~$ 

我只能看到一个以太网驱动程序已加载。(sk98lin)可能是网络管理器 GUI 吗?

汉斯

12月6日 编辑 2

尝试了很多方法,

静态 IP - 加载它但不连接到路由器 消除了路由器上可能的 IP 冲突 - 仍然没有结果。我必须使用 Ubuntu,这是有效的 Windows ipconfig。

Microsoft Windows XP [版本 5.1.2600] (C) 版权所有 1985-2001 Microsoft Corp.

C:\Documents and Settings\Hans>ipconfig

Windows IP 配置

Ethernet adapter Local Area Connection 2:

        Connection-specific DNS Suffix  . : royaume.com
        IP Address. . . . . . . . . . . . : 192.168.0.106
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.0.1

C:\Documents and Settings\Hans>ipconfig/all

Windows IP Configuration

        Host Name . . . . . . . . . . . . : SERVER_1
        Primary Dns Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Unknown
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No
        DNS Suffix Search List. . . . . . : royaume.com

Ethernet adapter Local Area Connection 2:

        Connection-specific DNS Suffix  . : royaume.com
        Description . . . . . . . . . . . : Marvell Yukon 88E8056 PCI-E Gigabit
Ethernet Controller
        Physical Address. . . . . . . . . : 00-1C-25-51-24-43
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        IP Address. . . . . . . . . . . . : 192.168.0.106
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.0.1
        DHCP Server . . . . . . . . . . . : 192.168.0.1
        DNS Servers . . . . . . . . . . . : 192.168.0.1
        Lease Obtained. . . . . . . . . . : Friday, December 06, 2013 1:18:08 PM

        Lease Expires . . . . . . . . . . : Saturday, December 07, 2013 1:18:08
PM

C:\Documents and Settings\Hans>

如果有人有想法的话?请告诉我,我现在对这个操作系统的了解已经远远超出了我的理解范围。

谢谢汉斯

以下是 12 月 7 日的输出:

hans@hans-GA-78LMT-S2P:~$ sudo cat ../../etc/NetworkManager/system-connections/* 
[802-3-ethernet] 
duplex=full 
mac-address=00:1C:25:51:24:43 

[connection] 
id=Wired connection 1 
uuid=d10d591a-43b6-4692-84e3-6bd53c5f4f41 
type=802-3-ethernet 

[ipv6] 
method=auto 

[ipv4] 
method=auto 
hans@hans-GA-78LMT-S2P:~$ cat ../../etc/network/interfaces 
auto eth0 
iface eth0 inet static 
    address 192.168.0.106 
    netmask 255.255.255.0 
    network 192.168.0.1 

auto lo 
iface lo inet loopback 


hans@hans-GA-78LMT-S2P:~$ 

汉斯

问题解决了!

大家好,我一直在关注这个问题。我已经解决了这个问题。我仍然不知道是什么原因导致了这个问题,但我通过安装新的 PCI 网卡(StarTech.com 部件号 ST1000BT32)解决了这个问题。我禁用了板载以太网并插入了这张卡。启动 LINUX 并“BING”网络连接。

因此感谢所有花时间提供帮助的人,尤其是 Anders。

希望这对其他人有所帮助。

新年快乐。

汉斯

答案1

如果我理解你的情况正确,而你还没有这样做,那么从/etc/udev/rules.d/70-persistent-net.rules

原因:黑名单告诉 Ubuntu 在检测到硬件时不要加载它。如果您有一个配置明确告诉它稍后加载它或另一个依赖于它的模块加载,它仍然会被加载吗?除非您还告诉 Ubuntu 如何“加载”该模块,请查看示例,这里我们指定它只运行 /bin/true 或 /bin/false,而不是使用 modprobe 加载模块。

针对您的情况进行了更新和更正:

sk98lin在此文件末尾添加一行新行,其中包含模块名称/etc/modules。现在我们告诉 Ubuntu 在启动时加载 sk98lin 驱动模块。

然后创建文件/etc/modprobe.d/blacklist-marvell.conf并在一行中添加以下内容 install sky2 /bin/false

然后运行sudo depmod -ae

是的,你需要使用以下命令更新你的 init-ram-filesystemsudo update-initramfs -u

重新开始。


如果由于某种奇怪原因上述操作不起作用,只需删除您所做的所有更改并尝试执行肮脏的 rc.local 黑客攻击。

# Add the following to your '/etc/rc.local' file.
modprobe -r sky2
modprobe -r sk98lin
modprobe sk98lin

保存并重新启动。

回答后续问题

内容/etc/network/interfaces应该是

auto lo
iface lo inet loopback

您必须让 NetworkManager 或系统(接口文件)配置您的连接。

要让 NetworkManager 执行此操作,请删除旧连接并单击如图所示。

网络管理器,自动以太网 Ubuntu 12.04

相关内容