I have been trying to create a small i386 bootimage for mac using grub efi boot on my new macbook air.
With precise it was not possible to use an i386 kernel on a 64bit efi firmware but this has been resolved with eficross.
But after installing quantal with debootstrap on a usb stick with a small vfat image for holding grub-efi i cannot boot the system with kernel 3.5.18. So I started installing the latest mainline kernel from ppa which worked without problems.
After installing about 10 kernels :) i found that it had to do with the changes between kernel 3.6.4 and 3.6.5, so i investigated the changelog file and there is some significant change for efi cross arch.
commit 31fd7858aab67b6c4104cd7323a69f257a170572
Author: Olof Johansson <email address hidden>
Date: Wed Oct 24 10:00:44 2012 -0700
x86: efi: Turn off efi_enabled after setup on mixed fw/kernel
When 32-bit EFI is used with 64-bit kernel (or vice versa), turn off
efi_enabled once setup is done. Beyond setup, it is normally used to
determine if runtime services are available and we will have none.
This will resolve issues stemming from efivars modprobe panicking on a
32/64-bit setup, as well as some reboot issues on similar setups.
I have been trying to create a small i386 bootimage for mac using grub efi boot on my new macbook air.
With precise it was not possible to use an i386 kernel on a 64bit efi firmware but this has been resolved with eficross.
But after installing quantal with debootstrap on a usb stick with a small vfat image for holding grub-efi i cannot boot the system with kernel 3.5.18. So I started installing the latest mainline kernel from ppa which worked without problems.
After installing about 10 kernels :) i found that it had to do with the changes between kernel 3.6.4 and 3.6.5, so i investigated the changelog file and there is some significant change for efi cross arch.
commit 31fd7858aab67b6 c4104cd7323a69f 257a170572
Author: Olof Johansson <email address hidden>
Date: Wed Oct 24 10:00:44 2012 -0700
x86: efi: Turn off efi_enabled after setup on mixed fw/kernel
commit 5189c2a7c7769ee 9d037d76c1a7b85 50ccf3481c upstream.
When 32-bit EFI is used with 64-bit kernel (or vice versa), turn off
efi_enabled once setup is done. Beyond setup, it is normally used to
determine if runtime services are available and we will have none.
This will resolve issues stemming from efivars modprobe panicking on a
32/64-bit setup, as well as some reboot issues on similar setups.
Bugzilla: https:/ /bugzilla. kernel. org/show_ bug.cgi? id=45991
Reported-by: Marko Kohtala <email address hidden>
Reported-by: Maxim Kammerer <email address hidden>
Signed-off-by: Olof Johansson <email address hidden>
Acked-by: Maarten Lankhorst <email address hidden>
Cc: Matthew Garrett <email address hidden>
Signed-off-by: Matt Fleming <email address hidden>
Signed-off-by: Greg Kroah-Hartman <email address hidden>
I wanted to take that patch and apply it to the quantal kernel but i get an error while patching so there are more changes for efi (duh).
If someone could help me with this patch maybe this can be added to the quantal kernel?
Regards,
William van de Velde