grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EFI Boot on MacPro


From: Bean
Subject: Re: EFI Boot on MacPro
Date: Sun, 11 Jan 2009 15:35:09 +0800

On Sun, Jan 11, 2009 at 10:44 AM, peter cros <address@hidden> wrote:
> iMac8,1 - grub.efi x86_64 hangs.
>
> built and run on the imac81 --with-platfrom=efi --target=x86_64
> version 1913 and 1940 (current).
>
> Host ubuntu 810 amd64 kernel Linux im64 2.6.27-9-server #1 SMP Thu Nov 20
> 22:56:07 UTC 2008 x86_64 GNU/Linux
>
> grub.efi appears to be accepted by the firmware (started), but hangs
> immediately without any message.
> Tried with macosx bless, and with rEFIt, on HD and external usb.
>
>  This differs from the 64/32 mismatch behaviour with the refit message
> 'unsupported while loading grub.efi') or the apple boot default to MacOSX.
>
> The x86_64 reult is different - bug in the start up?
>
> I will try to get some debug info.

Hi,

I only test the x86_64 version in macbook, which works nicely. Perhaps
you can add some debug code in kern/main.c

void
grub_main (void)
{
  /* First of all, initialize the machine.  */
  grub_machine_init ();

+ grub_env_set ("debug", "all");
+ grub_printf ("init\n");

  /* Hello.  */
  grub_setcolorstate (GRUB_TERM_COLOR_HIGHLIGHT);
  grub_printf ("Welcome to GRUB!\n\n");
  grub_setcolorstate (GRUB_TERM_COLOR_STANDARD);


Also, the tsc code may has some effect, remove grub_tsc_init in
kern/i366/efi/init.c:

void
grub_machine_init (void)
{
  grub_efi_init ();
-grub_tsc_init ();
}

-- 
Bean




reply via email to

[Prev in Thread] Current Thread [Next in Thread]