(CC'ing Gerd)

On 11/11/13 15:33, David Woodhouse wrote:
> On Sun, 2013-11-10 at 02:59 +0100, Laszlo Ersek wrote:
>>
>> I "fixed" my CSM problem by keeping only the absolutely necessary
>> (out-of-tree) CSM patches:
>>
>> - OvmfPkg: Don't build in QemuVideoDxe when we have CSM
>> - LegacyBios: Add UmbStart,UmbEnd fields to EFI_COMPATIBILITY16_TABLE
> 
> I just tried building OVMF+CSM again, since I'm about to fix that second
> patch to reflect what it actually says in the soon-to-be-released CSM
> spec update.

Great! Thank you for the heads-up!

> Apart from the BaseTools breakage, I also don't seem to have video until
> SeaBIOS itself starts. Isn't OVMF supposed to be using the legacy BIOS,
> and isn't that supposed to work nicely if I just remove QemuVideoDxe
> from the build?
> 
> I'll go try to debug it (Fedora *is* shipping a sane Cirrus BIOS which
> obeys the alignment constraints now, isn't it?), but am I missing
> something obvious before I try to context-switch all this stuff back in?

On 11/11/13 15:41, David Woodhouse wrote:

> Switching back to Fedora 18's vgabios package makes it work. What's
> wrong with the SeaBIOS one? I note in
> http://www.linux-kvm.org/page/OVMF
> there is a reference to vgabios-cirrus.csm.bin...

I think the SeaBIOS binary in Fedora 19 is *not* buggy in this regard. I
assume though that SeaBIOS and/or SeaVGABIOS in Fedora 19 are not built
with the correct config options for CSM.

I use the following config options when building upstream SeaBIOS and
SeaVGABIOS for CSM (note that this is two separate builds):

SeaBIOS:

cat >.config <<-EOT
        CONFIG_CSM=y
        CONFIG_QEMU_HARDWARE=y
        CONFIG_PERMIT_UNALIGNED_PCIROM=y
        CONFIG_DEBUG_LEVEL=20
EOT
yes "" | make oldconfig
make -j2 out/bios.bin
mv -- out/bios.bin "$SIDE_COPY"/Csm16.bin


SeaVGABIOS:

make distclean
cat >.config <<-EOT
        CONFIG_QEMU=y
        CONFIG_BUILD_VGABIOS=y
        CONFIG_VGA_CIRRUS=y
        CONFIG_VGA_PCI=y
        CONFIG_DEBUG_LEVEL=20
EOT
yes "" | make oldconfig
make -j2 out/vgabios.bin
cat out/vgabios.bin >| "$INST"/vgabios-cirrus.csm.bin

These were shamelessly stolen from one of Gerd's SRPMs (the DEBUG_LEVEL
setting is mine).

I'll admit however that it's been a while since I last rebuilt these
binaries.

Thanks
Laszlo

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to