Difference between revisions of "MacBookPro7,1"

From ArchWiki
Jump to: navigation, search
m (Video)
Line 11: Line 11:
  
 
== Installation ==
 
== Installation ==
 
+
To install an x86_64 system, follow the [[MacBook]] EFI installation instructions.
Using mid 2012/12 installation media, I primarily followed this [https://gist.github.com/Apsu/4108795 GIST] in conjunction with the [[MacBook]] EFI installation instructions to install an x86_64 system. The [[GRUB2]] page is invaluable. Installing rEFIt is not necessary.
+
It is recommended to read the [[Unified Extensible Firmware Interface|UEFI]], [[GUID Partition Table|GPT]] and [[UEFI Bootloaders]] pages before trying any of this on your machine.
 +
Also of note, [https://gist.github.com/Apsu/4108795 GIST].
  
 
See notes on '''video support''' before attempting installation!
 
See notes on '''video support''' before attempting installation!
 +
=== Dual Boot ===
 +
If you want to dualboot osx and linux, the easiest way to do so is to use [http://www.rodsbooks.com/refind/ rEFInd].
 +
rEFInd is a updated and maintained fork of [http://refit.sourceforge.net/ rEFIt] and should be used in its place.
  
As per [[GRUB2]], it is recommended to read the [[Unified Extensible Firmware Interface|UEFI]], [[GUID Partition Table|GPT]] and [[UEFI Bootloaders]] pages before trying any of this on your machine.
+
I've found it easiest to install rEFInd from osx. Depending on your setup, you'll either install it to your osx partition, or to the ESP partition (install.sh --esp). See [http://www.rodsbooks.com/refind/installing.html#installsh here] for instructions.
 +
Installing to the ESP partition can cause a delay at startup, which can be overcome by simply renaming rEFInd's installation folder to "BOOT" and the executable to "bootx64.efi"[http://www.rodsbooks.com/refind/installing.html#sluggish]
 +
 
 +
Once rEFInd is installed, you'll need to create a directory on the ESP to hold the kernel & initramfs image. I've found it convenient to later mount the ESP as my "/boot" directory.
 +
==== EFI-Mode ====
 +
You can boot your mac in efi mode via the kernel's efistub feature.
 +
See [http://www.rodsbooks.com/refind/linux.html here] for more general information on the topic.
 +
==== CSM-Mode ====
 +
See [http://www.rodsbooks.com/gdisk/hybrid.html here] for more general information on how to setup a '''hybrid mbr'''.
  
 
== Network ==
 
== Network ==
 
 
[[Wireless_Setup|Wireless Setup]] provides instructions on how to identify your card, but if your MacBook Pro 7,1 is like mine then you'll head to [[Broadcom_wireless|Broadcom Wireless]] and use this command.
 
[[Wireless_Setup|Wireless Setup]] provides instructions on how to identify your card, but if your MacBook Pro 7,1 is like mine then you'll head to [[Broadcom_wireless|Broadcom Wireless]] and use this command.
  
Line 29: Line 40:
  
 
== Video ==
 
== Video ==
 
 
According to the [http://wiki.debian.org/MacBookPro Debian Wiki] the MacBook Pro 7,1 has an [http://www.geforce.com/hardware/desktop-gpus/geforce-GT-320-OEM NVIDIA GeForce GT 320M] in it.
 
According to the [http://wiki.debian.org/MacBookPro Debian Wiki] the MacBook Pro 7,1 has an [http://www.geforce.com/hardware/desktop-gpus/geforce-GT-320-OEM NVIDIA GeForce GT 320M] in it.
 
+
=== Nouveau ===
Nouveau works out of the box, performance however is not that great and your system will get quite ''hot'' when running nouveau.
+
Works out of the box, performance however is not that great and your system will get quite ''hot'' when running nouveau.
 
+
=== Nvidia ===
 
+
The drivers work, but so far only when booting the mac in csm- or legacy-mode.
Nvidia's drivers work, but so far only when booting the mac in csm- or legacy-mode.
+
 
See [https://bbs.archlinux.org/viewtopic.php?id=162289 here] for some discussion on the topic.
 
See [https://bbs.archlinux.org/viewtopic.php?id=162289 here] for some discussion on the topic.
  
Line 41: Line 50:
  
 
This can't be achieved directly, but depends on apple's firmware agreeing that your partition layout warrants this as presumably they implemented the feature to allow booting of windows xp/7, neither which can ordinarily boot off a gpt partitioned disk.
 
This can't be achieved directly, but depends on apple's firmware agreeing that your partition layout warrants this as presumably they implemented the feature to allow booting of windows xp/7, neither which can ordinarily boot off a gpt partitioned disk.
 
See [http://www.rodsbooks.com/gdisk/hybrid.html here] for more general information on how to setup a '''hybrid mbr'''.
 
  
  
 
'''To be continued..'''
 
'''To be continued..'''

Revision as of 12:35, 11 May 2013

Summary help replacing me
Details the installation and configuration of Arch Linux on Apple's MacBook Pro 7,1
Related
MacBook
MacBookPro
MacBook_Pro_7,1
MacBook_Pro_8,1_/_8,2_/_8,3_(2011_Macbook_Pro)
MacBook_Pro_9,2_(Mid-2012)

Installation

To install an x86_64 system, follow the MacBook EFI installation instructions. It is recommended to read the UEFI, GPT and UEFI Bootloaders pages before trying any of this on your machine. Also of note, GIST.

See notes on video support before attempting installation!

Dual Boot

If you want to dualboot osx and linux, the easiest way to do so is to use rEFInd. rEFInd is a updated and maintained fork of rEFIt and should be used in its place.

I've found it easiest to install rEFInd from osx. Depending on your setup, you'll either install it to your osx partition, or to the ESP partition (install.sh --esp). See here for instructions. Installing to the ESP partition can cause a delay at startup, which can be overcome by simply renaming rEFInd's installation folder to "BOOT" and the executable to "bootx64.efi"[1]

Once rEFInd is installed, you'll need to create a directory on the ESP to hold the kernel & initramfs image. I've found it convenient to later mount the ESP as my "/boot" directory.

EFI-Mode

You can boot your mac in efi mode via the kernel's efistub feature. See here for more general information on the topic.

CSM-Mode

See here for more general information on how to setup a hybrid mbr.

Network

Wireless Setup provides instructions on how to identify your card, but if your MacBook Pro 7,1 is like mine then you'll head to Broadcom Wireless and use this command.

$ lspci -vnn -d 14e4:

If from this you discover that your full PCI-ID is [14e4:432b], then the following advice applies to you: Don't waste time on the b43 driver. I've been fiddling with it for weeks, and switching to broadcom-wl made all the problems go away. broadcom-wl might make your device names funky, but that's easily fixed with the udev rule documented on Broadcom Wireless.

I also recommend netctl.

Video

According to the Debian Wiki the MacBook Pro 7,1 has an NVIDIA GeForce GT 320M in it.

Nouveau

Works out of the box, performance however is not that great and your system will get quite hot when running nouveau.

Nvidia

The drivers work, but so far only when booting the mac in csm- or legacy-mode. See here for some discussion on the topic.

In short, booting in efi-mode, will crash the nvidia module, resulting in a black screen, so in order to use nvidia's driver, you'll need to boot your machine in csm-mode.

This can't be achieved directly, but depends on apple's firmware agreeing that your partition layout warrants this as presumably they implemented the feature to allow booting of windows xp/7, neither which can ordinarily boot off a gpt partitioned disk.


To be continued..