Anybody get the 520gU wireless (B43) to work with 2.6 kernel

Discussion about my Wifi Radio project at http://mightyohm.com/wifiradio/ or my WL-520gU talk at NOTACON.
displacedtexan
Posts: 1
Joined: Sun Mar 07, 2010 11:24 am

Anybody get the 520gU wireless (B43) to work with 2.6 kernel

Post by displacedtexan »

So, great project!

Not only is the project great, but it is complicated enough that I would not have been able to do it on my own...

Now my question... I was hoping to use a webcam with a 520gU, but that will require a 2.6 kernel.

According to OpenWRTs webpage, the opensource B43 drivers should be in a more use-able state now:

Code: Select all

Backfire 10.03 Beta

*** BETA RELEASE ***
The OpenWrt Team would like to announce a beta of the next major release, codenamed Backfire. Testing of this build will help refine the code in preparation of the final release.

Binaries can be downloaded at http://downloads.openwrt.org/backfire/10.03-beta/

Highlights:
* brcm-2.4 updated to 2.4.37 kernel
* other targets updated to 2.6.30 or 2.6.32
* gcc updated to 4.3.3 for arm/mips targets, 4.4.3 for powerpc
* uClibc updated to 0.9.30.1
* b43 wireless driver for Broadcom 11g chipsets on the 2.6 kernel
* ath9k wireless driver for Atheros 11n chipsets
* support for many new ar71xx devices
* magicbox target folded into ppc40x

new targets:
* brcm63xx - Broadcom ADSL modem/routers chipset
* cobalt - MIPS-based servers from Cobalt Networks
* orion - Marvell Orion devices

Known Issues:
* ipv6 resolution via uClibc can produce segfaults
* busybox httpd occaisionally segfaults or hangs, but luci uses lucid instead of httpd by default. kill -9 should be used if it refuses to die
* luci is still being worked on for this release, some configuration is missing, partiuclarly switch config and 802.11n options

[b]Note: We said we'd tell you when brcm47xx should work for those of you with Broadcom wireless, the time is now, start testing.[/b]
I can't get wireless to associate with thee new Backfire release.

Anybody else been successful?

I would have posted this on the openwrt forums, but there registration process is broken with the following errors:

Code: Select all

Warning: mail() has been disabled for security reasons in /var/www/openwrt/forum/include/email.php on line 93
Again thanks for everyone's help!
User avatar
mightyohm
Site Admin
Posts: 1063
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: Anybody get the 520gU wireless (B43) to work with 2.6 kernel

Post by mightyohm »

I have not had a chance to play with the B43 drivers in 2.6 since my initial experiments in 2008. Let us know if you get it working!
ilinux
Posts: 55
Joined: Mon Jul 06, 2009 2:36 am

Re: Anybody get the 520gU wireless (B43) to work with 2.6 kernel

Post by ilinux »

I would like to use 2.6 kernel for better usb support and lirc ;)
ilinux
Posts: 55
Joined: Mon Jul 06, 2009 2:36 am

Re: Anybody get the 520gU wireless (B43) to work with 2.6 kernel

Post by ilinux »

apollo77
Posts: 1
Joined: Wed Apr 14, 2010 12:39 pm

Re: Anybody get the 520gU wireless (B43) to work with 2.6 ke

Post by apollo77 »

displacedtexan, I have been trying to do exactly the same thing as you for months on my WL520-GU . I want to connect a webcam to it and use mjpg-streamer. I can get wireless working fine on the 2.4 kernel, but mjpg-streamer requires 2.6. I can get wifi OR mjpg-streamer, but not both together -- which is what I want.

As soon as I turn wireless on on my WL520-GU, it stops responding. Initially, this required me to re-flash every time it crashed. VERY annoying. So, I built scripts to automatically flip back to working config files every reboot. This way at least I don't have to re-flash every time it crashes -- I just reboot and it's back to a working configuration with wireless turned off. This has also allowed me to more easily tweak the configuration without starting from scratch each time.

However, I have had no success with anything up to and including Backfire 10.03-rc3 . I hope this gets fixed soon.

Apollo
jbemmel
Posts: 3
Joined: Thu Apr 29, 2010 10:13 am

Re: Anybody get the 520gU wireless (B43) to work with 2.6 ke

Post by jbemmel »

I got Backfire 10.03 (latest release) working on my Asus WL-600G, Asus WL-500GD, Linksys WRT54G, and WRT54GL, including wireless in both AP and STA mode with WPA2

However, on my Asus WL-520GU the b43 driver says "microcode not responding" and refers to the wireless website for getting better firmware. The WiFi chip is a Broadcom 5354, for which http://wireless.kernel.org/en/users/Dri ... chip_types says "Supported?". It looks like the 520GU still needs some tweaking
jbemmel
Posts: 3
Joined: Thu Apr 29, 2010 10:13 am

Re: Anybody get the 520gU wireless (B43) to work with 2.6 ke

Post by jbemmel »

Finally got my Asus WL-520GU working with Linux 2.6 AND wireless, using Backfire 10.03 brcm47xx

Be sure to select CONFIG_B43_STABLE and *NOT* CONFIG_B43_EXPERIMENTAL, the WL-520GU needs the 4.150.10.5 firmware. I also updated to the very latest compat-wireless driver package
jbemmel
Posts: 3
Joined: Thu Apr 29, 2010 10:13 am

Re: Anybody get the 520gU wireless (B43) to work with 2.6 ke

Post by jbemmel »

FYI Here's my setup and installed packages, unfortunately 'mpd' doesn't seem to fit in the 4MB flash with the 2.6 kernel (at least not without some stripping,TBD):
root@OpenWrt:~# free
total used free shared buffers
Mem: 13532 12360 1172 0 764
Swap: 0 0 0
Total: 13532 12360 1172
root@OpenWrt:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 1152 1152 0 100% /rom
tmpfs 6768 40 6728 1% /tmp
tmpfs 512 0 512 0% /dev
/dev/mtdblock3 1984 980 1004 49% /overlay
mini_fo:/overlay 1152 1152 0 100% /
root@OpenWrt:~# opkg list_installed
base-files - 42-r21230
busybox - 1.15.3-2
crda - 1.1.0-2
dropbear - 0.52-4
hotplug2 - 1.0-beta-1
iw - 0.9.19-1
kernel - 2.6.32.10-1
kmod-b43 - 2.6.32.10+2010-03-24-5
kmod-cfg80211 - 2.6.32.10+2010-03-24-5
kmod-crypto-aes - 2.6.32.10-1
kmod-crypto-arc4 - 2.6.32.10-1
kmod-crypto-core - 2.6.32.10-1
kmod-diag - 2.6.32.10-6
kmod-input-core - 2.6.32.10-1
kmod-mac80211 - 2.6.32.10+2010-03-24-5
kmod-nls-base - 2.6.32.10-1
kmod-sound-core - 2.6.32.10-1
kmod-switch - 2.6.32.10-3
kmod-usb-audio - 2.6.32.10-1
kmod-usb-core - 2.6.32.10-1
kmod-usb-ohci - 2.6.32.10-1
kmod-usb2 - 2.6.32.10-1
libc - 0.9.30.1-42
libflac - 1.1.2-1
libgcc - 4.3.3+cs-42
libid3tag - 0.15.1b-3
libmad - 0.15.1b-3
libnl-tiny - 0.1-1
libpthread - 0.9.30.1-42
librt - 0.9.30.1-42
libuci - 12012009.5-1
libvorbisidec - 1.0.2+svn14261-1
madplay - 0.15.2b-3
mtd - 12
nvram - 5
opkg - 513-2
robocfg - 0.01-1
uci - 12012009.5-1
udevtrigger - 106-1
wireless-tools - 29-4
wpad-mini - 20100309-1
zlib - 1.2.3-5
root@OpenWrt:~# lsmod
Module Size Used by Not tainted
snd_usb_audio 60096 1
snd_usb_lib 13328 1 snd_usb_audio
ohci_hcd 17952 0
ehci_hcd 34080 1 ohci_hcd
snd_pcm_oss 36896 1
snd_mixer_oss 13424 1 snd_pcm_oss
snd_pcm 52400 2 snd_usb_audio,snd_pcm_oss
snd_timer 15632 1 snd_pcm
snd_rawmidi 16000 1 snd_usb_lib
snd_seq_device 4080 1 snd_rawmidi
snd_hwdep 4496 1 snd_usb_audio
snd_page_alloc 4320 1 snd_pcm
snd 38864 8 snd_usb_audio,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_rawmidi,snd_seq_device,snd_hwdep
soundcore 4016 2 snd
b43 154672 0
mac80211 212240 1 b43
usbcore 107120 5 snd_usb_audio,snd_usb_lib,ohci_hcd,ehci_hcd
nls_base 4960 1 usbcore
cfg80211 129008 2 b43,mac80211
compat_firmware_class 5920 1 b43
compat 432 0
input_core 18384 1 snd
arc4 816 2
aes_generic 31056 0
deflate 1328 0
ecb 1328 2
cbc 2016 0
switch_robo 4032 0
switch_core 5200 1 switch_robo
diag 7504 0
root@OpenWrt:~# dmesg
Linux version 2.6.32.10 (notroot@debian) (gcc version 4.3.3 (GCC) ) #10 Fri Apr 30 18:59:33 CEST 2010
CPU revision is: 00029029 (Broadcom BCM3302)
ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x14, vendor 0x4243)
ssb: Core 1 found: Fast Ethernet (cc 0x806, rev 0x09, vendor 0x4243)
ssb: Core 2 found: MIPS 3302 (cc 0x816, rev 0x08, vendor 0x4243)
ssb: Core 3 found: USB 2.0 Host (cc 0x819, rev 0x02, vendor 0x4243)
ssb: Core 4 found: MEMC SDRAM (cc 0x80F, rev 0x04, vendor 0x4243)
ssb: Core 5 found: IEEE 802.11 (cc 0x812, rev 0x0D, vendor 0x4243)
ssb: Core 6 found: Roboswitch (cc 0x81C, rev 0x02, vendor 0x4243)
ssb: Found rev 0 PMU (capabilities 0x04A63400)
ssb: Initializing MIPS core...
ssb: set_irq: core 0x0806, irq 4 => 4
ssb: set_irq: core 0x0816, irq 5 => 2
ssb: set_irq: core 0x0812, irq 2 => 5
ssb: after irq reconfiguration
ssb: core 0x0800, irq : 2(S) 3* 4 5 6 D I
ssb: core 0x0806, irq : 2(S) 3 4* 5 6 D I
ssb: core 0x0816, irq : 2(S)* 3 4 5 6 D I
ssb: core 0x0819, irq : 2(S) 3 4 5 6* D I
ssb: core 0x080f, irq : 2(S) 3 4 5 6 D I*
ssb: core 0x0812, irq : 2(S) 3 4 5* 6 D I
ssb: core 0x081c, irq : 2(S) 3 4 5 6 D I*
ssb: Sonics Silicon Backplane found at address 0x18000000
Serial init done.
Determined physical RAM map:
memory: 01000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
Normal 0x00000000 -> 0x00001000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00000000 -> 0x00001000
On node 0 totalpages: 4096
free_area_init_node: node 0, pgdat 80281b10, node_mem_map 802c7000
Normal zone: 32 pages used for memmap
Normal zone: 0 pages reserved
Normal zone: 4064 pages, LIFO batch:0
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 4064
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
PID hash table entries: 64 (order: -4, 256 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
Primary data cache 16kB, 2-way, VIPT, cache aliases, linesize 16 bytes
Memory: 13396k/16384k available (2214k kernel code, 2988k reserved, 349k data, 136k init, 0k highmem)
Hierarchical RCU implementation.
NR_IRQS:128
console [ttyS0] enabled
Calibrating delay loop... 239.10 BogoMIPS (lpj=478208)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
msgmni has been set to 26
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
serial8250: ttyS0 at MMIO 0xb8000300 (irq = 3) is a 16550A
serial8250: ttyS1 at MMIO 0xb8000400 (irq = 3) is a 16550A
serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 3) is a 16550A
serial8250.0: ttyS1 at MMIO 0xb8000400 (irq = 3) is a 16550A
flash init: 0x1c000000 0x02000000
Physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
Physically mapped flash: Found an alias at 0x400000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x800000 for the chip at 0x0
Physically mapped flash: Found an alias at 0xc00000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x1000000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x1400000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x1800000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x1c00000 for the chip at 0x0
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Flash device: 0x400000 at 0x1fc00000
bootloader size: 131072
Creating 4 MTD partitions on "Physically mapped flash":
0x000000000000-0x000000020000 : "cfe"
0x000000020000-0x0000003f0000 : "linux"
0x0000000f1800-0x0000003f0000 : "rootfs"
mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=200000, len=1F0000
0x000000200000-0x0000003f0000 : "rootfs_data"
0x0000003f0000-0x000000400000 : "nvram"
b44.c:v2.0
eth0: Broadcom 44xx/47xx 10/100BaseT Ethernet 00:1b:fc:60:ee:3e
BCM47xx Watchdog Timer enabled (30 seconds, nowayout)
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Freeing unused kernel memory: 136k freed
Please be patient, while OpenWrt loads ...
diag: Detected 'ASUS WL-520gU'
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
roboswitch: Probing device eth0: found a 5325! It's a 5350.
b44: eth0: powering down PHY
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
b44: eth0: powering down PHY
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
b44: eth0: powering down PHY
mini_fo: using base directory: /
mini_fo: using storage directory: /overlay
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
b44: eth0: powering down PHY
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
b44: eth0: powering down PHY
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
Generic kernel compatibility enabled based on linux-next next-20100113
device eth0.0 entered promiscuous mode
device eth0 entered promiscuous mode
br-lan: port 1(eth0.0) entering forwarding state
cfg80211: Calling CRDA to update world regulatory domain
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
b43-phy0: Broadcom 5354 WLAN found (core revision 13)
phy0: Selected rate control algorithm 'minstrel'
Registered led device: b43-phy0::tx
Registered led device: b43-phy0::rx
Broadcom 43xx driver loaded [ Features: PL, Firmware-ID: FW13 ]
cfg80211: World regulatory domain updated:
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
(2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
(2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
(2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
(5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
(5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci_hcd ssb0:1: SSB OHCI Controller
ohci_hcd ssb0:1: new USB bus registered, assigned bus number 1
ohci_hcd ssb0:1: irq 6, io mem 0x18003000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd ssb0:1: SSB EHCI Controller
ohci_hcd ssb0:1: new USB bus registered, assigned bus number 2
ohci_hcd ssb0:1: irq 6, io mem 0x18003800
ohci_hcd ssb0:1: USB 0.0 started, EHCI 1.00
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usbcore: registered new interface driver snd-usb-audio
hub 2-0:1.0: unable to enumerate USB device on port 1
usb 1-1: new full speed USB device using ohci_hcd and address 2
usb 1-1: configuration #1 chosen from 1 choice
cfg80211: Calling CRDA for country: NL
cfg80211: Regulatory domain changed to country: NL
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
(2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
(5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)
(5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm)
(5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2700 mBm)
b43 ssb0:3: firmware: requesting b43/ucode13.fw
b43 ssb0:3: firmware: requesting b43/lp0initvals13.fw
b43 ssb0:3: firmware: requesting b43/lp0bsinitvals13.fw
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
wlan0: authenticate with 00:1c:10:0b:65:85 (try 1)
wlan0: authenticated
wlan0: associate with 00:1c:10:0b:65:85 (try 1)
wlan0: RX AssocResp from 00:1c:10:0b:65:85 (capab=0x411 status=0 aid=4)
wlan0: associated
usb 1-1: USB disconnect, address 2
hub 2-0:1.0: unable to enumerate USB device on port 1
usb 1-1: new full speed USB device using ohci_hcd and address 3
usb 1-1: configuration #1 chosen from 1 choice
usb 1-1: USB disconnect, address 3
hub 2-0:1.0: unable to enumerate USB device on port 1
usb 1-1: new full speed USB device using ohci_hcd and address 4
usb 1-1: configuration #1 chosen from 1 choice
wlan0: deauthenticating from 00:1c:10:0b:65:85 by local choice (reason=3)
cfg80211: Calling CRDA to update world regulatory domain
cfg80211: Calling CRDA for country: NL
cfg80211: Regulatory domain changed to country: NL
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
(2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
(5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)
(5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm)
(5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2700 mBm)
br-lan: port 1(eth0.0) entering disabled state
device eth0 left promiscuous mode
device eth0 entered promiscuous mode
device eth0 left promiscuous mode
device eth0.0 left promiscuous mode
br-lan: port 1(eth0.0) entering disabled state
usb 1-1: USB disconnect, address 4
hub 2-0:1.0: unable to enumerate USB device on port 1
usb 1-1: new full speed USB device using ohci_hcd and address 5
usb 1-1: configuration #1 chosen from 1 choice
WTGPhoben
Posts: 1
Joined: Tue Jun 22, 2010 3:57 pm

Re: Anybody get the 520gU wireless (B43) to work with 2.6 ke

Post by WTGPhoben »

jbemmel: Could you post your .config file and any other customizations you applied? I'm using the same HW and backfire (building from backfire branch on svn), but turning on the wireless is still locking up my box and I want to compare builds.

thanks!
drmoo
Posts: 2
Joined: Sun Jun 27, 2010 6:55 pm

Re: Anybody get the 520gU wireless (B43) to work with 2.6 ke

Post by drmoo »

WTGPhoben wrote:jbemmel: Could you post your .config file and any other customizations you applied? I'm using the same HW and backfire (building from backfire branch on svn), but turning on the wireless is still locking up my box and I want to compare builds.

thanks!
Grab the latest firmware from the snapshots folder. The wireless problems were fixed after 'backfire' was released.
Been quite stable for me so far.
Post Reply