From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Hobi Date: Tue, 27 Feb 2007 10:31:21 +0100 Subject: [U-Boot-Users] Boot Image Check In-Reply-To: <276150.51496.qm@web57706.mail.re3.yahoo.com> References: <276150.51496.qm@web57706.mail.re3.yahoo.com> Message-ID: <45E3FA69.5070208@gmx.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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