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 (i.e. /home/username):
This will change the CONFIG_UNIX98_PTYS compiler flag from undefined to a "y", and archive the original .config
file as .config.bak3
Now, go ahead and make the oldconfig. There will be a question about "Maximum number of Unix98 PTYs in use."
Take the default by typing the Enter key:
(Much stuff scrolls by)
Maximum number of Unix98 PTYs in use (0-2048) (CONFIG_UNIX98_PTY_COUNT)  (NEW)[Enter Key]
(Much more stuff scrolls by)
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+rw kernel-modules-2.4.17.tar.gz
Transfer the kernel-modules-2.4.17.tar.gz file, and the System.map and
vmlinux files which are located in your /home/username/usr/src/linux
directory to your PlayStation 2. For the purposes of this Mini-HOWTO, I'll assume the files
are copied to the PlayStation 2's /root directory
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 /root/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
Copy the vmlinux and System.map files to your PlayStation 2 /boot directory. HOWEVER - You must
give them a new name that matches the operating system release (uname -r):