OpenWrt Forum Archive

Topic: is wifi possible with openwrt-brcm47xx-2.6-squashfs.trx ASUS W 500GP

The content of this topic has been archived on 9 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have installed  openwrt-brcm47xx-2.6-squashfs.trx   on ASUS WL 500 GP. I see from some other posts that wifi is not possible. I chose this build because there was a very useful article on how to connect a logitech quickCam Orbit webcam to ASUS router.  webcam works fine but I cant see the wifi. when I do wifi dect > wireless .. i see blank contents in the wireless file. I am stuck in woods. Can someone please advice. I am willing to revert back to 2.4 version if there is a way to configure the webcam.

Thanks in advance.

It actually works. I right now have it working in client mode, with WPA encryption, works fine so far. There seem to be some range problems, but having a line of sight to the ap i haven't experimented much there.
edit: oh, using kmod-b43 by the way

(Last edited by Exilant on 24 Apr 2008, 17:11)

But you haven't tried access point mode, have you? smile I guess working ap with WPA and without memory leaks and dissociatons is yet to be seen... sad

neutron wrote:

But you haven't tried access point mode, have you? smile I guess working ap with WPA and without memory leaks and dissociatons is yet to be seen... sad

This is great news. You must be the first one to get the wifi running with the 2.6 kernel.

If you get a chance, can you please post the install steps? did you install kmod-b43 using "ipkg install kmod-b43" or is kmod-b43 in a different build. I will try this command tonight.

Thank you.

I believe many have run Broadcom wifi with the 2.6 kernel, but not without serious instability caused by "memory leaks and dissociations." That's the unsolved problem.

have anybody knows if this b43 driver works with bcm5354 chip used by my Asus wl520gu?

(Last edited by doggie on 24 Apr 2008, 18:19)

Oops, I must have been a little ambiguous here... I have never tried running 2.6 kernel on my Asus WL500gP. I simply deduced that AP mode (my main demand against a soho router) would not work with 2.6, based on forum posts and searching, so I use 2.4 (as instructed by the wiki btw). As for my remark on memory leaks and dissociations: that actually applies for kernel 2.4. As I pointed it out in a thread called something like 'Association&dissociaton memory leak problem', I'm experiencing hiccups in wifi connectivity - and I was informed that I was not the only one, since this was likely a problem in the Broadcom proprietary binary driver. Sorry if I was unclear in post #4.

Exilant wrote:

It actually works. I right now have it working in client mode, with WPA encryption, works fine so far. There seem to be some range problems, but having a line of sight to the ap i haven't experimented much there.
edit: oh, using kmod-b43 by the way

did you use the 2.6 kernel? thanks.

yes, i did use the 2.6 kernel. I'm not the first one i guess, http://forum.openwrt.org/viewtopic.php?id=13286 (the one also linked by exactt) contained some help, and some people there also used it as an ap, afaik). The steps where just installing the kmod-b43 (latest sources) and its dependencies and then editing some config files to set it up in client mode. for wpa i also installed wpa_supplicant. right now i can use it only at the univerity, so i've never run it for more than a few ours, so memory leaks are possible.

(Last edited by Exilant on 24 Apr 2008, 20:12)

Exilant wrote:

yes, i did use the 2.6 kernel. I'm not the first one i guess, http://forum.openwrt.org/viewtopic.php?id=13286 (the one also linked by exactt) contained some help, and some people there also used it as an ap, afaik). The steps where just installing the kmod-b43 (latest sources) and its dependencies and then editing some config files to set it up in client mode. for wpa i also installed wpa_supplicant. right now i can use it only at the univerity, so i've never run it for more than a few ours, so memory leaks are possible.

very cool.. did you use it on Wl500Gp w/ broadcom chip? thanks.

Yes, an unmodified Asus-wl 500 gp, not opened the case so far.

Exilant:
Congratulations that you have succeded to get the 2.6 kernel so work on a standard WL500gP with Broadcom wifi chipset! I should like to have the same functionality as you have, client mode with WPA support. Can you post your image for me to use?

videshi wrote:
Exilant wrote:

It actually works. I right now have it working in client mode, with WPA encryption, works fine so far. There seem to be some range problems, but having a line of sight to the ap i haven't experimented much there.
edit: oh, using kmod-b43 by the way

did you use the 2.6 kernel? thanks.

t
I have built using the latest source in 2.6 .. can you share the info about the steps to configure b43? ipkg list shows kmod-b43 - 2.6.23.16-brcm47xx-1 so it is installed.. the wireless file in /etc/config folder looks like this

