public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 7/8] imximage: Add MX53 boot image support
Date: Fri, 31 Dec 2010 10:48:57 +0100	[thread overview]
Message-ID: <4D1DA709.5070104@denx.de> (raw)
In-Reply-To: <AANLkTinnfXd26YRCiwfNbT5Lx9aY5KXiHBOLSc8jGse4@mail.gmail.com>

On 12/31/2010 07:06 AM, Jason Liu wrote:
> But, I did think again about your comments. If we store the version
> into the header which
> will make the version check more easier, the side-effect is that we
> store some boot
> ROM useless information into the header, but which should not bring some issues.

Exactly. And you introduce an incompatibility with actual images. If you
run your patched mkimage on actual u-boot images, you should not get a
valid value because they do not contain the version field. It works only
with images generated with the updated mkimage.

Tendentially I do not like to introduce some hidden and at the end
bad-documented fields if they are not strictly needed. The IMX header
supplied in u-boot is documented in Freescale's manuals, without adding
spare fields.

As I can see, the IMX header have enough "barker" and magic number to
make recognition easy. V1 rely on two magic numbers (barker for app code
and for dcd), and in V2 reading your patch I see at least IVT_HEADER_TAG
(0xD1) and DCD_HEADER_TAG. Checking these values at the specific offsets
you can find in a more reliable way if an image is a V1 or a V2 or no
imx image at all.

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

  parent reply	other threads:[~2010-12-31  9:48 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-29 12:49 [U-Boot] [PATCH v3 7/8] imximage: Add MX53 boot image support Jason Liu
2010-12-30 12:46 ` Stefano Babic
2010-12-31  3:29   ` Jason Liu
2010-12-31  6:06     ` Jason Liu
2010-12-31  8:14       ` Wolfgang Denk
2010-12-31  8:36         ` Jason Liu
2010-12-31  8:50           ` Wolfgang Denk
2010-12-31  9:25             ` Jason Liu
2010-12-31 10:03               ` Stefano Babic
2010-12-31 11:37               ` Wolfgang Denk
2010-12-31  9:48       ` Stefano Babic [this message]
2010-12-31  8:12     ` Wolfgang Denk
2010-12-31  9:55       ` Stefano Babic
2010-12-31  8:10   ` Wolfgang Denk
2010-12-31  9:35     ` Stefano Babic
2010-12-31 11:39       ` Wolfgang Denk
2010-12-31 12:47         ` Stefano Babic

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=4D1DA709.5070104@denx.de \
    --to=sbabic@denx.de \
    --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