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:

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:

$ sudo vim /etc/udev/rules.d/50-udev.rules

$ sudo vim /etc/udev/rules.d/50-udev.rules

Revision as of 17:21, 8 June 2007

WARNING!

Backup ANY Data, because during the installation all partitions will be deleted and your DATA WILL BE LOST. Use this guide at your own risk!

(Re)Partitioning the drive

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.

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.

Install a temporary Debian system on /dev/hda3

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)

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: