OpenWrt Forum Archive

Topic: kamikaze 7.09 atheros configuration wgt634u

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

Hi, I flashed my wgt634u with kamikaze 7.09. It identifies all the hardware. It picks up atheros as wifi0. I was trying to setup my wireless by opening /etc/config/wireless, however it keeps saying permission denied. What should I do?

(Last edited by kasemodz on 22 Apr 2008, 16:36)

Please show the output of "mount". It might be that your JFFS wasn't activated. Also check dmesg for suspicious entries.

Here is the output of mount.

root@OpenWrt:/# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /tmp type tmpfs (rw,nosuid,nodev)
tmpfs on /dev type tmpfs (rw)
none on /dev/pts type devpts (rw)
/dev/mtdblock3 on /jffs type jffs2 (rw)
mini_fo:/jffs on / type mini_fo (rw)

Here is the output of dmesg

root@OpenWrt:/# dmesg                     
Linux version 2.6.22 (nbd@ds10) (gcc version 4.1.2) #2 Sun Sep 30 20:38:47 CEST                                                                               
2007   
CPU revision is: 00029007                         
ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x05, vendor                                                       
ssb: Core 1 found: Fast Ethernet (cc 0x806, rev 0x06, vendor 0x4243)                                                                   
ssb: Core 2 found: IPSEC (cc 0x80B, rev 0x01, vendor 0x4243)                                                           
ssb: Core 3 found: USB 1.1 Hostdev (cc 0x808, rev 0x02, vendor 0x4243)                                                                     
ssb: Core 4 found: PCI (cc 0x804, rev 0x08, vendor 0x4243)                                                         
ssb: Core 5 found: MIPS 3302 (cc 0x816, rev 0x01, vendor 0x4243)                                                               
ssb: Core 6 found: MEMC SDRAM (cc 0x80F, rev 0x00, vendor 0x4243)                                                                 
ssb: Initializing MIPS core...                             
ssb: set_irq: core 0x0806, irq 2 => 2                                     
ssb: set_irq: core 0x0804, irq 0 => 3                                     
early_nvram_init: WGT634U NVRAM found.                                     
ssb: Sonics Silicon Backplane found at address 0x18000000                                                         
Determined physical RAM map:                           
memory: 02000000 @ 00000000 (usable)                                     
Initrd not found or empty - disabling initrd                                           
On node 0 totalpages: 8192                         
  Normal zone: 64 pages used for memmap                                       
  Normal zone: 0 pages reserved                               
  Normal zone: 8128 pages, LIFO batch:0                                       
Built 1 zonelists.  Total pages: 8128                                     
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/pre                                                                               
init noinitrd console=ttyS0,115200                                 
Primary instruction cache 8kB, physically tagged, 2-way, linesize 16 bytes.                                                                           
Primary data cache 4kB, 2-way, linesize 16 bytes.                                                 
Synthesized TLB refill handler (20 instructions).                                                 
Synthesized TLB load handler fastpath (32 instructions).                                                       
Synthesized TLB store handler fastpath (31 instructions).                                                         
Synthesized TLB modify handler fastpath (30 instructions).                                                         
PID hash table entries: 128 (order: 7, 512 bytes)                                                 
Using 100.000 MHz high precision timer.                                       
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)                                                             
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)                                                           
Memory: 29872k/32768k available (2030k kernel code, 2896k reserved, 297k data, 1                                                                               
20k init, 0k highmem)                     
Calibrating delay loop... 198.65 BogoMIPS (lpj=397312)                                                     
Mount-cache hash table entries: 512                                   
NET: Registered protocol family 16                                 
ssb: PCIcore in host mode found                               
registering PCI controller with io_map_base unset                                                 
PCI: fixing up bridge                     
PCI: Setting latency timer of device 0000:00:00.0 to 64                                                       
PCI: Fixing up device 0000:00:00.0                                 
Time: MIPS clocksource has been in                               
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                   
squashfs: version 3.0 (2006/03/15) Phillip Lougher                                                 
Registering mini_fo version $Id$                               
JFFS2 version 2.2. (NAND) © 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                                                   
b44.c:v1.01 (Jun 16, 2006)                         
eth0: Broadcom 10/100BaseT Ethernet 00:09:5b:f7:4c:24                                                     
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                                                                       
Intel/Sharp Extended Query Table at 0x0031                                           
Using buffer write method                         
cfi_cmdset_0001: Erase suspend on write enabled                                               
erase region 0: offset=0x0,size=0x20000,blocks=64                                                 
Flash device: 0x800000 at 0x1fc00000                                   
bootloader size: 655360                       
Creating 4 MTD partitions on "Physically mapped flash":                                                       
0x00000000-0x000a0000 : "cfe"                             
0x000a0000-0x007e0000 : "linux"                               
0x00158000-0x007e0000 : "rootfs"                               
mtd: partition "rootfs" doesn't start on an erase block boundary                                                               
nly   
0x00260000-0x007e0000 : "rootfs_data"                                     
0x007e0000-0x00800000 : "nvram"                               
nf_conntrack version 0.5.0 (256 buckets, 2048 max)                                                 
ip_tables: (C) 2000-2006 Netfilter Core Team                                           
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: 120k freed                                       
Warning: unable to open an initial console.                                           
Algorithmics/MIPS FPU Emulator v1.5                                   
diag: Detected 'Netgear WGT634U'                               
b44: eth0: Link is up at 100 Mbps, full duplex.                                               
b44: eth0: Flow control is off for TX and off for RX.                                                     
Probing device eth0: found!                           
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.                                                     
BFL_ENETADM not set in boardflags. Use force=1 to ignore.                                                         
PPP generic driver version 2.4.2                               
device eth0.0 entered promiscuous mode                                     
eth0.0: dev_set_promiscuity(master, 1)                                     
device eth0 entered promiscuous mode                                   
eth0.0: add 01:00:5e:00:00:01 mcast address to master interface                                                               
br-lan: port 1(eth0.0) entering learning state                                             
br-lan: topology change detected, propagating                                             
br-lan: port 1(eth0.0) entering forwarding state                                               
wlan: 0.8.4.2 (svn r2568)                         
ath_hal: module license 'Proprietary' taints kernel.                                                   
ath_hal: 0.9.30.13 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF54                                                                               
13, RF2133, REGOPS_FUNC)                       
ath_rate_minstrel: Minstrel automatic rate control                             
ath_rate_minstrel: look around rate set to 10%
ath_rate_minstrel: EWMA rolloff level set to 75%
ath_rate_minstrel: max segment size in the mrr set to 6000 us
wlan: mac acl policy registered
ath_pci: 0.9.4.5 (svn r2568)
PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
PCI: Fixing up device 0000:00:01.0
ath_pci: switching rfkill capability off
ath_pci: switching per-packet transmit power control off
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36
Mbps 48Mbps 54Mbps
wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
wifi0: mac 5.9 phy 4.3 radio 4.6
wifi0: Use hw queue 1 for WME_AC_BE traffic
wifi0: Use hw queue 0 for WME_AC_BK traffic
wifi0: Use hw queue 2 for WME_AC_VI traffic
wifi0: Use hw queue 3 for WME_AC_VO traffic
wifi0: Use hw queue 8 for CAB traffic
wifi0: Use hw queue 9 for beacons
wifi0: Atheros 5212: mem=0x40000000, irq=5
eth0.1: add 01:00:5e:00:00:01 mcast address to master interface

This seems fine. What exactly are you using to open the file ? Can you delete the file and recreate it ? Maybe try something like this:

root@atheros:~# cat > /etc/config/wireless << EOF
config wifi-device wifi0
    option type atheros
<whatever...>
EOF

Alright I tried using ur suggestion and deleting the wireless config file. When I tried recreating it and saving it, it gave me an error

cat: /etc/config/wireless: No such file or directory

Also I tried using vi to open the wireless config file, however it won't let me edit the file.

rm /etc/config/wireless
wifi detect > /etc/config/wireless

Try this. Should create a standard wireless configuration file if it detects your WiFi corretly.

(Last edited by forum2008 on 22 Apr 2008, 18:12)

Alright so I got to edit the wireless config file, so its like this

config wifi-device  wifi0
        option type     atheros
        option channel  5

        # REMOVE THIS LINE TO ENABLE WIFI:


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

However, this is what I get on my dmseg. Somehow the wireless card isn't functional.

Linux version 2.6.22 (nbd@ds10) (gcc version 4.1.2) #2 Sun Sep 30 20:38:47 CEST 2007
CPU revision is: 00029007
ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x05, vendor 0x4243)
ssb: Core 1 found: Fast Ethernet (cc 0x806, rev 0x06, vendor 0x4243)
ssb: Core 2 found: IPSEC (cc 0x80B, rev 0x01, vendor 0x4243)
ssb: Core 3 found: USB 1.1 Hostdev (cc 0x808, rev 0x02, vendor 0x4243)
ssb: Core 4 found: PCI (cc 0x804, rev 0x08, vendor 0x4243)
ssb: Core 5 found: MIPS 3302 (cc 0x816, rev 0x01, vendor 0x4243)
ssb: Core 6 found: MEMC SDRAM (cc 0x80F, rev 0x00, vendor 0x4243)
ssb: Initializing MIPS core...
ssb: set_irq: core 0x0806, irq 2 => 2
ssb: set_irq: core 0x0804, irq 0 => 3
early_nvram_init: WGT634U NVRAM found.
ssb: Sonics Silicon Backplane found at address 0x18000000
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
On node 0 totalpages: 8192
  Normal zone: 64 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 8128 pages, LIFO batch:0
Built 1 zonelists.  Total pages: 8128
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200
Primary instruction cache 8kB, physically tagged, 2-way, linesize 16 bytes.
Primary data cache 4kB, 2-way, linesize 16 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (31 instructions).
Synthesized TLB modify handler fastpath (30 instructions).
PID hash table entries: 128 (order: 7, 512 bytes)
Using 100.000 MHz high precision timer.
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 29872k/32768k available (2030k kernel code, 2896k reserved, 297k data, 120k init, 0k highmem)
Calibrating delay loop... 198.65 BogoMIPS (lpj=397312)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
ssb: PCIcore in host mode found
registering PCI controller with io_map_base unset
PCI: fixing up bridge
PCI: Setting latency timer of device 0000:00:00.0 to 64
PCI: Fixing up device 0000:00:00.0
Time: MIPS clocksource has been installed.
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
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) © 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
b44.c:v1.01 (Jun 16, 2006)
eth0: Broadcom 10/100BaseT Ethernet 00:09:5b:f7:4c:24
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
Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
erase region 0: offset=0x0,size=0x20000,blocks=64
Flash device: 0x800000 at 0x1fc00000
bootloader size: 655360
Creating 4 MTD partitions on "Physically mapped flash":
0x00000000-0x000a0000 : "cfe"
0x000a0000-0x007e0000 : "linux"
0x00158000-0x007e0000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
0x00260000-0x007e0000 : "rootfs_data"
0x007e0000-0x00800000 : "nvram"
nf_conntrack version 0.5.0 (256 buckets, 2048 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
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: 120k freed
Warning: unable to open an initial console.
Algorithmics/MIPS FPU Emulator v1.5
diag: Detected 'Netgear WGT634U'
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
Probing device eth0: found!
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.
BFL_ENETADM not set in boardflags. Use force=1 to ignore.
PPP generic driver version 2.4.2
device eth0.0 entered promiscuous mode
eth0.0: dev_set_promiscuity(master, 1)
device eth0 entered promiscuous mode
eth0.0: add 01:00:5e:00:00:01 mcast address to master interface
br-lan: port 1(eth0.0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 1(eth0.0) entering forwarding state
wlan: 0.8.4.2 (svn r2568)
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 0.9.30.13 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, REGOPS_FUNC)
ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (svn r2568)
ath_rate_minstrel: look around rate set to 10%
ath_rate_minstrel: EWMA rolloff level set to 75%
ath_rate_minstrel: max segment size in the mrr set to 6000 us
wlan: mac acl policy registered
ath_pci: 0.9.4.5 (svn r2568)
PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
PCI: Fixing up device 0000:00:01.0
ath_pci: switching rfkill capability off
ath_pci: switching per-packet transmit power control off
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
wifi0: mac 5.9 phy 4.3 radio 4.6
wifi0: Use hw queue 1 for WME_AC_BE traffic
wifi0: Use hw queue 0 for WME_AC_BK traffic
wifi0: Use hw queue 2 for WME_AC_VI traffic
wifi0: Use hw queue 3 for WME_AC_VO traffic
wifi0: Use hw queue 8 for CAB traffic
wifi0: Use hw queue 9 for beacons
wifi0: Atheros 5212: mem=0x40000000, irq=5
eth0.1: add 01:00:5e:00:00:01 mcast address to master interface
device ath0 entered promiscuous mode
br-lan: port 2(ath0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 2(ath0) entering forwarding state

where do you see it is not functional?

The discussion might have continued from here.