Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing Gentoo on MacPro1,1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
rhumbliner
n00b
n00b


Joined: 15 Nov 2004
Posts: 59
Location: Las Vegas

PostPosted: Mon Jan 04, 2016 12:54 am    Post subject: Installing Gentoo on MacPro1,1 Reply with quote

i've inherited and old MacPro1,1(2006) that i'd like to replace OSX with Gentoo. the live cd boots just fine and i follow the handbook installation to the letter, but i'm unable to boot in either legacy mode (bios) or efi. i'm able to boot a rEFInd cd and it recognizes my grub loader and i can get rEFInd to load grub, but when grub tries to load my kernel all i get is:

Code:
Loading Linux-4.1.12-gentoo ...


and there it hangs. can someone point me to the problem?

tia
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Mon Jan 04, 2016 7:47 am    Post subject: Re: Installing Gentoo on MacPro1,1 Reply with quote

rhumbliner wrote:
[...] and there it hangs. can someone point me to the problem?

rhumbliner ... difficult to say from the information provided, however, I have a macbook1,1 and so I can most likely point you in the right direction. I'd suggest the following:

Drop grub ... you have rEFInd (though by the sounds of it not installed on the ESP) and you don't need another bootloader/bootmanager in the mix. I assume you have an EFI capable boot disk (ie, sysresccd). So, boot, install rEFInd on your ESP and run efibootmgr to set it in NVRAM ... here's something of a guide (obviously this is my own setup so you can ignore some host specific things like enc_root, lvm, etc):

Code:
# gdisk -l /dev/sda | grep EF00
 1  40  409639  200.0 MiB  EF00  EFI System Partition
# mount -t vfat /dev/sda1 /boot
# ls -l /boot/efi/refind
total 179
drwxr-xr-x 2 root root   1024 2015-11-27 07:10 drivers_ia32/
drwxr-xr-x 2 root root   5120 2015-11-27 07:11 icons/
-rwxr-xr-x 1 root root    103 2015-11-27 07:14 refind.conf
-rwxr-xr-x 1 root root 176224 2015-11-08 22:55 refind_ia32.efi
# egrep -v '^(#|$)' /boot/efi/refind/refind.conf
timeout 5
hideui banner
use_graphics_for linux
dont_scan_dirs efi/grub2
# ls -l /boot/efi/linux
total 13498
-rwxr-xr-x 1 root root     549 2015-11-27 06:43 refind_linux.conf
-rwxr-xr-x 1 root root 4703504 2014-05-05 16:05 vmlinuz-3.13.11-ck.efi
# egrep -v '^(#|$)' /boot/efi/linux/refind_linux.conf
"Default"  "quiet ro nopat threadirqs video.use_native_backlight=1 rootfstype=ext4 luks enc_root=/dev/sda2 lvm root=/dev/mapper/vg-root swsusp resume=/dev/mapper/vg-swap"
"Emergency"  "quiet ro nopat threadirqs elevator=bfq video.use_native_backlight=1 rootfstype=ext4 luks enc_root=/dev/sda2 lvm root=/dev/mapper/vg-root swsusp resume=/dev/mapper/vg-swap 1"
# efibootmgr --create --part 1 --label "rEFInd" --loader "\efi\refind\refind_ia32.efi"

The kernel requires the following enabled (for efistub):

Code:
# zgrep -E '(EFI|RELOCATABLE)' /proc/config.gz
CONFIG_EFI_PARTITION=y
CONFIG_EFI=y
CONFIG_EFI_STUB=y
CONFIG_RELOCATABLE=y
# CONFIG_FB_EFI is not set
# EFI (Extensible Firmware Interface) Support
CONFIG_EFI_VARS=m
# CONFIG_EFIVAR_FS is not set
# CONFIG_EARLY_PRINTK_EFI is not set

... EFI_PARTITION is 'GPT' (hence the use of 'gdisk' above, rather than fdisk 'MBR').

