OpenWrt Forum Archive

Topic: Kamikaze WGT634U Configuration?!

The content of this topic has been archived between 20 Jan 2018 and 5 May 2018. Unfortunately there are posts – most likely complete pages – missing.

Hi there,
I just installed the WGT634U Kamikaze Image with 2.6 kernel and squashfs support ( http://flyashi.dyndns.org:81/bin/ ).
It worked very well, but now I don't now how to configure Network.
(Tired /etc/config/network, but didn't worked)

Any Ideas?!

Yea.. the default config didn't work for me either.

Some steps I took to enable wifi and networking:

In /etc/firewall.user, add:

iptables -I br0 -o $WAN -j ACCEPT (i forget the exact line.. i've since borked my router so i dont have this setting anymore)

Rember to run firewall.user after editing it

I also added wifi support following Geoff's post here in the forums.

I also added "autocreate=ap" to /etc/modules.d/20_madwifi after "ath_pci".

Other users have said that the default config is OK in recent builds. I've updated the server to make hourly builds (have to fix version number reporting) so what's there is (now) the latest. Try it... if it doesn't work ... then the default config for the WGT634U is broken and ... bad stuff.

- me

Yes, you can.

Just follow the instructions at the link you posted, then just upload openwrt-wgt634u-(squashfs or jffs2).bin .

Easy as 3.14 :-)

- Yasha

Some more config tips:

If you're a WhiteRussian convert, you should know that all the network configs are stored in /etc/config/network. There you can edit all your settings.

All the other Howto's apply ( http://wiki.openwrt.org/OpenWrtHowTo ) for setting up client mode, USB Storage, Samba, etc.

The wiki and forums have pretty much everything you need to set up your router however you want. If you need some help, check out http://openwrt.org/support .

- Yasha

It's unfortuante that networking doesn't work out of the box for the wgt634u.

In fact, the 05networking seems to miss the board entirely.  After fixing this, I am able to get the network up on eth0, but no scripts
exist for proper vlan or bridge configuration. 

The problem with the wiki howto's is that they're based on the wrt54g/gs which are very nvram dependent.

Is there a page I'm missing for setup on non-nvram based routers like this one?

All the same settings exist; except instead of being stored in nvram, they're stored in /etc/config/network .

The why isn't the router taking the /etc/config/network variables at startup?

At the first shell upon startup:

$ ifconfig


eth0      Link encap:Ethernet  HWaddr 00:0F:B5:3F:54:38 
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:2348 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:167596 (163.6 KiB)  TX bytes:0 (0.0 B)
          Interrupt:4

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@C4:/# cat /etc/config/network
#### VLAN configuration
vlan0hwname=et0
vlan0ports="0 1 2 3 5*"
vlan1hwname=et0
vlan1ports="4 5"


#### LAN configuration
lan_proto="static"
lan_ifname="vlan0"
lan_ifnames="vlan0 eth1"
lan_ipaddr="192.168.11.254"
lan_dns="192.168.11.254"
lan_gateway="192.168.11.254"


#### WAN configuration
wan_proto=dhcp
wan_ifname="vlan1"
wan_device="vlan1"
wan_dns="4.2.2.1 4.2.2.2 4.2.2.3"

My bootlog:

cat /tmp/wgtbootlog
CFE version 1.0.34 for BCM95365R (32bit,SP,LE)
Build Date: Tue Feb 24 03:21:41 CST 2004 (root@jackylinux)
Copyright (C) 2000,2001,2002 Broadcom Corporation.

Add MAC client version(DNI).
Initializing Arena.
Initializing Devices.
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller
CPU type 0x29007: 200MHz
Total memory: 0x2000000 bytes (32MB)

Total memory used by CFE:  0x81BB1280 - 0x82000000 (4517248)
Initialized Data:          0x81BB1280 - 0x81BB3E90 (11280)
BSS Area:                  0x81BB3E90 - 0x81BB45D0 (1856)
Local Heap:                0x81BB45D0 - 0x81FB45D0 (4194304)
Stack Area:                0x81FB45D0 - 0x81FB65D0 (8192)
Text (code) segment:       0x81FB65E0 - 0x81FFFFB0 (301520)
Boot area (physical):      0x01B70000 - 0x01BB0000
Relocation Factor:         I:E23B65E0 - D:01BB0280

configure vlans
*****************************************************************
*********************** VLAN Driver initial  ********************
*****************************************************************
Process LAN port(2-5) vlan Architecture...
SUCCESS: trying to create VLAN 0 for switch
SUCCESS: trying to add LAN port

Process WAN port(2-5) vlan Architecture...
SUCCESS: trying to create VLAN 0 for switch
SUCCESS: trying to add WAN port
SUCCESS: enable ports  success
configure vlans...done
Device eth0:  hwaddr 00-0F-B5-3F-54-38, ipaddr 71.197.131.39, mask 255.255.254.0
        gateway 71.197.130.1, nameserver 68.87.69.146, domain hsd1.wa.comcast.net.
Loader:elf Filesys:raw Dev:flash0.os File: Options:(null)
***************************
****  MAC Client V1.0  ****
***************************
et0macaddr value :flag =0 value=00-0f-b5-3f-54-38
et1macaddr value :flag =0 value=00-0f-b5-3f-54-39
MAC exist at least one
system ethernet mac exist and not default....
Skip mac client process.....
Loading: 0x80001000/3732 Entry at 0x80001000
Closing network.
et0: link down
Starting program at 0x80001000
Linux version 2.6.15.3 (root@HOME) (gcc version 3.4.4) #1 Tue Feb 7 23:48:24 EST 2006
CPU revision is: 00029007                                                           
early_nvram_init: WGT634U NVRAM found.
Determined physical RAM map:         
memory: 02000000 @ 00000000 (usable)
Built 1 zonelists                   
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 (19 instructions).
Synthesized TLB load handler fastpath (31 instructions).
Synthesized TLB store handler fastpath (31 instructions).
Synthesized TLB modify handler fastpath (30 instructions).
PID hash table entries: 256 (order: 8, 4096 bytes)       
Using 100.000 MHz high precision timer.           
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 29904k/32768k available (1992k kernel code, 2848k reserved, 247k data, 120k init, 0k highmem)
Mount-cache hash table entries: 512                                                                 
Checking for 'wait' instruction...  unavailable.
NET: Registered protocol family 16             
PCI: fixing up bridge             
PCI: Fixing up device 0000:01:00.0
Squashfs 2.2 (released 2005/07/03) (C) 2002-2005 Phillip Lougher
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)         
devfs: boot_options: 0x1                             
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
Initializing Cryptographic API                       
io scheduler noop registered 
io scheduler anticipatory registered
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = 3) is a 16550A                     
serial8250: ttyS1 at MMIO 0x0 (irq = 3) is a 16550A
b44.c:v0.97 (Nov 30, 2005)                         
PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
eth0: Broadcom 47xx 10/100BaseT Ethernet 00:0f:b5:3f:54:38
Physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
Intel/Sharp Extended Query Table at 0x0031                       
Using buffer write method                 
cfi_cmdset_0001: Erase suspend on write enabled
Flash device: 0x800000 at 0x1c000000           
bootloader size flag: 3             
Creating 4 MTD partitions on "Physically mapped flash":
0x00000000-0x00060000 : "cfe"                         
0x000a0000-0x007e0000 : "linux"
0x00160000-0x007e0000 : "rootfs"
0x00060000-0x00080000 : "nvram"
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)       
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered                                     
ip_conntrack version 2.4 (256 buckets, 2048 max) - 244 bytes per conntrack
ip_tables: (C) 2000-2002 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 (jffs2 filesystem) readonly.     
Mounted devfs on /dev                         
Freeing unused kernel memory: 120k freed
Algorithmics/MIPS FPU Emulator v1.5     
insmod: /lib/modules/2.6.15.3: No such file or directory
insmod: /lib/modules: No such file or directory
insmod: diag.ko: no module by that name found
Unlocking rootfs ...

