[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Trouble getting bcm43xx driver to work



Hi,

I tried the bcm43xx-dscape driver with a patched 2.6.15 kernel on my
iBook G4 12" and I cannot get it to work. Some relevant information...

CPU information

processor       : 0
cpu             : 7447A, altivec supported
clock           : 1333MHz
revision        : 0.5 (pvr 8003 0105)
bogomips        : 1327.10
machine         : PowerBook6,7
motherboard     : PowerBook6,7 MacRISC3 Power Macintosh
detected as     : 287 (iBook G4)
pmac flags      : 0000001b
L2 cache        : 512K unified
memory          : 1024MB
pmac-generation : NewWorld


Output from lspci -vv

0001:10:12.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)
        Subsystem: Apple Computer Inc.: Unknown device 4318
        Control: I/O- Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
        Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR-
        Latency: 16
        Interrupt: pin A routed to IRQ 52
        Region 0: Memory at 80084000 (32-bit, non-prefetchable) [disabled] [size=8K]


I am using the January 10, 2006 snapshot of bcm43xx on 2.6.15 kernel
with the unofficial patch available at bcm43xx.berlios.de

Once the kernel boots up, modprobe rate_control 80211 and insmod
bcm43xx.ko works without errors. The relevant dmesg output 


80211: module license 'unspecified' taints kernel.
"bcm43xx" driver 0.0.1
PCI: Enabling device 0001:10:12.0 (0004 -> 0006)
"bcm43xx": Chip ID 0x4318, rev 0x2
"bcm43xx": Number of cores: 4
"bcm43xx": Core 0: ID 0x800, rev 0xd, vendor 0x4243, enabled
"bcm43xx": Core 1: ID 0x812, rev 0x9, vendor 0x4243, disabled
"bcm43xx": Core 2: ID 0x804, rev 0xc, vendor 0x4243, enabled
"bcm43xx": Core 3: ID 0x80d, rev 0x7, vendor 0x4243, enabled
"bcm43xx": PHY connected
"bcm43xx": Detected PHY: Version: 3, Type 2, Revision 7
"bcm43xx": Detected Radio:  ID: 8205017f (Manuf: 17f Ver: 2050 Rev: 8)
"bcm43xx": Radio turned off
"bcm43xx": Radio turned off
wlan0: Selected rate control algorithm 'simple'


However, the script sta_up.sh caused the kernel to crash (can someone
tell me what to dump from xmon. I am not sure what information in
there is relevant). I traced the crash to the following command in the
script sta_up.sh

ifconfig wlan0.11 up

Instead I tried

ifconfig wlan0 up and then proceeded with the remaining steps in
sta_up.sh manually and dmesg output shows...


sta0: using STA entry 0
sta0: MAC address 00:14:51:82:b1:3c
"bcm43xx": PHY connected
"bcm43xx": Radio turned on
"bcm43xx": ASSERTION FAILED (radio_attenuation < 10) at: /home/shreyas/src/bcm43xx-dscape-20060110/bcm43xx_phy.c:1257:bcm43xx_find_lopair()
"bcm43xx": Chip initialized
"bcm43xx": ASSERTION FAILED (0) at: /home/shreyas/src/bcm43xx-dscape-20060110/bcm43xx_main.c:2996:bcm43xx_gen_bssid()
"bcm43xx": DMA initialized
"bcm43xx": 80211 cores initialized
"bcm43xx": Keys cleared
wlan0.11: Does not support passive scan, disabled
wlan0: no IPv6 routers present
"bcm43xx": TODO: Incomplete code in bcm43xx_set_iwmode() at /home/shreyas/src/bcm43xx-dscape-20060110/bcm43xx_main.c:2540


However, wpa_supplicant doesn't connect and I get the following
message repeated indefinitely in dmesg

sta0: no IPv6 routers present
sta0: starting scan
sta0: scan completed
sta0: Initial auth_alg=0
sta0: authenticate with AP 00:0c:41:f3:56:eb
sta0: authenticate with AP 00:0c:41:f3:56:eb
sta0: authenticate with AP 00:0c:41:f3:56:eb
sta0: authentication with AP 00:0c:41:f3:56:eb timed out


iwconfig shows


wlan0     IEEE 802.11g  ESSID:off/any 
          Mode:Managed  Frequency:2.462 GHz 
          RTS thr:off   Fragment thr=2346 B   
         
wlan0.11  IEEE 802.11g  ESSID:off/any  Nickname:"Broadcom 4318"
          Mode:Managed  Frequency:2.462 GHz 
          RTS thr:off   Fragment thr=2346 B   
         
sta0      IEEE 802.11g  ESSID:off/any 
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:0C:41:F3:56:EB   
          RTS thr:off   Fragment thr=2346 B   


and ifconfig shows


sta0      Link encap:Ethernet  HWaddr 00:14:51:82:B1:3C 
          inet addr:192.168.1.5  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::214:51ff:fe82:b13c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:576 (576.0 b)

wlan0     Link encap:Ethernet  HWaddr 00:14:51:82:B1:3C 
          inet6 addr: fe80::214:51ff:fe82:b13c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0


I have to use WEP and I don't have any open routers or WPA routers to
test these options. The router is a Linksys WRT54G model. So my
questions are...

1. Any suggestions on how I can avoid the kernel panic when I do
"ifconfig wlan0.11 up"? What information should I provide so that
someone can help me with that? I have xmon enabled in my kernel and I
can post the relevant information.

2. Is my wireless card really working if I replace "ifconfig wlan0.11
up" with "ifconfig wlan0 up"?


I have also tried the softmac-bcm43xx approach, but without
success. The softmac spews out errors complaining that it cannot
associate without authenticating and forever tries to authenticate
with the router.



Reply to: