[U-Boot] [PATCH v2 18/22] armv7: embed u-boot size within u-boot for use from SPL

Wolfgang Denk wd at denx.de
Sun May 15 22:09:39 CEST 2011


Dear Aneesh V,

In message <1305472900-4004-19-git-send-email-aneesh at ti.com> you wrote:
> Embed the u-boot flash image size at a known offset from the
> start of u-boot so that SPL can use it while loading u-boot
> from a non-XIP media.

I don't think this is a good idea.

What you are doing here is defining an image format. Such an image
format must be good enough not only for OMAP4 and for loading U-Boot
as second stage, but for all other architectures and use cases as
well.

We therefore should be very careful not to oversimplify things here.
I suggest NOT to pot this information into the image itself, but
rather to prepend it (for example, using the mkimage tool), so the
actual payload image needs not to be modified.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Anyone who knows history, particularly the history of Europe, will, I
think, recognize that the domination of education or of government by
any one particular religious faith is never a happy  arrangement  for
the people.                                       - Eleanor Roosevelt


More information about the U-Boot mailing list