[coreboot] [PATCH]clean up bootblocksize handling in cbfstool, kconfig

Maciej Pijanka maciej.pijanka at gmail.com
Thu Nov 12 18:27:05 CET 2009


I feel somewhat guilty for this ROMBASE problem as i was on irc
bugging about inability to move bootblock in chip and rom layout for
me was looking like

0-64k cbfs
64-128k bootblock, then empty space, then jump code
and empty space was about 20k

so i asked how i could change that to move bootblock towards jumpcode
to make that empty space gap smaller.

While change done caused another problems with ROMBASE, i simply
changed ROMBASE to 4G - size of rom (hardcoded, i know that this can
be calculated depending on actual selected chip size), also i created
small change in linker script used to generate bootblock
which automatically makes gap small (assuming rounding to 256byte
boundaries etc)

I already posted this patch once, but maybe it was overlooked. That
already commited change plus this patch make me able to save about 20k
of raw flash space, and it boots (then later crash on lzma problem but
this is with or without moveing of bootblock)

best regards

Maciej Pijanka, PLD-Linux Developer, Reg Linux user #133161
POE/Perl user
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crude-ld-hack.patch
Type: application/octet-stream
Size: 1080 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20091112/259f773e/attachment.obj>

More information about the coreboot mailing list