All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eeri Kask <Eeri.Kask@inf.tu-dresden.de>
To: grub-devel@gnu.org
Subject: EFI-dualbooting OSX and Linux on iMac with T7400-CPU
Date: Sun, 03 Dec 2006 18:05:04 +0100	[thread overview]
Message-ID: <457303C0.6090701@inf.tu-dresden.de> (raw)

Hello,

After creating 4 partitions with MacOSX installation CD (and installing
OSX) I installed Gentoo 2006.1 x86_64 onto the 4th partition (i.e.
/dev/sda5; in OSX invisible FAT32 partition counts as /dev/sda1).
Now I am kindly looking for help in making linux EFI-bootable using grub2.

In short, what I did so far is (following instructions at
http://grub.enbug.org/TestingOnEFI as closely as I could):

running on CD-booted 64-bit Linux (on /dev/sda5 as root filesystem):

1) cvs -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/grub checkout
grub2
2) cd grub2
3) ./configure --with-platform=efi
4) make
5) ./grub-mkimage -d . -o grub.efi gpt hfsplus fat ext2
6) cp grub.efi *.mod fs.lst command.lst  /boot/grub/
7) cp grub.efi *.mod fs.lst command.lst  /media/usbdisk/
8) I compiled 2.6.18.3 kernel as /boot/vmlinuz

Then I booted MacOS and as root-user:

9) mkdir /Volumes/something/efi/grub
10) Copied  usbstick/*  to  /Volumes/something/efi/grub/
11) bless --folder=/Volumes/something
--file=/Volumes/something/efi/grub/grub.efi --setBoot

12) Then I created  /Volumes/something/efi/grub/grub.cfg  as

set timeout=10
menuentry "GNU/Linux"
{
  search --set /boot/vmlinuz
  set root=(hd0,5)
  linux /boot/vmlinuz root=/dev/sda5
}
menuentry "MacOSX"
{
  set root=(hd0,2)
  chainloader /usr/standalone/i386/boot.efi


In fact 'something' is 'Macintosh HD part2', OSX formatted HFS+
journaled partition /dev/disk0s3.


Now if holding down the 'alt' key while powering on I can choose between
disk0s2 with installed OSX and 'EFI_boot' (disk0s3) which loads and
starts grub if selected.

Grub comes and gives lots of errors:

(line 2-2)
syntax error
Incorrect command
...
(line 12-12)
Press any key to continue...

Then grub shows command line interface:

grub> set root=(hd0,5)
grub> linux /boot/vmlinuz root=/dev/sda5
grub> boot
grub> _

is what I entered and now nothing happens.  However grub reads the
ext3-formatted /dev/sda5 partition as typing TAB completes path- and
filenames.

I am very thankful if someone could point out what is wrong I have done
above.  I have zero experience in using MacOSX but I think the 'bless'
was successful as OSX presents boot device where grub was copied.
Second, I suspect I probably can't boot "MacOSX"-entry above because I
could not figure out if grub can read files in HFS+ journaled partitions
(maybe this is why grub shows syntax errors?); but I can happily live
with pressing 'alt' key while turning power on.

Greetings  (I am sorry for the long post),

    Eeri Kask



             reply	other threads:[~2006-12-03 17:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-03 17:05 Eeri Kask [this message]
2006-12-03 18:25 ` EFI-dualbooting OSX and Linux on iMac with T7400-CPU Yoshinori K. Okuji
2006-12-06 15:36   ` Eeri Kask
2006-12-07  1:50     ` bibo,mao
2006-12-14 13:10       ` Eeri Kask
2006-12-15  1:37         ` bibo,mao
2006-12-15  9:16           ` Eeri Kask
2006-12-18  3:31             ` bibo,mao
2006-12-13 12:49   ` Marco Gerards
2006-12-13 13:29     ` Thomas Schwinge
2006-12-13 13:52       ` Marco Gerards
2006-12-13 21:43       ` Yoshinori K. Okuji

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=457303C0.6090701@inf.tu-dresden.de \
    --to=eeri.kask@inf.tu-dresden.de \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.