Note that I'm fairly sure the macbookpro1,1 is also 32bit efi as its much the same HW as the macbook1,1 ... if I'm wrong then obviously adjust the above to reflect this fact (using refind_x64.efi).

I'm not sure what else to provide, if you have any further questions just ask.

best ... khay
Back to top
View user's profile Send private message
rhumbliner
n00b
n00b


Joined: 15 Nov 2004
Posts: 59
Location: Las Vegas

PostPosted: Tue Jan 05, 2016 12:12 am    Post subject: Reply with quote

thx for the response! i tried using sysrescd but it fails to boot on my MacPro. i tried booting from cd and from usb (after using isohybrid) but neither works. i believe from reading other posts that it has something to do with my 64-bit architecture and 32-bit efi. at any rate, i thought i could build my gentoo system using a bios boot and then booting from a Mac install cd to use it's bless command to allow an efi boot. am i wrong on that?

the other problem i find is that i don't know how to install rEFInd on the ESP partition. i can boot the rEFInd cd, but Rod Smith specifically warns against using linux's efibootmgr or rEFInd's command line to install to a mac. so i'm stumped there. you obviously found a way so i'm curious how you did it.

please note i'm trying this on a MacPro not a MacBookPro, if that makes any difference.

thanks again.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Tue Jan 05, 2016 9:32 am    Post subject: Reply with quote

rhumbliner wrote:
thx for the response! i tried using sysrescd but it fails to boot on my MacPro. i tried booting from cd and from usb (after using isohybrid) but neither works. i believe from reading other posts that it has something to do with my 64-bit architecture and 32-bit efi.

rhumbliner ... you're welcome. Yes, the sysresccd's efi is 64bit, sorry, I should have remembered that as I swap out the grub2.efi with a 32bit version when building my own USB boot disk. When first installing I'd used the 'default' efi location of '{ESP}/efi/boot/bootia32.efi' and then holding the 'alt' key at boot. So, you can do similarly to install rEFInd (as bootia32.efi') ....

rhumbliner wrote:
[...] at any rate, i thought i could build my gentoo system using a bios boot and then booting from a Mac install cd to use it's bless command to allow an efi boot. am i wrong on that?

I'm not sure about Apple's 'bless' but the linux version only supports blessing HFS+ partitions. As I mentioned above I didn't use MacOS for intalling rEFInd, so I'm not sure what instructions Rod provides for installing when booted from MacOS ... I'd assume it would work. What I did was boot as in bios mode, did my install, mounted the ESP, and placed 'refind_ia32.efi' as '/efi/boot/bootia32.efi' (with the 'drivers_ia32', 'icons' and 'refind.conf' in that same directory) and a linux kernel as '/efi/boot/linux/vmlinuz-{version}.efi' (the efistub enabled kernel) and then rebooted holding down 'alt' ... the default efi bootloader is then executed, and I booted into the install and was able to run 'efibootmgr' and setup rEFInd as shown above.

rhumbliner wrote:
the other problem i find is that i don't know how to install rEFInd on the ESP partition. i can boot the rEFInd cd, but Rod Smith specifically warns against using linux's efibootmgr or rEFInd's command line to install to a mac. so i'm stumped there. you obviously found a way so i'm curious how you did it.

I'm not sure why Rod is offering that warning ... I've not had need to run efibootmgr any more than once or twice (as once the parameters are written to NVRAM you can update rEFInd without re-running efibootmgr) but I've not had any issues using it ... I've used 0.5.4-r1 exclusively however, and I imagine the sysresccd has 0.6.0 (which is known to have various issues related to efivarfs ... at least from the snippets I've read).

As for the method I'd used, its outlined above ... if anything needs clarified just ask.

rhumbliner wrote:
please note i'm trying this on a MacPro not a MacBookPro, if that makes any difference.

Ahhh ... my mistake ... no, it shouldn't make any difference.

best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum