|
前言:
某公司给中国电信代工E8的ADSL路由器,用BCM6358方案的,16M ROM/32M RAM,带USB2.0 Host接口。可惜DDWRT目前不支持BCM6358,无奈啊无奈。
转机来了,正在研发的中国电信马上要上市的用BCM5354方案的4口路由样品出来了,也是16M/32M,也带USB2.0 Host接口!而且DDWRT是支持BCM5354的。
ASUS的WL500GP V2号称是加载DDWRT后效果最好的机型之一。参数是BCM5354方案,8M ROM/32M RAM,带2个USB2.0Host。对比了一下网上WL500GP V2的PCBA照片,嘿嘿,和手头的电信的样品的板型很像,主控部分看来都是BCM的参考设计。
ASUS的WL500GP V2现在最便宜也要7xx多,而这个样品量产后是很可能会白送的啊!!!歪脑筋开始了,WL500GP V2可以上DDWRT,而这个样品的ROM比WL500GP V2还大,这个样品能不能上呢?
开始:
1. 原有的中国电信标准web页面是不能升级Firmware的。 于是ping通192.168.1.1。ok,可以开始TFTP大法了。
2. 开机,点upgrade,第6次尝试的时候,成功的把DDWRT V24 Mega刷了进去.....
3. 重新给router加电重启。
4. 咦?!怎么反应不对!!!!啊!web配置页面无法打开!!!
5. ping 192.168.1.1,ok,有反映,每次都是100ms。
实在没办法了,接上串口线,观察一下router的启动情况,真是!#@¥%……
CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Mon Aug 18 18:14:49 CST 2008 (root@localhost.localdomain)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.
Initializing Arena
Initializing Devices.
Boot partition size = 131072(0x20000)
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.150.19.0
CPU type 0x29029: 240MHz
Total memory: 32768 KBytes
Total memory used by CFE: 0x80700000 - 0x807979C0 (620992)
Initialized Data: 0x8072EA50 - 0x807311A0 (10064)
BSS Area: 0x807311A0 - 0x807319C0 (2080)
Local Heap: 0x807319C0 - 0x807959C0 (409600)
Stack Area: 0x807959C0 - 0x807979C0 (8192)
Text (code) segment: 0x80700000 - 0x8072EA50 (191056)
Boot area (physical): 0x00798000 - 0x007D8000
Relocation Factor: I:00000000 - D:00000000
Device eth0: hwaddr 00-1E-40-31-5E-BA, ipaddr 192.168.1.1, mask 255.255.255.0
gateway not set, nameserver not set
Max TRX Image Supported: 0xFA0000
Boot program checksum is invalid
Invalid boot block on disk
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
Reading :: Failed.: Timeout occured
Reading :: Failed.: Timeout occured
怎么说Invalid boot block on disk啊!!!!
于是机器就这么变成砖了.
复活:
先尝试一下把机器恢复原状吧。
1.先尝试TFTP大法,把原装中国电信软件的BIN文件导入。结果...刷BIN文件是开始了,但是到最后关头一直失败!
2. 再次通过串口查看到底现在是什么情况:
ole=ttyS0,115200
CPU: BCM5354 rev 2 at 240 MHz
Using 120.000 MHz high precision timer.
Calibrating delay loop... 239.20 BogoMIPS
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
Checking for 'wait' instruction... unavailable.
POSIX conformance testing by UNIFIX
PCI: no core
PCI: Fixing up bus 0
Initializing RT netlink socket
Starting kswapd
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI en
abled
ttyS00 at 0xb8000300 (irq = 3) is a 16550A
ttyS01 at 0xb8000400 (irq = 3) is a 16550A
PCI: Setting latency timer of device 00:01.0 to 64
PCI: Setting latency timer of device 00:05.0 to 64
sb_doattach: incoming bus is PCI but it's a lie, switching to SB devid:0x4318
Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky
Physically mapped flash: Found an alias at 0x1000000 for the chip at 0x0
Amd/Fujitsu Extended Query Table v1.3 at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling fast programming due to code brokenness.
Flash device: 0x1000000 at 0x1c000000
bootloader size: 131072
Physically mapped flash: Filesystem type: squashfs, size=0x5c7fa8
partition size = 6170796
Creating 5 MTD partitions on "hysically mapped flash":
0x00000000-0x00020000 : "cfe"
0x00020000-0x00fe0000 : "linux"
0x000fd754-0x006e0000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-o
nly
0x00fe0000-0x01000000 : "nvram"
0x006e0000-0x00fe0000 : "ddwrt"
sflash not supported on this router
Initializing Cryptographic API
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
ip_conntrack version 2.1 (512 buckets, 4096 max) - 336 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
ipt_random match loaded
netfilter PSD loaded - (c) astaro AG
ipt_osf: Startng OS fingerprint matching module.
ipt_IPV4OPTSSTRIP loaded
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
SQUASHFS error: index 32767 > srclength 6052813 || index+cbyte > sblk->bytes_use
d 0
SQUASHFS error: sb_bread failed reading block 0x1716
SQUASHFS error: Unable to read cache block [5c5bcd:b48]
SQUASHFS error: Unable to read inode [5c5bcd:b48]
VFS: Cannot open root device "mtdblock2" or 1f:02
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 1f:02
<0>Rebooting in 5 seconds..Please stand by while rebooting the system...
Decompressing..........done
CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Mon Aug 18 18:14:49 CST 2008 (root@localhost.localdomain)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.
Initializing Arena
Initializing Devices.
Boot partition size = 131072(0x20000)
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.150.19.0
CPU type 0x29029: 240MHz
Total memory: 32768 KBytes
Total memory used by CFE: 0x80700000 - 0x807979C0 (620992)
Initialized Data: 0x8072EA50 - 0x807311A0 (10064)
BSS Area: 0x807311A0 - 0x807319C0 (2080)
Local Heap: 0x807319C0 - 0x807959C0 (409600)
Stack Area: 0x807959C0 - 0x807979C0 (8192)
Text (code) segment: 0x80700000 - 0x8072EA50 (191056)
Boot area (physical): 0x00798000 - 0x007D8000
Relocation Factor: I:00000000 - D:00000000
Device eth0: hwaddr 00-1E-40-31-5E-BA, ipaddr 192.168.1.1, mask 255.255.255.0
gateway not set, nameserver not set
Max TRX Image Supported: 0xFA0000
Loader:elf Filesys:tftp Dev:eth0 File:192.168.1.159:vmlinux Optionsnull)
Loading: Failed.
Could not load 192.168.1.159:vmlinux: File not found
Loader:elf Filesys:tftp Dev:eth0 File:192.168.1.159:vmlinux Optionsnull)
Loading: Failed.
Could not load 192.168.1.159:vmlinux: File not found
Loader:elf Filesys:tftp Dev:eth0 File:192.168.1.159:vmlinux Optionsnull)
Loading:
完全不知道发生了什么,只知道机器一直在自动重启!!!。
好吧,只好出最后一招了,用烧录器。
请硬件兄弟帮忙,把ROM吹下来,上烧录器......呵....终于搞定了。机器又变回原来的中国电信样机。
......
后续再继续研究,看看怎么弄 |
|