GRUB Legacy: Difference between revisions

[unchecked revision][unchecked revision]
Line 228:
Download grub-1.9-rc2.tar.gz and unpack it.
 
Next thing to do is "<pre>./configure --with-platform=efi --target=x86_64"</pre>
 
then "make"
Line 242:
For your grub to be functional you should include as many filesystems as possible and also linux,multiboot,multiboot2 etc so that you can read any type of kernel from any type of filesystem.
 
So.. Lets build grub.efi / bootx64.efi
 
Go to "grub-core" folder.
 
Execute: ../grub-mkimage -d . -o bootx64.efi -O x86_64-efi -p /efi/boot minicmd[list part_gptof part_msdosmodules part_applewithout fat ext2 hfsplus hfs ntfs reiserfs xfs iso9660 udf ls search loopback linux multiboot multiboot2 chain reboot halt appleldr help configfile hexdump loadbios memrw fixvideo video gfxterm font png.mod]
 
where "-p /efi/boot" tells where "grub.cfg" is after booting and it will be loaded from this path on booting device.
Line 252:
A easy way of adding all modules is:
 
<pre>../grub-mkimage -d . -o bootx64.efi -O x86_64-efi -p /efi/boot `find *.mod | xargs | sed -e 's/.mod//g'`</pre>
 
That will build "bootx64.efi" in the subfolder and this can now be copied to a USB-disk, harddisk etc.
Line 292:
To make OSX find the bootx64.efi image on boot i did;
 
"<pre>sudo bless --verbose --folder=/Volumes/EFI --file=/Volumes/EFI/efi/boot/bootx64.efi --setBoot"</pre>
 
where /Volumes/EFI is the first partition on my usb disk..
Anonymous user