.. this doesn't say anything about the network config... the bootlog is all pre-OpenWrt. Only OpenWrt reads /etc/config/network. Is that the end of your bootlog?

It may have something to do with the lack of packages in Yasha's images.

I created an image (build 3116) a couple weeks back with the default packages in menuconfig.

Defaults where:
base-files - 6 -
base-files-brcm-2.6 - 2 -
bridge - 1.0.6-1 -
busybox - 1.1.0-1 -
dnsmasq - 2.26-1 -
dropbear - 0.47-1 -
iptables - 1.3.4-1 -
kernel - 2.6.15.1-brcm-1 -
kmod-madwifi - 2.6.15.1+r1416-20060126-brcm-1 -
kmod-ppp - 2.6.15.1-brcm-1 -
kmod-pppoe - 2.6.15.1-brcm-1 -
kmod-switch - 2.6.15.1-brcm-1 -
mtd - 3 -
ppp - 2.4.3-7 -
ppp-mod-pppoe - 2.4.3-7 -
uclibc - 0.9.28-6 -
wireless-tools - 28.pre13-1 -

The switch worked great and I was able to change the br0 IP to 192.168.1.4 successfully after editing /etc/config/network.  I also disabled dnsmasq (chmod -x /etc/init.d/S50dnsmasq) and was able to get dhcp forwarding from my main router.

I'm having troubles getting ath0 into Master mode (hostapd failing to set Master as well) so I tried one of Yasha's images from this morning (build 3181).

Here are the packages that where included in that image:
base-files - 6 -
base-files-brcm-2.6 - 2 -
bridge - 1.0.6-1 -
busybox - 1.1.0-1 -
dnsmasq - 2.26-1 -
dropbear - 0.47-1 -
iptables - 1.3.4-1 -
ppp - 2.4.3-7 -
ppp-mod-pppoe - 2.4.3-7 -
uclibc - 0.9.28-6 -
wireless-tools - 28.pre13-1 -
zlib - 1.2.3-3 -

I suspect the lack of kmod-switch is the reason why your br0 is not coming up.  I tried an "ifconfig br0 up" command, but only ran into errors.

flyashi wrote:

.. this doesn't say anything about the network config... the bootlog is all pre-OpenWrt. Only OpenWrt reads /etc/config/network. Is that the end of your bootlog?

Yes, that's the end of my bootlog.

Yes, I suspect that it's a lack of packages as well.

No directory /lib/modules exists, as it tried to load modules and fails in the bootlog.

An ls of /lib

$ls

root@C4:/etc# ls /lib
ld-uClibc-0.9.28.so  libcrypt-0.9.28.so   libdl.so.0           libnsl-0.9.28.so     libresolv.so.0       libuClibc-0.9.28.so
ld-uClibc.so.0       libcrypt.so.0        libm-0.9.28.so       libnsl.so.0          librt-0.9.28.so      libutil-0.9.28.so
libc.so.0            libdl-0.9.28.so      libm.so.0            libresolv-0.9.28.so  librt.so.0           libutil.so.0

As a result, no route package exists, so I'm unable to use the ip link command.


Perhaps this goes back to the S05netconfig script not properly recognizing the wgt634u.  Here is that default script from the latest svn:

#!/bin/sh
[ -e /etc/config/network ] && exit 0

mkdir -p /etc/config

(
    if grep 'mtd0: 00060000' /proc/mtd 2>&- >&-; then
        # WGT634u
        echo boardtype=wgt634u
    else
        strings /dev/mtdblock/3
    fi
) | awk '
function p(name) {
    if (c[name] != "") print name "=\"" c[name] "\""
}

BEGIN {
    FS="="
    c["lan_ifname"]="br0"
    c["lan_ifnames"]="vlan0 eth1"
    c["wan_proto"]="none"
    c["wan_ifname"]="vlan1"
    c["vlan0ports"]="1 2 3 4 5*"
    c["vlan1ports"]="0 5"
}

($1 == "boardnum") || ($1 == "boardtype") || ($1 == "boardflags") {
    nvram[$1] = $2
}

