DD-WRT image size too long

9 posts / 0 new
Last post
achilles
achilles's picture
DD-WRT image size too long

Hi all,

I am stuck with a peculiar issue ...  :(

I have downloaded the DD-WRT src code from SVN and have compiled it ..  I have also prepared the rootfs , corresponding squashfs , trx and chk files ... but the problem is that I get a message that my image is too long if I try to flash the board through tftp ... 

Given below is the log that  I am getting ..

CFE> tftpd
Reading :: Done. 2273338 bytes read
Loading ...........................
Programming...done. 2273338 bytes written
Write len/chksum offset @ 0x0038FFF8...done.
Decompressing..........done

WGR614v8 - 1.5 (Fri Jun  6 15:53:24 CST 2008)
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.130.30.0
Device eth0:  hwaddr 00-22-3F-23-A9-7E, 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 ...........................
too long file.
LZMA failed
Reading :: 

 But if I try a chk file  given at this site ... The board gets flashed properly though it is bigger in size ...

For a working chk file my log is given below :

Reading :: Done. 2949178 bytes read
Loading ..................................
Programming...done. 2949178 bytes written
Write len/chksum offset @ 0x0038FFF8...done.
Decompressing..........done

WGR614v8 - 1.5 (Fri Jun  6 15:53:24 CST 2008)
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.130.30.0
Device eth0:  hwaddr 00-22-3F-23-A9-7E, 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
Linux version 2.4.36 (bin@dd-wrt) (gcc version 3.4.6 (OpenWrt-2.0)) #2832 Sun Dec 14 15:15:25 CE8
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 noinitrd console=ttyS0,115200
CPU: BCM5354 rev 2 at 240 MHz
Using 120.000 MHz high precision timer.
Calibrating delay loop... 239.20 BogoMIPS
 

Now I am not able to understand why it is showing too large image for my file which is only  2273338 bytes in size ...

while on the other hand board is getting flashed properly with an image whise size is 2949178 ...

Could anybody please shed some light on this issue as I urgently need to test my image on WGR614L .. 

 

 

 

imran
imran's picture
Could you please tell me how

Could you please tell me how are you creating your trx file ....
I had read some where on this site that lzma decompressor used in trx file should be lzma compressed .... though I found this suggestion in OpenWRT related postings but it seems that you are facing same sort of problem ...
So Please try with lzma compressed decompressor in your trx file ... and let me know if it gets working ..

achilles
achilles's picture
imran said:

imran said:
Could you please tell me how are you creating your trx file ....
I had read some where on this site that lzma decompressor used in trx file should be lzma compressed .... though I found this suggestion in OpenWRT related postings but it seems that you are facing same sort of problem ...
So Please try with lzma compressed decompressor in your trx file ... and let me know if it gets working ..

@imran

thnx for your input .... I have replaced my gzip compressed decompressor with an lzma compressed one  ...

Though now I am not getting that error but my board gets hanged in the middle of flashing  ...

Please find the log below ..

CFE> tftpd
Reading :: Done. 2211898 bytes read
Loading ..........................
Programming...done. 2211898 bytes written
Write len/chksum offset @ 0x0038FFF8...done.
Decompressing..........done

WGR614v8 - 1.5 (Fri Jun  6 15:53:24 CST 2008)
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.130.30.0
Device eth0:  hwaddr 00-22-3F-23-A9-7E, 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 ..........................

It does not proceed after this ....

Could anybody please tell me how to get out of it .... 

achilles
achilles's picture
Well can anybdy plz help me

Well can anybdy plz help me in solving this issue .... I am not able to get my chk
image running on the board .. Where can I be wrong ....

achilles
achilles's picture
I see too many DD-WRT builds

I see too many DD-WRT builds posted on this site still I am not able to find answer of my query .....
Where are the people who have cretaed DD-WRT builds for WGR614L ...
Why I am not getting any answers to my problem ....
Where is the community ..

achilles
achilles's picture
OK ... I will give trx image

OK ... I will give trx image a go and will inform you accordingly ...
thnx for the suggestion ...

achilles
achilles's picture
Well ... boot and load

Well ... boot and load commands did not work for me and I needed to use my chk image ....
BTW with some modifications I am able to create a chk image that boots but I seem to get a kernel panic .
Below is the log of boot process :

CFE> tftpd
Reading :: Done. 2224186 bytes read
Loading ..........................
Programming...done. 2224186 bytes written
Write len/chksum offset @ 0x0038FFF8...done.
Decompressing..........done

WGR614v8 - 1.5 (Fri Jun 6 15:53:24 CST 2008)
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.130.30.0
Device eth0: hwaddr 00-22-3F-23-A9-7E, 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
Linux version 2.4.36 (root@dynamic15.alumnus.co.in) (gcc version 3.4.6 (OpenWrt-2.0)) #27 Wed Ja9
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 noinitrd console=ttyS0,115200
CPU: BCM5354 rev 2 at 240 MHz
Using 120.000 MHz high precision timer.
Calibrating delay loop... 239.20 BogoMIPS
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
Initializing RT netlink socket
Starting kswapd
pty: 256 Unix98 ptys configured
sb_doattach: incoming bus is PCI but it's a lie, switching to SB devid:0x4318
bootloader size: 131072
sflash: Filesystem type: squashfs, size=0x138566
Updating TRX offsets and length:
old trx = [0x0000001c, 0x000e5e90, 0x00000000], len=0x0021f000 crc32=0x5e17467f
new trx = [0x0000001c, 0x000e5e90, 0x00000000], len=0x00220000 crc32=0xff843ee8
Done
****** Looking for flash partitions ******
----- Partition name : cfe -----
----- Partition name : linux -----
----- Partition name : rootfs -----
----- Partition name : nvram -----
----- Partition name : ddwrt -----
+++++++mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only ++++++
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_IPV4OPTSSTRIP loaded
VFS: Mounted root (squashfs filesystem) readonly.
/sbin/initKernel panic: Attempted to kill init!
: can't load lib rary 'libgcc_s.sRebooting in 5 seconds..o.1'
**** Please stand by while rebooting the system... ****
Decompressing..........done

WGR614v8 - 1.5 (Fri Jun 6 15:53:24 CST 2008)
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.130.30.0
Device eth0: hwaddr 00-22-3F-23-A9-7E, 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: 0xB02B0DC9
Calc chksum: 0xB7A00E49
Reading ::

Now could anybody please tell me why does this happen ....

achilles
achilles's picture
Well ... After 5 days of pain

Well ... After 5 days of pain I am able to create a chk from dd-wrt that boots properly on WGR614L .... In my last post the problem was that I was missing some libraries that needed to be put in target directory ....
If anybody faces a problem in building DD-WRT chks for WGR614L ...he/she can post his problems/experiences so that people over here could know different aspects of DD-WRT build for WGR614L ....

achilles
achilles's picture
Now for this chk image I am

Now for this chk image I am not able to ping the board/access the GUI .....
I think I need to change some configuration parameters through NVRAM but I am not able to log in or access board's shell ....
I remember for GUI (in working DD-WRT versions) it was :
login : admin
password : password

I used the same parameters here also but no luck ...
What are the login and password parameters to access board's CLI ....
I am also going to start a new thread so that this problem may attract more notice ...