Raspberry Pi/Quick Install Guide

Introduction
Installing Gentoo onto a Raspberry Pi is relatively straight forward and in some ways easier because a kernel image is provided by the Raspberry Pi Foundation. This means you can get Gentoo installed quickly onto you Raspberry Pi.

Preparing the SD Card
The Raspberry Pi boots off a FAT32 /boot partition, you will also require a root and swap partition.

Create the Partitions
Use the fdisk command to create the partitions.

Install kernel and modules
The Raspberry Pi Foundation maintain a branch of the Linux kernel that will run on the Raspberry Pi, including a compiled version which we use here.

Edit fstab
Edit the fstab to match your partition scheme.

Set boot options
You need to create a file cmdline.txt in /boot to pass options to the kernel.

Edit make.conf
The default make.conf includes good CFLAGS so should not need to be changed. If you would like to change the settings look at the thread on the Raspberry Pi forum http://www.raspberrypi.org/phpBB3/viewtopic.php?f=54&t=17983

Configure timezone
Find your time zone using this command.

(Suppose you want to use Europe/London)

(Next set the timezone)

Clear root password
As we do not chroot before we boot, you will need to unset the root password. Allowing you to login with a blank password for the root user.

Edit the line for root so it looks like the example below.

Unmount SD and then boot your Raspberry Pi
Unmount the SD card.

Plugin the SD card to your Raspberry Pi, make sure you have a keyboard and monitor also plugged in then connect the power. Hopefully Gentoo will boot giving you a login prompt, login as root and no password. During the first boot you will see a few warnings and errors which we will fix in the next section.

Set root password
Immediately set a root password.

Enabling networking on boot
Assuming you are using DHCP on the eth0.

Select profile
List the available profiles.

Select the desired profile, for example 25

Enable software clock
The Raspberry Pi does not have a hardware clock, so you need to disable the hwclock daemon and enable swclock.

To set the time correctly use ntp to set the clock at boot up.