The EFI tarball at the QEMU website contains an EFI BIOS image and a bootable linux image that uses the elilo boot loader. I simply grabbed the tarball, unpacked it and moved the EFI bios.bin to /usr/share/qemu/bios-efi.bin to make sure I don't get confused between BIOS filenames.
Then I booted using the EFI BIOS and EFI enabled linux disk image:
qemu qemu -bios bios-efi.bin -hda efi.disk
Here is the initial boot screen:

And here's the EFI command prompt:

So if you want to get to play with EFI, here's a great virtualized playground for one to experiment with. Kudos to TianoCore, Tristan Gingold and QEMU!
This porting effort works in previous version of qemu ( as of now latest is 0.15.1 ) i.e. in 0.12.5 and probably before 0.14.0.
ReplyDeleteSomeone has found some patches over here
http://comments.gmane.org/gmane.comp.emulators.qemu/95679
btw great effort of writing this blog :-)
thanks
sometimes it says can not find mapped devices on "cd fs0", even when it shows devices on "map -r", any idea why this happens ?
ReplyDeleteI am not doing any typing mistaking.
you need to do cd fs0: # note the colon
ReplyDelete