Installation of CruxPPC on Sam440

DetailsInstallation steps
Go to the CruxPPC website to get the ISO needed for installation.
Download the CruxPPC 2.6 ISO file:
Download page
This iso can boot on the Sam440ep as well as other PPC based machines.Burn the ISO on a CDROM.
Insert the CD in the drive and reboot your Sam440ep. Alternatively, you can type ide reset at the Uboot prompt to reread the CDROM. Boot with the CD in the drive.
Sam440 should now boot your CDROM and you'll see the "Parthenope (ub2lb)" window. Just press enter to load the CruxPPC installation.
After a while, you should reach the Linux login prompt.
At the "login:" prompt, type root (no password needed)
We'll now prepare the harddisk to install Crux.

Note that we'll use here the program "parted". It does the changes immediately when you hit return, so beware!
So it is probably a good idea to check the parted manual if you don't already know the parted program.
Type parted
If you want to see the partitions that are stored on your harddisk, press p.
We need to create 2 partitions:
one to store the swap, size 2GB
one for the system (root partition), size 40GB
Warning: if you have an harddisk with data on it, you need to change the values below!

Type the commands below:

mkpartfs primary linux-swap 0 2GB
mkpartfs primary ext2 2GB 42GB
You can change the "start" and "end" values to create partitions of a different size.
quit

We now prepare the 2 partitions we need with a filesystem: the swap and the root partitions. Enter the following at the shell prompt:
mkswap /dev/sda1
mkfs.ext3 /dev/sda2
We activate the swap partition and we mount the root partition. This one will then be reachable at /mnt swapon /dev/sda1
mount /dev/sda2 /mnt
We run the Crux installation and we select /mnt as the installation destination. Select all packages for installation and install.

You can have a look at the CruxPPC handbook to find more information on installing the system.

setup
Then setup the root directory setup-chroot
Setup a few things on your system. Edit /etc/fstab to configure your filesystem(s).
On mine I typed the following lines to make the 2 partitions always active:
/dev/sda1 swap swap defaults 0 0
/dev/sda2 / ext3 defaults 0 1

Uncomment the line:
/dev/cdrom /cdrom iso9660 ro,user,noauto,unhide 0 0

Edit /etc/rc.conf to configure font, keyboard, timezone, hostname and services. See Section Configuration Variables in /etc/rc.conf for details about /etc/rc.conf.
Edit /etc/rc.d/net, /etc/hosts and /etc/resolv.conf to configure your network (ip-address/gateway/hostname/domain/dns).

Now we need to tell Parthenope how to boot CruxPPC. For this, we'll create the /menu.lst Parthenope needs and we copy the kernel on the harddisk. mkdir /cdrom
mount /cdrom
cp /cdrom/menu.lst /
chmod a+w /menu.lst
cp /cdrom/ppc/sam440ep/uImage /boot
vi /menu.lst
and edit the file to match this:
delay 5
default 0

title CruxPPC
kernel /boot/uImage root=/dev/sda2 console=tty0
We need to install Parthenope on the HD. Type:
parthenope-install /cdrom/ppc/sam440ep/Parthenope
You can stop the installation here and reset the machine, then load CruxPPC from your harddisk. Type "reboot" at the prompt.
Configure X-window You need to download this file: xorgconfig and copy it into /usr/bin.
Now type chmod a+x /usr/bin/xorgconfig to make it executable and run it. You now have to reply the questions to configure Xwindow.

Alternatively you can get the file xorg.conf from another Linux installation and place it in /mnt/etc/X11.

More details on configuring the stuff can be found on this page.