Agora, para instalar o Linux no seu PS2, você precisará:
1.) A software mod for your PS2, such as the FreeMCBoot OS, or a modchip, as you will need a way to launch your bootloader.
2.) A memory card of at least 8MB, but preferably 16MB, 32MB or 128MB to ensure you have ample space. This MC will permanently hold your boot loader configuration, Linux kernel, and RamDisk. Since your FreeMCBoot installation will take up approx. 4.5MB on it's respective MC, plus the Kernel, RamDisk, and config file together will take up at least 7MB (up to 9.5MB if you choose to include the generic RamDisk as well) and you only have two MC slots, unless you are willing to use a MC port expansion you will likely need the extra space provided by an above-average size MC to store your saved games.
3.) A USB disk of at least 8GB (either a USB flash drive or external IDE/SATA HDD/SSD will work)
4.) Access to an existing install of a Debian based system (while making this guide I used Debian 8), if you are on a macOS or Windows system I recommend using VirtualBox, but make sure you install the guest additions to more easily transfer the required files.
5.) A USB 1.1 or 2.0 keyboard. While Sony's PS2 Linux, and the BlackRhino Linux live DVD come with an on screen keyboard, this installation will use Debian 5, which requires a proper physical keyboard.
Depois de cumprir esses pré-requisitos, prossiga com as etapas de instalação da seguinte forma:
1.) Download these files:
vmlinux_v11.gz
and the modules package [link] (https://sourceforge.net/projects/kernelloader/files/Linux%202.6/Linux%202.6%20Test%20Files%20Version%2011/)
initrd.usb2.gz
[link] (https://sourceforge.net/projects/kernelloader/files/Initial%20RAM%20Disc/Initrd%20for%20booting%20from%20USB%20memory%20stick/initrd.usb2.gz/download)
kloader3.0.elf
[link] (https://sourceforge.net/projects/kernelloader/files/Kernelloader/Kernelloader%203.0/kloader3.0.elf/download)The Debian 5 installation files [link] (https://sourceforge.net/projects/kernelloader/files/Debian%205.0/debian-lenny-mipsel-v1.tgz/download)
2.) Copy the files
vmlinux_v11.gz
,initrd.usb2.gz
, andkloader3.0.elf
to a flash drive formatted as FAT32, plug it into your PS2, and copy them to a folder namedkloader
on your MC of choice (must have at least 7MB free). If there isn't enough space you can copykloader3.0.elf
to a second MC, but I recommend keeping the files together if possible.3.) Connect the USB disk you have selected for Linux installation to your existing Debian machine. Create an MS-DOS partition table on the disk.
4.) Open a terminal, start a root shell (sudo -i, or su). Run
fdisk /dev/sdX
where X is your USB disk's identifier. Delete all existing partitions on the USB disk, create one new primary partition that leaves 1GB of free space left of the disk (i.e. if you have an 8GB disk, you should use+7168M
as the end cylinder option). Create a secondary partition of 1GB (+1024M
as the end cylinder option), and change it's type to swap (t
, followed by2
, and finally82
). Then usew
to write changes to disk.5.) Run
mkswap /dev/sdX2
where X is your USB disk's identifier. Then runmkfs.ext2 -I 128 /dev/sdX1
. Be sure to include the-I 128
option, it is required.6.) Once the filesystems have been created, mount your USB disk's first partition under /media/usb/. Create a directory called
install
in the directory you just mounted the disk on.7.) Create a folder named
debian
on your Debian machine, and place all of the files you downloaded in step 1 into it. The next several steps will be commands for ease of writing.8.)
cp -R /path/to/folder/debian/* /media/usb/install/
9.)
cd /media/usb/
10.)
tar -xzf install/debian-lenny-mipsel-v1.tgz
11.)
cp install/vmlinux_v11.gz boot/; cp install/initrd.usb2.gz boot/
12.)
bunzip2 install/linux-2.6.35.4-mipsel-ps2-modules-v11.tar.bz2
13.)
tar -xf install/linux-2.6.35.4-mipsel-ps2-modules-v11.tar
14.)
nano etc/fstab
and changeext3
toext2
. Save the file and exit (ctrl-x
,y
,enter
)15.) Unmount your USB disk with
umount /dev/sdX1
16.) Unplug your USB disk. Turn on your PS2, plug your USB keyboard in to USB port 2, and start uLaunchELF. NOTE: do not plug in your USB disk yet, as the PS2 cannot natively read ext2 disks, and it will cause PS2 to hang on boot.
17.) In uLaunchELF, navigate to
mc0:/kloader/
ormc1:/kloader/
if you placed the boot loader on your second MC in step 2. Runkloader3.0.elf
, watch the bottom of the screen, and whenAutobooting in 3...
appears, press a button on your controller, or a key on the USB keyboard. A boot configuration menu should appear.18.) Go to the bottom of the menu using the arrow keys on your USB keyboard, and select
Advanced Menu
. Go toSelect Kernel>Memory Card X>kloader>vmlinux_v11.gz
thenSelect Init RAM disk>Memory Card X>kloader>initrd.usb2.gz
. TurnAutoboot
off.19.) Go to
Configuration Menu
at the bottom of the current page, make sureUse SBIOS from TGE
,TGE for SBIOS New Modules
,Enable hard disk and network
,Patch libsd (enable USB)
are all enabled, andEnable IOP debug output
is disabled.20.) Go to
Module List
and make sure thatrom0:LIBSD
is enabled.21.) Go back to the
Configuration Menu
and selectEdit Kernel Parameter
and add the linenewroot=/dev/sda1
(NOTE: pressing enter will save change and return to the Configuration Menu, so use a space after the existing line instead, and press enter once you have added this line.)22.) Go back to
Advanced Menu
, and thenBoot Menu
, SelectSave Config on MC0
.23.) Insert your USB disk into your PS2's USB port 1, go to
Advanced Menu
, and selectBoot Current Config
.24.) Debian should boot now, when you reach the login screen use
root
as the login. The root user does not have a password by default, and there are no other users, so now you need to fix both. Runadduser yourusername
and enter the needed info (omit personal details if you want), and a user will automatically be created.25.) Type
exit
, and login as your new user with the login info you set. Runsu
to enter a root shell, then runpasswd root
and set a password for the root account. Make sure it is something you can remember! This version of Debian doesn't come with sudo preinstalled, you will need access to the root account until you can change that.26.) Finally, while you are still in a root shell, run
nano /etc/apt/sources.list
and change the existing source todeb archive.debian.org/debian lenny main
so that you can install packages via a network if needed.27.) Networking will not function by default, to enable it add
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
to the file/etc/network/interfaces
, plug in an ethernet cable, and reboot the PS2 into Linux again.28.) Now that networking is up and running, you should install
sudo
for improved security when performing administrative tasks. This is Debian so log in to your user, drop to a root shell and runapt-get update && apt-get upgrade && apt-get install sudo
(There will be several packages needing updates so be sure not to omit those commands.).29.) You have sudo installed now, but you aren't in the sudoers file, so while in the root shell run
visudo /etc/sudoers
, and under##
## User privilege specification
##
root ALL=(ALL) ALL
add the lineyourusername ALL=(ALL) ALL
Save your changes to the sudoers file, log out, and log back in.
A instalação básica agora está completa. Qualquer outra customização que você queira fazer pode ser feita como você faria com qualquer outra distribuição Linux. Se você quiser instalar o PS2SDK para desenvolver um software específico para PS2, você pode encontrar a fonte aqui: [link] ( link ) Se você tentar para compilá-lo no PS2 ele ficará sem memória e travará, então certifique-se de configurar o ambiente de compilação na sua máquina principal, e copie os arquivos para o Debian USB manualmente ou via rede a fim de colocá-los no PS2 para teste. O controlador PS2 não funcionará como um mouse, então eu recomendo um hub USB para o mouse e o teclado (se essa não for uma opção, as teclas do mouse podem ser ativadas normalmente com Alt+Shift+Num Lock
). Obrigado pela leitura, e espero que isso ajude alguém a instalar o Linux em seu PS2. Eu tentei por meses para fazer isso funcionar, e recentemente fiz isso, então decidi tentar facilitar para os outros que desejam fazer o mesmo.