{{warning|'''Ubuntu dropped support for powerpc on their latest 10.10 deboostrap script. This guide is kept here for archiving purposes.'''}}

+

{{warning|'''Backup ANY Data, because during the installation all partitions will be deleted and your DATA WILL BE LOST.

{{warning|'''Backup ANY Data, because during the installation all partitions will be deleted and your DATA WILL BE LOST.

<br>Use this guide at your own risk!'''}}

<br>Use this guide at your own risk!'''}}

Line 11:

Line 14:

# reboot and see if everything is all right

# reboot and see if everything is all right

−

For this guide, you need to have the newer Uboot version, with the netconsole working, available in [[Kurobox support in stock 2.6 kernels]].

+

For this guide, you need to have the newer Uboot version, with the netconsole working, available in [[Kurobox support in stock 2.6 kernels]]. The guide also assumes you are using foonas-em.

==(Re)Partitioning the drive==

==(Re)Partitioning the drive==

===Get on EM mode===

===Get on EM mode===

−

Get on EM mode. This is done by pressing the Power button tree times after the device powered on, and while the power light is still slowly blinking. If you can't get on EM mode by this way, you can enter 'run writeng'; 'boot flboot' on the netconsole.

+

Get on EM mode. On foonas-em this is done by pressing the Power button one time after the device powered on, and while the power light is still slowly blinking. If you can't get on EM mode by this way, you can enter 'run fooflboot' on the netconsole.

===Partition the disk===

===Partition the disk===

−

We will create 3 partitions : one with about 2GB for the Ubuntu system, another one with 256MB for swap, and another one that takes the rest of the disk.

+

We will create 3 partitions : one with about 3GB for the Ubuntu system, another one with 256MB for swap, and another one that takes the rest of the disk.

Plan of action

Installing Ubuntu from scratch is a complex and lengthy process. This is our plan of action :

Partition the drive

boot to a temporary debian system on /dev/hda3, so we can

debootstrap ubuntu, chroot to it, configure it and

compile a vanilla mainstream kernel

reboot and see if everything is all right

For this guide, you need to have the newer Uboot version, with the netconsole working, available in Kurobox support in stock 2.6 kernels. The guide also assumes you are using foonas-em.

(Re)Partitioning the drive

Get on EM mode

Get on EM mode. On foonas-em this is done by pressing the Power button one time after the device powered on, and while the power light is still slowly blinking. If you can't get on EM mode by this way, you can enter 'run fooflboot' on the netconsole.

Partition the disk

We will create 3 partitions : one with about 3GB for the Ubuntu system, another one with 256MB for swap, and another one that takes the rest of the disk.

Install a temporary Debian system on /dev/hda3

If you already have a working installation of Gentoo, you can debootstrap Ubuntu from there without having to first install Debian. See Debootstrap Ubuntu from Gentoo

TIP

If you have the newer foonas-em mode installed, it should be possible to debootstrap and chroot from the EM mode, since it does have a 2.6 kernel.

Now we will prepare to boot a pre-made image on /dev/hda3, so we can use the debootstrap tool later on to create our final system on /dev/hda1. One could chroot to the image, using the EM Mode, and try to deboostrap from there, but to be able to chroot to the Ubuntu partition, you need to be running a newer kernel, so it's mandatory to boot on a newer kernel. (It said "FATAL : Kernel too old" for me when I tried it)

Get the Debian image and a kernel image from Debian_sylver. Be sure to grab a kernel image that supports U-boot.

Note that we will use the mainstream kernel on this system. This means that we have to use the PATA drivers, instead of IDE.
So edit your fstab file, make sure sda1 goes to /, and sda3 goes to /mnt. Ensure we have no "hda1", "hda2" or "hda3", replace for "sda1", "sda2", "sda3".

$ vim /etc/fstab

We have to ensure the box will connect to the network. So edit the /etc/network/interfaces file.

$ vim /etc/network/interfaces (configure to use with dhcp or static config)

Boot your Ubuntu OS

Make the Power/Back button work

Make Hwclock work

Hwclock only reads from /dev/rtc, but the system makes /dev/rtc0. Add this command to have udev to link rtc->rtc0 every time the system boots, so you can use the hwclock command. Just add the line to the file: