OpenWrt Forum Archive

Topic: Help with bricked WRT54G3G: I/O ERROR

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

Hello everybody:

Messing with my router I somehow managed to brick it and can't get acces through LAN.

I`ve been able to access through Serial Port but cannot get the LAN to work properly with CFE:

CFE> nvram set boot_wait=on
*** command status = 0
CFE> nvram commit
*** command status = 0
CFE> ifconfig eth0 -addr=192.168.1.1 -mask=255.255.255.0
Device eth0:  hwaddr 00-18-39-**-**-**, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
*** command status = 0
CFE> et up
*** command status = 0
CFE> flash -noheader 192.168.1.253:/openwrt-brcm-2.4-squashfs.trx flash1.trx
Reading 192.168.1.253:/openwrt-brcm-2.4-squashfs.trx: Failed.: I/O error
*** command status = -4

Is there any way I can transfer a proper image through the serial port instead of Lan?

(Last edited by dla on 6 Feb 2008, 15:48)

Ok, seems like I´ve got too much things inside the flash and maybe thats the problem

Any clues with how to erase unnecesary things?


On boot:

CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Mon Jul  3 15:34:01 CST 2006 (root@RedHat9)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.

Initializing Arena
Initializing Devices.

No DPN
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 3.90.37.0
rndis0: Broadcom USB RNDIS Network Adapter (P-t-P)
CPU type 0x29007: 200MHz
Total memory: 16384 KBytes

Total memory used by CFE:  0x80300000 - 0x803A3A00 (670208)
Initialized Data:          0x80339910 - 0x8033C020 (10000)
BSS Area:                  0x8033C020 - 0x8033DA00 (6624)
Local Heap:                0x8033DA00 - 0x803A1A00 (409600)
Stack Area:                0x803A1A00 - 0x803A3A00 (8192)
Text (code) segment:       0x80300000 - 0x80339910 (235792)
Boot area (physical):      0x003A4000 - 0x003E4000
Relocation Factor:         I:00000000 - D:00000000

Boot version: v3.6
The boot is CFE

mac_init(): Find mac [00:18:39:**:**:**] in location 0
Nothing...

No eou key find
Device eth0:  hwaddr 00-18-39-**-**-**, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
Boot program checksum is invalid
Reading :: Failed.: Timeout occured
Reading :: Failed.: Timeout occured
Reading :: Failed.: Timeout occured
CFE>

printenv:

CFE> printenv
Variable Name        Value
-------------------- --------------------------------------------------
BOOT_CONSOLE         uart0
CFE_VERSION          1.0.37
CFE_BOARDNAME        BCM947XX
CFE_MEMORYSIZE       16384
NET_DEVICE           eth0
NET_IPADDR           192.168.1.1
NET_NETMASK          255.255.255.0
NET_GATEWAY          0.0.0.0
NET_NAMESERVER       0.0.0.0
STARTUP              go;
*** command status = 0

show devices:

CFE> show devices
Device Name          Description
-------------------  ---------------------------------------------------------
uart0                NS16550 UART at 0x18000300
uart1                NS16550 UART at 0x18000400
flash0.boot          New CFI flash at 1C000000 offset 00000000 size 256KB
flash0.trx           New CFI flash at 1C000000 offset 00040000 size 1KB
flash0.os            New CFI flash at 1C000000 offset 0004001C size 3808KB
flash0.nvram         New CFI flash at 1C000000 offset 003F8000 size 32KB
flash1.boot          New CFI flash at 1C000000 offset 00000000 size 256KB
flash1.trx           New CFI flash at 1C000000 offset 00040000 size 3808KB
flash1.nvram         New CFI flash at 1C000000 offset 003F8000 size 32KB
flash0               New CFI flash at 1C000000 size 4096KB
eth0                 Broadcom BCM47xx 10/100 Mbps Ethernet Controller
eth1                 Broadcom USB RNDIS Network Adapter (P-t-P)
*** command status = 0

thanks

(Last edited by dla on 6 Feb 2008, 15:54)

OK after setting up the Lan and trying to flash the device through TFTP server I get the following:


CFE> flash -noheader 192.168.1.253:/openwrt-brcm-2.4-squashfs.trx flash1.trx
Reading 192.168.1.253:/openwrt-brcm-2.4-squashfs.trx: **Exception 8: EPC=8032980C, Cause=00008008 (TLBMissRd)
                RA=8032AD78, VAddr=00000014

        0  ($00) = 00000000     AT ($01) = 80340000
        v0 ($02) = 80341B00     v1 ($03) = 80344E08
        a0 ($04) = 00000000     a1 ($05) = 00000000
        a2 ($06) = 00000000     a3 ($07) = 00000000
        t0 ($08) = 00000000     t1 ($09) = 8033F0A8
        t2 ($10) = 00000000     t3 ($11) = 8033F140
        t4 ($12) = A0340000     t5 ($13) = 000000C0
        t6 ($14) = 00000000     t7 ($15) = 00000000
        s0 ($16) = 00000003     s1 ($17) = 00000000
        s2 ($18) = 80341DF8     s3 ($19) = 80341D56
        s4 ($20) = 8034200A     s5 ($21) = 00C5C600
        s6 ($22) = 00000000     s7 ($23) = 00000000
        t8 ($24) = 01000000     t9 ($25) = 00000000
        k0 ($26) = 80342C88     k1 ($27) = 803274E8
        gp ($28) = 80341910     sp ($29) = 803A3278
        fp ($30) = 803A3A00     ra ($31) = 8032AD78

And then system reboots:

CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Mon Jul  3 15:34:01 CST 2006 (root@RedHat9)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.

Initializing Arena
Initializing Devices.

No DPN
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 3.90.37.0
rndis0: Broadcom USB RNDIS Network Adapter (P-t-P)
CPU type 0x29007: 200MHz
Total memory: 16384 KBytes

Total memory used by CFE:  0x80300000 - 0x803A3A00 (670208)
Initialized Data:          0x80339910 - 0x8033C020 (10000)
BSS Area:                  0x8033C020 - 0x8033DA00 (6624)
Local Heap:                0x8033DA00 - 0x803A1A00 (409600)
Stack Area:                0x803A1A00 - 0x803A3A00 (8192)
Text (code) segment:       0x80300000 - 0x80339910 (235792)
Boot area (physical):      0x003A4000 - 0x003E4000
Relocation Factor:         I:00000000 - D:00000000

Boot version: v3.6
The boot is CFE

mac_init(): Find mac [00:18:39:**:**:**] in location 0
Nothing...

No eou key find
Device eth0:  hwaddr 00-18-39-**-**-**, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
Boot program checksum is invalid
Reading :: Failed.: Timeout occured
Reading :: Failed.: Timeout occured
Reading :: Failed.: Timeout occured
Reading :: Failed.: Timeout occured
Reading :: Failed.: Timeout occured
Reading :: Failed.: Timeout occured
Reading :: Failed.: Timeout occured
Reading :: Failed.: Timeout occured
Reading :: Failed.: Timeout occured

Rebooting the router and trying with a tftp client is a little different:

....
Boot version: v3.6
The boot is CFE

mac_init(): Find mac [00:18:39:**:**:**] in location 0
Nothing...

No eou key find
Device eth0:  hwaddr 00-18-39-**-**-**, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
Boot program checksum is invalid
Reading :: CODE Pattern is CORRECT!
upgrade_ver[v2.1.1] upgrade_ver[20101] 4712_ver[15000]
CODE Pattern is CORRECT!
upgrade_ver[v2.1.1] upgrade_ver[20101] 4712_ver[15000]
CODE Pattern is CORRECT!
upgrade_ver[v2.1.1] upgrade_ver[20101] 4712_ver[15000]
Failed.: I/O error
CFE>

Please help!

(Last edited by dla on 6 Feb 2008, 16:06)

The discussion might have continued from here.