Originally Posted by
user12021
I got it from subversion today, so it's probably the newest.
I can't get it to work. If I try to choose grub from apple's boot menu, it just goes straight to rEFIt.
If I try to choose grub from rEFIt, it says "unsupported while loading grub.efi"
What am I doing wrong?
Also, what should my grub.cfg file look like?
my disk is formatted like this:
OSX on 2nd partition
Grub on 3rd
Linux on 4th
Probably missing some modules, but you got a start.
grub.efi should be around 250KB with the preloaded modules.
I am just putting together a grub efi tarball here with working grub.efi grub.cfg and modules, should help you, should be about an hour. Would be glad to get your reactions.
For that I will open a new thread with a more grubby title.
Here is some of it -
----------------------
These are the preloaded modules in my grub.efi -
apple appleldr boot cat chain configfile cpio date ext2 echo fat gpt help hexdump hfs hfsplus iso9660 linux ls normal pc reboot reiserfs scsi search sleep xfs
These are all the modules in the grub directory alongside grub.efi
Code:
pxw@wdc:~/src/grub2/build$ ls *.mod
acorn.mod _chain.mod echo.mod help.mod ls.mod raid6rec.mod terminfo.mod
affs.mod chain.mod elf.mod hexdump.mod lspci.mod raid.mod test.mod
afs.mod cmp.mod ext2.mod hfs.mod lvm.mod read.mod udf.mod
amiga.mod configfile.mod fat.mod hfsplus.mod mdraid.mod reboot.mod ufs.mod
appleldr.mod cpio.mod font.mod iso9660.mod minix.mod reiserfs.mod vga_text.mod
apple.mod cpuid.mod fshelp.mod jfs.mod normal.mod scsi.mod xfs.mod
at_keyboard.mod crc.mod fs_uuid.mod kernel.mod ntfscomp.mod search.mod
blocklist.mod datehook.mod gpt.mod _linux.mod ntfs.mod sfs.mod
boot.mod date.mod gzio.mod linux.mod pci.mod sleep.mod
bufio.mod datetime.mod halt.mod loadenv.mod pc.mod sun.mod
cat.mod dm_nv.mod hello.mod loopback.mod raid5rec.mod terminal.mod
--------------------
grub.cfg
Code:
## grub svn v1913 configure --with-platform=efi
## 20081128 pxw
## example
## comments apply to MacBook2,1 with 1 internal HD and CD, used with various external drives.
## linux root=/dev/sdxx and grub loads kernel from root=(hdx,x). Will need check/edit.
##
timeout=20
## first menuentry is 0
default=0
fallback=1
## for booting from 'e' edited menuentry control x does not work.
set F1=ctrl-x
set F2=ctrl-c
#
# boot the first macosx found
menuentry "search MacOSX" {
search --set /usr/standalone/i386/boot.efi
chainloader /usr/standalone/i386/boot.efi
}
#
# search for vmlinuz starts from (hd0,1)
# with only one drive (no cd or usb) it will be grub (hd0) and linux /dev/sda
# boot first /vmlinuz found and use linux root=/dev/sda4
menuentry "search-vmlinuz root=sda4" {
search --set /vmlinuz
linux /vmlinuz root=/dev/sda4 agp=off video=efifb
initrd /initrd.img
}
#
# with a usb drive present usb is (hd0) but /dev/sdb, internl hd is (hd1) but sda
# usb will be found first
menuentry "search-vmlinuz root=sdb3" {
search --set /vmlinuz
linux /vmlinuz root=/dev/sdb3 agp=off video=efifb
initrd /initrd.img
}
#
# boot ubuntu on HD (hd1) at /dev/sda4.
#
# boot (hd1,4)/vmlinuz and use root=/dev/sda4
menuentry "set hd1,4 vmlinuz" {
root=(hd1,4)
linux /vmlinuz root=/dev/sda4 ro video=efifb
initrd /initrd.img
}
# appleloader boots from internals only - cd or hd.
menuentry "Boot from ISO CD" {
appleloader CD
}
menuentry "Boot from HD MBR" {
appleloader HD
}
## optional extras
menuentry "Partition List" {
ls -l
sleep 5
}
menuentry "Where am I" {
set
ls
date
echo "sda2?? edit this"
sleep 10
}
menuentry "REBOOT" {
reboot
}
menuentry "set pager=1" {
set pager=1
}
##
Bookmarks