All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerry Van Baren <gerald.vanbaren@ge.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] RFC: New U-boot image format
Date: Tue, 18 Dec 2007 10:33:35 -0500	[thread overview]
Message-ID: <4767E84F.3010805@ge.com> (raw)
In-Reply-To: <4767E487.8020103@freescale.com>

Timur Tabi wrote:
> Marian Balakowicz wrote:
>> Hello,
>>
>> New format for U-boot images has been on the list few times already.
>> There were different ideas and features discussed but no final
>> conclusion has been made.
> 
> I have a request for a new feature.  I think we need image-format plug-ins. 
> That is, we need a way for a plug-in to register itself with the main format 
> processing code.  When the processing code sees a blob that it doesn't 
> understand, it calls the plug-in to handle it.
> 
> This would be a handy way to handle stuff like the QE firmware binary blob 
> format (see the thread titled "[PATCH] 85xx: add ability to upload QE 
> firmware").  The format of the QE firmware blob has already been decided, so all 
> I would need from the multi-image format is:
> 
> 1) A way to package my blob.
> 2) A way to pass the address of the blob to the QE code
> 
> For option #2, setting an environment variable would be the easiest.  To do 
> that, the QE code could register a call-back that says, "If you see a QE 
> firmware blob, call this function and pass the address of the blob".

Hi Timur,

#1 is already in there in the form of properties:
<http://article.gmane.org/gmane.comp.boot-loaders.u-boot/34055>
- 'component' subnode shall support:
     - label property
     - type property
     - hash properties (crc32, md5, sha1, etc.)
     - data compression type property (compressions
       currently supported by U-boot)
     - data size property
     - timestamps property

     - properties corresponding to remaining header
       fields from the old image format:

         os type, cpu architecture properties
         data load address
         entry points for executable images

I think you have #2 backwards.  I envision the board/CPU specific code 
querying the multi-image blob for specific QE firmware (for instance, 
some boards may want serial fixup firmware rather than ethernet 
enhancement firmware, both of which could be in the multi-image) and 
loading it.  I envision this as part of the board/CPU QE handling code 
(the part-of-u-boot GPL code you wrote).

Since libfdt can find the QE firmware and the properties associated with 
that firmware, including the necessary address(es), your "qe" command 
(and the C function corresponding to it) would not need an address at 
all (I would make it optional rather than removing it, so the 
multi-image value could be overridden).

Best regards,
gvb

  reply	other threads:[~2007-12-18 15:33 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-11 16:18 [U-Boot-Users] RFC: New U-boot image format Marian Balakowicz
2007-12-11 16:32 ` [U-Boot-Users] RFC: New U-boot image format - open issues Marian Balakowicz
2007-12-11 19:23 ` [U-Boot-Users] RFC: New U-boot image format Jerry Van Baren
2007-12-11 22:23   ` Wolfgang Denk
2007-12-12 12:38     ` Jerry Van Baren
2007-12-13 22:59       ` Marian Balakowicz
2007-12-13 22:41   ` Marian Balakowicz
2007-12-14  6:17     ` Wolfgang Denk
2007-12-14 21:44     ` T Ziomek
2007-12-19 14:26     ` Marian Balakowicz
2007-12-20  0:50       ` David Gibson
2007-12-20 16:41         ` Scott Wood
2007-12-20 22:25           ` Marian Balakowicz
2007-12-20 22:39             ` Scott Wood
2007-12-21  0:17               ` David Gibson
2007-12-18 15:17 ` Timur Tabi
2007-12-18 15:33   ` Jerry Van Baren [this message]
2007-12-18 15:36     ` Timur Tabi
2007-12-18 16:12   ` Wolfgang Denk
2007-12-18 16:17     ` Timur Tabi
2007-12-18 19:42       ` Wolfgang Denk
2007-12-18 19:47         ` Timur Tabi
2007-12-18 20:11           ` Wolfgang Denk
2007-12-18 20:18             ` Timur Tabi
2007-12-19 14:07   ` Marian Balakowicz
2007-12-20 19:42     ` Wolfgang Denk
2007-12-21 15:04       ` Marian Balakowicz
2007-12-21 15:17         ` Wolfgang Denk
2007-12-21 15:39           ` Marian Balakowicz

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=4767E84F.3010805@ge.com \
    --to=gerald.vanbaren@ge.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.