config wifi-device  wlan0
      option type     mac80211
      option channel  5

      # REMOVE THIS LINE TO ENABLE WIFI:
      # option disabled 1

config wifi-iface
      option device   wlan0
      option network  lan
      option mode     ap
      option ssid     OpenWrt
      option encryption none
i don't see the OpenWrt as available wireless network .. is there anything else to configure.. thanks

i don't know, i only need and use client mode so far. right now i'm using it to connect to a wlan smile
my config is:

# cat /etc/config/wireless
config wifi-device      wlan0
        option type     mac80211
        option disabled 0
config wifi-iface
        option network  wan
        option device   wlan0
        option mode     sta
        option ssid     wlan@thenet
        option hidden   0

# cat /etc/config/network

#### VLAN configuration
config switch eth0
        option vlan0    "1 2 3 4 5*"
        option vlan1    "0 5"


#### Loopback configuration
config interface loopback
        option ifname   "lo"
        option proto    static
        option ipaddr   127.0.0.1
        option netmask  255.0.0.0


#### LAN configuration
config interface lan
        option type     bridge
        option ifname   "eth0.0"
        option proto    static
        option ipaddr   192.168.1.1
        option netmask  255.255.255.0


#### WAN configuration
config interface        wan
        option ifname   "eth0.1"
        option proto    dhcp

## WLAN ###
config interface        wlan0
        option ifname   "wlan0"
        option proto    dhc

and a wpa_supplicant.conf, and an oversimplified startup script for wpa_supplicant(if someone knows the right way to do this, please tell me):

# cat /etc/init.d/myscript

#!/bin/sh /etc/rc.common
START=75
STOP=10

start() {
        wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf &
        /root/dyndns.sh
}

stop() {
        echo going down...
}

so, really nothing special. Maybe you need hostapd even for an open ap, i don't know.

(Last edited by Exilant on 27 Apr 2008, 17:51)

I've just flashed wl-500gp with r12903. The AP mode seems still not working. Even though I set it in AP mode it works as client...

my config:

config wifi-device  wlan0
        option type     mac80211
        option channel  5

        # REMOVE THIS LINE TO ENABLE WIFI:
        option disabled 0

config wifi-iface
        option device   wlan0
        option network  lan
        option mode     ap
        option ssid     OpenWrt
        option encryption none

iwconfig output:

wlan0     IEEE 802.11bg  ESSID:"OpenWrt"
          Mode:Managed  Frequency:2.432 GHz  Access Point: Not-Associated
          Tx-Power=27 dBm
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

dmseg output:

