[U-Boot-Users] Boot Image Check

Daniel Hobi dhobi at gmx.net
Tue Feb 27 10:31:21 CET 2007


Hi Suhas,

On 27.02.2007 03:45, MoonMoon Ghosh wrote:
> Hi, I want to write a function like check_iamge(char * iamgefile) 
> which returns 0 if the image file is in u-boot image format and
> validated by CRC checksum. Otherwise it returns non-zero error
> number. So someone can help me how to write this function. I am using
> X86_64 2.16.X Fedora 5. and UBoot 1.1.6.

There already is such a funtion in U-Boot. It is invoked when using the 
command "iminfo" and provides a return value which can be processed by 
(Hush) shell scripts. For an example, see:

http://www.denx.de/wiki/view/DULG/CommandLineParsing

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

Please don't post HTML on this list.

Regards,
Daniel




More information about the U-Boot mailing list