public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Daniel Hobi <dhobi@gmx.net>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Boot Image Check
Date: Tue, 27 Feb 2007 10:31:21 +0100	[thread overview]
Message-ID: <45E3FA69.5070208@gmx.net> (raw)
In-Reply-To: <276150.51496.qm@web57706.mail.re3.yahoo.com>

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

  reply	other threads:[~2007-02-27  9:31 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-26 22:46 [U-Boot-Users] [PATCH] add output of 'size' to build Andrew Dyer
2007-02-26 23:31 ` Wolfgang Denk
2007-02-27  0:42   ` Andrew Dyer
2007-02-27  1:26     ` Wolfgang Denk
2007-02-27  1:33       ` Andrew Dyer
2007-02-27  2:45   ` [U-Boot-Users] Boot Image Check MoonMoon Ghosh
2007-02-27  9:31     ` Daniel Hobi [this message]
2007-02-27 11:01       ` [U-Boot-Users] Testing of Uboot image from fedora5 through a c program MoonMoon Ghosh
     [not found]         ` <ab648d4b0702270417m6f073a97sea9c940bc781ad69@mail.gmail.com>
2007-02-27 12:19           ` Amnon Cohen
2007-02-27 13:51         ` Wolfgang Denk
2007-02-28  0:33           ` [U-Boot-Users] Testing of Uboot image passed as command line arg MoonMoon Ghosh
2007-02-28  8:06             ` Wolfgang Denk
2007-02-28  9:08               ` [U-Boot-Users] Testing of Uboot image trough a c program -Solved MoonMoon Ghosh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45E3FA69.5070208@gmx.net \
    --to=dhobi@gmx.net \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox