This Mini-HOWTO will show how to build, install and run this kernel on a PlayStation 2 Linux kit.
This is advanced kernel hacking. You can render your PlayStation 2
unusable if you're not careful. The author of this document will assume no responsibility
for any damage or loss of data you incur. Nor will any help be provided. This document is "AS-IS" -
take it or leave it. If you don't feel comfortable hacking your kernel on your PlayStation 2, then
don't do this!!!
YOU'VE BEEN WARNED!!
BEFORE YOU BEGIN:
This mini-HOWTO requires a cross-compiler. It should be set-up according
to my Cross Compiling
Mozilla guide. You need to have a reliable method for transferring files between your PlayStation 2 and your
cross-compiling machine. Also - this has only been tested with PlayStation 2 Linux 1.0 as shipped from
Sony. I haven't tested this with BlackRhino Linux.
Log into your cross-compiling machine with a non-root user account.
Download these two files into your home directory:
This will change the CONFIG_EXT2_FS compiler flag from an "m" to a "y", and archive the original .config
file as .config.bak
Build the dependencies:
Build the kernel:
Build the modules:
Switch to SU and install the modules:
NOTE: This will create a directory called /lib/modules/2.4.17_mvl21 .
This directory will not run on your cross-compiling machine!!
Remaining as SuperUser, tar/gzip up the modules directory for transfer to your PlayStation 2:
tar cvf kernel-modules-2.4.17.tar 2.4.17_mvl21
chmod a+rwx kernel-modules-2.4.17.tar.gz
Transfer the kernel-modules-2.4.17.tar.gz file and the
vmlinux file which is located in your "home directory"/usr/src/linux
directory to your PlayStation 2
Log out of your cross-compiling machine.
Log into your PlayStation 2 as root
Mount your memory card:
Copy the vmlinux file to the memory card with a new name:
cp vmlinux /mnt/mc00/vmlinu2
Add an entry for the new kernel to your p2lboot.cnf file:
and add this line. /dev/hda1 should be the location of your root directory.
"Experimental" vmlinu2 "" 203 /dev/hda1 "" PS2 Linux Kernel 2.4.17
Untar/gzip the modules in the /lib/modules directory:
gzip -dc kernel-modules-2.4.17.tar.gz | tar -xvf -
Create a new device for the 2.4.17 kernel mouse:
mknod /dev/input/mice c 13 63
At this point, if you only use text mode on the PlayStation 2, you're done.
You can reboot the PlayStation 2 and select your new kernel. If you need XWindows
support, then complete the next step before rebooting.
Edit your /etc/X11/XGSConfig file:
Comment out this line:
so that it looks like this:
# Device "/dev/mouse"
and add this underneath it:
When you run the original kernel (2.2.1), you will need to comment out the /dev/input/mice line, and uncomment
the /dev/mouse line.
OPTIONAL: If you haven't already done so, now is a good time to add wheel support.
You can use my
Mouse Wheel Mini-HOWTO for reference.