REVISION HISTORY:
1.1 September 16, 2006 Include XGSConfig edits, change initfs URL
1.0 September 16, 2006 Initial revision
OVERVIEW:
This Mini-HOWTO will show you how to upgrade to the xRhino 2.2.21-pre1-xr7 kernel and repartition your hard-drive using the APA partition scheme. During this process you will need to make a full backup of your PS2 Linux installation and transfer it to another computer (or PS2) running an FTP server. The backup procedure described here uses unpartitioned space on your hard-drive, you will need about 25% to 50% of your drive unpartitioned. You will also require approximately 4MB of free space on your PS2 Linux memory card for the new kernel.
There are four major steps in this procedure:
INSTRUCTIONS:
Installing the xRhino 2.2.21-pre1-xr7 kernel
tar -zxvf kernel-binaries-2.2.21-pre1-xr7.tar.gz cd kernel-binaries-2.2.21-pre1-xr7
mount /mnt/mc00 cp vmlinux /mnt/mc00/xrvmlinux
cp -R lib /
cp xrinitfs.gz /mnt/mc00
vi /mnt/mc00/p2lboot.cnfWhen the file opens, press the down arrow key until you reach the last line, press End to move to the end of the line, press Esc A to enter append mode, press Enter to create a new line, then append the following lines:
"xRhino" xrvmlinux "" 203 /dev/hda1 "" xRhino Kernel "xrinitfs" xrvmlinux xrinitfs.gz 203 /dev/ram0 "" xRhino Kernel initfsPress Esc to exit append mode, then : w Enter to write the file, then : q enter to quit
umount /mnt/mc00 reboot
cd /dev mkdir input mv mouse mouse-221 mknod input/mice c 13 63 mknod input/js0 c 13 0 mknod input/js1 c 13 1 mknod input/js2 c 13 2 mknod input/js3 c 13 3 mknod input/event0 c 13 64 mknod input/event1 c 13 65 mknod input/event2 c 13 66 mknod input/event3 c 13 67 ln -s input/mice mouse-xr7 ln -s mouse-xr7 mouseEdit XGSConfig:
vi /etc/X11/XGSConfigComment out the line in the Pointer section as shown below:
# Device "/dev/mouse"Add the following line:
Device "/dev/input/mice"If you want to enable support for the mouse wheel, make the following changes:
Protocol "IMPS/2"
ZAxisMapping 4 5
# Emulate3Buttons # Emulate3Timeout 50
Making a full backup of your PS2 Linux installation
fdisk /dev/hdaPress p to print the partition table, it should look something like this:
Device Boot Start End Blocks Id System /dev/hda1 * 1 4162 2097616+ 83 Linux /dev/hda2 4163 19386 7672896 5 Extended /dev/hda5 4163 4423 131512+ 82 Linux swapPress n to create a new partition.
Device Boot Start End Blocks Id System /dev/hda1 * 1 4162 2097616+ 83 Linux /dev/hda2 4163 19386 7672896 5 Extended /dev/hda5 4163 4423 131512+ 82 Linux swap /dev/hda6 4424 12746 4194760+ 83 LinuxTake note of the new device name, in this case /dev/hda6.
mke2fs /dev/hda6
mkdir /mnt/hda1 mkdir /mnt/hda6
mount /dev/hda1 /mnt/hda1 mount /dev/hda6 /mnt/hda6
ls /mnt/hda1
cp /usr/sbin/ps2fdisk /mnt/hda1/usr/sbin
cd /mnt/hda1 tar cvzf /mnt/hda6/backup.tar.gz *For a graphical workstation installation this took 32 minutes, the file size was 233MB
Re-partitioning your hard-drive
ps2fdiskPress n to create a new partition
mke2fs /dev/hda1 mke2fs /dev/hda3
mkswap /dev/hda2 swapon /dev/hda2
mkdir /mnt/hda1 mkdir /mnt/hda3
mount /dev/hda1 /mnt/hda1 mount /dev/hda3 /mnt/hda3
Restoring your PS2 Linux installation
cd /mnt/hda1 tar zxvpf /mnt/hda3/backup.tar.gzIt took 4 minutes 25 seconds to decompress the archive.
ls /mnt/hda1
umount /dev/hda3
ps2fdiskType d and press Enter to delete a partition.
vi /mnt/hda1/etc/fstabAbout the 3 lines down you should see the line that mounts the swap partition, it starts like this:
/dev/hda5 none swapChange hda5 to hda2 and save the changes.
cd / umount /dev/hda1 reboot