Skip to contentSkip to conversation

SeaBIOS 1.7.3

Qemu-devel Kevin O'Connor 3 participants 7 messages Jul 8, 2013 – Jul 9, 2013

lore
Share & tools
lore
#0 lore raw

The 1.7.3 version of SeaBIOS has now been released. For more information on the release, please see:

http://seabios.org/Releases

New in this release:

* Initial support for using SeaBIOS as a UEFI Compatibility Support Module (CSM)
* Support for detecting and using ACPI reboot ports.
* By default, all 16bit entry points now use an internal stack to reduce stack footprint.
* Floppy controller code has been rewritten to improve compatibility. Non-standard floppy sizes now work again with recent QEMU versions.
* Several bug fixes and code cleanups

For information on obtaining SeaBIOS, please see:

http://seabios.org/Download

#1 lore raw

[Qemu-devel] seabios 1.7.3 breaks booting windows 7? (was: [ANNOUNCE] SeaBIOS 1.7.3)

Quoted 8 lines · Kevin O'Connor

The 1.7.3 version of SeaBIOS has now been released. For more information on the release, please see:

http://seabios.org/Releases

New in this release:

Quoted 11 lines

* Initial support for using SeaBIOS as a UEFI Compatibility Support Module (CSM)
* Support for detecting and using ACPI reboot ports.
* By default, all 16bit entry points now use an internal stack to reduce stack footprint.
* Floppy controller code has been rewritten to improve compatibility. Non-standard floppy sizes now work again with recent QEMU versions.
* Several bug fixes and code cleanups

Just gave it a spin, breaks booting a Windows 7 VM for me. Using qemu-1.4.2 from Fedora 19 as well as qemu.git.

Here's the BSOD (F19 qemu and seabios 1.7.3):
http://crobinso.fedorapeople.org/misc/seabios_1.7.3_windows_err.png

I bisected to:

commit 76e58028d28e78431f9de3cee0b3c88d807fa39d

Author: Kevin O'Connor <[email protected]>
Date:   Wed Mar 6 21:50:09 2013 -0500

acpi: Eliminate BDAT parameter passing to DSDT code.

Reproducing command line:

x86_64-softmmu/qemu-system-x86_64 \
    -bios /usr/share/seabios/bios.bin \
    -machine pc-i440fx-1.4,accel=kvm,usb=off \
    -m 4096 -smp 4 \
    -sdl -vga std \
    win7.qcow2

Let me know if there's any more info I can provide.

Thanks,
Cole

#2 lore raw

Re: [Qemu-devel] seabios 1.7.3 breaks booting windows 7? (was: [ANNOUNCE] SeaBIOS 1.7.3)

Quoted 9 lines · Cole Robinson
Quoted 2 lines · Kevin O'Connor

The 1.7.3 version of SeaBIOS has now been released. For more information on the release, please see:

Just gave it a spin, breaks booting a Windows 7 VM for me. Using qemu-1.4.2 from Fedora 19 as well as qemu.git.

Here's the BSOD (F19 qemu and seabios 1.7.3):
http://crobinso.fedorapeople.org/misc/seabios_1.7.3_windows_err.png

Thanks for testing. I have a "Windows 7 Ultimate" beta (build 7100) that I tested with and I don't see this problem. (Nor do I see the problem on WinXP.)

Can you try without smp and with a smaller memory size (eg, 512M) to see if the behavior changes.

Otherwise, we'll need to iterate through each change in the 76e58028 commit and find out which part of the DSDT that your copy of Windows doesn't like.

-Kevin

#3 lore raw

Re: [Qemu-devel] seabios 1.7.3 breaks booting windows 7?

Quoted 11 lines · Kevin O'Connor
Quoted 9 lines · Cole Robinson
Quoted 2 lines · Kevin O'Connor

The 1.7.3 version of SeaBIOS has now been released. For more information on the release, please see:

Just gave it a spin, breaks booting a Windows 7 VM for me. Using qemu-1.4.2 from Fedora 19 as well as qemu.git.

Here's the BSOD (F19 qemu and seabios 1.7.3):
http://crobinso.fedorapeople.org/misc/seabios_1.7.3_windows_err.png

Quoted 7 lines

Thanks for testing. I have a "Windows 7 Ultimate" beta (build 7100) that I tested with and I don't see this problem. (Nor do I see the problem on WinXP.)

Can you try without smp and with a smaller memory size (eg, 512M) to see if the behavior changes.

Hmm, my winxp 32 guest is reproducing as well. And I can reproduce with just the windows 7 media (mine is ultimate N, came off MSDN years ago):

~/src/qemu/x86_64-softmmu/qemu-system-x86_64 -m 512 -sdl -cdrom /mnt/data/devel/media/win7_64.iso -boot d -bios ~/src/seabios/out/bios.bin

vista and windows 8 preview media are reproducing for me too.

Maybe it's a toolchain thing, anyone else on Fedora 19 that can independently confirm?

Quoted 4 lines

Otherwise, we'll need to iterate through each change in the 76e58028 commit and find out which part of the DSDT that your copy of Windows doesn't like.

I'll probably need some hand holding through that, I can't tell from looking at the patch what parts are independent.

- Cole

#4 lore raw

Re: [Qemu-devel] seabios 1.7.3 breaks booting windows 7?

Quoted 23 lines · Cole Robinson
Quoted 11 lines · Kevin O'Connor
Quoted 9 lines · Cole Robinson
Quoted 2 lines · Kevin O'Connor

The 1.7.3 version of SeaBIOS has now been released. For more information on the release, please see:

Just gave it a spin, breaks booting a Windows 7 VM for me. Using qemu-1.4.2 from Fedora 19 as well as qemu.git.

Here's the BSOD (F19 qemu and seabios 1.7.3):
http://crobinso.fedorapeople.org/misc/seabios_1.7.3_windows_err.png

Quoted 7 lines

Thanks for testing. I have a "Windows 7 Ultimate" beta (build 7100) that I tested with and I don't see this problem. (Nor do I see the problem on WinXP.)

Can you try without smp and with a smaller memory size (eg, 512M) to see if the behavior changes.

Hmm, my winxp 32 guest is reproducing as well. And I can reproduce with just the windows 7 media (mine is ultimate N, came off MSDN years ago):

Quoted 7 lines

~/src/qemu/x86_64-softmmu/qemu-system-x86_64 -m 512 -sdl -cdrom /mnt/data/devel/media/win7_64.iso -boot d -bios ~/src/seabios/out/bios.bin

vista and windows 8 preview media are reproducing for me too.

Maybe it's a toolchain thing, anyone else on Fedora 19 that can independently confirm?

Ugh - make sure you aren't using an old acpi-dsdt.aml file. I suggest following the steps outlined in the SeaBIOS README file for creating a mybiosdir/ directory and use the QEMU -L option to point to that directory.

Otherwise...

I compile under FC17. I have pre-packaged binaries available at:

http://code.coreboot.org/p/seabios/downloads/

Also, could you post the log output. Add the following to qemu to produce it:

qemu ... -chardev stdio,id=seabios \
    -device isa-debugcon,iobase=0x402,chardev=seabios ...
Quoted 7 lines
Quoted 4 lines

Otherwise, we'll need to iterate through each change in the 76e58028 commit and find out which part of the DSDT that your copy of Windows doesn't like.

I'll probably need some hand holding through that, I can't tell from looking at the patch what parts are independent.

You'll want to do something like:

src/acpi-dsdt-pci-crs.dsl +3 -0
@@ -56,6 +56,8 @@ Scope(\_SB.PCI0) {
     })
 
     Method(_CRS, 0) {
+        Return (CRES)
+#if 0
         /* Fields provided by dynamically created ssdt */
         External(P0S, IntObj)
         External(P0E, IntObj)
@@ -86,5 +88,6 @@ Scope(\_SB.PCI0) {
         /* add window and return result */
         ConcatenateResTemplate(CRES, CR64, Local0)
         Return (Local0)
+#endif
     }
 }

and then move the "Return" and "#if 0" down until you find the offending code.

-Kevin

#5 lore raw

Re: [Qemu-devel] seabios 1.7.3 breaks booting windows 7?

Quoted 29 lines · Kevin O'Connor
Quoted 28 lines · Cole Robinson
Quoted 11 lines · Kevin O'Connor
Quoted 9 lines · Cole Robinson
Quoted 2 lines · Kevin O'Connor

The 1.7.3 version of SeaBIOS has now been released. For more information on the release, please see:

Just gave it a spin, breaks booting a Windows 7 VM for me. Using qemu-1.4.2 from Fedora 19 as well as qemu.git.

Here's the BSOD (F19 qemu and seabios 1.7.3):
http://crobinso.fedorapeople.org/misc/seabios_1.7.3_windows_err.png

Quoted 7 lines

Thanks for testing. I have a "Windows 7 Ultimate" beta (build 7100) that I tested with and I don't see this problem. (Nor do I see the problem on WinXP.)

Can you try without smp and with a smaller memory size (eg, 512M) to see if the behavior changes.

Hmm, my winxp 32 guest is reproducing as well. And I can reproduce with just the windows 7 media (mine is ultimate N, came off MSDN years ago):

~/src/qemu/x86_64-softmmu/qemu-system-x86_64 -m 512 -sdl -cdrom /mnt/data/devel/media/win7_64.iso -boot d -bios ~/src/seabios/out/bios.bin

vista and windows 8 preview media are reproducing for me too.

Quoted 8 lines
Quoted 2 lines

Maybe it's a toolchain thing, anyone else on Fedora 19 that can independently confirm?

Ugh - make sure you aren't using an old acpi-dsdt.aml file. I suggest following the steps outlined in the SeaBIOS README file for creating a mybiosdir/ directory and use the QEMU -L option to point to that directory.

Indeed that was it, thanks Kevin, sorry for the noise.

- Cole

#6 lore raw

Re: [Qemu-devel] [SeaBIOS] seabios 1.7.3 breaks booting windows 7?

In reply to Kevin O'Connor
Quoted 10 lines · Kevin O'Connor
Quoted 9 lines · Cole Robinson
Quoted 2 lines · Kevin O'Connor

The 1.7.3 version of SeaBIOS has now been released. For more information on the release, please see:

Just gave it a spin, breaks booting a Windows 7 VM for me. Using qemu-1.4.2 from Fedora 19 as well as qemu.git.

Here's the BSOD (F19 qemu and seabios 1.7.3):
http://crobinso.fedorapeople.org/misc/seabios_1.7.3_windows_err.png

Hmm. Works for me with qemu-kvm-1.1 and qemu-1.5 just fine, with a few different windows VMs (32/64 bits, smp/up, win7/win2008).

But I haven't tried every possible cpu/smp combination.

Quoted 10 lines

Thanks for testing. I have a "Windows 7 Ultimate" beta (build 7100) that I tested with and I don't see this problem. (Nor do I see the problem on WinXP.)

Can you try without smp and with a smaller memory size (eg, 512M) to see if the behavior changes.

Otherwise, we'll need to iterate through each change in the 76e58028 commit and find out which part of the DSDT that your copy of Windows doesn't like.

Thanks,

/mjt