0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

PS2Linux DiskLess Client (Memory-Based Linux)

Last updated at Posted at 2025-02-14

PS2LinuxのHDDへのインストールなしで起動させるプロジェクトです。
起動にはPS2LinuxのDVDが必要だとおもっていましたがなくても大丈夫です。
FreeMcBootが必要なのとKernelLoader3.0.ELF(Kloader3.0.elf)を使いDisklessClientを起動させます。
8GBくらいのUSBメモリーにPS2NSというdirectoryを作り中に
1.vmlinux_v11.gzをvmlinux.gzにリネーム
2.initrd(usb2).gzをinitrd.gzにリネーム
3.適当なファイル(ISOイメージ)
4.Config.txt

と、USBのTOPにConfig.txtを作ります。以下はConfig.txtの内容です

KernelFileName=mass0:PS2NS/vmlinux.gz
InitrdFileName=mass0:PS2NS/initrd.gz
KernelParameter=ramdisk_size=16384 cdrom=/dev/sda1 newroot=/cdrom/PS2NS/DISC.IMG
Auto Boot=10(適当)

このUSBをPS2(PlayStation2)につけてメモリーカードのKLoader3.0.ELFを起動させると
PS2Linux(DiskLessClient)の起動が可能です。
起動させると

/>

このような画面になります
Kernelは2.2.21-pre1-xr7です。Kernelは2.6.35.4かも分かりませんがPS2LinuxCommunityのDisklessClient(MemoryBasedLinux)とほぼ同じです。
PS2のメモリだけでLinuxが機能しています(最大32MB)

適当なDiskImageのマウントですが
/ext0というのがdefaultであるのでそこに

mount -o loop /dev/sda1/PS2NS/DISC.IMG /ext0
cd /ext0

ここからPS2LinuxをインストールしたHDDをマウントして内容をリカバリしたりネットワークも使えるのでなにかしらに使えそうです。

ネットワークの使用はコマンドが必要!
ifconfig eth0 192.168.1.9 netmask 255.255.255.0 IPアドレス、GATEWAYは任意(使用環境)で構いません。
route add default gw 192.168.1.1

上の設定をしたら
telnet 192.168.1.2 23 とかでリモートサーバのマシンにtelnetでLoginする。

HDDのマウントは
mkdir /hdd0
mount -t ext2 /dev/hda1 /hdd0
mount -t reiserfs /dev/hda11 /hdd0
とかです。

USBのマウントは
mkdir /usb0

一度目にこうして
mount -t usb-storage /dev/sda1 /usb0
マウントする時には
mount -t vfat /dev/sda1 /usb0
とか
mount -t vfat /dev/sdb1 /usb0 です。

MemoryCardのマウントは
mount -t ps2mcfs /dev/ps2mc00 /mc0
mount -t ps2mcfs /dev/ps2mc10 /mc1

MemoryCardの中にアクセスするには
cd /mc0/BWLINUX です。

PS2Linuxファイルはこの
BWLINUX(仮想ルート)の中に入れなくては使えません。
実行は
cd /mc0/BWLINUX 移動して
./ps2fdisk_0.9-3 でps2fdiskの実行
と、いう風に使います。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?