initial commit for EFI platforms
As some people know this, I'm working on Intel Mac these days. I have checked in my initial code to the CVS right now. The current code does nearly nothing, but simply displays "test!" on the screen. Although this might sound bogus, this is a big advance, since the test message proves that my ELF to PE32 converter is working fine.
On EFI platforms, I decided to create a kernel as a module (ELF relocatable object), and convert it to an EFI Application (PE32 executable). The grub-mkimage relocates addresses with the virtual address space which starts from zero, and generate relocation entries for PE32 to resolve absolute addresses at the loading time. This trick is required because EFI Applications must be able to run at an arbitrary address. Pre-loaded modules are not supported yet, since this requires memory management which is not implemented yet, either.
For my future plan, refer to my wiki page:
http://grub.enbug.org/YoshinoriOkuji
Okuji
"Yoshinori K. Okuji" <[email protected]> writes:
Hi Okuji,
Quoted 5 lines
As some people know this, I'm working on Intel Mac these days. I have checked in my initial code to the CVS right now. The current code does nearly nothing, but simply displays "test!" on the screen. Although this might sound bogus, this is a big advance, since the test message proves that my ELF to PE32 converter is working fine.
Have you thought already how to share this support with the IA64, which also uses EFI? It might be very easy to add IA64 later on if the code was written carefully.
Thanks,
Marco
Quoted 3 lines · Marco Gerards
Have you thought already how to share this support with the IA64, which also uses EFI? It might be very easy to add IA64 later on if the code was written carefully.
Yes and no. Please look at my code... At least I am aware of the file organization, but grub-mkimage is completely ad hoc for i386. For me it is more important to get a port working first. IMO, someone who has experience on IA-64 needs to help me, since I have no access to such a machine.
Okuji