Ubuntu 12.04:挂起后 WiFi 无法使用

Ubuntu 12.04:挂起后 WiFi 无法使用

这是我的配置: - SO:Ubuntu 12.04 - 内核:3.5.0-25 - 笔记本电脑:Sony Vaio VGN-FZ21E - WiFi 车:Intel PRO/Wireless 3945ABG [Golan] - 驱动程序:iwl3945

挂起后我的 WiFi 无法使用,即使重启网络或重新加载模块也是如此。这似乎只是因为卡被关闭了,Ubuntu 无法与其通信。我之所以这么想,是因为我查看了/var/log/syslog我发现了这个:

Mar 11 17:33:25 pablo-laptop kernel: [ 5225.608061] sky2 0000:08:00.0: eth0: disabling interface
Mar 11 17:33:25 pablo-laptop kernel: [ 5225.619189] sky2 0000:08:00.0: eth0: enabling interface
Mar 11 17:33:25 pablo-laptop kernel: [ 5225.619706] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Mar 11 17:33:26 pablo-laptop kernel: [ 5226.637161] iwl3945 0000:06:00.0: BSM uCode verification failed at addr 0x00003800+0 (of 900), is 0xffffffff, s/b 0xf802020
Mar 11 17:33:26 pablo-laptop kernel: [ 5226.637171] iwl3945 0000:06:00.0: Unable to set up bootstrap uCode: -5
Mar 11 17:33:26 pablo-laptop kernel: [ 5226.764525] iwl3945 0000:06:00.0: BSM uCode verification failed at addr 0x00003800+0 (of 900), is 0xffffffff, s/b 0xf802020
Mar 11 17:33:26 pablo-laptop kernel: [ 5226.764531] iwl3945 0000:06:00.0: Unable to set up bootstrap uCode: -5
Mar 11 17:33:26 pablo-laptop kernel: [ 5226.891926] iwl3945 0000:06:00.0: BSM uCode verification failed at addr 0x00003800+0 (of 900), is 0xffffffff, s/b 0xf802020
Mar 11 17:33:26 pablo-laptop kernel: [ 5226.891932] iwl3945 0000:06:00.0: Unable to set up bootstrap uCode: -5
Mar 11 17:33:26 pablo-laptop kernel: [ 5227.019321] iwl3945 0000:06:00.0: BSM uCode verification failed at addr 0x00003800+0 (of 900), is 0xffffffff, s/b 0xf802020
Mar 11 17:33:26 pablo-laptop kernel: [ 5227.019326] iwl3945 0000:06:00.0: Unable to set up bootstrap uCode: -5
Mar 11 17:33:26 pablo-laptop kernel: [ 5227.146696] iwl3945 0000:06:00.0: BSM uCode verification failed at addr 0x00003800+0 (of 900), is 0xffffffff, s/b 0xf802020
Mar 11 17:33:26 pablo-laptop kernel: [ 5227.146701] iwl3945 0000:06:00.0: Unable to set up bootstrap uCode: -5
Mar 11 17:33:26 pablo-laptop kernel: [ 5227.147044] iwl3945 0000:06:00.0: Unable to initialize device after 5 attempts.
Mar 11 17:33:31 pablo-laptop kernel: [ 5231.965726] iwl3945 0000:06:00.0: BSM uCode verification failed at addr 0x00003800+0 (of 900), is 0xffffffff, s/b 0xf802020
Mar 11 17:33:31 pablo-laptop kernel: [ 5231.965735] iwl3945 0000:06:00.0: Unable to set up bootstrap uCode: -5
Mar 11 17:33:31 pablo-laptop kernel: [ 5232.093091] iwl3945 0000:06:00.0: BSM uCode verification failed at addr 0x00003800+0 (of 900), is 0xffffffff, s/b 0xf802020
Mar 11 17:33:31 pablo-laptop kernel: [ 5232.093097] iwl3945 0000:06:00.0: Unable to set up bootstrap uCode: -5
Mar 11 17:33:31 pablo-laptop kernel: [ 5232.220442] iwl3945 0000:06:00.0: BSM uCode verification failed at addr 0x00003800+0 (of 900), is 0xffffffff, s/b 0xf802020
Mar 11 17:33:31 pablo-laptop kernel: [ 5232.220447] iwl3945 0000:06:00.0: Unable to set up bootstrap uCode: -5
Mar 11 17:33:32 pablo-laptop kernel: [ 5232.347782] iwl3945 0000:06:00.0: BSM uCode verification failed at addr 0x00003800+0 (of 900), is 0xffffffff, s/b 0xf802020
Mar 11 17:33:32 pablo-laptop kernel: [ 5232.347787] iwl3945 0000:06:00.0: Unable to set up bootstrap uCode: -5
Mar 11 17:33:32 pablo-laptop kernel: [ 5232.475196] iwl3945 0000:06:00.0: BSM uCode verification failed at addr 0x00003800+0 (of 900), is 0xffffffff, s/b 0xf802020
Mar 11 17:33:32 pablo-laptop kernel: [ 5232.475201] iwl3945 0000:06:00.0: Unable to set up bootstrap uCode: -5
Mar 11 17:33:32 pablo-laptop kernel: [ 5232.475555] iwl3945 0000:06:00.0: Unable to initialize device after 5 attempts.
Mar 11 17:33:36 pablo-laptop kernel: [ 5236.981027] iwl3945 0000:06:00.0: BSM uCode verification failed at addr 0x00003800+0 (of 900), is 0xffffffff, s/b 0xf802020
Mar 11 17:33:36 pablo-laptop kernel: [ 5236.981040] iwl3945 0000:06:00.0: Unable to set up bootstrap uCode: -5
Mar 11 17:33:36 pablo-laptop kernel: [ 5237.111258] iwl3945 0000:06:00.0: BSM uCode verification failed at addr 0x00003800+0 (of 900), is 0xffffffff, s/b 0xf802020
Mar 11 17:33:36 pablo-laptop kernel: [ 5237.111267] iwl3945 0000:06:00.0: Unable to set up bootstrap uCode: -5
Mar 11 17:33:37 pablo-laptop kernel: [ 5237.241510] iwl3945 0000:06:00.0: BSM uCode verification failed at addr 0x00003800+0 (of 900), is 0xffffffff, s/b 0xf802020
Mar 11 17:33:37 pablo-laptop kernel: [ 5237.241517] iwl3945 0000:06:00.0: Unable to set up bootstrap uCode: -5
Mar 11 17:33:37 pablo-laptop kernel: [ 5237.371699] iwl3945 0000:06:00.0: BSM uCode verification failed at addr 0x00003800+0 (of 900), is 0xffffffff, s/b 0xf802020
Mar 11 17:33:37 pablo-laptop kernel: [ 5237.371706] iwl3945 0000:06:00.0: Unable to set up bootstrap uCode: -5
Mar 11 17:33:37 pablo-laptop kernel: [ 5237.501865] iwl3945 0000:06:00.0: BSM uCode verification failed at addr 0x00003800+0 (of 900), is 0xffffffff, s/b 0xf802020
Mar 11 17:33:37 pablo-laptop kernel: [ 5237.501873] iwl3945 0000:06:00.0: Unable to set up bootstrap uCode: -5
Mar 11 17:33:37 pablo-laptop kernel: [ 5237.502352] iwl3945 0000:06:00.0: Unable to initialize device after 5 attempts.
Mar 11 17:33:44 pablo-laptop kernel: [ 5245.165294] iwl3945 0000:06:00.0: BSM uCode verification failed at addr 0x00003800+0 (of 900), is 0xffffffff, s/b 0xf802020
Mar 11 17:33:44 pablo-laptop kernel: [ 5245.165302] iwl3945 0000:06:00.0: Unable to set up bootstrap uCode: -5
Mar 11 17:33:45 pablo-laptop kernel: [ 5245.292676] iwl3945 0000:06:00.0: BSM uCode verification failed at addr 0x00003800+0 (of 900), is 0xffffffff, s/b 0xf802020
Mar 11 17:33:45 pablo-laptop kernel: [ 5245.292681] iwl3945 0000:06:00.0: Unable to set up bootstrap uCode: -5
Mar 11 17:33:45 pablo-laptop kernel: [ 5245.420165] iwl3945 0000:06:00.0: BSM uCode verification failed at addr 0x00003800+0 (of 900), is 0xffffffff, s/b 0xf802020
Mar 11 17:33:45 pablo-laptop kernel: [ 5245.420171] iwl3945 0000:06:00.0: Unable to set up bootstrap uCode: -5
Mar 11 17:33:45 pablo-laptop kernel: [ 5245.547518] iwl3945 0000:06:00.0: BSM uCode verification failed at addr 0x00003800+0 (of 900), is 0xffffffff, s/b 0xf802020
Mar 11 17:33:45 pablo-laptop kernel: [ 5245.547523] iwl3945 0000:06:00.0: Unable to set up bootstrap uCode: -5
Mar 11 17:33:45 pablo-laptop kernel: [ 5245.675049] iwl3945 0000:06:00.0: BSM uCode verification failed at addr 0x00003800+0 (of 900), is 0xffffffff, s/b 0xf802020
Mar 11 17:33:45 pablo-laptop kernel: [ 5245.675054] iwl3945 0000:06:00.0: Unable to set up bootstrap uCode: -5
Mar 11 17:33:45 pablo-laptop kernel: [ 5245.675425] iwl3945 0000:06:00.0: Unable to initialize device after 5 attempts.

