[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Booting Sarge on a RS6000 43P Model 150

On Sun, 22 May 2005, Mel Gorman wrote:

> I have a problem where I cannot even boot a kernel on my RS6000 43P Model
> 150 that I got from work. I've setup a TFTP server and when I use boot
> net, I get the following;

Might as well answer my own question, this was a whole pile of not-fun. As
I have no way of measuring the interest in this model (for all I know, I
was being retarded about the whole subject), this is not detailed

1. Build cross compiler. Cheated and followed the instructions here

2. Downloaded linux-2.4.30, copied arch/ppc/configs/ibmchrp_defconfig to
.config. Using menuconfig, I disabled JFS support (got an oops from it
once) and made MSDOS support part of the kernel rather than modules so
that rescue.bin can be mounted

3. Patched the kernel with this;
diff -rup -X /usr/src/patchset-0.5/bin//dontdiff linux-2.4.30-clean/include/linux/coda.h linux-2.4.30-hack/include/linux/coda.h
--- linux-2.4.30-clean/include/linux/coda.h	2005-01-19 14:10:12.000000000 +0000
+++ linux-2.4.30-hack/include/linux/coda.h	2005-05-23 08:29:45.000000000 +0100
@@ -109,6 +109,8 @@ typedef unsigned long long u_quad_t;
 typedef unsigned long long u_quad_t;
 #endif /* __KERNEL__ */
+/* Total hack, probably wrong */
+typedef unsigned long long u_quad_t;
 #define cdev_t dev_t

4. Built the kernel with

make CROSS_COMPILE=/opt/gcc-x-ppc/bin/powerpc-linux-elf- ARCH=ppc depend
make CROSS_COMPILE=/opt/gcc-x-ppc/bin/powerpc-linux-elf- ARCH=ppc zImage

5. Copied arch/ppc/boot/images/zImage.chrp-rs6k to /tftpboot on my tftp

6. Upgraded the firmware on the machine to the latest version using SMS.
Older versions cannot load a full kernel image, it just starts timing out.

7. Using another computer, I write root.bin for a chrp machine to a

7. Started the machine and booted from the network with

boot net:, root=/dev/fd0 load_ramdisk=1

Machine starts booting and I see the Tux image coming up for the
framebuffer and I hit enter when it asks for a disk. For some reason, the
install screens took ages to render (I could literally see the lines being
drawn) but the final system worked just fine.

The installation was very flaky, but chances are I used the wrong root
disk as a filesystem so I would mark that down as PEBKAC. With some
effort, I got the base packages installed and can now boot over the
network with;

boot net:,, root=/dev/sda2

I have left an 800k partition at the beginning of the disk and will figure
out how yaboot works some other time, probably after I get sick of writing
the boot net command :/

Anyway, I'm left with a minimal system running sarge so Mission
Accomplished! Thanks to John F. Davis for this
http://www.skink.net/~davis/docs/notes/ppclinux.txt . It helped a lot with
getting to grips with this machine and finding out what sort of stuff to
search the archives for.

Mel Gorman
Part-time Phd Student                          Java Applications Developer
University of Limerick                         IBM Dublin Software Lab

Reply to: