As written on a previous post http://crunchbanglinux.org/forums/topic
cbook-air/, I'm beginning an HOWTO install #! statler/SID on a MacbookAir4,2.
It showed to be not that easy, and I would like to share it with others.
I've been messing with EFI for a couple of months, but could not manage to come to a viable native EFI install.
(sorry, part-man in debian installer is still too buggy to allow a successful installation).
This is currently a work in progress, and will end up as a full configuration HOWTO.
General Assumptions
- Install as a dual-boot system, running MacOSX and #!
- single Linux partition
- no swap partition
- a basic knowledge of MacOsX, and a knowledge of linux.
- no triple boot (yet). Due to EFI->MBR mapping, using a triple boot can mess up your partition numbering.
- you have an ethernet dongle, and internet connection through it
- I use the "first install statler, and then go to sid", instead of using "first install sid, and then statler-ize it".
Needed To Begin
- a fresh copy of Crunchbang, 64 bit version http://crunchbang.org/download/
20120207-bpo is the suggested release, since it contains already some fixes in the VGA intel drivers
- a fresh copy of rEFIt http://refit.sourceforge.net/
- a 1 GB USB thumb drive
Step 1: prepare your HD
1.1 using Mac OS' own disk util (you can find it in Application/Utilities), you can resize the partition and allocate space.
I set the new partition to 15 Gigabytes
1.2 install refit package from inside MacOsX
Step 2: prepare your #! installation
You can create your #! installation drive using the classical "dd method" from inside MacOsX
EDIT: instead of the following, I found unetbootbin http://unetbootin.sourceforge.net/ to be reliable enough for a #! installation
2.1 insert your thumb drive
2.2 open a terminal window
2.3 issue the command:
diskuti list2.4 unmount the drive, without ejecting it
diskutil umount <diskunit>(where diskunit is the disk name assigned to the drive by macos, as seen in steps 2.3, e.g. "/dev/disk3"
2.5 run a standard "dd" command
dd if=[i]crunchbang-iso-image[/i] of=[i]diskunit[/i]2.6 eject the drive
diskutil eject [i]diskunit[/i] Step 3: install refit
From your MacOs installation go ahead and install rEFIt.
This should proceed as a standard installation.
Once you reboot, please stop on rEFIt and remember to synchronize GPT to MBR.
Step 4: install statler
Installation should run smootly, you should only take the following notes:
- partition should be set manually, and you should only install on the 4th partition (no swap)
- DO NOT INSTALL GRUB ON MBR!!! install on /dev/sda4
Once installed, you can proceed with some post-installation operations:
- install broadcom wireless firmware
- optimize i915 booting (see first link)
more again later , as soon as I progress with my journey (and resolve the problems).
PS some useful references (to be used during install)
1) configure EFI on MBA
http://wiki.debian.org/MacBookAir4%2C2Testimonial
2) various fixes for MBA4,[12] on ubuntu, mostly apply to debian as well.
(must rework "fix915.sh" to make it run under debian)
https://help.ubuntu.com/community/MacBookAir4-2
3) MacBook automatic keyboard brightness daemon (read ambient sensor, and adapt accordingly)
https://github.com/poliva/lightum
4) Some useful patches on ubuntu[/strikeout]
http://kernel.ubuntu.com/~sarvatt/macbook-air/
(obsolete)
5) pass i915.modeset=0 to grub until you patch and recompile the i915 module
https://bbs.archlinux.org/viewtopic.php
58&p=2
