|
楼主 |
发表于 2014-2-24 23:28
|
显示全部楼层
果然是CFE的分区表有问题
刷上64k nvram的 CFE开机了
- Decompressing.............done
- Start to blink diag led ...
- CFE version 5.60.120.19 based on BBP 1.0.37 for BCM947XX (32bit,SP,LE)
- Build Date: 01/16/11 02:17:41 CST (work@seal3.fedora10)
- Copyright (C) 2000-2008 Broadcom Corporation.
- Initializing Arena
- Initializing Devices.
- No DPN
- This is a Serial Flash
- Boot partition size = 262144(0x40000)
- Found a 8MB ST compatible serial flash
- Partition information:
- boot #00 00000000 -> 0003FFFF (262144)
- trx #01 00040000 -> 0004001B (28)
- os #02 0004001C -> 007EFFFF (8060900)
- nvram #03 007F0000 -> 007FFFFF (65536)
- Partition information:
- boot #00 00000000 -> 0003FFFF (262144)
- trx #01 00040000 -> 007EFFFF (8060928)
- nvram #02 007F0000 -> 007FFFFF (65536)
- BCM47XX_GMAC_ID
- et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 5.60.120.19
- CPU type 0x19749: 500MHz
- Total memory: 65536 KBytes
- CFE mem: 0x80700000 - 0x807B0790 (722832)
- Data: 0x80745AA0 - 0x80749AD0 (16432)
- BSS: 0x80749AD0 - 0x8074A790 (3264)
- Heap: 0x8074A790 - 0x807AE790 (409600)
- Stack: 0x807AE790 - 0x807B0790 (8192)
- Text: 0x80700000 - 0x80745A94 (285332)
- Boot version: v5.3.3
- The boot is CFE
- No mac find, use default mac
- ### CLKDIV= 0x80e0842, SFlashClkDiv=8 clkdivsf=0 ###
- CMD: [ifconfig eth0 -addr=192.168.1.1 -mask=255.255.255.0]
- Device eth0: hwaddr 00-0A-C2-01-01-01, ipaddr 192.168.1.1, mask 255.255.255.0
- gateway not set, nameserver not set
- CMD: [go;]
- Check CRC of image1
- Err invalid Boot magic -1 810697800
- Invalid boot block on disk
- AP code error! boot_from(0)
- CMD: [flash -ctheader -https : flash1.trx]
- Reading :: http_fileop_read = 59046000
- HTTP server listening...(type 'quit' to quit)
- post upgrade.cgi
- content length == 7808465, 2d 2d 2d 2d 2d 2d 2d 2d
- 222content length == 7807065, rxlen == 1400, jj == 1400
- H, D, R, 0, 00, 20, 77, 00
- Last : 0d, 0a, 2d, 2d, 2d, 2d, 2d, 2d
- len == 150
- filename = F:\router\Tools\cmh\hg320-test\flash\tomato-NVRAM64K-1.28.115-MIPSR2-20140114.Hyzoom.RT_N5x-8M-virtual**-AR.bin
- receive data count == 7807968
- code pattern : HDR0
- firmware version : -25.00.00
- (net_https) http_fileop_read, 758
- post upgrade.cgi
- content length == 7808506, 2d 2d 2d 2d 2d 2d 2d 2d
- 222content length == 7807106, rxlen == 1400, jj == 1400
- E, 1, 5, 0, 00, 00, 00, 00
- Last : 0d, 0a, 2d, 2d, 2d, 2d, 2d, 2d
- len == 150
- filename = F:\router\Tools\cmh\hg320-test\flash\tomato-E1500USB-NVRAM64K-1.28.115-MIPSR2-20140114.Hyzoom.RT_N5x-8M-virtual**-AR.bin
- receive data count == 7808000
- code pattern : E150
- firmware version : 4.20.06
- http finished its job, now it is flash driver's turn!bang, bang....
- Develop..... | http_fileop_close
- Develop..... | http_fileop_uninit
- Done. 7808000 bytes read, fname=flash1.trx
- CODE Pattern is correct! (E150)
- Invalid header length. This is not a TRX image.
- The file transferred is not a valid firmware image.
- CFE> quit
- CMD: [quit]
- Invalid command: "quit"
- Available commands: upgrade, et, modify, nvram, reboot, flash, memtest, f, e, d, u, batch, go, boot, load, save, ttcp, tcp, rlogin, client, ping, arp, ifconfig, show, unsetenv, printenv, setenv, help
- *** command status = -1
- CFE> nvram erase
- CMD: [nvram erase]
- *** command status = 0
- CFE> flash -ctheader : flash1.trx
- CMD: [flash -ctheader : flash1.trx]
- Reading :: _tftpd_open(): retries=0/3
- Done. 3544064 bytes read, fname=flash1.trx
- CODE Pattern is correct! (E150)
- it's code.bin
- TRX file size = 3543040
- Burning code image.
- Programming...done. 3543040 bytes written
- *** command status = 0
- CFE> flash -noerase -noheader : flash1.trx
- CMD: [flash -noerase -noheader : flash1.trx]
- Reading :: _tftpd_open(): retries=0/3
- Done. 7807968 bytes read, fname=flash1.trx
- Programming...done. 7807968 bytes written
- *** command status = 0
- CFE> reboot
- ompressing.............done
- Start to blink diag led ...
- CFE version 5.60.120.19 based on BBP 1.0.37 for BCM947XX (32bit,SP,LE)
- Build Date: 01/16/11 02:17:41 CST (work@seal3.fedora10)
- Copyright (C) 2000-2008 Broadcom Corporation.
- Initializing Arena
- Initializing Devices.
- No DPN
- This is a Serial Flash
- Boot partition size = 262144(0x40000)
- Found a 8MB ST compatible serial flash
- Partition information:
- boot #00 00000000 -> 0003FFFF (262144)
- trx #01 00040000 -> 0004001B (28)
- os #02 0004001C -> 007EFFFF (8060900)
- nvram #03 007F0000 -> 007FFFFF (65536)
- Partition information:
- boot #00 00000000 -> 0003FFFF (262144)
- trx #01 00040000 -> 007EFFFF (8060928)
- nvram #02 007F0000 -> 007FFFFF (65536)
- BCM47XX_GMAC_ID
- et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 5.60.120.19
- CPU type 0x19749: 500MHz
- Total memory: 65536 KBytes
- CFE mem: 0x80700000 - 0x807B0790 (722832)
- Data: 0x80745AA0 - 0x80749AD0 (16432)
- BSS: 0x80749AD0 - 0x8074A790 (3264)
- Heap: 0x8074A790 - 0x807AE790 (409600)
- Stack: 0x807AE790 - 0x807B0790 (8192)
- Text: 0x80700000 - 0x80745A94 (285332)
- Boot version: ==> v5.3.3
- The boot is CFE
- No mac find, use default mac
- Committing NVRAM...done
- Decompressing.............donese...done
- Start to blink diag led ...
- CFE version 5.60.120.19 based on BBP 1.0.37 for BCM947XX (32bit,SP,LE)
- Build Date: 01/16/11 02:17:41 CST (work@seal3.fedora10)
- Copyright (C) 2000-2008 Broadcom Corporation.
- Initializing Arena
- Initializing Devices.
- No DPN
- This is a Serial Flash
- Boot partition size = 262144(0x40000)
- Found a 8MB ST compatible serial flash
- Partition information:
- boot #00 00000000 -> 0003FFFF (262144)
- trx #01 00040000 -> 0004001B (28)
- os #02 0004001C -> 007EFFFF (8060900)
- nvram #03 007F0000 -> 007FFFFF (65536)
- Partition information:
- boot #00 00000000 -> 0003FFFF (262144)
- trx #01 00040000 -> 007EFFFF (8060928)
- nvram #02 007F0000 -> 007FFFFF (65536)
- BCM47XX_GMAC_ID
- et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 5.60.120.19
- CPU type 0x19749: 500MHz
- Total memory: 65536 KBytes
- CFE mem: 0x80700000 - 0x807B0790 (722832)
- Data: 0x80745AA0 - 0x80749AD0 (16432)
- BSS: 0x80749AD0 - 0x8074A790 (3264)
- Heap: 0x8074A790 - 0x807AE790 (409600)
- Stack: 0x807AE790 - 0x807B0790 (8192)
- Text: 0x80700000 - 0x80745A94 (285332)
- Boot version: v5.3.3
- The boot is CFE
- No mac find, use default mac
- ### CLKDIV= 0x80e0842, SFlashClkDiv=8 clkdivsf=0 ###
- CMD: [ifconfig eth0 -addr=192.168.1.1 -mask=255.255.255.0]
- Device eth0: hwaddr 00-0A-C2-01-01-01, ipaddr 192.168.1.1, mask 255.255.255.0
- gateway not set, nameserver not set
- CMD: [go;]
- Check CRC of image1
- Len: 0x772000 (7806976) (0xBC040000)
- Offset0: 0x1C (28) (0xBC04001C)
- Offset1: 0xA8C (2700) (0xBC040A8C)
- Offset2: 0xD7000 (880640) (0xBC117000)
- Header CRC: 0xE77C24EB
- Calculate CRC: 0xE77C24EB
- Image 1 is OK
- Try to load image 1.
- Waiting for 3 seconds to upgrade ...
- CMD: [load -raw -addr=0x807b0790 -max=0x384f870 :]
- Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)
- Loading: _tftpd_open(): retries=0/3
- _tftpd_open(): retries=1/3
- _tftpd_open(): retries=2/3
- ### Start=1564817915 E=2100414961 Delta=535597046 ###
- Failed.
- Could not load :: Timeout occured
- CMD: [boot -raw -z -addr=0x80001000 -max=0x6ff000 flash0.os:]
- Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
- Loading: .. 5100 bytes read
- ### Start=2105540456 E=2106825584 Delta=1285128 ###
- Entry at 0x80001000
- Closing network.
- Starting program at 0x80001000
- Linux version 2.6.22.19 (root@tomato) (gcc version 4.2.4) #17 Tue Jan 14 10:37:16 CST 2014
- CPU revision is: 00019749
- Determined physical RAM map:
- memory: 04000000 @ 00000000 (usable)
- Zone PFN ranges:
- Normal 0 -> 16384
- HighMem 16384 -> 16384
- early_node_map[1] active PFN ranges
- 0: 0 -> 16384
- Built 1 zonelists. Total pages: 16384
- Kernel command line: root=/dev/mtdblock2 noinitrd console=ttyS0,115200
- Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes.
- Primary data cache 32kB, 4-way, linesize 32 bytes.
- Synthesized TLB refill handler (20 instructions).
- Synthesized TLB load handler fastpath (32 instructions).
- Synthesized TLB store handler fastpath (32 instructions).
- Synthesized TLB modify handler fastpath (31 instructions).
- PID hash table entries: 512 (order: 9, 2048 bytes)
- CPU: BCM5357 rev 2 pkg 9 at 500 MHz
- Using 250.000 MHz high precision timer.
- console [ttyS0] enabled
- Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
- Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
- Memory: 61408k/65536k available (32k kernel code, 4072k reserved, 2602k data, 120k init, 0k highmem)
- Mount-cache hash table entries: 512
- NET: Registered protocol family 16
- PCI: no core
- PCI: no core
- PCI: Fixing up bus 0
- NET: Registered protocol family 2
- Time: MIPS clocksource has been installed.
- IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
- TCP established hash table entries: 2048 (order: 2, 16384 bytes)
- TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
- TCP: Hash tables configured (established 2048 bind 2048)
- TCP reno registered
- squashfs: version 3.0 (2006/03/15) Phillip Lougher
- io scheduler noop registered (default)
- HDLC line discipline: version $Revision: 4.8 $, maxframe=4096
- N_HDLC line discipline registered.
- Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
- serial8250: ttyS0 at MMIO 0xb8000300 (irq = 8) is a 16550A
- PPP generic driver version 2.4.2
- MPPE/MPPC encryption/compression module registered
- NET: Registered protocol family 24
- PPPoL2TP kernel driver, V0.18.3
- PPTP driver version 0.8.5
- pflash: found no supported devices
- Found an ST compatible serial flash with 128 64KB blocks; total size 8MB
- Creating 5 MTD partitions on "sflash":
- 0x00000000-0x00040000 : "pmon"
- 0x00040000-0x007f0000 : "linux"
- 0x00117000-0x007c0000 : "rootfs"
- 0x007c0000-0x007f0000 : "jffs2"
- 0x007f0000-0x00800000 : "nvram"
- _nvram_init: allocat header: 2150694912, size= 65536
- u32 classifier
- OLD policer on
- Netfilter messages via NETLINK v0.30.
- nf_conntrack version 0.5.0 (512 buckets, 4096 max)
- ip_tables: (C) 2000-2006 Netfilter Core Team
- ipt_account 0.1.21 : Piotr Gasidlo <quaker@barbara.eu.org>, http://www.barbara.eu.org/~quaker/ipt_account/
- net/ipv4/netfilter/tomato_ct.c [Jan 14 2014 10:00:11]
- NET: Registered protocol family 1
- NET: Registered protocol family 10
- ip6_tables: (C) 2000-2006 Netfilter Core Team
- 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.
- Restarting system.
- Please stand by while rebooting the system...
- Decompressing.............done
- Start to blink diag led ...
- CFE version 5.60.120.19 based on BBP 1.0.37 for BCM947XX (32bit,SP,LE)
- Build Date: 01/16/11 02:17:41 CST (work@seal3.fedora10)
- Copyright (C) 2000-2008 Broadcom Corporation.
- Initializing Arena
- Initializing Devices.
- No DPN
- This is a Serial Flash
- Boot partition size = 262144(0x40000)
- Found a 8MB ST compatible serial flash
- Partition information:
- boot #00 00000000 -> 0003FFFF (262144)
- trx #01 00040000 -> 0004001B (28)
- os #02 0004001C -> 007EFFFF (8060900)
- nvram #03 007F0000 -> 007FFFFF (65536)
- Partition information:
- boot #00 00000000 -> 0003FFFF (262144)
- trx #01 00040000 -> 007EFFFF (8060928)
- nvram #02 007F0000 -> 007FFFFF (65536)
- BCM47XX_GMAC_ID
- et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 5.60.120.19
- CPU type 0x19749: 500MHz
- Total memory: 65536 KBytes
- CFE mem: 0x80700000 - 0x807B0790 (722832)
- Data: 0x80745AA0 - 0x80749AD0 (16432)
- BSS: 0x80749AD0 - 0x8074A790 (3264)
- Heap: 0x8074A790 - 0x807AE790 (409600)
- Stack: 0x807AE790 - 0x807B0790 (8192)
- Text: 0x80700000 - 0x80745A94 (285332)
- Boot version: v5.3.3
- The boot is CFE
- No mac find, use default mac
- ### CLKDIV= 0x80e0842, SFlashClkDiv=8 clkdivsf=0 ###
- CMD: [ifconfig eth0 -addr=192.168.1.1 -mask=255.255.255.0]
- Device eth0: hwaddr 00-0A-C2-01-01-01, ipaddr 192.168.1.1, mask 255.255.255.0
- gateway not set, nameserver not set
- CMD: [go;]
- Check CRC of image1
- Len: 0x772000 (7806976) (0xBC040000)
- Offset0: 0x1C (28) (0xBC04001C)
- Offset1: 0xA8C (2700) (0xBC040A8C)
- Offset2: 0xD7000 (880640) (0xBC117000)
- Header CRC: 0xE77C24EB
- Calculate CRC: 0xE77C24EB
- Image 1 is OK
- Try to load image 1.
- Waiting for 3 seconds to upgrade ...
- CMD: [load -raw -addr=0x807b0790 -max=0x384f870 :]
- Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)
- Loading: _tftpd_open(): retries=0/3
- _tftpd_open(): retries=1/3
- _tftpd_open(): retries=2/3
- ### Start=1564857287 E=2100415190 Delta=535557903 ###
- Failed.
- Could not load :: Timeout occured
- CMD: [boot -raw -z -addr=0x80001000 -max=0x6ff000 flash0.os:]
- Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
- Loading: .. 5100 bytes read
- ### Start=2105540386 E=2106825561 Delta=1285175 ###
- Entry at 0x80001000
- Closing network.
- Starting program at 0x80001000
- Linux version 2.6.22.19 (root@tomato) (gcc version 4.2.4) #17 Tue Jan 14 10:37:16 CST 2014
- CPU revision is: 00019749
- Determined physical RAM map:
- memory: 04000000 @ 00000000 (usable)
- Zone PFN ranges:
- Normal 0 -> 16384
- HighMem 16384 -> 16384
- early_node_map[1] active PFN ranges
- 0: 0 -> 16384
- Built 1 zonelists. Total pages: 16384
- Kernel command line: root=/dev/mtdblock2 noinitrd console=ttyS0,115200
- Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes.
- Primary data cache 32kB, 4-way, linesize 32 bytes.
- Synthesized TLB refill handler (20 instructions).
- Synthesized TLB load handler fastpath (32 instructions).
- Synthesized TLB store handler fastpath (32 instructions).
- Synthesized TLB modify handler fastpath (31 instructions).
- PID hash table entries: 512 (order: 9, 2048 bytes)
- CPU: BCM5357 rev 2 pkg 9 at 500 MHz
- Using 250.000 MHz high precision timer.
- console [ttyS0] enabled
- Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
- Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
- Memory: 61408k/65536k available (32k kernel code, 4072k reserved, 2602k data, 120k init, 0k highmem)
- Mount-cache hash table entries: 512
- NET: Registered protocol family 16
- PCI: no core
- PCI: no core
- PCI: Fixing up bus 0
- NET: Registered protocol family 2
- Time: MIPS clocksource has been installed.
- IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
- TCP established hash table entries: 2048 (order: 2, 16384 bytes)
- TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
- TCP: Hash tables configured (established 2048 bind 2048)
- TCP reno registered
- squashfs: version 3.0 (2006/03/15) Phillip Lougher
- io scheduler noop registered (default)
- HDLC line discipline: version $Revision: 4.8 $, maxframe=4096
- N_HDLC line discipline registered.
- Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
- serial8250: ttyS0 at MMIO 0xb8000300 (irq = 8) is a 16550A
- PPP generic driver version 2.4.2
- MPPE/MPPC encryption/compression module registered
- NET: Registered protocol family 24
- PPPoL2TP kernel driver, V0.18.3
- PPTP driver version 0.8.5
- pflash: found no supported devices
- Found an ST compatible serial flash with 128 64KB blocks; total size 8MB
- Creating 5 MTD partitions on "sflash":
- 0x00000000-0x00040000 : "pmon"
- 0x00040000-0x007f0000 : "linux"
- 0x00117000-0x007c0000 : "rootfs"
- 0x007c0000-0x007f0000 : "jffs2"
- 0x007f0000-0x00800000 : "nvram"
- _nvram_init: allocat header: 2150694912, size= 65536
- u32 classifier
- OLD policer on
- Netfilter messages via NETLINK v0.30.
- nf_conntrack version 0.5.0 (512 buckets, 4096 max)
- ip_tables: (C) 2000-2006 Netfilter Core Team
- ipt_account 0.1.21 : Piotr Gasidlo <quaker@barbara.eu.org>, http://www.barbara.eu.org/~quaker/ipt_account/
- net/ipv4/netfilter/tomato_ct.c [Jan 14 2014 10:00:11]
- NET: Registered protocol family 1
- NET: Registered protocol family 10
- ip6_tables: (C) 2000-2006 Netfilter Core Team
- 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.
- emf: module license 'Proprietary' taints kernel.
- eth0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 5.100.138.20
- wl_module_init: passivemode set to 0x0
- eth1: Broadcom BCM4347 802.11 Wireless Controller 5.100.138.20
- / # lo: File exists
- No such device
- No such device
- No such device
- System halted.
- System halted
复制代码 |
|