On 08/31/13 21:23, Rod Smith wrote: > I've been trying to use the CSM-enabled OVMF with QEMU, with no luck; > the QEMU system hangs before displaying the Tianocore splash screen. > I've tried both the pre-built binary from http://www.kraxel.org/repos/ > and a binary I've built myself using the SeaBIOS and Tianocore sources > obtained via git within the past 24 hours. I've tried on both an AMD64 > system running Gentoo and an Intel system running Fedora 17, and the > appropriate QEMU binaries for both platforms. QEMU works fine with the > non-CSM OVMF files, so it's not a more general QEMU problem. Is this a > known issue with the current version, and if so, is there a known-good > binary lurking out there somewhere? If not, are there any known > pitfalls I might be missing, like options I might need to be passing > to qemu-system-x86_64 to get it to work? Thanks for any pointers.
Let's stick with Gerd's RPMs from <http://www.kraxel.org/repos/> for now. Please specify: - your host version numbers (kernel, qemu, the RPMs from Gerd's repo), - the qemu command line, - the output produced on qemu's debug console. I just tested: - host kernel: 2.6.32-358.14.1.el6.x86_64 (RHEL-6.4.z) - qemu: qemu-kvm-0.12.1.2-2.398.el6.x86_64 - edk2.git.x86_64, edk2.git-coreboot.x86_64, edk2.git-ovmf-ia32.x86_64, edk2.git-ovmf-x64.x86_64, edk2.git-tools.x86_64: b269.g6bc7a08 - ipxe.git.x86_64, ipxe.git-combined.x86_64: b108.g22a0c44 - seabios.git-csm.x86_64, seavgabios.git.x86_64: b59.g915f64a - qemu command line (composed by libvirt & my wrapper script): /usr/libexec/qemu-kvm -name ovmf.win2k8r2 -S -M rhel6.4.0 \ -enable-kvm -bios /usr/share/edk2.git/ovmf-x64/bios.bin -L \ /usr/share/edk2.git/ovmf-x64 -m 1536 -smp \ 1,sockets=1,cores=1,threads=1 -uuid \ b05d5912-08d4-d264-b32c-93bcdb92c05d -nodefconfig -nodefaults \ -chardev \ socket,id=charmonitor,path=/var/lib/libvirt/qemu/ovmf.win2k8r2.monitor,server,nowait \ -mon chardev=charmonitor,id=monitor,mode=control -rtc \ base=localtime,driftfix=slew -no-shutdown -device \ piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device \ virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x6 -drive \ file=/home/virt-images/ovmf.win2k8r2.img,if=none,id=drive-virtio-disk0,format=qcow2,cache=none \ -device \ virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 \ -drive \ file=/home/virt-images/isos/en_windows_server_2008_r2_with_sp1_x64_dvd_617601.iso,if=none,media=cdrom,id=drive-ide0-0-0,readonly=on,format=raw \ -device \ ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=2 \ -drive \ file=/usr/share/virtio-win/virtio-win.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw \ -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 \ -netdev tap,fd=23,id=hostnet0,vhost=on,vhostfd=24 -device \ virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:69:72:1e,bus=pci.0,addr=0x3 \ -chardev pty,id=charserial0 -device \ isa-serial,chardev=charserial0,id=serial0 -chardev \ socket,id=charchannel0,path=/var/lib/libvirt/qemu/ovmf.win2k8r2.agent,server,nowait \ -device \ virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.qemu.guest_agent.1 \ -device usb-tablet,id=input0 -vnc 127.0.0.1:0 -vga cirrus -device \ virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 -debugcon \ file:/tmp/ovmf.win2k8r2.debug -global isa-debugcon.iobase=0x402 \ -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 - debugcon output: attached. - The list of files that qemu loaded at startup, from the "-L" directory (4 different files): # ls -lLutri /usr/share/edk2.git/ovmf-x64 [...] 1061231 -rw-r--r--. 1 root root 2097152 2013-09-02 11:08:58 +0200 bios.bin 1061231 -rw-r--r--. 1 root root 2097152 2013-09-02 11:08:58 +0200 OVMF-with-csm.fd 811409 -rw-r--r--. 1 root root 8960 2013-09-02 11:08:58 +0200 vapic.bin 1071569 -rw-r--r--. 1 root root 38400 2013-09-02 11:08:58 +0200 vgabios-cirrus.bin 1071607 -rw-r--r--. 1 root root 182272 2013-09-02 11:08:58 +0200 pxe-virtio.rom 1071607 -rw-r--r--. 1 root root 182272 2013-09-02 11:08:58 +0200 pxe-virtio.bin 1071607 -rw-r--r--. 1 root root 182272 2013-09-02 11:08:58 +0200 efi-virtio.rom It is working fine for me. Thanks Laszlo
ovmf.win2k8r2.debug.xz
Description: application/xz
------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel