From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Gqw1z-0001kq-ER for mharc-grub-devel@gnu.org; Sun, 03 Dec 2006 13:25:39 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gqw1x-0001ht-4Z for grub-devel@gnu.org; Sun, 03 Dec 2006 13:25:37 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gqw1v-0001gX-VM for grub-devel@gnu.org; Sun, 03 Dec 2006 13:25:36 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gqw1v-0001gM-RP for grub-devel@gnu.org; Sun, 03 Dec 2006 13:25:35 -0500 Received: from [212.85.152.101] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gqw1u-00067c-Jq for grub-devel@gnu.org; Sun, 03 Dec 2006 13:25:35 -0500 Received: from kotoba.oasis.nexedi.com (kotoba.oasis.nexedi.com [212.85.152.101]) by kotoba.storever.com (Postfix) with ESMTP id 98EC53CD0B810 for ; Sun, 3 Dec 2006 22:18:45 +0100 (CET) Received: from [??1] (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id 46D083CD0B80F for ; Sun, 3 Dec 2006 22:18:45 +0100 (CET) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Sun, 3 Dec 2006 19:25:29 +0100 User-Agent: KMail/1.8.2 References: <457303C0.6090701@inf.tu-dresden.de> In-Reply-To: <457303C0.6090701@inf.tu-dresden.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200612031925.30257.okuji@enbug.org> X-Bogosity: No, tests=bogofilter, spamicity=0.499131, version=0.17.2 Subject: Re: EFI-dualbooting OSX and Linux on iMac with T7400-CPU X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Dec 2006 18:25:37 -0000 On Sunday 03 December 2006 18:05, Eeri Kask wrote: > 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. Oh, great. :) > Grub comes and gives lots of errors: > > (line 2-2) > syntax error > Incorrect command > ... > (line 12-12) > Press any key to continue... Hmm.. I think you need to put the open braces in the same line as "menuentry" commands. > 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. Please check the following: - Make sure that the linux kernel is compiled with EFI support. I don't know how Gentoo defines the default settings, but most distributions do not enable it in default kernels, AFAIK. - Make sure that the linux kernel has an appropriate video driver (or any other required drivers). Again, I don't know the current status very much, but patches for MacLinux hadn't been integrated with official kernel source code when I looked at it. If Gentoo does not get them included, you need to apply patches yourself. - Make sure that you pass correct parameters to the kernel, especially a parameter to the video driver. Otherwise, nothing will be displayed. Another option is to use legacy boot by installing GRUB compiled for PC BIOS to the partition for Gentoo. I think recent versions of Intel Mac should support legacy boot by default. But, for now, GRUB does not support chainloading a legacy boot loader directly, so you will have to boot it up from the built-in selector, or use something else, such as refit, or implement this feature in GRUB. As I myself haven't played legacy boot well, I don't know how to set up this kind of configuration precisely (yet). BTW, this report seems to be a proof that x86_64 starts up in 32-bit mode even on EFI, well, in Intel Mac. So do we really need to implement 64-bit support for x86_64? Thanks, Okuji