Skip to contentSkip to conversation

crc check on the u-boot image(bin-file)

U-Boot-Users Anders Öhlander 2 participants 2 messages Feb 16, 2004

lore
Share & tools
lore
#0 lore raw

Hello all u-boot users
I have a question about if anyone know if there is any way to generate an CRC check on the u-boot image itself. So you can check that your flash image is intact before you start uClinux.
uClinux itself is in a header that is CRC supported.

Thanks in advance.

Best regards
Anders ?hlander

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20040216/4f16887a/attachment.htm

#1 lore raw
Quoted 3 lines · In message <02f101c3f4d4$5c37a2e0$9804a8c0@ONTIME62> you wrote:

I have a question about if anyone know if there is any way to generate an CRC check on the u-boot image itself.

Of course there is such a way. You just have to implement it :-)

But this obviously depends on your system coniguration - for example, if your environment is "embedded", you cannot simply checksum the U-Boot image in flash since a simple "saveenv" will change it. SO your code will be pretty configuration dependent, and it will take a bit of thinking to implement this right.

Quoted 7 lines

------=_NextPart_000_02EE_01C3F4DC.BD73EF20

Content-Type: text/html;
	charset="iso-8859-1"

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD>

AAAARGGGGGHHHHHHH!!!! Please do NOT post HTML!!!

Wolfgang Denk

Signature · 4 lines
See us @ Embedded World, Nuremberg, Feb 17 - 19,  Hall 12.0 Booth 440
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
In general, they do what you want, unless you want consistency.
                                    - Larry Wall in the perl man page