Pegasos

From openSUSE

Contents

About Pegasos

The Pegasos is a Power Architecture board from Genesi featuring the Power Architecture G4 (Freescale MPC7447) and G3 and IBM 750CXe processors.

openSUSE 11.1

For booting with yaboot; Please refer to 11.0 installation instructions.

To automatically make a zImage kernel you can use the driver update;

boot cd suseboot/ppc/inst32 dud=http://genesi.hu/dud.11.1.squash insecure=1

Or if you are booting from a local or NFS repository, rename it to driverupdate and put it in your repository root and it should be auto-detected. If not, try;

boot eth path/to/inst32 dud=nfs://x.x.x.x/path/to/dud.11.1.squash install=nfs://x.x.x.x/path/to/repo insecure=1

We are working on signing the driverupdate so that insecure=1 isn't needed.

If this is too much, just stop the installation at the end and follow the instructions below.

IDE drivers - libata/pata_via

If you prefer libata drivers (/dev/sd??) over via82cxxx (/dev/hda??) then add

brokenmodules=via82cxxx

to your install command line, or the incorrect driver will be loaded for disk support.

Making a zImage Kernel

Without a driver update you will need to create a working bootable image for the system. At the last step of the installation process it will count down from 10, to reboot the machine. Click STOP here. The countdown will halt.

Press CTRL+ALT+F2 to get to the emergency shell and remount the installation target as follows:

mount /dev/sdaX /mounts/instsys
mount /dev/sdaY /mounts/instsys/boot
mount -t proc none /mounts/instsys/proc
mount -o bind /dev /mounts/instsys/dev

Replace X and Y with your Root and Boot partitions respectively, assuming you used seperate boot and root partitions (this is really recommended and if you didn't accept the suggested partition layout from SUSE and created your own partitioning setup then please keep this in mind).

Now you can chroot into the working system and make your kernel:

chroot /mounts/instsys/ /bin/bash
cd /boot
mkzimage --vmlinux vmlinux --initrd initrd --output zImage-`/sbin/get_kernel_version vmlinux`
ln -sf zImage-`/sbin/get_kernel_version vmlinux` zImage

Clean up behind yourself:

exit
umount /dev/sdaY
umount /dev/sdaX

You may now reboot and boot from the firmware into the installed system:

ok boot hd:0 zImage root=/dev/sdaX

You may also mess with yaboot as with 11.0 if you wish, but I prefer this method.

openSUSE 11.0

With a little workaround, installation of openSUSE 11.0 works without problems. The following should work on most Pegasos2 machines and involves the use of yaboot. One needs to copy the following files from the suseboot directory from the DVD or ftp to the root of an ext2/ext3 partition on the Pegasos:

yaboot
yaboot.cnf
yaboot.txt
inst32

Then reboot the machine and boot yaboot from the OK prompt, like this:

boot hd:0 yaboot

A short description of yaboot should appear. Here enter the following at the ':' prompt:

install dud=http://download.opensuse.org/update/11.0/driverupdate

This uses the driverupdate from openSuSE to fix an ugly crash bug in package selection. Of course any other boot parameters can be added here, for a complete list, see Linuxrc

From this point installation works as on any other systems.

Older openSUSE Distributions


openSUSE 10.3

Most of the 10.2 documentation also applies here. There was bug in 10.3, that 64bit packages were installed on 32bit systems. For a workaround check here: Efika#openSUSE_10.3_on_EFIKA_5200B

openSUSE 10.2

First of all, a big thank you to the openSUSE POWER team! Pegasos PPC is now fully supported by openSUSE! This means, that:

  • YaST partitioner module now fully handles Amiga "RDB" partition tables, which is the recommended way of using a HDD on a Pegasos
  • The default partition type became ext3, which means, that there is no need for a separate boot partition
  • Yaboot is used for booting, which makes it a lot more easy

Summary: this guide can be a lot shorter, a lot less workarounds to list :-)

RAM requirement

For a normal CD or DVD installation 256MB of RAM is enough. Installing 'factory' requires at least 384MB of RAM, as data for packages on all platforms is read by the package manager (20000+ packages instead of about 8000). If there is already a swap partition, it can be activated before starting YaST

Downloading

There are three choices:

  • 5 + 1 + 1 CD (least packages, separate non-OSS and language CD)
  • 1 DVD (best for most users)
  • ftp distribution (most packages, huge, but enough to download a boot.ppc.iso and the rest is downloaded as needed)

More information is available at http://en.opensuse.org/Download

Booting the installer

Once you have your installation media prepared, it's time to get started with installation. First, you need to escape to the OpenFirmware prompt. This can be done by hitting ‘Esc’ during the countdown, or if you have a boot menu, choose the appropriate entry. The next code sample shows, how to boot the installation system from a CD. It is the same for CD1 or the miniboot. The linemode=0 parameter is there to provide an easy to use curses based menu interface to installation settings, instead of a line based, which is ideal for serial console environments.

The command to boot from CD is:

boot cd suseboot/inst32 linemode=0

The command to boot inst32 copied to the root of the third ext3 partition is:

boot hd:2 inst32 linemode=0

What happens next, depends on how installation of SUSE Linux 10.1 was started:

If you burned the five CDs, and booted from CD1, or from the DVD, then you can sit back and relax for about two minutes, until you reach a graphical screen asking you which language to use during installation. You can safely skip the following chapter and continue here: http://en.opensuse.org/PegasosQuickStart102#Starting_of_the_graphical_installation

If there are troubles getting into the graphical installation screen (and you're welcomed with a text based one), you may want to try the following variant when booting the system:

boot cd suseboot/inst32 video=radeonfb:1024x768@75 linemode=0

Setting up the installation environment

If you don't have CD1 / DVD in your drive, you will be first presented with some questions before reaching the same stage of the installation. These are required to find the installation sources.

At first a blue screen appears, still in text mode. It will stay like this, until all information is gathered, and the installation software can be loaded.

The very first request is to put CD1 in your drive. This is not an error, the default installation mode is to use your CD/DVD drive. It is possible to choose other installation sources as boot parameters, but it's more convenient (less typing, and less documentation reading) to choose installation sources using a curses based menu system. If you don't have the CD in the drive you need to use the right arrow or tab to get to 'back' and hit 'enter' to continue.

Here the language of installation can be selected. All languages use their own character sets, some more exotic ones can not be read at all. For these English or an other language with 'Latin' type characters is suggested. This can be changed later on the graphical installation screen. Up/down arrows can be used to choose another language, and 'enter' to use that and continue with installation. The main menu of linuxrc (the tool used to set up the installation environment) is shown.

If network installation is to be used, the first menu to visit is 'Kernel Modules (Hardware Drivers)'. The menu works with up and down arrows and Enter/Escape. First enter the 'Kernel Modules' menu, and next choose 'Load ppc Modules'.

There are two ethernet ports on the Pegasos mother board. The left one is a gigabit ethernet interface, which requires the mv643xx_eth driver to be loaded. The right one is a 10/100 ethernet interface, the via-rhine driver is needed by this one. Just hit 'Enter' to load them and follow on screen instructions. You don't need any other modules to be able to install SUSE Linux on an ODW over the network, so escape back to the main menu.

To get started with installation, choose 'Start Installation or System'. This brings to another menu. The first one is needed to start installation, but the other two are also important:

  • 'Start Installation or Update' starts a new installation
  • 'Boot installed system' allows booting an already installed system.
  • 'Start Rescue System' starts a mini Linux with lot's of handy tools.

As installation is just started, the first menu entry is to be chosen. This shows another menu:

  • CD-ROM: does not have much use here, except when drivers need to be loaded before CD based installation can go on.
  • Network: FTP/HTTP/NFS/SMB
  • Hard Disk: from a partition

If you choose 'Hard Disk', you are presented with a list of partitions on the system. First, you have to choose the partition, where installation sources are to be found, and then enter the path relative to that partition. For example, if you copied the installation CDs to your /home partition in directory ‘suse101’, and /home is /dev/hda5, then choose /dev/hda5 as partition and /suse101/CD1/ as source directory. The rest of the directories will be used automatically.

From the network install, FTP has the most questions. If you forgot to load the kernel module for networking, you will be presented with a big, red warning message. Other way, you are asked, if you want to use DHCP for network configuration. If not, be prepared to answer some questions about your network. The first is: the IP address of your machine, netmask fallows (with defaults for a class C network filled id), IP of the gateway machine, IP of the name server, and finally IP of the ftp server. You can use the name of ftp server here, if there is a proper DNS entry for that machine. Then choose, if you need a username to reach the ftp site, or a HTTP proxy. At the end, you have to specify a source directory, including CD1 in the name, if you set up the installation source yourself from CDs, or 'inst-source', if you use the 'factory' distribution.

In a few seconds or minutes, depending on your network speed, you will get to the same graphical screen mentioned already at the beginning of the document.

Starting of the graphical installation

The first menu appearing on the graphical screen is the 'language' menu. It looks much better as the previously mentioned 'language' menu, as this one has correctly displayed characters from many different languages. What you choose here, influences a lot of things. Not only the language of the installation program, YaST, but if a software package has language extensions, like KDE or OpenOffice.org, it will be automagically selected during software installation based on this choice (this can be modified in the package manager). So, choose your language, and go to the next screen. You can check the integrity of your installation CDs, if you use them for installation. Other way, the next screen is about accepting the 'License Agreement' of SUSE Linux. (During beta testing, an extra window reminds, that it's a beta release, and there is no support at all. To continue, one has to accept both.)

Hardware detection comes next. This also means, that drivers are loaded, and if you don’t use CD1 for installation, YaST asks for your permission in some cases. It is possible, that you get another few kernel module related questions, and then you are presented with the 'Installation mode' menu. On first installation you need to use the default setting: 'New Installation'. 'Update' helps to update from a previous version of SUSE Linux. 'Other' has some important possibilities, well hidden, namely 'Boot Installed System' which might be needed if 'yaboot' fails on you. There you can choose which partition to boot.

Starting a new installation

If you 'Update' your SuSE installation, chances are high, that you don't need this guide :-) For the rest 'New installation' is to be used.

It must be mentioned here: no data is written to disc, until at the end of installation settings, you click the 'Accept' button and answer 'Yes' to the question. Until that you are free to abort the installation process, and no change is made to the system.

The first screen will allow to set the time and/or timezone. The next question is a bit more difficult: choosing a desktop environment. KDE was much better supported by SUSE for a long time, the difference is getting smaller now. Use 'other' if you don't want any of these large desktop environments, or text mode only.

The 'Installation Settings' overview page will appear. It shows the defaults, what YaST thinks the best for us. Be aware, that if there is anything on the HDD, YaST might suggest resizing partitions and create new ones. Check partitioning settings carefully before accepting them. Usually it's worth to continue installation on the 'Expert' page.Installation settings can be changed by clicking on bold underlined texts looking like links on a web page.

Partitioning

openSUSE 10.2 has ext3 as default partition type. Unlike 'reiserfs', it's supported by OpenFirmware. 'Yaboot' is installed in the root directory, so it's better to keep the / partition as ext3. Next to the root partition, a swap partition is needed as well.

The partitioner can make full use of the Amiga partition table: when an empty HDD is used this is the type created.

Software

Software selection works the same way, as on any other platforms, and well described in the manuals.

Booting

Nothing has to be changed here, 'Yaboot' will be installed in the root directory.

Committing installation

Up until now, the hard drive was not modified, only information about installation was collected. When the 'Accept' button is clicked, there is a last chance to modify settings or abort the installation. When 'Install' is clicked, the installation is carried out according to settings made in the previous menus.

At first, partitions are formatted and mounted and next software packages are installed. It takes some time. Estimate of remaining time can be tracked on screen. After the content of CD1 is installed, the computer is rebooted. Please see next chapter for booting instructions. After rebooting the system, the installer will ask another round of questions and finally a login screen appears.

Booting the installed system

Booting became very simple with openSUSE 10.2. 'Yaboot' is used for booting the system. The OF command line is very easy. If you have your root partition on /dev/hda5 then the command is:

boot hd:4 yaboot

It starts up the 'Yaboot' boot manager. If nothing is changed for a few seconds, the system starts up.

I tested 'Yaboot' with many different firmware versions, and it worked fine. If it fails, please refer to the PegasosQuickStart 10.1 installation manual, which shows how to boot from the CD and how to create a bootable kernel image.

openSUSE 10.1

This release is no longer supported, however the PegasosQuickStart article still covers it.