END {
    # v1 hardware
    if (nvram["boardtype"] == "bcm94710dev") {
        # Linksys WRT54G v1.x
        if (nvram["boardnum"] == "42") {
            c["vlan0ports"]=""
            c["vlan1ports"]=""
            c["lan_ifnames"]="vlan2 eth2"
        }

        # Asus WL-500g
        if (nvram["boardnum"] == "asusX") {
            c["lan_ifnames"]="eth0 eth1 eth2" # FIXME
            # wan_ifname=eth1
        }
    }
    if (nvram["boardtype"] == "wgt634u") {
        c["vlan0ports"] = "0 1 2 3 5*"
        c["vlan1ports"] = "4 5"
    }
    if (nvram["boardtype"] == "0x0467") {
        c["vlan0ports"] = "0 1 2 3 5*"
        c["vlan1ports"] = "4 5"
    }

    # WAP54G
    if ((nvram["boardnum"] == "2") || \
        (nvram["boardnum"] == "1024")) {
        c["lan_ifnames"]="eth0 eth1"
        c["wan_ifname"]=""
    }

    print "#### VLAN configuration "
    print "vlan0hwname=et0"
    print "vlan1hwname=et0"
    p("vlan0ports")
    p("vlan1ports")
    print ""
    print ""
   
    print "#### LAN configuration"
    print "lan_proto=\"static\""
    p("lan_ifname")
    p("lan_ifnames")
    print "lan_ipaddr=\"192.168.1.1\""
    print "# lan_dns=\"192.168.1.1\""
    print "# lan_gateway=\"192.168.1.1\""

    print ""
    print ""

    print "#### WAN configuration"
    print "# wan_proto: WAN protocol, available protocols:"
    print "#   none: disable"
    print "#   dhcp: DHCP"
    print "#   static: Static IP"
    print "#   pppoe: PPP over Ethernet"
    print "#   pptp: Point-to-Point tunneling Protocol"
    print "#     for pppoe and pptp you need to use wan_ifname=\"ppp0\""
    print ""
    print "wan_proto=dhcp"
    p("wan_ifname")
    print "wan_device=\"" c["wan_ifname"] "\""
    print "# wan_ipaddr=\"192.168.0.2\""
    print "# wan_netmask=\"255.255.255.0\""
    print "# wan_gateway=\"192.168.0.1\""
    print "# wan_dns=\"192.168.0.1\""
    print ""
    print "## PPP over Ethernet and PPTP"
    print "# wan_ifname=\"ppp0\""
    print "# pptp_server_ip=\"192.168.0.1\""
}
' > /etc/config/network

(Last edited by Ydef on 17 Feb 2006, 11:21)

Thanks for the feedback! I'll add those images to the default package.

Hmm... kmod-switch and all the other packages are selected in make menuconfig... selected with *, so they're included in the default build.... Anyway, turns out my cron script wasn't really working. So it's now running in an infinite loop with a 1-hour sleep; not great, but it works. Latest kamikaze is 3250. If you could try it and let me know if the packages show up, that'd be great. My wgt no longer works so I can't test it myself.

Thanks again for the feedback,

- Yasha

Thanks for the update, looks like the wireless modules are included in default image now.

However, there are still no scripts to bring up networking in /etc/init.d , which makes
the setting of any networking variables in /etc/config/network relatively useless.

Even though you can't debug because your router is hosed, can't you at least mount the jffs2 image to loop and take a look at the bootstrap scripts?

Thanks for your support in providing these images btw.

Ok Ydef,
cause you're doing such a great job,
I am also willing to help as much as I can.
Got my router after some, um well, fecked up reinstalls running now 'smoothly' with the netgear wgt634u_1_4_1_10.
So, now first thing I'm going to do is to try the "wgt634u-upgrade.cfg" with your latest image.
I'm going report the outcome of that.
Just a moment.

DeusExMachina

PS: If you got something to try, just tell me, I not got so much time at the moment, but I'll do it asap.

Ok,
got some results:
1. The 'Netgear Webfront Flash'
Yep, it worked very good,
you just get .cfg in as "Save Config", the system does reboot, and you got the menu point "Upgrade To OpenWRT".
Important! Yes, it looks like the point "Router Upgrade", which is directly above and is for upgrading normal Netgear flash files,
but it is ANOTHER thing, so don't mess these two things up. On the Url, you can see wheter you're on the right thing!
-> Flashed it with the new "OpenWrt Kamikaze 3250 compiled Sat Feb 18 07:25:55 EST 2006.", squashfs.
System does reboot,
try to connect - nothing.
Ok,

2. Kamikaze Build:
Hook up to serial Console, got these things printed out:



CFE version 1.0.34 for BCM95365R (32bit,SP,LE)
Build Date: Tue Feb 24 03:21:41 CST 2004 (root@jackylinux)
Copyright (C) 2000,2001,2002 Broadcom Corporation.

Add MAC client version(DNI).
Initializing Arena.
Initializing Devices.
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller
CPU type 0x29007: 200MHz
Total memory: 0x2000000 bytes (32MB)

Total memory used by CFE:  0x81BB1280 - 0x82000000 (4517248)
Initialized Data:          0x81BB1280 - 0x81BB3E90 (11280)
BSS Area:                  0x81BB3E90 - 0x81BB45D0 (1856)
Local Heap:                0x81BB45D0 - 0x81FB45D0 (4194304)
Stack Area:                0x81FB45D0 - 0x81FB65D0 (8192)
Text (code) segment:       0x81FB65E0 - 0x81FFFFB0 (301520)
Boot area (physical):      0x01B70000 - 0x01BB0000
Relocation Factor:         I:E23B65E0 - D:01BB0280

configure vlans
*****************************************************************
*********************** VLAN Driver initial  ********************
*****************************************************************
Process LAN port(2-5) vlan Architecture...
SUCCESS: trying to create VLAN 0 for switch
SUCCESS: trying to add LAN port

Process WAN port(2-5) vlan Architecture...
SUCCESS: trying to create VLAN 0 for switch
SUCCESS: trying to add WAN port
SUCCESS: enable ports  success
configure vlans...done
Device eth0:  hwaddr 00-0F-B5-0D-B4-85, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
Loader:elf Filesys:raw Dev:flash0.os File: Options:(null)
***************************
****  MAC Client V1.0  ****
***************************
et0macaddr value :flag =0 value=00-0f-b5-0d-b4-85
et1macaddr value :flag =0 value=00-0f-b5-0d-b4-86
MAC exist at least one
system ethernet mac exist and not default....
Skip mac client process.....
Loading: 0x80001000/3732 Entry at 0x80001000
Closing network.
et0: link down
Starting program at 0x80001000
Linux version 2.6.15.3 (root@HOME) (gcc version 3.4.4) #1 Tue Feb 7 23:48:24 ES6
CPU revision is: 00029007
early_nvram_init: WGT634U NVRAM found.
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Built 1 zonelists
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/pr0
Primary instruction cache 8kB, physically tagged, 2-way, linesize 16 bytes.
Primary data cache 4kB, 2-way, linesize 16 bytes.
Synthesized TLB refill handler (19 instructions).
Synthesized TLB load handler fastpath (31 instructions).
Synthesized TLB store handler fastpath (31 instructions).
Synthesized TLB modify handler fastpath (30 instructions).
PID hash table entries: 256 (order: 8, 4096 bytes)
Using 100.000 MHz high precision timer.
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 29904k/32768k available (1992k kernel code, 2848k reserved, 247k data, )
Mount-cache hash table entries: 512
Checking for 'wait' instruction...  unavailable.
NET: Registered protocol family 16
PCI: fixing up bridge
PCI: Fixing up device 0000:01:00.0
Squashfs 2.2 (released 2005/07/03) (C) 2002-2005 Phillip Lougher
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = 3) is a 16550A
serial8250: ttyS1 at MMIO 0x0 (irq = 3) is a 16550A
b44.c:v0.97 (Nov 30, 2005)
PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
eth0: Broadcom 47xx 10/100BaseT Ethernet 00:0f:b5:0d:b4:85
Physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
Flash device: 0x800000 at 0x1c000000
bootloader size flag: 3
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x00060000 : "cfe"
0x000a0000-0x007e0000 : "linux"
0x00148000-0x00241000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-y
0x00060000-0x00080000 : "nvram"
0x00260000-0x007e0000 : "OpenWrt"
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
ip_conntrack version 2.4 (256 buckets, 2048 max) - 244 bytes per conntrack
ip_tables: (C) 2000-2002 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.
Mounted devfs on /dev
Freeing unused kernel memory: 120k freed
Algorithmics/MIPS FPU Emulator v1.5
insmod: diag.ko: no module by that name found

->>>> HANGING HERE ONE TIME! (why?!)

/sbin/mount_root: /sbin/mount_root: 36: mtd: not found
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002eeed8: 0x3032 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002eeedc: 0x3032 id
umount: Couldn't umount /rom/dev: No such file or directory
init started:  BusyBox v1.1.0 (2006.02.01-03:48+0000) multi-call binary

Please press Enter to activate this console. b44: eth0: Link is up at 100 Mbps,.
b44: eth0: Flow control is off for TX and off for RX.
wlan: 0.8.4.2 (svn 1451)
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 0.9.16.16 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
ath_rate_sample: 1.2 (svn 1451)
ath_pci: 0.9.4.5 (svn 1451)
PCI: Enabling device 0000:01:01.0 (0000 -> 0002)
PCI: Fixing up device 0000:01:01.0
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 3s
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
couldn't load module 'wlan_scan_ap' (-89)
unable to load wlan_scan_ap
wifi0: Atheros 5212: mem=0x40000000, irq=2
wlan: mac acl policy registered
device eth0 entered promiscuous mode

As you can see on the mark, on one point, it did "Freeze" one time I rebootet the system.
Dunno why!
Access from outside does NOT work, wheter on eth0 or on the vlan0, on 192.168.1.1, 192.168.2.1 or 192.168.2.21 (use this address since long, cause the wgt isn't my mainrouter, but only my "experimental station", using a nice zyxel hw 667 here....)
Access from inside the serial console does NOT work, you can press enter or what ya want, NOTHING works! Even if you press fast on the moment it says "press enter"...
Access from wlan hasn't been tested yet, but I think it won't work.
If it is necessary to check this, just say it and I try!

DeusExMachina

DeusExMachina:  I don't have any problem getting the serial console to work after reflashing with image.  I don't use the web interface, i do it by booting into the CFE and grabbing the image off an independent tftp server i have setup. 

CFE commandline arguments can be found in the openwrt wgt634u documentation:

http://wiki.openwrt.org/OpenWrtDocs/Har … ar/WGT634U

In order to get into CFE, just reboot from serial console and hold down control-c until it throws you into CFE prompt.

To bypass setting up your own tftp server you might be able to tftp image into the router like you can with wrt54g/gs with flash.sh  since boot_wait variable is set on nvram although I  haven't confirmed that this method works.

Although it's strange that your serial console works before and not after flashing image.  Either the upgrade method you're using through web interface is faulty somewhere, or your serial connection somehow hosed itself.  The latter is easy to fix, so if you're serial connection thoroughput isn't the problem, then try the CFE tftp method of upgrading image as I just described.

Yeah, I normally do upgrade via tftpd, cause thats the most secure method,
I just only want to try the .cfg Frontend Method,
and, as you see, it seems to not work the way it should.
I'm going to do an "correct and clean" reflash of the image now,
and pass the results on.

Serial Console things aren't a problem for me, I know how to use it, but I think the direct serial console access might have been busted because of this flashing method.

*doin reinstall*

PS: Yeah, on Wlan, there was none Access Point or whatever, so the WGT didn't had this thingy on there as well, so really NO connection. ^^

Hi,

I flashed my WGT634U this moring with kamikaze 3250. I used the CFE to do that. However, I got the same results as DeusExMachina. Trying the new image now. I will let you know about the results afterwards.

Yasha: Great job and thanks for providing the images!

If there is any testing to do, please let me know!

Maverick

As promised, my boot log. "ifconfig" shows that there is a device "br0" with an address "192.168.1.1". However, I am not able to access the box through a network connection. I am getting errors during the boot process as you can see:

CFE version 1.0.34 for BCM95365R (32bit,SP,LE)
Build Date: Tue Feb 24 03:21:41 CST 2004 (root@jackylinux)
Copyright (C) 2000,2001,2002 Broadcom Corporation.

Add MAC client version(DNI).
Initializing Arena.
Initializing Devices.
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller
CPU type 0x29007: 200MHz
Total memory: 0x2000000 bytes (32MB)

Total memory used by CFE:  0x81BB1280 - 0x82000000 (4517248)
Initialized Data:          0x81BB1280 - 0x81BB3E90 (11280)
BSS Area:                  0x81BB3E90 - 0x81BB45D0 (1856)
Local Heap:                0x81BB45D0 - 0x81FB45D0 (4194304)
Stack Area:                0x81FB45D0 - 0x81FB65D0 (8192)
Text (code) segment:       0x81FB65E0 - 0x81FFFFB0 (301520)
Boot area (physical):      0x01B70000 - 0x01BB0000
Relocation Factor:         I:E23B65E0 - D:01BB0280

configure vlans
*****************************************************************
*********************** VLAN Driver initial  ********************
*****************************************************************
Process LAN port(2-5) vlan Architecture...
SUCCESS: trying to create VLAN 0 for switch
SUCCESS: trying to add LAN port

Process WAN port(2-5) vlan Architecture...
SUCCESS: trying to create VLAN 0 for switch
SUCCESS: trying to add WAN port
SUCCESS: enable ports  success
configure vlans...done
Device eth0:  hwaddr 00-0F-B5-3F-34-34, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
Loader:elf Filesys:raw Dev:flash0.os File: Options:(null)
***************************
****  MAC Client V1.0  ****
***************************
et0macaddr value :flag =0 value=00-0f-b5-3f-34-34
et1macaddr value :flag =0 value=00-0f-b5-3f-34-35
MAC exist at least one
system ethernet mac exist and not default....
Skip mac client process.....
Loading: 0x80001000/3732 Entry at 0x80001000
Closing network.
et0: link down
Starting program at 0x80001000
Linux version 2.6.15.3 (root@HOME) (gcc version 3.4.4) #1 Tue Feb 7 23:48:24 EST 2006
CPU revision is: 00029007
early_nvram_init: WGT634U NVRAM found.
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Built 1 zonelists
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 (19 instructions).
Synthesized TLB load handler fastpath (31 instructions).
Synthesized TLB store handler fastpath (31 instructions).
Synthesized TLB modify handler fastpath (30 instructions).
PID hash table entries: 256 (order: 8, 4096 bytes)
Using 100.000 MHz high precision timer.
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 29904k/32768k available (1992k kernel code, 2848k reserved, 247k data, 120k init, 0k highmem)
Mount-cache hash table entries: 512
Checking for 'wait' instruction...  unavailable.
NET: Registered protocol family 16
PCI: fixing up bridge
PCI: Fixing up device 0000:01:00.0
Squashfs 2.2 (released 2005/07/03) (C) 2002-2005 Phillip Lougher
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = 3) is a 16550A
serial8250: ttyS1 at MMIO 0x0 (irq = 3) is a 16550A
b44.c:v0.97 (Nov 30, 2005)
PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
eth0: Broadcom 47xx 10/100BaseT Ethernet 00:0f:b5:3f:34:34
Physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
Flash device: 0x800000 at 0x1c000000
bootloader size flag: 3
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x00060000 : "cfe"
0x000a0000-0x007e0000 : "linux"
0x00148000-0x00241000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
0x00060000-0x00080000 : "nvram"
0x00260000-0x007e0000 : "OpenWrt"
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
ip_conntrack version 2.4 (256 buckets, 2048 max) - 244 bytes per conntrack
ip_tables: (C) 2000-2002 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.
Mounted devfs on /dev
Freeing unused kernel memory: 120k freed
Algorithmics/MIPS FPU Emulator v1.5
insmod: diag.ko: no module by that name found
/sbin/mount_root: /sbin/mount_root: 36: mtd: not found
/sbin/mount_root: /sbin/mount_root: 36: mtd: not found
Partition marked as clean
/sbin/mount_root: /sbin/mount_root: 36: mtd: not found
Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
empty_blocks 0, bad_blocks 0, c->nr_blocks 44
mount: Mounting /dev/mtdblock/4 on /jffs failed: Input/output error
pivot_root: pivot_root: No such file or directory
mount: Mounting none on /proc failed: Device or resource busy
mount: Mounting none on /dev failed: Device or resource busy
umount: Couldn't umount /rom/proc: No such file or directory
umount: Couldn't umount /rom/dev: No such file or directory
Creating jffs2 partition... Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
empty_blocks 0, bad_blocks 0, c->nr_blocks 44
mount: Mounting /dev/mtdblock/4 on /jffs failed: Input/output error
done
creating directories... done
setting up symlinks... done

