All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: macosx (darwin) fail to boot from Grub2
Date: Fri, 12 Feb 2016 15:42:52 +0100	[thread overview]
Message-ID: <56BDEF6C.5070704@gmail.com> (raw)
In-Reply-To: <476fd913934dfcd834c06b8aa9f3046b@msw.it>

[-- Attachment #1: Type: text/plain, Size: 3361 bytes --]

Fixed xnu code.
On 28.06.2015 11:45, danjde@msw.it wrote:
> Hi friends,
> I've just installed successifully Ubuntu 14.04 on iMac 9.1 (Darwin).
> 
> The partitions are so suddivided:
> 
> 
> |-EFI-FAT32-|---MAC-HFS+---|--/BOOT-EXT4--|----/ROOT-EXT4----|----/HOME-REISERFS-----|---SWAP---|
> 
> 
> 
> On sda is installed rEFIT.
> Grub2 is installed on sda3 (/BOOT)
> 
> Linux boot correctly from Grub2, MAC not (only from rEFIT). Booting from
> Grub2 MAC, it does't found the system partition.
> 
> 
> Here the Grub2 (macosx) entry:
> 
> 
> menuentry 'Mac OS X (32 bit) (su /dev/sda2)' --class osx --class darwin
> --class os $menuentry_id_option 'osprober-xnu-32-86296317cf88a9f9'  {
>         insmod part_gpt
>         insmod hfsplus
>         set root='hd0,gpt2'
>         if [ x$feature_platform_search_hint = xy ]; then
>           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2
> --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  86296317cf88a9f9
>         else
>           search --no-floppy --fs-uuid --set=root 86296317cf88a9f9
>         fi
>         load_video
>         set do_resume=0
>         if [ /var/vm/sleepimage -nt10 / ]; then
>            if xnu_resume /var/vm/sleepimage; then
>              set do_resume=1
>            fi
>         fi
>         if [ $do_resume = 0 ]; then
>            xnu_uuid 86296317cf88a9f9 uuid
>            if [ -f /Extra/DSDT.aml ]; then
>               acpi -e /Extra/DSDT.aml
>            fi
>            if [ /kernelcache -nt /System/Library/Extensions ]; then
>               xnu_kernel /kernelcache boot-uuid=${uuid} rd=*uuid
>            else
>               xnu_kernel /mach_kernel boot-uuid=${uuid} rd=*uuid
>               if [ /System/Library/Extensions.mkext -nt
> /System/Library/Extensions ]; then
>                 xnu_mkext /System/Library/Extensions.mkext
>               else
>                 xnu_kextdir /System/Library/Extensions
>               fi
>            fi
>            if [ -f /Extra/Extensions.mkext ]; then
>               xnu_mkext /Extra/Extensions.mkext
>            fi
>            if [ -d /Extra/Extensions ]; then
>               xnu_kextdir /Extra/Extensions
>            fi
>            if [ -f /Extra/devprop.bin ]; then
>               xnu_devprop_load /Extra/devprop.bin
>            fi
>            if [ -f /Extra/splash.jpg ]; then
>               insmod jpeg
>               xnu_splash /Extra/splash.jpg
>            fi
>            if [ -f /Extra/splash.png ]; then
>               insmod png
>               xnu_splash /Extra/splash.png
>            fi
>            if [ -f /Extra/splash.tga ]; then
>               insmod tga
>               xnu_splash /Extra/splash.tga
>            fi
>         fi
> }
> 
> 
> 
> This the two last kernel entry, before it hang:
> 
> Waiting for boot volume with UUID 5105a848-08a7-3b8d-aca6-6bb4a78ba26b
> Waiting on <dict ID="0"><key>IOProviderClass</key><string
> ID="1">IOResources</string><key>IOResourceMatch</key><string
> ID="2">boot-uuid-media</string></dict>
> 
> 
> 
> What do you suggest for make MAC bootable from Grub2?
> 
> many many thanks!
> 
> 
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
> 



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 213 bytes --]

      parent reply	other threads:[~2016-02-12 14:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-28  9:45 macosx (darwin) fail to boot from Grub2 danjde
2015-06-28 17:22 ` Andrei Borzenkov
2015-06-29 10:02   ` danjde
2015-06-29 16:43     ` Andrei Borzenkov
2016-02-12 14:42 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]

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=56BDEF6C.5070704@gmail.com \
    --to=phcoder@gmail.com \
    --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.