OpenWrt Forum Archive

Topic: update to kamikaze failed (asus WL-500g Premium)

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

hello all,

I tried to upgrade from my two years old whiterussian to a kamikaze. I tried mtd method as described here:

http://wiki.openwrt.org/OpenWrtDocs/Har … us/WL500GP

but my router never booted again. So i connected on it with the diagmode telnetd to grab some informations. I was surprised to see the net conf has nothing to do with the documented one:

Please help or my wife would kill me :-)

Some grabbed info:

seen in motd:

KAMIKAZE (7.09)

seen in dmesg:

Detected 'ASUS WL-500g Premium'
CPU: BCM4704 rev 9 at 264 MHz
eth0: Broadcom 47xx 10/100BaseT Ethernet 00:1b:fc:10:3f:bc
eth1: Broadcom 47xx 10/100BaseT Ethernet 40:10:18:00:00:2d

seen in ifconfig:

eth0      Link encap:Ethernet  HWaddr 00:1B:FC:10:3F:BC 
          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:1556 errors:0 dropped:0 overruns:0 frame:0
          TX packets:975 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:110543 (107.9 KiB)  TX bytes:99438 (97.1 KiB)
          Interrupt:4

eth1      Link encap:Ethernet  HWaddr 40:10:18:00:00:2D 
          BROADCAST MULTICAST  MTU:1500  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:1000
          RX bytes:0 (0.0 B) 

tried:

root@(none):/# mount_root
root@(none):/# wifi detect > /etc/config/wireless
broadcom: Detect failed


regards

I have just done 2 of my asus wl-500gp's with no problems.
Did you mean that you attached a cable between the asus and your pc and did a telnet and got an Openwrt prompt
If yes, then the box is working.
You need to edit /etc/config/wireless
and do a passwd to get rid of telnet and start ssh

and do a /etc/init.d/network restart (or just toggle the power ...)

(Last edited by oxo on 13 Oct 2008, 20:45)

oxo wrote:

Did you mean that you attached a cable between the asus and your pc and did a telnet and got an Openwrt prompt
If yes, then the box is working.

i did it, but it was in the diag mode!

oxo wrote:

You need to edit /etc/config/wireless and do a passwd to get rid of telnet and start ssh.

the doc says it can be generated

wifi detect > /etc/config/wireless

but as i said

# wifi detect > /etc/config/wireless
broadcom: Detect failed

The file is still empty and the available interfaces confuses me:

Interfaces expected after reading the doc:

br-lan 192.168.1.1/24
vlan0   LAN ports (1 to 4)
vlan1 WAN port DHCP
wl0/ath0 WiFi

Seen interfaces:

eth0  192.168.1.1 
eth1  ?

regards

What is the /etc/config/network on the box ...

well ... i tried to enter to diag mode again and have no more answer. I can't even ping my router anymore ...

root@OpenWrt:~# rm -rf /etc/config/wireless
root@OpenWrt:~# wifi detect > /etc/config/wireless

If /etc/config/wireless is there, even if it's empty it will not be detected, IIRC.

(Last edited by Yanira on 15 Oct 2008, 10:14)

Or on the other hand, revert back to original Asus software using Asus SW utility to obtain peace with the wife
- and check that the device can still work

@Yanira

read my old post, allready done and failed

@oxo

I am now connected in diag mode and have:

root@OpenWrt:/# 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   "lan"
        option proto    static
        option ipaddr   192.168.1.1
        option netmask  255.255.255.0


#### WAN configuration
config interface        wan
        option ifname   "wan"
        option proto    dhcp

root@OpenWrt:/# cat /etc/config/wireless
config wifi-device  wl0
        option type     broadcom
        option channel  5

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

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

/etc/init.d/network start

root@(none):/etc/config# /etc/init.d/network start
/sbin/ifup: /sbin/ifdown: 18: cannot create /var/state/network.92: Directory nonexistent
mv: cannot rename '/var/state/network.92': No such file or directory
/bin/uci: /bin/uci: 189: cannot create /var/state/network: Directory nonexistent
/sbin/ifup: /sbin/ifdown: 18: cannot create /var/state/network.118: Directory nonexistent
mv: cannot rename '/var/state/network.118': No such file or directory
ifconfig: SIOCGIFFLAGS: No such device
/bin/uci: /bin/uci: 189: cannot create /var/state/network: Directory nonexistent
/sbin/hotplug-call: .: 1: Can't open /var/state/network
/bin/uci: /bin/uci: 189: cannot create /var/state/network: Directory nonexistent
ifconfig: SIOCSIFADDR: No such device
/sbin/ifup: /sbin/ifdown: 18: cannot create /var/state/network.153: Directory nonexistent
mv: cannot rename '/var/state/network.153': No such file or directory
/bin/uci: /bin/uci: 189: cannot create /var/state/network: Directory nonexistent
/sbin/hotplug-call: .: 1: Can't open /var/state/network
ifconfig: SIOCGIFFLAGS: No such device
/bin/uci: /bin/uci: 189: cannot create /var/state/network: Directory nonexistent
Can't open /var/lock/dhcp-wan
udhcpc: cannot open pidfile /var/run/wan.pid: No such file or directory
udhcpc (v1.4.2) started
udhcpc: SIOCGIFINDEX failed: No such device
No Broadcom wl interface found!
No Broadcom wl interface found!
ifconfig: SIOCGIFFLAGS: No such device
/bin/uci: /bin/uci: 189: cannot create /var/state/network: Directory nonexistent
ifconfig: SIOCSIFADDR: No such device
/bin/uci: /bin/uci: 189: cannot create /var/state/wireless: Directory nonexistent
/bin/uci: /bin/uci: 189: cannot create /var/state/wireless: Directory nonexistent
/bin/uci: /bin/uci: 189: cannot create /var/state/network: Directory nonexistent
No Broadcom wl interface found!
wl0(broadcom): enable failed
/sbin/hotplug-call: .: 1: Can't open /var/state/network

If i try to power on the normal mode, it is like the interface doesn't answer arp requests. this is the libcap file :

http://musil.biblibre.com/power_on

regards

OK the first packet was to port 4919, which is good.

Please read: http://wiki.openwrt.org/OpenWrtDocs/Har … us/WL500GP (Installation) and/or http://forum.openwrt.org/viewtopic.php?id=12778 and see if there is something you can do, while I re-read your posts.

I know it seems daft, please double check you don't have firewall enabled on your pc (I have forgotten more than once)

Please forget about things that don't work in diag mode: lets try and get it in "ordinary" mode

(I'll try and put one of my devices in diag mode to see the same symtons but it isn't "important" as the device can run Kami )

(Last edited by oxo on 15 Oct 2008, 19:20)

oxo,

thanks to your help, i just seen that the situation wasn't so bad i can't retry from the start. I have done an mtd write again and it worked almost fine this time. I can't connect to the wifi with my laptop but now my iwlist gets

eth1      Scan completed :
          Cell 01 - Address: 00:1B:FC:10:3F:BC
                    ESSID:"voltaire"
                    Mode:Master
                    Channel:5
                    Frequency:2.432 GHz (Channel 5)
                    Quality=96/100  Signal level=-30 dBm  Noise level=-127 dBm
                    Encryption key:on
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : 802.1x
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
                              12 Mb/s; 48 Mb/s
                    Extra:tsf=000000023115ff9d

So i think i'm close to the victory ... still searching smile

regards

Great smile

The discussion might have continued from here.