From: phcoder <phcoder@gmail.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: [PATCH] efi_emu
Date: Sat, 21 Feb 2009 20:45:27 +0100 [thread overview]
Message-ID: <49A059D7.600@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1385 bytes --]
Hello. Here is a version 0.0 of efiemu patch. First couple of words
about how efi works
first efi works in boot services mode
then booter calls EfiExitBootServices
after it only small number of calls called efi runtime is available
after then. Only these functions are emulated by this patch. This is the
difference with tianocore.
Usage cases:
-look how OS works in EFI environments. Debugging. Debugging ACPI
-launch darwin on non-EFI machine without usage of unmaintained buggy
kernel patches (I already have xnu loading, it works but I have to fix
few things)
-future port of coreboot to mac without losing ability to launch Mac OS X
Usage:
First compile grub2 with this patch and efiemu runtime (in archive)
Then on grub prompt
efiemu_loadcore <efiemu runtime>
efiemu_pnvram <variables file>
efiemu_acpi [-x <tables to delete>] <tables to add if any>
efiemu_prepare
linux_efiemu <normal linux>
initrd_efiemu <initrd>
Soon I'll also submit xnu patch which uses efiemu on non-EFI platforms
Programming note:
To keep compact I use defered allocation of all objects
Drawbacks and TODOs (I'm working on it but help is much appreciated):
-no way to hide standard bios functions
-time functions aren't implemented yet
-reset function isn't implemented yet
-only 32-bit is supported for now
-efiemu runtime is now has to be compiled separately
Regards
Vladimir 'phcoder' Serbinenko
[-- Attachment #2: efiemu.tgz --]
[-- Type: application/x-compressed-tar, Size: 21790 bytes --]
reply other threads:[~2009-02-21 19:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49A059D7.600@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.