[U-Boot-Users] iminfo - Bad Header Checksum

Hi All,
I started using U-Boot about 3 days ago, so apologies in advance if I have missed something obvious in the documentation.
I'm using a Metrowerks MPC8540 test board, which came pre-installed with U-Boot 1.0.1(eval-20040206-0-pre4). I suspect that this may be part of the problem i.e. that I have an old version of U-Boot burned to flash. I do not currently have the means to re-flash the board back to its current state, and so I am reluctant to try and upgrade U-Boot just yet.
I downloaded ELDK 3.1.1 and built the kernel, using make uImage. I then downloaded the uImage via TFTP to the board. Running iminfo results in "Bad Header Checksum". I ran mkimage -l to verify that there was a valid header in place, and there does seem to be.
Also, I know that there is no problem with my TFTP setup as I have been able to download and execute the "Hello World" example program.
I would appreciate any pointers on where I am going wrong.
Thanks in advance, Dale Dunlea

I wrote:
I'm using a Metrowerks MPC8540 test board, which came pre-installed with U-Boot 1.0.1(eval-20040206-0-pre4). I suspect that this may be part of the problem i.e. that I have an old version of U-Boot burned to flash. I do not currently have the means to re-flash the board back to its current state, and so I am reluctant to try and upgrade U-Boot just yet.
I've done a little bit more digging and have discovered the following:
If I zero out the CRC block on my downloaded image and run the crc32 command, it generates the same CRC that was already in there, implying that it is correct. I then copied the Linux image which is stored in flash down into ram, and ran iminfo. The image passed. I then zeroed the CRC block of this image, and ran the crc32 command. The CRC it generated was different from the one that had been there.
It appears to me that Metrowerks have flashed a modified version of U-Boot which uses a different checksum function when verifying the header. If this is the case, then presumably under the terms of the GPL, they have to publish their changes? I've not been able to find anything to this effect though.
Has anyone else used this board? Further searching of the archives led me to this thread:
http://sourceforge.net/mailarchive/message.php?msg_id=9964369
Which seems to be exactly the problem I am having. Unfortunately, that thread seems to end without a resolution.
Again, thanks to anyone who can shed light on the situation.
Regards, Dale Dunlea

In message 429A334F.9070408@commergy.com you wrote:
It appears to me that Metrowerks have flashed a modified version of U-Boot which uses a different checksum function when verifying the header. If this is the case, then presumably under the terms of the GPL,
Instead of starting wild speculations you rather provide some more detailed informatioon, like the EXACT commands you used on your board to download the image and to verify that it was consistent. Did you - for example try to "md" the header part of the image? And maybe you tries a hex dump of the image on your host system, too?
Best regards,
Wolfgang Denk

huomenta (morning ;o)
Needed to clean my head off a little... ...so what's better than a quick hack of u-boot (o;
http://www.uclinux.net/forum/viewtopic.php?t=112
...now back to my work and to everyone a good start (o;
best regards rick
participants (3)
-
Dale Dunlea
-
richard@uclinux.net
-
Wolfgang Denk