LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Boot error on wireless card drivers installation (https://www.linuxquestions.org/questions/linux-networking-3/boot-error-on-wireless-card-drivers-installation-4175450459/)

centurian 02-16-2013 02:20 PM

Boot error on wireless card drivers installation
 
Hi, there,

recently I installed 12.04 Ubuntu on my laptop after a failed update and everything was ok.
Ubuntu updater (the source of all evils as it was responsible for that update from 10.04!) informed me to install proprietary drivers for my wireless card which I accepted unfortunately.

Next day the machine couldn't boot and I noticed messages on black screen saying about Hzs and I realized it was my network card drivers responsible.

As I searched the net and the man pages I saw that this command (print or control the kernel buffer) contains my black screen messages:

Code:

root#dmesg -k
......................
[  11.544087] Code: 8a ff ff 89 d8 e8 1f ba 94 c8 31 d2 89 f8 e8 c6 fd 9f c8 58 5b 5e 5f 5d c3 55 89 e5 3e 8d 74 26 00 0f 0b 55 89 e5 3e 8d 74 26 00 <0f> 0b 55 89 e5 3e 8d 74 26 00 0f 0b 55 89 e5 3e 8d 74 26 00 0f
[  11.544087] EIP: [<f89844c2>] wdev_priv.part.7+0x8/0xa [wl] SS:ESP 0068:f6be3cec
[  11.549427] ---[ end trace b5a0f610a6eb4c7d ]---
[  12.190277] cfg80211: World regulatory domain updated:
[  12.190345] cfg80211:    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[  12.190425] cfg80211:    (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  12.190504] cfg80211:    (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[  12.190582] cfg80211:    (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[  12.190660] cfg80211:    (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  12.190738] cfg80211:    (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
..........................

I tried to list kernel modules but no entry with 'ath' or 'ndis':

Code:

root# lsmod | grep -e 'ath.*' -e 'ndis.*'
I tried to see what is blacklisted

Code:

root# less /etc/modprobe.d/blacklist-firewire.conf
# Select the legacy firewire stack over the new CONFIG_FIREWIRE one.

blacklist ohci1394
blacklist sbp2
blacklist dv1394
blacklist raw1394
blacklist video1394

#blacklist firewire-ohci
#blacklist firewire-sbp2

I tried to see the effective configuration of kernel modules related with 'ath' and I saw a message for macs (my laptop is acer aspire):

Code:

root# modprobe -c | egrep -i 'ath.*'
# For some Atheros 5K RF MACs, the madwifi driver loads buts fails to
# which ath5k cannot recover. To prevent this condition, stop
blacklist ath_pci
...................

Should I blacklist 'ath5k' and 'ath9k'?
Is this the problem?

Can I remove 'ath5k' and 'ath9k' modules altogether? (don't care about wireless in my machine)

My list of kernel modules is this one:

Code:

root# modprobe -l ath*
kernel/drivers/net/wireless/ath/ath5k/ath5k.ko
kernel/drivers/net/wireless/ath/ath9k/ath9k.ko
kernel/drivers/net/wireless/ath/ath9k/ath9k_hw.ko
kernel/drivers/net/wireless/ath/ath9k/ath9k_common.ko
kernel/drivers/net/wireless/ath/ath9k/ath9k_htc.ko
kernel/drivers/net/wireless/ath/ath6kl/ath6kl.ko
kernel/drivers/net/wireless/ath/ath.ko
kernel/drivers/bluetooth/ath3k.ko

and my hardware list:

Code:

root# lshw -C network
  *-network:0           
      description: Ethernet interface
      product: SiS900 PCI Fast Ethernet
      vendor: Silicon Integrated Systems [SiS]
...............
  *-network:1
      description: Network controller
      product: BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller
      vendor: Broadcom Corporation
      physical id: b
      bus info: pci@0000:00:0b.0
      version: 02
      width: 32 bits
      clock: 33MHz
      capabilities: bus_master
      configuration: driver=wl latency=64
      resources: irq:17 memory:e2004000-e2005fff

Thanks to all for any help..........

jnihil 02-16-2013 11:57 PM

It looks like to me that you have a Broadcom WiFi chip (BCM4318). Why are you searching for the Atheros module?
This article on Launchpad indicates you should be using the b43 driver: https://answers.launchpad.net/ubuntu...uestion/220688.

I hope that works for you.

[edit] This is probably a better link to fix your problem: https://help.ubuntu.com/community/Wi...Driver/bcm43xx

Look under the section for BCM4318.

centurian 02-18-2013 03:52 AM

Boot too slow
 
The problem is that I allowed update manager to install wirelless drivers and it messed my system now boot takes too long and only after making a ctrl+f1 login and still waiting until it starts up.

I noticed these messages:

Code:

root# dmesg -k
.......................
[  12.378764] wl 0000:00:0b.0: enabling device (0000 -> 0002)
[  12.378801] wl 0000:00:0b.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
[  12.378848] resource map sanity check conflict: 0xe2004000 0xe2007fff 0xe2004000 0xe2005fff 0000:00:0b.0
[  12.378852] ------------[ cut here ]------------
[  12.378866] WARNING: at /build/buildd/linux-3.2.0/arch/x86/mm/ioremap.c:171 __ioremap_caller+0x384/0x460()
[  12.378870] Hardware name: Aspire 3630   
[  12.378873] Info: mapping multiple BARs. Your kernel is fine.
[  12.378876] Modules linked in: wl(P+) snd_seq_midi_event snd_seq snd_timer snd_seq_device pcmcia cfg80211 snd lib80211 soundcore jo
ydev snd_page_alloc yenta_socket pcmcia_rsrc pcmcia_core i2c_sis96x shpchp sis_agp mac_hid psmouse serio_raw lp parport sis900 usb_sto
rage
[  12.378912] Pid: 432, comm: modprobe Tainted: P          O 3.2.0-29-generic-pae #46-Ubuntu
[  12.378916] Call Trace:
[  12.378926]  [<c105a182>] warn_slowpath_common+0x72/0xa0
[  12.378932]  [<c1037414>] ? __ioremap_caller+0x384/0x460
[  12.378937]  [<c1037414>] ? __ioremap_caller+0x384/0x460
[  12.378944]  [<c105a253>] warn_slowpath_fmt+0x33/0x40
[  12.378949]  [<c1037414>] __ioremap_caller+0x384/0x460
[  12.379009]  [<f897c0ec>] ? wl_pci_probe+0x1dd/0x53c [wl]
[  12.379015]  [<c103756f>] ioremap_nocache+0x1f/0x30
[  12.379063]  [<f897c0ec>] ? wl_pci_probe+0x1dd/0x53c [wl]
[  12.379111]  [<f897c0ec>] wl_pci_probe+0x1dd/0x53c [wl]
[  12.379120]  [<c15a55ed>] ? _raw_spin_lock_irqsave+0x2d/0x40
[  12.379127]  [<c138c7f5>] ? pm_runtime_enable+0x45/0x70
[  12.379135]  [<c12d0ff7>] local_pci_probe+0x47/0xb0
[  12.379140]  [<c12d24d8>] pci_device_probe+0x68/0x90
[  12.379149]  [<c11a7df7>] ? sysfs_create_link+0x17/0x20
[  12.379157]  [<c13845bd>] really_probe+0x4d/0x150
[  12.379162]  [<c138dc29>] ? pm_runtime_barrier+0x49/0xb0
[  12.379167]  [<c13847fa>] driver_probe_device+0x3a/0x60
[  12.379172]  [<c13848b1>] __driver_attach+0x91/0xa0
[  12.379176]  [<c1384820>] ? driver_probe_device+0x60/0x60
[  12.379181]  [<c1383939>] bus_for_each_dev+0x49/0x70
[  12.379186]  [<c13843f1>] driver_attach+0x21/0x30
[  12.379191]  [<c1384820>] ? driver_probe_device+0x60/0x60
[  12.379196]  [<c13840cf>] bus_add_driver+0x17f/0x260
[  12.379201]  [<c12d2500>] ? pci_device_probe+0x90/0x90
[  12.379205]  [<c1384d86>] driver_register+0x66/0x110
[  12.379210]  [<c12d2282>] __pci_register_driver+0x42/0xc0
[  12.379238]  [<f8512017>] wl_module_init+0x17/0x1000 [wl]
[  12.379243]  [<c1003035>] do_one_initcall+0x35/0x170
[  12.379249]  [<f8512000>] ? 0xf8511fff
[  12.379255]  [<c1095b4d>] sys_init_module+0xad/0x210
[  12.379261]  [<c15ac7df>] sysenter_do_call+0x12/0x28
[  12.379265] ---[ end trace a48f7e09bf589611 ]---
[  12.385957] malloc in abgphy done
[  12.386164] wl driver 6.20.155.1 (r326264) failed with code 21
[  12.386199] ------------[ cut here ]------------
[  12.386244] kernel BUG at include/net/cfg80211.h:2209!
[  12.386283] invalid opcode: 0000 [#1] SMP
[  12.386368] Modules linked in: wl(P+) snd_seq_midi_event snd_seq snd_timer snd_seq_device pcmcia cfg80211 snd lib80211 soundcore jo
ydev snd_page_alloc yenta_socket pcmcia_rsrc pcmcia_core i2c_sis96x shpchp sis_agp mac_hid psmouse serio_raw lp parport sis900 usb_sto
rage
......................

there is definetely a kernel bug related with modules 'wl' and 'cfg80211' which I tried to remove:
Code:

# modprobe -r wl cfg80211
but the command line hungs.

I got rid off the 'ath' module that was related with an irrelevant wirelless card but the problem persists. My loaded modules:

Code:

roots# lsmod
Module                  Size  Used by
nls_iso8859_1          12617  1
nls_cp437              12751  1
vfat                  17308  1
fat                    55605  1 vfat
bnep                  17830  2
rfcomm                38139  0
bluetooth            158438  10 bnep,rfcomm
parport_pc            32114  0
ppdev                  12849  0
snd_intel8x0          47400  1
snd_ac97_codec        106082  1 snd_intel8x0
ac97_bus              12642  1 snd_ac97_codec
snd_pcm                80845  2 snd_intel8x0,snd_ac97_codec
snd_seq_midi          13132  0
snd_rawmidi            25424  1 snd_seq_midi
wl                  3032511  1
snd_seq_midi_event    14475  1 snd_seq_midi
snd_seq                51567  2 snd_seq_midi,snd_seq_midi_event
snd_timer              28931  2 snd_pcm,snd_seq
snd_seq_device        14172  3 snd_seq_midi,snd_rawmidi,snd_seq
pcmcia                39791  0
cfg80211              178679  1 wl
snd                    62064  7 snd_intel8x0,snd_ac97_codec,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
lib80211              14040  1 wl
soundcore              14635  1 snd
joydev                17393  0
snd_page_alloc        14108  2 snd_intel8x0,snd_pcm
yenta_socket          27465  0
pcmcia_rsrc            18367  1 yenta_socket
pcmcia_core            21511  3 pcmcia,yenta_socket,pcmcia_rsrc
i2c_sis96x            12743  0
shpchp                32325  0
sis_agp                13165  1
mac_hid                13077  0
psmouse                72919  0
serio_raw              13027  0
lp                    17455  0
parport                40930  3 parport_pc,ppdev,lp
sis900                22729  0
usb_storage            39646  1


How can I fix this boot error?

jnihil 02-19-2013 08:28 PM

So what happens if you try the instructions in the two links I provided?

centurian 03-15-2013 03:55 AM

Fixed by reinstallation
 
Just to know for everyone coming to this thread having the same issue: I reinstalled my Ubuntu (I'm under software development and really don't have time to play with OS's complains every time!)

Thanks for any help though!


All times are GMT -5. The time now is 02:53 AM.