Which iso image do I need to install Ubuntu 12.04 on a Macbook Pro so that it boots using (U)EFI?

29,297

Solution 1

Since there are different revisions of each Mac model what needs to be done may also differ. Just selecting the right Image often isn’t enough.

With Mac laptops its usually boot/install problems are related to:

  • Graphic card chip (especially with dual graphic card MacBooks)
  • Proper EFI booting.
  • Card connecting to the built in laptop monitor(again with dual grapgic card MacBooks)

The command:

dmidecode |grep -i macbookpro

will give you your specific version. If you are able to boot into something that gives you a Linux shell. Try to deduce your model from the wikipedia MacBook version table.

I'm presuming models with the same hardware are of the same revision and hence the same steps should apply.

I've always used the ordinary Amd64 ISO for all installations described below. Not the alternate CD’s which seem to be mostly used for old,pre unibody, Apple hardware.

As long as you have refit installed in OSX, the ordinary Ubuntu live CD or USB disk will present you with a "efi linux" boot option along with a bios boot option"

15" MacBook pro version 5.1 [ two gfx cards 9400 & 9600]

Since part of your question was that you wanted to disable the gfx card. enter this in your grub terminal when booting:

(You can actually play around with this booting of a usb live cd if you feel like it)

the values to add in grub (just plain , not appending any pre-existing lines already present:

outb 0x728 1
outb 0x710 2
outb 0x740 2
outb 0x750 0

This will disable your card and switch the display over to the correct one. If your display only turns black. Boot back into OSX and switch what card is being actively used and reboot and try again. Since we don't want to add this to the command line every time to grub to be able to boot have a look at this

15" macbook pro version 8.1 [ two gfx cards Intel 3000 & Amd Radeon 6490M ]

Apply the grub settings above from the 5.1 example to disable the Amd card.

Using the Intel card also has some quirks regarding LVDs timings. Resulting in a yellow back light colour and barely readable / viewable screen in console and Unity. Fixes have been merged to Kernel 3.4 and above. And it works out of the box with 3.5 Kernels. You need to either need to patch your kernel, upgrade to a newer kernel or simply install Ubuntu 12.10(currently beta) that ships with 3.5 out of the box.

13" MacBook pro version x.x? [ nvidia9400m ]

works out of the box

Solution 2

Try this link it may help you understing what's going on

http://www.rodsbooks.com/ubuntu-efi/index.html

Share:
29,297

Related videos on Youtube

Community
Author by

Community

Updated on September 18, 2022

Comments

  • Community
    Community over 1 year

    Unlike with earlier releases, the website is unclear on giving a straight recommendation for installing ubuntu on a mac:

    http://cdimage.ubuntu.com/releases/12.04/release/

    1. I've read several times, that I should use an alternative image. But this is only offered as 64-bit. However, I'm also told to rather use 32-bit images for better software compability.

      http://cdimage.ubuntu.com/releases/12.04/release/ubuntu-12.04-alternate-amd64+mac.iso

    2. Even though I should only use alternative images, there is offered a standard desktop image which is "adjusted to work properly on Mac systems".

      http://cdimage.ubuntu.com/releases/12.04/release/ubuntu-12.04-desktop-amd64+mac.iso

    Question

    Which image should I take? Do both of these images offer (U)EFI boot?

    I've tried both of them already, but both have setup an install with BIOS emulation. This is quite annoying because of the short battery life and high temperatures which are harmful to battery longevity.

    • Admin
      Admin almost 12 years
      Note: There is an error in my bounty description. I mean: "When using BIOS emulation I can only use discrete graphics..."
  • stevo__80
    stevo__80 almost 12 years
    I've use both the alternate and default desktop iso. However, both time there was no option to choose UEFI boot. Both time I had to go with the unwanted BIOS emulation.
  • nilsonneto
    nilsonneto almost 12 years
    ... just to clarify - are you saying that the 64bit alternate and 64bit desktop versions of amd+mac.iso does NOT give the option for a UEFI boot?
  • Mateo
    Mateo almost 12 years
    @fossfreedom wasn't the specific mac cd's "no UEFI" to prevent firmware corruption? because of the differences of mac EFI and PC UEFI? Is this a worry anymore, maybe just use the regular live cd?
  • Admin
    Admin almost 12 years
    Intersting. So, I now see that when using the standard desktop version there is an "efi boot" option which is not there when using the alternate iso. However, after GRUB the screen stays black even though I seems that the LiveISO is loaded (I blindly followed the menu and the computer reacted). How did you manage to boot an install Mac using EFI?
  • Admin
    Admin almost 12 years
    Before GRUB appears, I get a message "error no prefix set". Then in GRUB I've tried to boot after adding your commmands (both appending and plain), but the screen always remains black. This is a MBP 8-2. What kind of MBP do you have?
  • Admin
    Admin almost 12 years
    BTW: Refit does not show the EFI boot option, I only see this when holding left alt upon boot.
  • Nicola Feltrin
    Nicola Feltrin almost 12 years
    I don't know for EFI corruption, but my 2007 macbookpro doesn't boot with the standard cd, nor in UEFI nor in emulated BIOS mode for differents reasons, but probably all linked to the fact that EFI is not UEFI (afaik there are proprietary/closed portions on mac EFI that cause various trouble). 32bit ubuntu standard version, without any UEFI support, boots regularly. So i guess the "amd64-mac" versions are there to give us unlucky apple owners the possibility to install ubuntu 64 (last year I installed 11.04 by manually editing the 64bit iso for removal of the efi folder).
  • tomodachi
    tomodachi almost 12 years
    @gentmatt, did you follow the instructions with disabling the the card above? this is what i did to get into the Installer. try removing quiet / splash from the command line, to see if you get any more verbose output. I have a macbook pro 15", version 5.1. , it has the nvidia 9600 and the 9400 card.
  • Admin
    Admin almost 12 years
    Yes, I did follow these instructions. In total I have tried ~15 different setups using your help and Ubuntu/Debian documentation which you find online. But most times these fixes were tried for the older MBPs which run Nvidia graphics. But I run a 2011 MBP with ATI Radeon graphics. For your specific case I always end up with a black screen. Ubuntu seems to load though, meaning that after a while the keyboard backlight will turn on as the Ubuntu Installer window pops up - which I do not see.
  • tomodachi
    tomodachi almost 12 years
    @gentmatt I had a friend with a mbp 15" more new than mine , I think it some the ATI card in it and some Intel card. We never installed anything on it, but I got into X at least on a Ubuntu live USB. If i remember properly i had to start the machine in single mode edit Xorg, and set the gfx to vesa or fbdev. Maybe you can try that just to get through the installer?
  • tomodachi
    tomodachi almost 12 years
    @gentmatt since you haven't responded I took matters in my own hands and borrowed a Macbook Pro 8.2 to test on :) . I've added my findings to my post above. Maybe it gets you a bit further.
  • Admin
    Admin almost 12 years
    Thanks for the effort. I'll make sure to look into this tonight or tomorrow evening and report back.
  • Admin
    Admin almost 12 years
    Still no success. The best I got was a green screen instead of a black screen. But I'm wasting my time here. I managed to EFI boot in Fedora 17. I'm going with Fedora now.
  • tomodachi
    tomodachi almost 12 years
    yeah, if that works better go for it , did you use both , the outb commands AND the lvds? I still have the macbook here for now, if you want to cross test-something
  • Admin
    Admin almost 12 years
    Yes. But I don't want to try this anymore now. I've done so many hard shutdowns now. I don't like this :( Thanks for your help.
  • Ondra Žižka
    Ondra Žižka over 5 years
    Does this still apply to 18.10?