Problem loading Image

19 posts / 0 new
Last post
kaustab
kaustab's picture
Problem loading Image

Hi all,

I was trying to upload DD-WRT image to the 614L board. I was trying to upload using tftp. But whenever I upload an image I got some checksome error. I have tried to upload the netgear image also and surprisingly observed the same result. The error message is like that  -

CFE>
CFE>
CFE> tftpd
Start TFTP server
Reading :: Done. 3302608 bytes read
Loading ......................................
Image chksum: 0x8B222625
Calc  chksum: 0x412EF436
Reading ::

Can anybody please let me know what I have done wrong. I guess I need to change some CFE settings - might be  some nvram settings. 

hrlevy
hrlevy's picture
where did get your netgear

where did get your netgear image from??

I have had to reload my wgr614l, using the image from the normal netgear page worked ok for me.

I uploaded from an XP system using "TFTP -i 192.168.1.1 put xxx.chk".

kaustab
kaustab's picture
I have tried the image from

I have tried the image from this site. The image name is wgr614l_1_1_2_1_0_23_na.chk.

hrlevy
hrlevy's picture
I take it that it still

I take it that it still failed for you.

How and what system did you use to upload it to the wgr614L???

I used  "TFTP -i 192.168.1.1 put wgr614v8_1_1_2_1_0_23_na.chk" runing on a windows XP system.

kaustab
kaustab's picture
I also followed the same

I also followed the same commands as you did. The system is a Fedora Core 6 machine. I guess, there should not be any dependency on the system from which I am uploding the image.

hrlevy
hrlevy's picture
If you used Fedora Core 6 as

If you used Fedora Core 6 as the uploading PC the command is different than on a windows pc.

Be sure that you are using binary mode for the up load.

Also is you want to e-mail me the file that you are tring to upload, I can try it on my wgr614l.

You can also send me your copy of 'wgr614l_1_1_2_1_0_23_na.chk' and I can compare it against mine.

My e-mail is [email protected]

kaustab
kaustab's picture
I was going through the CFE

I was going through the CFE codes and observed that CFE used to check the checksum value calculated on the supplied image and the value written in the address 0xBC3AFFFC. If these value does not match CFE throws the chekcum message. Since I am getting the checksum error on every image (Netgear image also) I guessed by any chance the value written in that particular address has been overwritten. Can anybody please give me an idea on how to write to a particular address using CFE commands?

kaustab
kaustab's picture
finally, got rid of it. I

finally, got rid of it. I need to set the tftp mode to binary. I missed that step.

mona
mona's picture
Hi

Hi

I am trying to upload DD-WRT image in WGR614L board. I am faceing this problem

___________________________________________________________________ 

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 boot failed
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: .. 4 bytes read
Entry at 0x80001000
Closing network.
Starting program at 0x80001000

_____________________________________________________________________________

and it hangs here.

Could anybody help me please? 

kaustab
kaustab's picture
yes, for linux the command I

yes, for linux the command I used is - 'tftp -m binary 192.168.1.1 -c put <image name>'.

kaustab
kaustab's picture
You are getting the print

You are getting the print "Starting program at 0x80001000". That means the bootloader part is over. May be there is some problem in the image which you are uploading. Even init_arch function may not be called. So you can check head.S and entry.S in arch/mips/kernel.

mona
mona's picture
I have compared head.S, entry

I have compared head.S, entry.S of dd-wrt and wgr614l's code. There is little difference. And also I have checked by replacing these two files of DD-wrt firmware with Netgear wgr614l's original files. But same is happening. Could you please tell any other debugging process?

SouvikGhosh
SouvikGhosh's picture
mona, from where did you get

mona, from where did you get this DD-WRT image? Please send me the source code so that I can look into it. And by the way what was the image type? Is it a chk image?

mona
mona's picture
The image was compiled from

The image was compiled from the DD-WRT source. And yes this was in chk format.

SouvikGhosh
SouvikGhosh's picture
Mona, if you just compile the

Mona, if you just compile the DD-WRT source, the image is not going to run on the 614v8 platform. You need to port this code to the the 614v8 platform first. You need to modify some part of the source, for example, the codes in the linux/arch/mips/broadcom directory also need to modify some structures as well. Port the code for Netgear platform before uploading the image. Best of Luck....

mona
mona's picture
I have already ported the DD

I have already ported the DD-WRT code to netgear WGR614v8 code.  Still this problem is coming.

SouvikGhosh
SouvikGhosh's picture
Can you please list the files

Can you please list the files you have midified...

mona
mona's picture
I have used brcm-boards from

I have used brcm-boards from original wgr614lv8 code rather existing bcm947xx of dd-wrt code.

SouvikGhosh
SouvikGhosh's picture
I will suggest you to

I will suggest you to download the DD-WRT source from their repository. DD-WRT guys have also started porting their code to the Netgear platform.Please refer to the link below -
http://www.dd-wrt.com/wiki/index.php/Building_From_Source#Subversion