Linux version 2.6.25.17 (maro@ubuntu8041server) (gcc version 4.1.2) #1 Wed Oct 8 13:04:17 EDT 2008
console [early0] enabled
CPU revision is: 00029006 (Broadcom BCM3302)
ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x03, vendor 0x4243)
ssb: Core 1 found: Fast Ethernet (cc 0x806, rev 0x06, vendor 0x4243)
ssb: Core 2 found: Fast Ethernet (cc 0x806, rev 0x06, vendor 0x4243)
ssb: Core 3 found: USB 1.1 Hostdev (cc 0x808, rev 0x03, vendor 0x4243)
ssb: Core 4 found: PCI (cc 0x804, rev 0x08, vendor 0x4243)
ssb: Core 5 found: MIPS 3302 (cc 0x816, rev 0x03, vendor 0x4243)
ssb: Core 6 found: V90 (cc 0x807, rev 0x02, vendor 0x4243)
ssb: Core 7 found: IPSEC (cc 0x80B, rev 0x00, vendor 0x4243)
ssb: Core 8 found: MEMC SDRAM (cc 0x80F, rev 0x02, vendor 0x4243)
ssb: Initializing MIPS core...
ssb: set_irq: core 0x0806, irq 2 => 2
ssb: set_irq: core 0x0806, irq 3 => 3
ssb: set_irq: core 0x0804, irq 0 => 4
ssb: Sonics Silicon Backplane found at address 0x18000000
Serial init done.
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Entering add_active_range(0, 0, 8192) 0 entries of 256 used
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal          0 ->     8192
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0:        0 ->     8192
On node 0 totalpages: 8192
  Normal zone: 64 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 8128 pages, LIFO batch:0
  Movable zone: 0 pages used for memmap
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200
Primary instruction cache 16kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 16kB, 2-way, VIPT, cache aliases, linesize 16 bytes
Synthesized clear page handler (26 instructions).
Synthesized copy page handler (46 instructions).
PID hash table entries: 128 (order: 7, 512 bytes)
console handover: boot [early0] -> real [ttyS0]
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 29912k/32768k available (1996k kernel code, 2856k reserved, 301k data, 128k init, 0k highmem)
Calibrating delay loop... 263.16 BogoMIPS (lpj=526336)
Mount-cache hash table entries: 512
net_namespace: 444 bytes
NET: Registered protocol family 16
Switched to high resolution mode on CPU 0
ssb: PCIcore in host mode found
Registering a PCI bus after boot
PCI: Fixing up bridge 0000:00:00.0
PCI: Setting latency timer of device 0000:00:00.0 to 64
PCI: Fixing up device 0000:00:00.0
PCI: Fixing latency timer of device 0000:00:00.0 to 168
PCI: Enabling device 0000:00:02.0 (0000 -> 0002)
PCI: Fixing up device 0000:00:02.0
PCI: Setting latency timer of device 0000:00:02.0 to 64
ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x0D, vendor 0x4243)
ssb: Core 1 found: IEEE 802.11 (cc 0x812, rev 0x09, vendor 0x4243)
ssb: Core 2 found: PCI (cc 0x804, rev 0x0C, vendor 0x4243)
ssb: Core 3 found: PCMCIA (cc 0x80D, rev 0x07, vendor 0x4243)
ssb: SPROM revision 2 detected.
ssb: Sonics Silicon Backplane found on PCI device 0000:00:02.0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
detected lzma initramfs
initramfs: LZMA lc=1,lp=2,pb=2,origSize=512
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  Š 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing enabled
serial8250: ttyS0 at MMIO 0x0 (irq = 3) is a 16550A
serial8250: ttyS1 at MMIO 0x0 (irq = 3) is a 16550A
serial8250 serial8250.0: unable to register port at index 0 (IO0 MEMb8000300 IRQ3): -28
serial8250 serial8250.0: unable to register port at index 1 (IO0 MEMb8000400 IRQ3): -28
b44.c:v2.0
eth0: Broadcom 44xx/47xx 10/100BaseT Ethernet 00:1b:fc:57:b7:e9
eth1: Broadcom 44xx/47xx 10/100BaseT Ethernet 40:10:18:00:00:2d
flash init: 0x1c000000 0x02000000
Physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
Physically mapped flash: Found an alias at 0x800000 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 0x1800000 for the chip at 0x0
 Amd/Fujitsu Extended Query Table at 0x0040
Physically mapped flash: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Flash device: 0x800000 at 0x1fc00000
bootloader size: 262144
Creating 4 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "cfe"
0x00040000-0x007f0000 : "linux"
0x000f7800-0x007f0000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=270000, len=580000
0x00270000-0x007f0000 : "rootfs_data"
0x007f0000-0x00800000 : "nvram"
TCP vegas registered
NET: Registered protocol family 1
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.
Freeing unused kernel memory: 128k freed
Please be patient, while OpenWrt loads ...
Algorithmics/MIPS FPU Emulator v1.5
diag: Detected 'ASUS WL-500g Premium'
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!
BFL_ENETADM not set in boardflags. Use force=1 to ignore.
b44: eth0: powering down PHY
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
br-lan: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
device eth0.0 entered promiscuous mode
device eth0 entered promiscuous mode
br-lan: port 1(eth0.0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 1(eth0.0) entering forwarding state
BFL_ENETADM not set in boardflags. Use force=1 to ignore.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
b43-phy0: Broadcom 4318 WLAN found
b43-phy0 debug: Found PHY: Analog 3, Type 2, Revision 7
b43-phy0 debug: Found Radio: Manuf 0x17F, Version 0x2050, Revision 8
b43-phy0 debug: DebugFS (CONFIG_DEBUG_FS) not enabled in kernel config
phy0: Selected rate control algorithm 'pid'
Broadcom 43xx driver loaded [ Features: NLR, Firmware-ID: FW13 ]
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
IPP2P v0.8.1_rc1 loading
IMQ driver loaded successfully.
        Hooking IMQ before NAT on PREROUTING.
        Hooking IMQ after NAT on POSTROUTING.
ipt_time loading
USB Universal Host Controller Interface driver v3.0
PCI: Enabling device 0000:00:03.0 (0000 -> 0001)
PCI: Fixing up device 0000:00:03.0
uhci_hcd 0000:00:03.0: UHCI Host Controller
uhci_hcd 0000:00:03.0: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:03.0: irq 6, io base 0x00000100
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
PCI: Enabling device 0000:00:03.1 (0000 -> 0001)
PCI: Fixing up device 0000:00:03.1
uhci_hcd 0000:00:03.1: UHCI Host Controller
uhci_hcd 0000:00:03.1: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:03.1: irq 6, io base 0x00000120
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
PCI: Enabling device 0000:00:03.2 (0000 -> 0002)
PCI: Fixing up device 0000:00:03.2
ehci_hcd 0000:00:03.2: EHCI Host Controller
ehci_hcd 0000:00:03.2: new USB bus registered, assigned bus number 3
ehci_hcd 0000:00:03.2: irq 6, io mem 0x40002000
ehci_hcd 0000:00:03.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 4 ports detected
input: b43-phy0 as /devices/virtual/input/input0
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0 debug: Chip initialized
b43-phy0 debug: 32-bit DMA initialized
Registered led device: b43-phy0::radio
b43-phy0 debug: Wireless interface started
b43-phy0 debug: Adding Interface type 2
b43-phy0 debug: Removing Interface type 2
b43-phy0 debug: Wireless interface stopped
b43-phy0 debug: DMA-32 rx_ring: Used slots 0/64, Failed frames 0/0 = 0.0%, Average tries 0.00
b43-phy0 debug: DMA-32 tx_ring_AC_BK: Used slots 0/128, Failed frames 0/0 = 0.0%, Average tries 0.00
b43-phy0 debug: DMA-32 tx_ring_AC_BE: Used slots 0/128, Failed frames 0/0 = 0.0%, Average tries 0.00
b43-phy0 debug: DMA-32 tx_ring_AC_VI: Used slots 0/128, Failed frames 0/0 = 0.0%, Average tries 0.00
b43-phy0 debug: DMA-32 tx_ring_AC_VO: Used slots 0/128, Failed frames 0/0 = 0.0%, Average tries 0.00
b43-phy0 debug: DMA-32 tx_ring_mcast: Used slots 0/128, Failed frames 0/0 = 0.0%, Average tries 0.00
device wlan0 entered promiscuous mode
input: b43-phy0 as /devices/virtual/input/input1
b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
b43-phy0 debug: Chip initialized
b43-phy0 debug: 32-bit DMA initialized
Registered led device: b43-phy0::radio
b43-phy0 debug: Wireless interface started
b43-phy0 debug: Adding Interface type 2
Marek wrote:

I've just flashed wl-500gp with r12903. The AP mode seems still not working. Even though I set it in AP mode it works as client...

Yeah, same on a WRT54GL v1.1. It worked some time ago but now it's broken again, even in the release... sad

If you have a Premium v1 replace the wireless card with a Madwifi compatible smile

(Last edited by Yanira on 9 Oct 2008, 21:47)

It's v1. I have second wl-500gp v1 with ubiquiti XR2 and works excelent with madwifi, but this one is not open...you know warrinaty...

Marek wrote:

you know warrinaty...

Haha...

Well, that’s a shame. I’m building svn r12947 right now, and was under the wishful impression that things would work now.

I don’t need encryption, my neighbors are free to use it, but I need a WDS link to my colleague.
From your config, Marek, it seems that not even basic no frills AP mode works with b43. Is this correct? And are you positive that this is the /supposedly/ correct config?

I there!

I have a WL-500GP V2. Right now I'm using kernel 2.4. Everything works great but I can't connect to wpa protected networks using the wpa-supplicant.
The last time I tried kernel 2.6, everything works except the wifi and when I installed the kmod-b43... pufff the router doesn't boot anymore :S

My question is; there is any patch that we can apply to get the wifi working on 500GPV2?
Thanks

Hi,

about two weeks ago was the last time I compiled kamikaze. the b43 wifi works, but indeed
there are many connection losses when it's used in AP-mode.

More information in this thread:

http://forum.openwrt.org/viewtopic.php?id=13286&p=1

towolf, my config is the most simple AP config we can use.
The problem seems to be related to mac80211, not to b43 only. It is because yesterday I replaced standard broadcom wifi card from wl-500gp with atheros based and installed ath5k driver wchich usues mac80211 like b43. The efect was the same - interface is created but in Managed (STA) mode, not Master (AP). Scanning with airodump from other computer confirmed that card is in station mode because it is probing network with definied SSID...
I tried manually switch to Master mode with 'iwconfig wlan0 mode Master' without success..

The discussion might have continued from here.