init started:  BusyBox v1.1.0 (2006.02.01-03:48+0000) multi-call binary

Please press Enter to activate this console. b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
wlan: 0.8.4.2 (svn 1451)
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 0.9.16.16 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
ath_rate_sample: 1.2 (svn 1451)
ath_pci: 0.9.4.5 (svn 1451)
PCI: Enabling device 0000:01:01.0 (0000 -> 0002)
PCI: Fixing up device 0000:01:01.0
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
couldn't load module 'wlan_scan_ap' (-89)
unable to load wlan_scan_ap
wifi0: Atheros 5212: mem=0x40000000, irq=2
wlan: mac acl policy registered
device eth0 entered promiscuous mode
device ath0 entered promiscuous mode
br0: port 1(ath0) entering learning state
br0: topology change detected, propagating
br0: port 1(ath0) entering forwarding state



BusyBox v1.1.0 (2006.02.01-03:48+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
|       |.-----.-----.-----.|  |  |  |.----.|  |_
|   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
|_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
KAMIKAZE (bleeding edge, r3250) -------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
---------------------------------------------------
root@OpenWrt:/# ifconfig
ath0      Link encap:Ethernet  HWaddr 00:DE:AD:BE:EF:17 
          UP BROADCAST RUNNING ALLMULTI MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:1180 (1.1 KiB)

br0       Link encap:Ethernet  HWaddr 00:DE:AD:BE:EF:17 
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:1770 (1.7 KiB)

eth0      Link encap:Ethernet  HWaddr 00:0F:B5:3F:34:34 
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:739 (739.0 B)  TX bytes:0 (0.0 B)
          Interrupt:4

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wifi0     Link encap:Ethernet  HWaddr 00:0F:B5:3F:40:F8 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:43 errors:0 dropped:0 overruns:0 frame:1866
          TX packets:20 errors:2 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:199
          RX bytes:2990 (2.9 KiB)  TX bytes:2381 (2.3 KiB)
          Interrupt:2 Memory:c0100000-c0110000

Cheers,

Maverick

Yep ... essentially identical to my bootstrap, which goes back to my earlier message that the lack of any scripts in /etc/init.d to bring up networking makes customizing the nvram variables in the /etc/config/network file relatively useless.


Also Yashi:

I assume you have a wrt54g/gs unit ... have you veried that networking works on the 2.6 images you provide?

When attempting to flash my gs unit with your 2.6 image, networking doesn't seem to come up either ... and I don't have a serial connected to my gs unit.

(Last edited by Ydef on 18 Feb 2006, 18:26)

Ydef wrote:

Yep ... essentially identical to my bootstrap

Essentially identical? Any ideas why I get theses errors? Seems like the flashing or erasing of flash0.os doesn't work properly. Strange...

mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
/sbin/mount_root: /sbin/mount_root: 36: mtd: not found
mount: Mounting /dev/mtdblock/4 on /jffs failed: Input/output error

Any help appreciated!

Cheers,

Maverick

Ah yeah, I don't have the problem with my mtdblock/4 partition being hosed as it seems you do.

Are you running squash or jffs2?

My guess is you used a squash image.

Either way, reinstall with jffs2, even if you're going to use squash again after that.  By install jffs2 install will do a complete rewrite of the flash partitions, which is what you need at the moment with you mtd/4 hosed like that.

(Last edited by Ydef on 18 Feb 2006, 20:49)

Also, Yashi:  Doesn't seem like you have the usb drivers compiled in ... if you did then hardware would detect attached usb drives during bootstrap.

The usb 2.0 modules don't seem to be available on your site via ipkg either, and has disappeared from the TODO.

I'm getting this error at the end of my bootstrap log:

Freeing unused kernel memory: 120k freed
Algorithmics/MIPS FPU Emulator v1.5     
insmod: diag.ko: no module by that name found
/sbin/mount_root: /sbin/mount_root: 36: mtd: not found


The mtd utility and the diag.o module are missing.


Also the kernel attempts to insmod these three additional modules:

Jan  1 00:00:04 (none) user.info : insmod: switch-core.ko: no module by that name found
Jan  1 00:00:04 (none) user.info : insmod: switch-robo.ko: no module by that name found
Jan  1 00:00:04 (none) user.info : insmod: switch-adm.ko: no module by that name found

(Last edited by Ydef on 18 Feb 2006, 22:26)

Hmm..

Sorry to hear that my images aren't working. sad

I WAS running a WGT634U, but I fried it. I'm gonna get another few soon, then I can do some testing.

The USB drivers aren't compiled in because not all routers have USB, and I didn't want to cloud the base image. I can compile them in if you guys want. They should be available via ipkg; if "ipkg update" doesn't work, edit your ipkg.conf to point to http://flyashi.dyndns.org:81/packages . It should be there by default in my images; if not, either edit it manually, or try the full URL: ipkg install http://flyashi.dyndns.org:81/packages/k … mipsel.ipk for example.

The image doesn't even boot for some people? Now THAT'S not very nice... booted for me, even with a few errors (.ko's not found, etc).

I recall default networking wasn't working. Changes I made included adding a line to /etc/firewall.user for basic LAN<-->WAN access; wlandev create for the wireless; and I had a MAC-address changing script. Every upgrade I'd have to do this; if I can get my exact commands, I'll post them.

Again, sorry to hear of your troubles. I'll see if I can't find my changes to the default image; however, it *should* be working as of 3200 or so...

- Yasha