WGR614 chksum problem

3 posts / 0 new
Last post
Fmay
Fmay's picture
WGR614 chksum problem

 Hi People.

 

In my case, the first boot is OK, but in the follows boot it enter in the CFE.

 How do I make to Validate a correct image checksum and/or correct it or/and avoid.

 

Follow the debug serial console.

 

 CFE for WGR614v8 version: 1.3
Build Date: Wed Apr  4 11:00:42 CST 2007
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.138.1.0
Device eth0:  hwaddr 00-1F-33-CF-37-76, ipaddr 192.168.1.1, mask
255.255.255.0
        gateway not set, nameserver not set
CFE> ^C
CFE> ^C
CFE> tftpd
Start TFTP server
Reading :: Done. 2854970 bytes read
Loading .................................
Programming...done. 2854970 bytes written
Write len/chksum offset @ 0x0038FFF8...done.

CFE for WGR614v8 version: 1.3
Build Date: Wed Apr  4 11:00:42 CST 2007
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.138.1.0
Device eth0:  hwaddr 00-1F-33-CF-37-76, ipaddr 192.168.1.1, mask
255.255.255.0
        gateway not set, nameserver not set
Loader:raw Filesys:tftp Dev:eth0 File:192.168.1.2:vmlinuz Options:(null)
Loading: Failed.
Could not load 192.168.1.2:vmlinuz: Timeout occured
Loading .................................
CPU revision is: 00029029
Primary instruction cache 16kB, physically tagged, 4-way, linesize 16
bytes.
Primary data cache 16kB, 2-way, linesize 16 bytes.
Linux version 2.4.35.4 (devel@fmay) (gcc version 3.4.6 (OpenWrt-2.0))
#222 Fri Oct 24 08:35:54 BRST 2008
Setting the PFC to its default value
Determined physical RAM map:
 memory: 01000000 @ 00000000 (usable)
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200
CPU: BCM5354 rev 3 at 240 MHz
Using 120.000 MHz high precision timer.
Calibrating delay loop... 239.20 BogoMIPS
Memory: 14188k/16384k available (1485k kernel code, 2196k reserved, 100k
data, 92k init, 0k highmem)
Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode cache hash table entries: 1024 (order: 1, 8192 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: 4096 (order: 2, 16384 bytes)
Checking for 'wait' instruction...  unavailable.
POSIX conformance testing by UNIFIX
PCI: no core
PCI: Fixing up bus 0
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Registering mini_fo version $Id$
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis
Communications AB.
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 enabled
ttyS00 at 0xb8000300 (irq = 3) is a 16550A
ttyS01 at 0xb8000400 (irq = 3) is a 16550A
b44.c:v0.93 (Mar, 2004)
eth0: Broadcom 47xx 10/100BaseT Ethernet 00:1f:33:cf:37:76
pflash: found no supported devices
bootloader size: 131072
sflash: Filesystem type: squashfs, size=0x238f51
Updating TRX offsets and length:
old trx = [0x0000001c, 0x00000938, 0x00080000], len=0x002b9000
crc32=0x7aa8c24d
new trx = [0x0000001c, 0x00000938, 0x00080000], len=0x002c0000
crc32=0xc4273e6d
Done
Creating 5 MTD partitions on "sflash":
0x00000000-0x00020000 : "cfe"
0x00020000-0x003a0000 : "linux"
0x000a0000-0x002e0000 : "rootfs"
0x003f0000-0x00400000 : "nvram"
0x002e0000-0x003a0000 : "ddwrt"
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 2048)
ip_conntrack version 2.1 (5953 buckets, 5953 max) - 360 bytes per
conntrack
ip_tables: (C) 2000-2002 Netfilter core team
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Ethernet Bridge 008 for NET4.0
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: 92k freed
Algorithmics/MIPS FPU Emulator v1.5
/etc/preinit: 6: poweron: not found
Using /lib/modules/2.4.35.4/diag.o
diag: Router model not detected.
insmod: init_module: diag: No such device
Using /lib/modules/2.4.35.4/switch-core.o
Using /lib/modules/2.4.35.4/switch-robo.o
roboswitch: Probing device eth0: found!
Using /lib/modules/2.4.35.4/switch-adm.o
BFL_ENETADM not set in boardflags. Use force=1 to ignore.
insmod: init_module: switch-adm: No such device
init started:  BusyBox v1.00 (2006.06.14-18:30+0000) multi-call binary

Please press Enter to activate this console.

 

 THE NEXT BOOT==>>

 

CFE for WGR614v8 version: 1.3
Build Date: Wed Apr  4 11:00:42 CST 2007
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.138.1.0
Device eth0:  hwaddr 00-1F-33-CF-32-50, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
Loader:raw Filesys:tftp Dev:eth0 File:192.168.1.2:vmlinuz Options:(null)
Loading: Failed.
Could not load 192.168.1.2:vmlinuz: Timeout occured
Loading .....................................
Image chksum: 0x8D38F680
Calc  chksum: 0xB9E4F671
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: . 0 bytes read
Failed.
Could not load flash0.os:: Error
CFE>

 

 

 

Thanks for any help or commentary.

Fmay

 

Eko
Eko's picture
You have to make your image

You have to make your image with adjusted trx tool - trx_wgr614 - get it from here: http://svn.dd-wrt.com:8000/dd-wrt/browser/opt/tools

It aligns partitions to 64K

I'm doing it like this:

../tools/trx_wgr614 -o dd-wrt.v24_wgr614v8-L.trx ./loader-0.02/loader+400.lzma ../src/router/mipsel-uclibc/vmlinuz -a 1024 target.squashfs
Fmay
Fmay's picture
Problem Solved, Thanks EKO.

Problem Solved,

Thanks EKO.