[LinuxBIOS] ELF loader in v3

Uwe Hermann uwe at hermann-uwe.de
Sat Jun 30 16:32:57 CEST 2007

On Fri, Jun 29, 2007 at 10:55:25PM +0200, Stefan Reinauer wrote:
> I think we really want to freeze lar in the long or even short run. we
> should get this finished within the next few weeks. Lets not freeze or
> version the format during development. If early versions stop working at
> some point, that is not an issue. We dont run on any hardware, yet. 
> Decompression is the only issue I see with this at the moment. :( It
> will make us have several copies of the same stuff again :(

We definately need a version field in the lar header, we probably cannot
use the same format forever, there _will_ be changes one day.

I agree that we don't have to worry too much as long as there are no
external users (yet). But in fact, the 'lar' binary itself will be an
"external" user. It will be available from /usr/bin/lar or similar,
as a general utility (_not_ bound to a specific revision of LinuxBIOS).

We'll use 'lar' to add entries (e.g. payloads) to existing images, remove
entries, etc. etc., all from user space with the 'lar' tool.

Thus, this tool must know which version of a lar archives it works on,
and it must contain backwards compatibility code, to not only handle
the lar format which was the newest one when the tool was compiled,
but also all older version (at least those, which were "released" or
marked as "stable" or something)...

For now the work required to do this is almost zero, just add a
'version' entry to the lar header struct and ignore it's value.
Later versions will have to read the version field and act accordingly.

http://www.hermann-uwe.de  | http://www.holsham-traders.de
http://www.crazy-hacks.org | http://www.unmaintained-free-software.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20070630/4007fb5f/attachment.sig>

More information about the coreboot mailing list