将内核升级到 3.5.0-25 后,我注意到一个名为无线上网,它也出现在系统日志中,并且他似乎与无线网卡有一个对话:

Mar 12 09:48:16 pablo-laptop kernel: [  209.569037] iwlwifi: Intel(R) Wireless WiFi Link AGN driver for Linux, in-tree:
Mar 12 09:48:16 pablo-laptop kernel: [  209.569044] iwlwifi: Copyright(c) 2003-2012 Intel Corporation
Mar 12 09:49:05 pablo-laptop kernel: Kernel logging (proc) stopped.

任何想法 ?!

2013.03.12

以下是输出lspci-nn|复制代码

06:00.0 Network controller [0280]: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection [8086:4222] (rev 02)

命令ls /etc/modprobe.d | grep iwl给了任何东西....

2013.03.13

iwlwifi 不存在于 /etc/modules 中,但已成功添加到 /etc/modprobe.d/blacklist.conf。

我尝试了三次暂停并恢复,但第四次时问题又出现了。

ps 同样的问题也发生在内核 3.2 上,其中没有 iwlwifi。

重要提示:升级管理器建议我安装“网络管理框架(wifi 和移动的通用文件)”和“网络管理框架(wifi 和移动的 GNOME 对话框)”。我应该安装它们吗?它们到底有什么用?会影响我的问题吗?

