Gentoo Linux On A MacBook 5,1

[home]

What You Will Need


Some Recommendations For This Installation


Installing Broadcom Wireless Firmware

The MacBook 5,1 and other MacBook models use Broadcom wireless cards, which require firmware which is not provided with the Linux kernel. To connect to wifi we must install the firmware manually, which is a pain if you do not know where to look.

First we must download the Broadcom firmware from here, for the MacBook 5,1 specifically we must download the broadcom-wl-6.30.163 tarball and unpack it by executing:

tar xfvj broadcom-wl-6.30.163.tar.bz2

From here we need to emerge a tool called b43-fwcutter, this is only a small tool so it shouldn't take long to compile. Finnally we will be left with an object file from when we extracted the tarball. We must now use b43-fwcutter to add the object file into the kernel as follows:

b43-fwcutter -w /lib/firmware *.o


Using An External Storage Device As Swap

I doubt you will have to do this, but incase you do, heres how. The reason I had to do this is because, as far as I know, this was my only option, my MacBook has less than 1GB of memory and would freeze when compiling llvm and other big programs.

First find the drive in lsblk and open it in cfdisk. Then format it as linux swap, I just used all of the drives storage to get a massive 32GB of slooow swap memory, but it worked.

Now run:

mkswap /dev/sd**

replacing the ** with the drive and partition numbers to make the file system.

Now to activate and use the swap memory run:

swapon /dev/sd**

Again replacing the ** with your drive and partition numbers.


The Final Product