[coreboot] [PATCH]Move VSA image to CBFS

Patrick Georgi patrick at georgi-clan.de
Wed Dec 2 15:22:57 CET 2009


attached patch makes amd/model_lx systems load the VSA image from CBFS. 
There are some prerequisite steps necessary to convert it into a form 
that cbfstool can parse, that are not hooked up yet.
A very similar change should also do for model_gx2, which is currently 
non-functional due to a partial backport from v3.

The VSA postprocessing steps:
objcopy --set-start 0x20 --adjust-vma 0x60000 -I binary -O elf32-i386 -B 
i386 vsa.binary vsa.o
ld -e 0x60020 --section-start .data=0x60000 vsa.o -o vsa.elf

Then, after build, do
cbfstool coreboot.rom add-stage vsa.elf vsa l
to add it to the image.

I didn't test it myself, but got positive feedback on IRC.
Given that these steps aren't automated yet, it's not really meant for 
commit in this form. It can, and should, also be discussed if "stage" is 
the right type for the file - we might want to have a generic file 
header that includes a compression flag. I post it for reference, 
further testing, adaptation to gx2 by interested parties, etc.

Nonetheless, to clear up the status,
Signed-off-by: Patrick Georgi <patrick.georgi at coresystems.de>

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 20091202-1-vsa-in-cbfs-for-model_lx
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20091202/970ac2b4/attachment.ksh>

More information about the coreboot mailing list