2013.03.14

在文件中添加以下行/etc/pm/config.d/配置

SUSPEND_MODULES="iwl3945"

经过一些成功的测试后,问题出现了,Syslog 中出现了新的错误消息:

iwl3945 0000:06:00.0: bad EEPROM signature,EEPROM_GP=0x00000007
iwl3945 0000:06:00.0: EEPROM not found, EEPROM_GP=0xffffffff
iwl3945 0000:06:00.0: Unable to init EEPROM
iwl3945: probe of 0000:06:00.0 failed with error -2 

然后我又做了一次测试,成功了,这些是系统日志中的消息:

cfg80211: Calling CRDA to update world regulatory domain
cfg80211: World regulatory domain updated:
cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
iwl3945: Intel(R) PRO/Wireless 3945ABG/BG Network Connection driver for Linux, in-tree:s
iwl3945: Copyright(c) 2003-2011 Intel Corporation
iwl3945 0000:06:00.0: Tunable channels: 13 802.11bg, 23 802.11a channels
iwl3945 0000:06:00.0: Detected Intel Wireless WiFi Link 3945ABG
iwl3945 0000:06:00.0: irq 48 for MSI/MSI-X
Registered led device: phy0-led
cfg80211: Ignoring regulatory request Set by core since the driver uses its own custom regulatory domain
ieee80211 phy0: Selected rate control algorithm 'iwl-3945-rs'
iwl3945 0000:06:00.0: loaded firmware version 15.32.2.9

2013.03.18

问题再次出现,并且我注意到 Syslog 中有一个跟踪信息:

Mar 18 09:39:31 pablo-laptop kernel: [18048.564008] Pid: 3535, comm: modprobe Tainted: P           O 3.5.0-25-generic #39~precise1-Ubuntu
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008] Call Trace:
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<c1045c62>] warn_slowpath_common+0x72/0xa0
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<f887d986>] ? _il_grab_nic_access+0x96/0xa0 [iwlegacy]
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<f887d986>] ? _il_grab_nic_access+0x96/0xa0 [iwlegacy]
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<c1045d33>] warn_slowpath_fmt+0x33/0x40
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<f887d986>] _il_grab_nic_access+0x96/0xa0 [iwlegacy]
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<f887dac2>] il_wr_prph+0x32/0x90 [iwlegacy]
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<f887dc79>] il_apm_init+0x159/0x1d0 [iwlegacy]
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<f88c44b5>] il3945_apm_init+0x15/0x130 [iwl3945]
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<f887f085>] il_eeprom_init+0x45/0x1b0 [iwlegacy]
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<c12f2daa>] ? pci_bus_write_config_byte+0x5a/0x70
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<f88c2e9d>] il3945_pci_probe+0x19d/0x4b0 [iwl3945]
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<c13bdbe5>] ? pm_runtime_enable+0x45/0x70
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<c12fa4b7>] local_pci_probe+0x47/0xb0
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<c12fba08>] pci_device_probe+0x68/0x90
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<c11b3077>] ? sysfs_create_link+0x17/0x20
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<c13b5201>] really_probe+0x51/0x1c0
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<c13bf099>] ? pm_runtime_barrier+0x49/0xb0
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<c13b54aa>] driver_probe_device+0x3a/0x60
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<c13b5561>] __driver_attach+0x91/0xa0
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<c13b54d0>] ? driver_probe_device+0x60/0x60
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<c13b3c12>] bus_for_each_dev+0x42/0x70
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<c13b4ee1>] driver_attach+0x21/0x30
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<c13b54d0>] ? driver_probe_device+0x60/0x60
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<c13b4b47>] bus_add_driver+0x187/0x260
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<c12fba30>] ? pci_device_probe+0x90/0x90
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<c13b5a16>] driver_register+0x66/0x110
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<c12fb7d2>] __pci_register_driver+0x42/0xa0
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<f8853050>] il3945_init+0x50/0x1000 [iwl3945]
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<c103b80f>] ? set_memory_nx+0x5f/0x70
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<c1003034>] do_one_initcall+0x34/0x170
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<f8853000>] ? 0xf8852fff
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<c10a544d>] sys_init_module+0xad/0x210
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<c11519d3>] ? sys_close+0x73/0xc0
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008]  [<c15ea8df>] sysenter_do_call+0x12/0x28
Mar 18 09:39:31 pablo-laptop kernel: [18048.564008] ---[ end trace f7ec9f13abaf4b1b ]---
Mar 18 09:39:31 pablo-laptop kernel: [18048.692242] iwl3945 0000:06:00.0: bad EEPROM signature,EEPROM_GP=0x00000007
Mar 18 09:39:31 pablo-laptop kernel: [18048.692249] iwl3945 0000:06:00.0: EEPROM not found, EEPROM_GP=0xffffffff
Mar 18 09:39:31 pablo-laptop kernel: [18048.692283] iwl3945 0000:06:00.0: Unable to init EEPROM
Mar 18 09:39:31 pablo-laptop kernel: [18048.692467] iwl3945: probe of 0000:06:00.0 failed with error -2

答案1

这里有一种方法有时很有效:

gksudo gedit /etc/pm/config.d/config

添加一行:

SUSPEND_MODULES="iwl3945"

校对、保存并关闭 gedit。重新启动、暂停并让我们收到您的报告。

答案2

驱动程序 iwl3945 适合您的设备;iwlwifi 不适合您。让我们看看它为什么加载并停止它。请执行以下操作:

gksudo gedit /etc/modules

如果其中有 iwlwifi,请将其删除。校对、保存并关闭 gedit。现在执行:

sudo su
echo "blacklist iwlwifi" >> /etc/modprobe.d/blacklist.conf
exit

现在重新启动并告诉我们它是如何工作的。

答案3

直到这个错误被修复之前我最常用的是这个:

sudo service network-manager restart

暂停后在终端中输入

我还没有尝试足够多次以确保它每次都能奏效,但我希望它能奏效

答案4

卸载 NetworkManager 并安装 wicd-gtk 尝试一下。

sudo apt-get 安装 wicd-gtk

确保卸载 NM。

如果没有起作用,请检查

杀戮

然后取消全部阻止

再次努力

相关内容