Patch: Grub EFI boot - Next Generation :-)

43 views
Skip to first unread message

Johannes Schwanzer

unread,
Apr 13, 2012, 6:45:04 PM4/13/12
to de...@geexbox.org
After some long nights and, as always, very good support from Tom, here
is the update for grub and grub-efi package as well as the modification
of the files scripts/image and scripts/iso.

With the new version of grub, openbricks has an up to date (U)EFI
booting support for latest kernels and most recent mainboards.

The sense of the updated grub-efi package is nearly the same as the old
package -> It will be responsible for the creation of all needed files
for the EFI boot process.
The package "grub-efi" now contains a build script that creates the EFI
bootloader files from scratch by using the grub_mkimage tool.
This way of creating the bootloader files gives a maximum of flexibility
concerning the grub modules embedded within the this files. With the efi
boot files from the old package we had the issue of an incomplete set of
embedded modules which led to the problem to not be able to boot the
final iso file from an usb stick (with the help of unetbootin).
I wont say that the grub modules which will be embedded with running the
build script of the grub-efi package are complete. They are a "good
selection", cause it does not make sense to my mind to add all available
grub modules to openbricks. Anyway, if something is missing, it can be
easily adapted.

The "image" script is a lot shorter now, cause there is no need for an
efi-boot-image for isolinux at the moment, cause i never heard the
isolinux is ready for efi booting. The only files needed to make the iso
"EFI-ready" are the ones created by the grub-efi package.
Also the "iso" script has been modified to not add this isolinux
efi-boot-image.

Feel free to test.
I was able to boot a x64 arch with a "geexbox" iso from CD and USB stick
in EFI mode.

BTW: it is NOT needed to select the package "grub" in menuconfig ->
grub-efi for EFI booting is added anyway to the resulting iso image.
For testing purposes it might be a good idea to add the "efibootmgr"
package, which will only run from the booted iso, if you are really in
EFI mode.

Next step:
installator package to support efi installation.

@Tom: can you plz add this diff? Thanks.

grub-new-solution.diff

Thomas Genty

unread,
Apr 14, 2012, 2:39:08 AM4/14/12
to geexbo...@googlegroups.com
Le 14/04/2012 00:45, Johannes Schwanzer a ᅵcrit :
Done,
I'm building an iso to test :-)
Thanks for this

Tom

Johannes Schwanzer

unread,
Apr 14, 2012, 3:32:18 AM4/14/12
to geexbo...@googlegroups.com
if you dont have an efi enabled mainboard you can try with virtual-box from oracle.
the client is free and availabel for nearly all os.
i have it running under ubuntu 11.10.
virtual-box is able to emulate an efi firmware. you can turn on this switch in the settings of the virtual machine.

even if i was not able to let xorg run in the virtual box, but at least you can boot in efi mode and start eribootmgr for testing.


Von meinem iPad gesendet

Am 14.04.2012 um 08:39 schrieb Thomas Genty <toml...@gmail.com>:

Thomas Genty

unread,
Apr 14, 2012, 3:43:22 AM4/14/12
to geexbo...@googlegroups.com
Le 14/04/2012 09:32, Johannes Schwanzer a écrit :
> if you dont have an efi enabled mainboard you can try with virtual-box from oracle.
> the client is free and availabel for nearly all os.
> i have it running under ubuntu 11.10.
> virtual-box is able to emulate an efi firmware. you can turn on this switch in the settings of the virtual machine.
THanks for the pointer,
I already use virtualbox

> even if i was not able to let xorg run in the virtual box, but at least you can boot in efi mode and start eribootmgr for testing.
Why, a problem with Xorg ?

Johannes Schwanzer

unread,
Apr 14, 2012, 3:55:54 AM4/14/12
to geexbo...@googlegroups.com

Am 14.04.2012 09:43, schrieb Thomas Genty:
> Le 14/04/2012 09:32, Johannes Schwanzer a écrit :
>> if you dont have an efi enabled mainboard you can try with
>> virtual-box from oracle.
>> the client is free and availabel for nearly all os.
>> i have it running under ubuntu 11.10.
>> virtual-box is able to emulate an efi firmware. you can turn on this
>> switch in the settings of the virtual machine.
> THanks for the pointer,
> I already use virtualbox
>> even if i was not able to let xorg run in the virtual box, but at
>> least you can boot in efi mode and start eribootmgr for testing.
> Why, a problem with Xorg ?

i don't think so, i guess only a setting in virtual box, but i had no
interest do figure it out, cause i just wanted to test efi booting. :-)
so dont worry ;-)

Thomas Genty

unread,
Apr 14, 2012, 11:09:11 AM4/14/12
to geexbo...@googlegroups.com
Le 14/04/2012 09:55, Johannes Schwanzer a écrit :
>
>
> Am 14.04.2012 09:43, schrieb Thomas Genty:
>> Le 14/04/2012 09:32, Johannes Schwanzer a écrit :
>>> if you dont have an efi enabled mainboard you can try with
>>> virtual-box from oracle.
>>> the client is free and availabel for nearly all os.
>>> i have it running under ubuntu 11.10.
>>> virtual-box is able to emulate an efi firmware. you can turn on this
>>> switch in the settings of the virtual machine.
>> THanks for the pointer,
>> I already use virtualbox
>>> even if i was not able to let xorg run in the virtual box, but at
>>> least you can boot in efi mode and start eribootmgr for testing.
>> Why, a problem with Xorg ?
> i don't think so, i guess only a setting in virtual box, but i had no
> interest do figure it out, cause i just wanted to test efi booting. :-)
> so dont worry ;-)
Ok it boots fine with EFI, but no xorg in virtualbox
Without EFI, it's ok

Tom

Johannes Schwanzer

unread,
Apr 14, 2012, 11:49:21 AM4/14/12
to geexbo...@googlegroups.com

Von meinem iPad gesendet

Am 14.04.2012 um 17:09 schrieb Thomas Genty <toml...@gmail.com>:

> Le 14/04/2012 09:55, Johannes Schwanzer a écrit :
>>
>>
>> Am 14.04.2012 09:43, schrieb Thomas Genty:
>>> Le 14/04/2012 09:32, Johannes Schwanzer a écrit :
>>>> if you dont have an efi enabled mainboard you can try with virtual-box from oracle.
>>>> the client is free and availabel for nearly all os.
>>>> i have it running under ubuntu 11.10.
>>>> virtual-box is able to emulate an efi firmware. you can turn on this switch in the settings of the virtual machine.
>>> THanks for the pointer,
>>> I already use virtualbox
>>>> even if i was not able to let xorg run in the virtual box, but at least you can boot in efi mode and start eribootmgr for testing.
>>> Why, a problem with Xorg ?
>> i don't think so, i guess only a setting in virtual box, but i had no interest do figure it out, cause i just wanted to test efi booting. :-)
>> so dont worry ;-)
> Ok it boots fine with EFI, but no xorg in virtualbox
> Without EFI, it's ok

dont worry, it is booting fine on a real efi system ;-)
tested on a Asus P8H67-M PRO and x64 arch

Reply all
Reply to author
Forward
0 new messages