Contenu de la page
Aller au menu contextuel - Aller au menu principal
GNU/Linux Debian Potato (2.2) under RS/6000 B50 and 43p-150
How-To install a Debian 2.2 PPC on RS/6000 B50 and 43p-150- rev 0.1
What do you need ?
An IBM RS/6000 with a keyboard, a mouse, a floppy driver, a cdrom driver and a monitor
The CD1 of Debian 2.2 PPC
An internet connection
A floppy disk
Preparation of the boot floppies
download http://www.terraplex.com/~dburcaw/zImage
get the rescue.bin from Debian CD1 in "dists/stable/main/disks-i386/current/"
type : "# mount -o loop=/dev/loop2 rescue.bin /mnt" (you need the support of loopback)
copy the "zImage" that you have download to /mnt/linux : "# cp zImage /mnt/linux"
type : "# umount /mnt"
Boot the RS/60000
go to the OpenFirmware : start the machine and press F8 when you have the "E1F1" code
you now have the prompt of OpenFirmware
type : "boot floppy:,\linux root=/dev/fd0 load_ramdisk=1"
This time the RS/6000 should normally boot Linux
Install Debian 2.2
the installation of the Debian should start normaly
you can choose your language .. your keyboard .. etc
partition your hard drive :
make a /dev/sda1 of 4Mo and with type "PPC PreP Boot" type 41
then do what you want .. for example
/dev/sda2 256Mo of swap
/dev/sda3 / 4Go
etc ...
The install process should normally stop when it try to install the rescue disk.
At this time type a "Crtl-Alt F2" to be in console mode.
Normaly all your partitions should be formatted and mounted in "/target".
copy the dists/stable/main/disks-i386/current/base2_2.tgz from your CDROM to /target/tmp
"# cd /target/tmp"
"# gunzip base2_2.tgz"
"# tar -xvf base2_2.tar -C /target"
All the base system is now in "/target"
chroot to /target : "#chroot /target"
You now have to finish the install manually :
create a "/etc/fstab" : it should be like this:
/dev/sda3 / ext2 defaults,usrquota,errors=remount-ro 0 1
/dev/sda2 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy auto defaults,user,noauto 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,user,noauto 0 0
delete the "first boot script" "# rm -f /sbin/unconfigured.sh"
Exit now from chroot "# exit"
And reboot the machine "# reboot"
Configure the system and change the kernel
go to the OpenFirmware and boot with the floppy :
boot floppy:,\linux root=/dev/sda3 (where /dev/sda3 is the root partition)
The system should start normally
login as root (there is no password)
configure the hostname : "# echo test-b50 > /etc/hostname"
remove the PCMCIA package : "# apt-get remove pcmcia-cs"
configure the nework (the kernel that you boot contains the driver for the pcnet32) :
"# vi /etc/network/interfaces"
looks like that :
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
iface lo inet loopback
# The first network card - this entry was created during the Debian installation
iface eth0 inet dhcp |
hostname test-b50 | for DHCP
iface eth0 inet static |
address 192.168.1.1 |
network 192.168.1.0 | for static IP address
netmask 255.255.255.0 |
gateway 192.168.1.2 |
configure the DNS :
"# vi /etc/resolv.conf"
looks like this :
domain adequat.net
nameserver 192.168.1.3
restart networking : "# /etc/init.d/networking restart"
then you should have network
in your workstation (which has an FTP server) download k_chrp-2.4.2-1.tgz
from the RS/6000 get the tgz and put it in "/tmp"
"# cd /"
"# tar -zxvf /tmp/k_chrp-2.4.2-1.tgz"
The 2.4.2 is now on the machine (for 2.4 kernel you have to upgrade the modutils package for unstable tree)
put the pcnet32 module in "/etc/modules" : "# echo pcnet32 > /etc/modules"
Install the bootloader : Yaboot
first you need a development environment :
check your "/etc/apt/sources.list"
looks like this : (the packages that i have install are in unstable or testing)
deb http://http.us.debian.org/debian testing main contrib non-free
deb http://non-us.debian.org/debian-non-US testing/non-US main contrib non-free
deb http://security.debian.org stable/updates main contrib non-free
"# apt-get update"
"# apt-get install task-devel-common task-c-dev"
download the source of Yaboot into /tmp : http://penguinppc.org/~benh/yaboot_0.8.src.tgz
download the IBM patch for Yaboot into /tmp : http://oss.software.ibm.com/developer/opensource/linux/patches/ppc/yaboot-misc.patch.gz
"# cd /tmp"
"# tar -zxvf yaboot_0.8.src.tgz"
"# gunzip yaboot-misc.patch.gz"
"# patch -R -p0 < yaboot-misc.patch"
"# cd yaboot_0.8"
"# make"
"# cp yaboot /usr/local/lib/yaboot"
install yaboot on /dev/sda1 : "# dd if=/usr/local/lib/yaboot/yaboot of=/dev/sda1"
create the yaboot config file :
"# vi /etc/yaboot.conf"
looks like that:
## example /etc/yaboot.conf for RS/6000
## Timeout value is in tenths of a second
timeout=200
default=linux
image=/boot/vmlinux
label=linux
root=/dev/sda3
reboot the machine
after the boot sequence you should normally see the prompt of Yaboot, and if you press "Tab" you can see what labels are defined. Press enter or the name of the label to boot.
The RS/6000 should normally boot the 2.4.2 kernel and the Debian.
Configure your Debian:
Now you can configure your Debian, like a Debian on i386, and install packages that you want with "apt-get"
For X-Window install XFree4.0 and use the FrameBuffer driver "fbdev".
For more information contact christophe.suire@c2a.fr