 CRUX PPC 2.5 Handbook addendum for Genesi PegasosI G3 with April 2

  Copyright (c) 2001-2003 by Per Liden
  Copyright (c) 2003-2004 by Giulivo Navigante
  Copyright (c) 2004-2009 by CRUX PPC Team - http://cruxppc.org/
  Copyright (c) 2009 by Nico Macrionitis < acrux AT cruxppc DOT org >
  ------------------------------------------------------------------------

Supported hardware
------------------

   * Genesi PegasosI with hardware fix April 2.
   * The provided kernel must be used during the installation, i.e. when 
     booting from the CRUX PPC ISO image.

     NOTE: Genesi PegasosI April 1 may work but don't try to install on 
           dma non-coherent PowerPC systems like Genesi PegasosI, YDL Mai 
           Logic Teron and Eyetech AmigaOne or Micro-A1. 

Genesi Pegasos1 G3 600MHz
-------------------------

   * Pegasos1 firmware (this first SmartFirmware release has a lot of bugs) is 
     able to read only msdos or amiga partition table and FAT16, FFS or 
     ISO9660 filesystems. It seems able to boot from a tftp server too.

Installation
------------

  0. On a different machine (with any kind of operating system) use fdisk 
     (msdos label partition) or parted (msdos or amiga label partition) to 
     create and format your boot partition. Your boot (primary) partition
     must be FAT16 or FFS0.

     Supposing to work with a FAT16 fs (remember 8+3 char lenght) copy on it
     the provided minimal boot kernel (CRUX) and the linux-2.6.16.62 sources.
     Copy on it gcc34, dosfstools and affstools packages too.

     NOTE: You can use MorphOS 1.4.5 disk utility to prepare your hard disk 
           drive directly from your own Pegasos1 choosing FFS0 or FAT16 fs.
 
  1. Download the CRUX PPC 2.5 ISO image (32bit release). To ensure the
     download was successful you should examine its checksum using md5sum.
     Run

             md5sum crux-ppc-2.5.iso

     and compare the output with the file crux-ppc-2.5.md5, which can be
     found in the same directory as the ISO image on the ftp-site. If the
     checksums match, the download was successful and you can continue with
     burning the ISO image on a CD.

  2. Insert the newly burned CD into cdrom and boot your computer.  Type:

             boot /ide/disk:0 CRUX

     on OpenFirmware. If you want add any boot options (example mem=256M),
     you must add below option:

             root=/dev/hdX video=radeonfb:800x600 (or console=/dev/ttyS0,115200)

     where hd?? is the device of the CD-ROM Drive with the CRUX PPC CD-ROM 
     inserted in (e.g. hdb for primary slave or hdc for secondary master).
 
     NOTE: you need to specify the frame buffer resolution.

  3. Login as root (no password required).

  4. Create (if necessary) and format the partition(s) on which you want
     CRUX PPC to be installed.

             parted /dev/hdXY
             mkreiserfs /dev/hdXY
             mkswap /dev/hdXY

     NOTE: it is necessary to make first partition into a  FAT16 /boot
           partition but you already did it as first step therefore avoid
           to erase it.

     The amount of disk space you need, depends on how many packages you
     choose to install. I recommend you to at least have a 1G root partition
     (CRUX PPC will use 200-500M depending on your configuration).

     Using ext2/ext3 is recommended, but there is the support for ReiserFS and
     JFS too if you need it. It's also highly recommended to separate the
     system from user data, i.e. use a separate partition for /home (and
     eventually /var), that will make your life easier the day you will need 
     to upgrade/reinstall/remove your system.

  5. Mount the partition you want this distribution being installed on,
     e.g.:

             mount /dev/hd?? /mnt
             mkdir /mnt/boot
             mount /dev/hda1 /mnt/boot

     If you want the installation on more than one partition, then
     mount these partitions as well. E.g. if you want to have a different
     partition for /var, then do like this:

             mkdir /mnt/var
             mount /dev/hd?? /mnt/var

     NOTE: This installation guide assumes that you use /mnt as the mount
     point for your new root partition. You can of course use something
     else, just remember to replace all further references to /mnt with your
     mount point.

  6. Activate your swap partition(s) using the swapon command, i.e.:

             swapon /dev/hd??

  7. Run the "setup" script to start the package installation.

             setup	

     The script will ask you where you mounted your new root partition
     and which packages you want to install. Just select the packages you
     want and nothing else will be installed. However, we recommend to at least
     install all packages marked as "core".

     When the setup script has installed the selected packages an installation
     log will be displayed. Make sure the last line in the log says
     "0 error(s)".

     If in a later stage you need some additional packages you
     can just mount the CRUX PPC CD-ROM and use pkgadd to install them.

     NOTE: There is only a simple package dependency checking.

  8. Now it's time to compile your kernel and do basic system configuration.
     The kernel compilation requires that you "chroot" into your new CRUX PPC
     installation.

            setup-chroot

  9. Edit /etc/fstab to configure your filesystem(s).

 10. Edit /etc/rc.conf to configure keyboard, services, and timezone.

 11. Edit /etc/rc.d/net, /etc/hosts and /etc/resolv.conf to configure your
     network (ip-address/gateway/hostname/domain/dns).

 12. Change the root password (use passwd with no arguments).

 13. Install gcc34 package stored during the first step into your FAT16 boot
     partition:
     
    	    pkgadd /boot/gcc34#3.4.6-1.pkg.tar.gz

 13. Go to /usr/src/ configure and compile a new kernel using linux-2.6.16.62 
     kernel sources stored during the first step into your FAT16 boot partition 
     and GCC-3.4 compiler:

	     make CC=gcc-3.4 ARCH=ppc mrproper
             make CC=gcc-3.4 ARCH=ppc menuconfig
	     make CC=gcc-3.4 ARCH=ppc -j2
             make CC=gcc-3.4 ARCH=ppc modules_install
             cp arch/ppc/boot/images/zImage.chrp /boot/lnx
             cp System.map /boot

     NOTE: Pegasos1 is unsopported by kernel > 2.6.16.x

 14. Remove the CRUX PPC CD-ROM from your drive and reboot.

 15. To boot from installed disk, type on SmartFirmware:

             boot /ide/disk:0 lnx root=/dev/hdYZ <other options>

     remember to set a video frame buffer resolution.

     NOTE: you can set default boot options in kernel setting at:
           "General Setup --> Initial kernel command string"
           or in SmartFirmware with:
           "setenv command"

# EOF

