|
7024-E30 Debian GNU/Linux Installation Procedure |
|
IntroductionHere below is a step-by-step description of the procedure I followed to get GNU/Linux (Debian 3.0 Woody) installed on my IBM RS/6000 Mod. 7024-E30 (or is it an upgraded E20 ?), called kundun. This procedure is based on the Debian 3.0 Install procedure for PowerPC and on the information found on the Debian PowerPC PReP page. Please refer to both documents for any question related to the Debian-specific part of the installation. Table of Contents
Before you beginA few words of warning before you begin:
Preparation workA few things to take care of before starting the installation proper... Hook your serial consoleIf your machine still has its original VGA board, you most likely won't need this to access the SMS (see below). However, since I've been unable to test this, I won't garantee that the VGA board will be recognized by the Linux kernel and initialized to support the text-mode console. It is thus my recommendation that you set the serial console up in case other installation methods fail. I'm using an old Linux laptop running Minicom for that purpose. You'll also need a null-modem cable. See the Procedures section for more details on setting this up. Access the SMSMake sure you are able to access the SMS (aka the RS/6000 firmware), either through the serial console or through the regular VGA console. You most likely will need this in order to boot your machine off a floppy disk. On the serial console, when powering up, the machine will display the follwing sequence of lines: dskt..... OK mem...... 96 MB ....OK scsi..... OK boot..... Just make sure your hit the "1" key before the "boot....." line is displayed. This will take you to the SMS interface. Upgrade the firmwareThis step is highly optional. I'm not even sure I should recommend you to take it. It's your call. As a rule of thumb and all other things being equal, I like my hosts to use the latest firmware available. In this case, if it didn't bring any obvious improvement, it certainly didn't do any harm either. There's a link in the Resources section leading you to the IBM site where you can get the latest firmware available for your model. Just follow the installation instructions provided with the download, they're quite straightforward and they can be used when accessing the SMS over a serial console as well. Gather the required filesThose are the files you will need for install:
Create a repository for the install filesPlease note: If you have the Debian CD set, and plan to run the base install off them, you can skip this step. If you don't have those yet, you can set a repository with those files on another machine on your network and share it through NFS. Here below is the directory structure you should create:
./debian ./debian/var ./debian/var/lib ./debian/var/lib/apt ./debian/var/lib/apt/lists ./debian/var/cache ./debian/var/cache/apt ./debian/var/cache/apt/archives ./debian/prep ./debian/prep/images-1.44 All the ./var hierarchy comes from the extracted basedebs.tgz. In ./debian/prep you should put the drivers.tgz file, and below that in images-1.44 you should put the original rescue.bin and linux.bin files. Plan your partitionning schemeChoose it to suit your needs and taste. The very minimum recommended:
Installation properBoot custom kernel / load custom root disk
Partition your disk(s)
Already populate your "modules" directoryThe presence of those kernel modules will be checked later on by the installer. We need to manually install our own version of those modules due to the fact that we'll boot the system on a version of the kernel the regular Debian install process knows nothing about.
Fire-up the installer
Activate your partitions
Install kernel and driver modulesThis step is required by the Debian installer, but is in fact useless in our situation, since the version of the kernel that will be installed here wouldn't be able to sucessfully boot the machine.
Configure your networkIf not done yet, use this option to configure your network. If you chose NFS as install method earlier, this should already be done. Install base system
Post-installation tasksA few words of warning: At this stage, the kernel put in place by the Debian installer won't be able to successfully boot your system (stock 2.2.x kernel). OTOH, the first time that the newly installed system is booted, it will enter its configuration / package installation procedure. So now, you'll first want to make sure your new system is really able to boot, before triggering the next installation routines. To do that, you'll have, one last time, to boot it off the provided boot / root kit. Re-use the same boot parameters you used for initial install: console=ttyS0,9600 root=/dev/fd0 load_ramdisk=1 (Should you use a standard VGA console, or should your partition layout be much different from mine, please adapt the line above accordingly). Make the system really bootable
When done, reboot your machine. It should now be able to boot straight off its own harddrive. You may still have to tune the SMS configuration to have it boot unattended. That's covered in the next topic. The boot parameters embedded in the provided kernel image are console=ttyS0,9600 root=/dev/sda2, so these should be ok if you followed the recommended partition scheme mentionned earlier. If you didn't, you'll have to manually edit those parameter at each boot until you can compile you own kernel (if that's not possible for you, ask me for a custom kernel). Check / set the SMS default boot deviceThe last step in making sure your machine will be able to boot unattended is to make sure that its firmware knows where to boot the machine from.
You'll now be brought to the next step: finishing your system configuration and installing additional packages. Debian first-boot base configurationWhen first booting a newly installed Debian system, you'll be prompted to complete the system's configuration. All those configuration items can be re-visited at a later time by invoquing /usr/sbin/base-config (or at least you're supposed to be able to do that -- in some cases I've not identified yet, this set of scripts is removed from the system, thereby preventing you from doing that, so I now suggest you take this lengthy procedure seriously and do it in one go). Those are the configuration items that you'll be offered:
Final rebootReboot the system (the system should shut-down properly, but the reboot itself might fail -- if so, cycle power at the end of the shut-down procedure). As already mentionned, the kernel provided on this site has a set of boot parameters that should allow your machine to boot unattended (provided you use a serial console and you created you root filesystem as /dev/sda2). The road ahead...Now that you machine is able to boot, that the base system is installed and configured, you can go back to dselect and refine the choice of installed packages you need to make this system a usefull member of your network. Most likely, one of the first thing you'll want to install is a full development environment, so as to be able to recompile the kernel to best suit your needs. Please remember that the boot image provided here is just that: an image that contains the bare minimum to boot your system. You'll certainly want to add more features to it. That's up to you ;-) |
| Last Modified: January 16, 2004. philipa@tiscalinet.be |