ps2 linux on usb memory

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
davideciarm
Posts: 13
Joined: Mon Jan 26, 2009 9:23 pm

Post by davideciarm »

thanks for help.
you know what is the chip in the PSTwo?
but...this post:
http://playstation2-linux.com/forum/mes ... g_id=50493
show that ethernet work on PSTwo! :-S

and datasheet:
http://pdf1.alldatasheet.com/datasheet- ... TE100.html
belek666
Posts: 19
Joined: Mon Apr 14, 2008 12:54 am

Re: MPlayer for PS2, wmaker, dillo-mod, pidgin, xmame106, xm

Post by belek666 »

deba5er wrote:@belek666 - Try this - http://www.4shared.com/dir/8728191/2a84 ... aring.html

"ldd mplayer" shows 35 shared libs so you might want to make sure they are all there. You can either "make install" or just run from the main directory "./mplayer"

It is the latest version, and it is configured for X-Windows libraries.

OK I put all of my compiles up except the openssh5. A shame 4shared won't handle a larger than 100MB file, as I have lots of config and tweaking of various files for things like memory optimization, fixing backspace in dillo and pidgin apps, configuring wmaker prefs, dillo prefs, sudo stuff, scripts to start the least necessary to run x-windows. It would be neat to load a full partition backup tgz with all settings for a useable NTSC system. This gets around the massive shared library dependency issues you will undoubtedly encounter trying to install these things one at a time. I suppose for now, as questions come up, put on psx-scene forums and I'll see what I can provide.
I have a problem with mplayer. I installed it and tryed run but i get error:
BUG IN DYNAMIC LINKER ld.so: dl-version.c: 217: _dl_check_map_versions:
Assertion `needed != ((void *)0)' failed!
Maybe someone know what I should do to run mplayer on PS2 linux.
deba5er
Posts: 166
Joined: Mon Feb 04, 2008 2:01 pm

mplayer

Post by deba5er »

so you installed the two large "distro" packages from the 4shared download site and you got this error on installing the extra mplayer?
belek666
Posts: 19
Joined: Mon Apr 14, 2008 12:54 am

Post by belek666 »

No, I didn't install your "distro" . I tryed install mplayer on my but now I think that better is install your "distro". Thanks for your reply.
rgrimes
Posts: 5
Joined: Wed Mar 04, 2009 12:55 am

Blackrhino RUNNING on USB flash on both a PS2 and PSTwo/Slim

Post by rgrimes »

whig wrote:You'll need to modify things like kernel and initrd after you load these settings. Have patience... it took me a fair few tries to get somewhere. And it was tricky trying with a slim in a pal region.

Code: Select all

KernelParameter=crtmode=pal ramdisk_size=16384 root=/dev/ram0 quiet
ps2linkMyIP=192.168.0.10
ps2linkNetmask=255.255.255.0
---
218 SBR_REMOCON2_IRFEATURE=1
Auto Boot=0
After much playing with a slim in a ntsc region I have found the following config.txt to actually work for loading my kernels and finally have Blackrhino running on a USB flash memory stick on both a PS2/Fat and a S2/Slim (SCPH-77001) using MegaMans kernelload 1.9.

NOTE: You are going to need to change at least the KernelParameter and KernelFileName to what you are using. Also if you do manage to get booted from USB flash your file system well be trashed when you go to shutdown as the usb kernel threads are killed before the system has a chance to cleanly unmount the file systems.

I have patches for fixing some things, but I want to try to sync up with Mega Man as I think some of my patches might conflict with some of his patches in trying to get this working on the Slim. I would rather just submit my work to him and let him add it to his already fine tutorial and software. I am doing this with a STOCK kernelloader 1.9 from the sourceforge site, and custom kernel I built.

NOTE2: Before someone asks, NO the ethernet is not working on the slim in linux.. YET!

NOTE3: This config.txt file is for the PSTwo aka Slim only, just use the defaults from kernelloader 1.9 if you have a Fat PS/2.

Code: Select all

KernelParameter=crtmode=ntsc root=/dev/sda2 rw rootdelay=10 single
ps2linkMyIP=192.168.1.14
ps2linkNetmask=255.255.255.0
ps2linkGatewayIP=192.168.1.1
ps2graphicMode=
KernelFileName=mass0:/VMLINUX
InitrdFileName=
New Modules=0
Enable TGE (ow RTE mc)=0
Enable PS2LINK (debug)=0
Enable debug modules=0
Slim PSTwo=0
Use free modules=0
host:eedebug.irx=0
mc0:kloader/init.irx=0
rom0:ADDDRV=0
host:eromdrvloader.irx=0
mc0:kloader/sio2man.irx=0
rom0:XSIO2MAN=0
host:freesio2.irx=0
rom0:SIO2MAN=1
rom1:SIO2MAN=0
mc0:kloader/mcman.irx=0
rom0:XMCMAN=0
rom0:MCMAN=1
mc0:kloader/mcserv.irx=0
rom0:XMCSERV=0
rom0:MCSERV=1
mc0:kloader/padman.irx=0
rom0:XPADMAN=0
host:freepad.irx=0
rom0:PADMAN=1
rom1:PADMAN=0
mc0:kloader/libsd.irx=0
rom0:LIBSD=0
rom1:LIBSD=0
host:freesd.irx=0
mc0:kloader/sdrdrv.irx=0
rom1:SDRDRV=0
host:audsrv.irx=0
host:ioptrap.irx=0
host:iomanX.irx=0
host:poweroff.irx=0
host:ps2dev9.irx=0
host:ps2ip.irx=0
host:ps2smap.irx=0
host:ps2link.irx=0
host:sharedmem.irx=0
mc0:kloader/iopintr.irx=0
host:TGE/intrelay-direct.irx=0
host:TGE/intrelay-direct-rpc.irx=1
host:TGE/intrelay-dev9.irx=0
host:TGE/intrelay-dev9-rpc.irx=0
mc0:kloader/dmarelay.irx=0
host:TGE/dmarelay.irx=0
mc0:kloader/cdvdman.irx=0
rom0:XCDVDMAN=0
rom0:CDVDMAN=0
rom1:CDVDMAN=0
mc0:kloader/cdvdfsv.irx=0
rom0:XCDVDFSV=0
rom0:CDVDFSV=0
rom1:CDVDFSV=0
rom1:RMMAN=0
rom1:RMMAN2=0
mc0:kloader/module1.irx=0
mc0:kloader/module2.irx=0
mc0:kloader/module3.irx=0
mc0:kloader/module4.irx=0
mc0:kloader/module5.irx=0
Use SBIOS from TGE (ow RTE)=1
TGE SBIOS for New Modules=0
Enable hard disc and network=1
Enable IOP debug output=0
0 SB_GETVER=1
1 SB_HALT=1
2 SB_SETDVE=1
3 SB_PUTCHAR=1
4 SB_GETCHAR=1
5 SB_SETGSCRT=1
6 SB_SETRGBYC=1
7 unknown=1
8 unknown=1
9 unknown=1
10 unknown=1
11 unknown=1
12 unknown=1
13 unknown=1
14 unknown=1
15 unknown=1
16 SB_SIFINIT=1
17 SB_SIFEXIT=1
18 SB_SIFSETDMA=1
19 SB_SIFDMASTAT=1
20 SB_SIFSETDCHAIN=1
21 unknown=1
22 unknown=1
23 unknown=1
24 unknown=1
25 unknown=1
26 unknown=1
27 unknown=1
28 unknown=1
29 unknown=1
30 unknown=1
31 unknown=1
32 SB_SIFINITCMD=1
33 SB_SIFEXITCMD=1
34 SB_SIFSENDCMD=1
35 SB_SIFCMDINTRHDLR=1
36 SB_SIFADDCMDHANDLER=1
37 SB_SIFREMOVECMDHANDLER=1
38 SB_SIFSETCMDBUFFER=1
39 unknown=1
40 unknown=1
41 unknown=1
42 unknown=1
43 unknown=1
44 unknown=1
45 unknown=1
46 unknown=1
47 unknown=1
48 SB_SIFINITRPC=1
49 SB_SIFEXITRPC=1
50 SB_SIFGETOTHERDATA=1
51 SB_SIFBINDRPC=1
52 SB_SIFCALLRPC=1
53 SB_SIFCHECKSTATRPC=1
54 SB_SIFSETRPCQUEUE=1
55 SB_SIFREGISTERRPC=1
56 SB_SIFREMOVERPC=1
57 SB_SIFREMOVERPCQUEUE=1
58 SB_SIFGETNEXTREQUEST=1
59 SB_SIFEXECREQUEST=1
60 unknown=1
61 unknown=1
62 unknown=1
63 unknown=1
64 SBR_IOPH_INIT=1
65 SBR_IOPH_ALLOC=1
66 SBR_IOPH_FREE=1
67 unknown=1
68 unknown=1
69 unknown=1
70 unknown=1
71 unknown=1
72 unknown=1
73 unknown=1
74 unknown=1
75 unknown=1
76 unknown=1
77 unknown=1
78 unknown=1
79 unknown=1
80 SBR_PAD_INIT=1
81 SBR_PAD_END=1
82 SBR_PAD_PORTOPEN=1
83 SBR_PAD_PORTCLOSE=1
84 SBR_PAD_SETMAINMODE=1
85 SBR_PAD_SETACTDIRECT=1
86 SBR_PAD_SETACTALIGN=1
87 SBR_PAD_INFOPRESSMODE=1
88 SBR_PAD_ENTERPRESSMODE=1
89 SBR_PAD_EXITPRESSMODE=1
90 SB_PAD_READ=1
91 SB_PAD_GETSTATE=1
92 SB_PAD_GETREQSTATE=1
93 SB_PAD_INFOACT=1
94 SB_PAD_INFOCOMB=1
95 SB_PAD_INFOMODE=1
96 unknown=1
97 unknown=1
98 unknown=1
99 unknown=1
100 unknown=1
101 unknown=1
102 unknown=1
103 unknown=1
104 unknown=1
105 unknown=1
106 unknown=1
107 unknown=1
108 unknown=1
109 unknown=1
110 unknown=1
111 unknown=1
112 SBR_SOUND_INIT=1
113 SBR_SOUND_END=1
114 SB_SOUND_GREG=1
115 SB_SOUND_SREG=1
116 SBR_SOUND_GCOREATTR=1
117 SBR_SOUND_SCOREATTR=1
118 SBR_SOUND_TRANS=1
119 SBR_SOUND_TRANSSTAT=1
120 SBR_SOUND_TRANSCALLBACK=1
121 unknown=1
122 unknown=1
123 SBR_SOUND_REMOTE=1
124 unknown=1
125 unknown=1
126 unknown=1
127 unknown=1
128 unknown=1
129 unknown=1
130 unknown=1
131 unknown=1
132 unknown=1
133 unknown=1
134 unknown=1
135 unknown=1
136 unknown=1
137 unknown=1
138 unknown=1
139 unknown=1
140 unknown=1
141 unknown=1
142 unknown=1
143 unknown=1
144 SBR_MC_INIT=1
145 SBR_MC_OPEN=1
146 SBR_MC_MKDIR=1
147 SBR_MC_CLOSE=1
148 SBR_MC_SEEK=1
149 SBR_MC_READ=1
150 SBR_MC_WRITE=1
151 SBR_MC_GETINFO=1
152 SBR_MC_GETDIR=1
153 SBR_MC_FORMAT=1
154 SBR_MC_DELETE=1
155 SBR_MC_FLUSH=1
156 SBR_MC_SETFILEINFO=1
157 SBR_MC_RENAME=1
158 SBR_MC_UNFORMAT=1
159 SBR_MC_GETENTSPACE=1
160 SBR_MC_CALL=1
161 unknown=1
162 unknown=1
163 unknown=1
164 unknown=1
165 unknown=1
166 unknown=1
167 unknown=1
168 unknown=1
169 unknown=1
170 unknown=1
171 unknown=1
172 unknown=1
173 unknown=1
174 unknown=1
175 unknown=1
176 SBR_CDVD_INIT=0
177 SBR_CDVD_RESET=0
178 SBR_CDVD_READY=0
179 SBR_CDVD_READ=0
180 SBR_CDVD_STOP=0
181 SBR_CDVD_GETTOC=0
182 SBR_CDVD_READRTC=0
183 SBR_CDVD_WRITERTC=0
184 SBR_CDVD_MMODE=0
185 SBR_CDVD_GETERROR=0
186 SBR_CDVD_GETTYPE=0
187 SBR_CDVD_TRAYREQ=0
188 SB_CDVD_POWERHOOK=0
189 SBR_CDVD_DASTREAM=0
190 SBR_CDVD_READSUBQ=0
191 SBR_CDVD_OPENCONFIG=0
192 SBR_CDVD_CLOSECONFIG=0
193 SBR_CDVD_READCONFIG=0
194 SBR_CDVD_WRITECONFIG=0
195 SBR_CDVD_RCBYCTL=0
196 unknown=1
197 unknown=1
198 unknown=1
199 unknown=1
200 unknown=1
201 unknown=1
202 unknown=1
203 unknown=1
204 unknown=1
205 unknown=1
206 unknown=1
207 unknown=1
208 SBR_REMOCON_INIT=1
209 SBR_REMOCON_END=1
210 SBR_REMOCON_PORTOPEN=1
211 SBR_REMOCON_PORTCLOSE=1
212 SB_REMOCON_READ=1
213 SBR_REMOCON2_INIT=1
214 SBR_REMOCON2_END=1
215 SBR_REMOCON2_PORTOPEN=1
216 SBR_REMOCON2_PORTCLOSE=1
217 SB_REMOCON2_READ=1
218 SBR_REMOCON2_IRFEATURE=1
Auto Boot=0
swnny
Posts: 3
Joined: Sun Apr 05, 2009 12:24 am

Post by swnny »

Hi all!
I have PlayStation 2 Slim SCPH-70004 with modchip and fmcb and im trying to install the BlackRhino distro using this tutorial and kloader 1.7 (1.8 and 1.9 just freezes at boot):
http://kernelloader.sourceforge.net/tut ... linux.html

I read all threads here and managed to extract the blackrhino from one partition(fat32) of the usb memory to the other (ext2), which i created using the pstwo. Then umount everything, shutdowns and reboot kloader1.7.elf and now I dont know what to do... How to boot/start the blackrhino, that I extrated on the usb memory?

Thanks a lot, and sorry for my bad english.
vunited
Posts: 3
Joined: Thu Apr 09, 2009 1:15 am

Post by vunited »

I'm also having problems installing on my Memory Stick. I have read the tutorial on sourceforge. I'm using a Sandisk Memory Card if that makes any difference. [/url]
whig
Posts: 34
Joined: Sun Jan 04, 2009 5:52 am

Post by whig »

On my files site I've put up version 1d of an initrd to help slim users boot their usb system. Use a kernel command line like this in kernel loader:

crtmode=pal ramdisk_size=16384 quiet root=/dev/ram0 init=/sbin/init-pivot real=/dev/sda3 delay=6

(usual precautions re kernel and module versions here)

http://files.rillion.net/volt/
rafael2k
Posts: 18
Joined: Sun Jan 14, 2007 2:41 am

External USB network card?

Post by rafael2k »

Hi there people,
As the NIC is not working in the PS2 Slim, is it possible to attach an external USB NIC adapter?
Did anyone tried this?
How about a USB Hub, will it work?
whig
Posts: 34
Joined: Sun Jan 04, 2009 5:52 am

Post by whig »

I tried, no luck. That's with a usb to 100 Mbps ethernet adapter, and a usb to usb direct network link "cable". The 2.4.17 mvl kernel seems to have support for these types of devices, but mine are probably too new. Would a back-port work? I don't know. A hub works.
xbox-ua
Posts: 9
Joined: Tue May 05, 2009 2:56 pm

kloader 2.0

Post by xbox-ua »

Hi Mega-man out when kloader 2.0 and what will change?
xbox-ua
Posts: 9
Joined: Tue May 05, 2009 2:56 pm

Help to install Linux

Post by xbox-ua »

Help to install Linux on my Slim with the use of such files: blackrhino_baseimage-1.0.tar, initrd.usb2, kloader1.9.elf, vmlinux-2.4.17-ps2-devfs-20080302. Problems such - I have recorded on the flash card (8gb) and through uLaunchELF 4.39z run kloader1.9.elf it is loaded. For instructions mega-men turn to USB memory stick linux writes: Loading. please wait ... and all and there were 20 minutes, I am tired and I turned off the ps2 (to do so with a file system fat32 and fat16 anything besides Loading). What can I do?
whig
Posts: 34
Joined: Sun Jan 04, 2009 5:52 am

Post by whig »

Usb flakey maybe. It might not be just my slim hardware setup, but usb access is unreliable. Sometimes works, sometimes not. I just have to reboot.
xbox-ua
Posts: 9
Joined: Tue May 05, 2009 2:56 pm

Post by xbox-ua »

But why the flash-card works only with uLaunchELF a kloader when loading flash-card says Loading. please wait ... and hangs. How can I fix it hanging?
whig
Posts: 34
Joined: Sun Jan 04, 2009 5:52 am

Post by whig »

KL has a small file browser built in... I would have thought if that works, so it can load the file.
Mega Man
Posts: 260
Joined: Sat Jun 18, 2005 3:14 am
Contact:

Post by Mega Man »

I was busy with some non-PS2 stuff, but now I have a slim PSTwo (SCPH-77004). I tested my kernelloader 1.9 on it (initrd.usb2.gz from sourceforge, vmlinux.gz with the IRQ message, Free McBoot 1.8b, uLaunchELF v4.39):

My results are:
My USB memory stick is working within kernelloader.
Linux detects USB memory stick as FTDI serial-to-USB converter, so it is not usable in Linux.
Keyboard is working (I am using a PS2-to-USB converter).
NTSC/PAL detection is wrong. There was only a rolling screen when Linux was started. I needed to set kernel parameter "ntsc" to get it working on my PAL PS2 (my TV supports NTSC and PAL).
I don't have tested network yet.

I will try to fix the problems.

Kernelloader seems not to start if network cable is not connected. There is just a freeze. Maybe this is the problem which xbox-ua has.

Currently I try to update kernelloader to the latest libraries. The interface of gsKit changed. I now have less Vram available and need to get around the problem.

Info for SVN admin: Some gsKit examples are not working (BMP loading stuff). I found the error in gsKit file "ee/toolkit/src/gsToolkit.c". PS2SDK file I/O seems to be fixed. The code:

Code: Select all

FTexSize = fseek(File, 0, SEEK_END);
should be replaced by:

Code: Select all

fseek(File, 0, SEEK_END);
FTexSize = ftell(File);
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Info for SVN admin: Some gsKit examples are not working (BMP loading stuff).
Fixed in rev 1584, thanks
cosmito
Posts: 307
Joined: Sun Mar 04, 2007 4:26 am
Location: Portugal
Contact:

Post by cosmito »

Mega Man wrote:NTSC/PAL detection is wrong.
This is fixed in current gsKit, no need to worry. Search for detect_signal.
AndreyU82
Posts: 3
Joined: Wed May 20, 2009 3:28 pm

Post by AndreyU82 »

Mega Man
I will try to fix the problems.
OK, We very much wait
rafael2k
Posts: 18
Joined: Sun Jan 14, 2007 2:41 am

PS2 Slim NIC front

Post by rafael2k »

Any news for the PS2 Slim NIC?

PS2 Linux rocks!
xbox-ua
Posts: 9
Joined: Tue May 05, 2009 2:56 pm

Post by xbox-ua »

Mega Man, which will be updated kloader?
Mega Man
Posts: 260
Joined: Sat Jun 18, 2005 3:14 am
Contact:

Post by Mega Man »

I think I fixed the USB memory detection problem by recompiling the kernel.
The NTSC/PAL detection is now working with the new gsKit.
The network is not working. The cause for this problem seems that it is not possible to access some registers from EE anymore. The registers are still accessable on the IOP side.

Here is an example (maybe someone knows how to activate the memory access on slim PSTwo here?):

Code: Select all

#include "dev9regs.h"

USE_DEV9_REGS;
u16 dev9hw;

dev9hw = DEV9_REG(DEV9_R_REV);

printf("dev9hw 0x%08x\n", dev9hw);
If you execute this code on a slim PSTwo IOP, you get 0x00000031.
If you execute this code on a fat PS2 EE, you get a similar value.
If you execute this code on a slim PSTwo EE, you get 0x0000ffff.

I can get around this problem when the memory accesses are done on IOP processor. I will need to rewrite the network driver. This change will slow down the network.
Currently I don't know when the network driver will be finished.
AndreyU82
Posts: 3
Joined: Wed May 20, 2009 3:28 pm

Post by AndreyU82 »

Mega Man You lay out patches on a kernel? Or the corrected kernel?
xbox-ua
Posts: 9
Joined: Tue May 05, 2009 2:56 pm

Post by xbox-ua »

Mega Man wrote:I think I fixed the USB memory detection problem by recompiling the kernel.
Mega Man please download at rapidshare kernelloader compiled with embedded patches for the flash card in the ps2 slim.
Mega Man
Posts: 260
Joined: Sat Jun 18, 2005 3:14 am
Contact:

Post by Mega Man »

Here is the download link: http://rapidshare.com/files/239357728/v ... s2.gz.html

@AndreyU82: When I've got network working, I will provide kernel patches and a kernel build.
deba5er
Posts: 166
Joined: Mon Feb 04, 2008 2:01 pm

mplayer 1.0rc2 works for flv, now freeciv 640x448 works

Post by deba5er »

Just a quick note that I've got mplayer working with youtube (flv) videos on my FAT PS2. Nothing fancy (full screen zoom doesn't work - too much for cpu) but have both offline and streaming version working with a cool Python Tool by Ricardo Garcia Gonzalez and Danny Colligan so that I can copy a YouTube link in dillo, right click on the desktop and run the video. Not quite the same as clicking the youtube link directly, but is very easy. It leaves the videos in your home directory with the youtube names, but the script can be modified to cleanup or rename easily.

Read the latest distro comments here for how to apply these additions to my distribution:
http://www.4shared.com/dir/10437217/89c ... istro.html

The files are here: http://www.4shared.com/dir/8728191/2a84 ... aring.html

Edit - SDL-version of freeciv for 640x448 is uploaded now. I'm interested to see if a recompile on a PAL setup will show a different resolution.
Last edited by deba5er on Thu Jun 18, 2009 10:22 am, edited 1 time in total.
rafael2k
Posts: 18
Joined: Sun Jan 14, 2007 2:41 am

future of ps2 linux

Post by rafael2k »

NIC in PS2 Slim - I'll buy one ps2 for me now!
: )

I'd like to ask what are the status of any newer gcc port to ps2, and how about the 2.6 kernel port to the ps2 architecture?
Also for XFree86/Xorg, what is the status of it's code for ps2 environment?

I think that if we get an updated linux distribution for ps2 would be incredible - an updated debian port would be heaven!
xbox-ua
Posts: 9
Joined: Tue May 05, 2009 2:56 pm

Re: future of ps2 linux

Post by xbox-ua »

Mega-man, you're working on a new kernelloder (version 2.0 for ps2 slim) or not?
Mega Man
Posts: 260
Joined: Sat Jun 18, 2005 3:14 am
Contact:

Post by Mega Man »

I was working at it. Then I stopped it for a while. I will continue to work at it in some days. First I want to finish something else (a DVB radio player for PS2).

Before I stopped it, I've changed the network driver to use RPC calls, instead of accessing memory which is not accessable on slim PS2. There is one problem that I can't use RPC calls in the interrupt handler, because this will trigger the scheduler, which is forbidden in Linux.
AndreyU82
Posts: 3
Joined: Wed May 20, 2009 3:28 pm

Post by AndreyU82 »

Mega Man
I was working at it. Then I stopped it for a while. I will continue to work at it in some days. First I want to finish something else (a DVB radio player for PS2).

Before I stopped it, I've changed the network driver to use RPC calls, instead of accessing memory which is not accessable on slim PS2. There is one problem that I can't use RPC calls in the interrupt handler, because this will trigger the scheduler, which is forbidden in Linux.
The respected Mega Man we with impatience wait for result works on the new kernelloder also we hope that it will be successful.
Post Reply