[LinuxBIOS] patch: extending LAR, and removing elf from linuxbios (it is not needed)

Stefan Reinauer stepan at coresystems.de
Tue Aug 28 16:55:25 CEST 2007

* ron minnich <rminnich at gmail.com> [070828 16:49]:
> > I think the fix could be even simpler. Instead, if the first header is found,
> > the second header should be searched _after_ the end of the first file
> > in the LAR archive. Going through all of the ROM including the data
> > itself is plain stupid. I remember we did not do this in the beginning,
> > but we broke it since then.
> The match appeared to be happening in the code space of linuxbios,
> i.e. in the top 64k or so of rom. that string (MAGIC) was 16-bit
> aligned. How can you fix that? The lar archive size is 0x100000 -- all
> of FLASH.

By walking the headers like a linked list, not the data like a brute
force search algorithm.


coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.dehttp://www.coresystems.de/

More information about the coreboot mailing list