Search found 269 matches

by Mega Man
Thu Sep 06, 2007 9:00 am
Forum: PS2 Development
Topic: Loading an ELF file above 0x80000000
Replies: 303
Views: 252963

I have already checked the cop0 registers. When I look at your list, my setup is not so different, that it should lead to such errors. By the way I noticed that sometimes my kernelloader 0.2 can't start the linux kernel on my ps2. I have seen bus errors. Often the bus errors are at places where the ...
by Mega Man
Mon Sep 03, 2007 2:47 am
Forum: PS2 Development
Topic: Loading an ELF file above 0x80000000
Replies: 303
Views: 252963

You need to count "\000" as one char. String has same size as before change, because space is also counted as one char. Size includes the last 0 which is not seen. 13 + 14 + 14 = 41 in my example. Third parameter is default gateway. You should use ethereal and check which ip addresses on y...
by Mega Man
Mon Sep 03, 2007 1:48 am
Forum: PS2 Development
Topic: Loading an ELF file above 0x80000000
Replies: 303
Views: 252963

I remember the error right after "Kernel command line: crtmode=pal". I had this before as I tried the same. The problem is that the graphical printk uses memory which is removed when system is initialized. It is installed later again. You can't print anything while graphic is initialized. ...
by Mega Man
Mon Sep 03, 2007 1:22 am
Forum: PS2 Development
Topic: Loading an ELF file above 0x80000000
Replies: 303
Views: 252963

I've done a trace with ethereal and I see that the ip configuration is changed to use 192.168.0.80 as source address and 255.255.255.255 as destination address. So parameters are wrong and need to be changed from: const char ifcfg[] = "192.168.0.23 255.255.255.0 192.168.0.254&qu...
by Mega Man
Mon Sep 03, 2007 12:49 am
Forum: PS2 Development
Topic: Loading an ELF file above 0x80000000
Replies: 303
Views: 252963

My ps2client and ps2sdk version is from 1.7.2007 or the day before (svn). My ps2link version is from 21.7.2007 (svn). I used the setup which is described in the README file of kernelloader 0.2. I detected that ps2link seems to ignore the ip address configuration parameter. So after iop reset and rel...
by Mega Man
Sun Sep 02, 2007 9:32 pm
Forum: PS2 Development
Topic: Loading an ELF file above 0x80000000
Replies: 303
Views: 252963

I removed graphic support in version 0.2, because of 4 reasons: 1. The graphic functions are taken from the tutorials and I wanted something better (e.g. a graphic library). 2. I wanted to include it in existing loaders like LaunchELF. 3. My test kernel relies on special graphic setup. Test kernel s...
by Mega Man
Wed Aug 29, 2007 8:19 am
Forum: PS2 Development
Topic: Loading an ELF file above 0x80000000
Replies: 303
Views: 252963

I updated my linux bootloader. Now it resets IOP, loads ps2link module and uses shared memory for printf(). RPC is not used yet. You can download it here: http://freenet-homepage.de/ps2dev/kernelloader0.2.tgz It includes also an example kernel which only prints some stuff. I think this is the proof ...
by Mega Man
Tue Jul 17, 2007 10:28 am
Forum: PS2 Development
Topic: How to write "enable intc" procedure?
Replies: 4
Views: 2662

Did you know that the syntax of your code is incorrect. - Function pointer declaration need to be done different. Star need to be moved before specifier "func". - Local variable ret is missing in enable_intc. The "printf" function in ps2sdk use things like rpc, syscalls and semap...
by Mega Man
Mon Jul 16, 2007 10:45 am
Forum: PS2 Development
Topic: How to write "enable intc" procedure?
Replies: 4
Views: 2662

I don't think it is a good idea to call "printf" in an interrupt handler. You said that you don't use ps2sdk and you started with timer code. Did you already tested "printf", because it is part of ps2sdk. You need a working toolchain to debug interrupts. Starting with interrupts ...
by Mega Man
Thu Jun 28, 2007 9:41 am
Forum: PS2 Development
Topic: irx modules docs
Replies: 11
Views: 4101

Are there any tools for dumping the dependencies for an irx? I have written a program that prints out the exported and imported functions. Function names are detected by using header files from PS2SDK. http://freenet-homepage.de/ps2dev/irxtool.tgz I also called it IRX tool. ;) Example: irxtool /usr...
by Mega Man
Thu Jun 07, 2007 9:00 am
Forum: PS2 Development
Topic: Linux 2.6 on PS2
Replies: 140
Views: 103799

I have written a loader for linux-2.4, but there was a problem that an alignment exception was raised when interrupts in linux are activated. I believe that this exception was raised in the my loader and occurs when interrupts are enabled. I didn't find the error yet. When linux ignores this interru...
by Mega Man
Sun Nov 12, 2006 9:50 pm
Forum: PS2 Development
Topic: problem loading elfs
Replies: 3
Views: 2731

As far as I know ps2link is located at this area. There are two workarounds possible: 1. You need to recompile ps2link. There is an option to load it at a high memory address. It is possible to load the recompiled version of ps2link with ps2link itself. 2. Pack your application with sjcrunch or anot...
by Mega Man
Tue Sep 19, 2006 7:31 am
Forum: PS2 Development
Topic: fgetc() returns EOF before end of file.
Replies: 5
Views: 2972

do you confirm ? Yes, because the linux programmer's manual says: fputc() writes the character c, cast to an unsigned char, to stream. I think it is a good idea to be compatible to linux. I didn't know anything about the testsuite before. Did you mean the test program in "ee/libc/regress"...
by Mega Man
Mon Sep 18, 2006 12:39 am
Forum: PS2 Development
Topic: fgetc() returns EOF before end of file.
Replies: 5
Views: 2972

fgetc() returns EOF before end of file.

When I open a binary file and try to read 0xFF with fgetc(), I get EOF (= 0xFFFFFFFF) instead. The problem is in ps2sdk/ee/libc/src/stdio.c: int fgetc(FILE *stream) { char c; int ret; switch(stream->type) { case STD_IOBUF_TYPE_GS: case STD_IO...
by Mega Man
Fri Aug 25, 2006 8:31 am
Forum: General Discussion
Topic: PGEN and SNES-Station with usb support
Replies: 1
Views: 3424

hdd support

SNES-Station has now hdd support.
by Mega Man
Tue Aug 15, 2006 9:13 am
Forum: General Discussion
Topic: PGEN and SNES-Station with usb support
Replies: 1
Views: 3424

PGEN and SNES-Station with usb support

Pgen v1.4 - Sega Genesis/Megadrive emulator for the Playstation 2

SNES-Station v0.2.4 USB - The Super-Nintendo Emulator for PS2

Both emulators have now support for loading ROMs from usb stick.

http://people.freenet.de/ps2dev/
by Mega Man
Sat Jul 22, 2006 9:31 pm
Forum: PS2 Development
Topic: USB Mass storage driver fixed
Replies: 2
Views: 2183

I forgot one patch. Please also add it to svn. The interface number will not be always 0. This can cause problems on some devices. --- mass_stor.c.orig 2006-07-22 01:47:11.000000000 +0200 +++ mass_stor.c 2006-07-22 01:47:30.000000000 +0200 @@ -385,7 +385,7 @@ void usb...
by Mega Man
Sat Jul 22, 2006 6:56 am
Forum: PS2 Development
Topic: USB Mass storage driver fixed
Replies: 2
Views: 2183

USB Mass storage driver fixed

Hello, I had some trouble with the usb mass storage driver. I added patches to solve it. Can someone check it into the svn repository. Some files in the svn are marked as binary, so CRLF line terminators are not converted to LF on linux. Can someone fix this also. I can test it only with one USB sti...
by Mega Man
Sun Jan 01, 2006 1:51 am
Forum: PS2 Development
Topic: GDB on PS2
Replies: 7
Views: 30380

I used a normal gdb 6.3 with the following configuration: ./configure --host=i686-pc-linux-gnu --target=mips32 and the following patch for ps2gdb (this patch uses 32 Bits for all registers): Index: ee/Makefile =================================================================== RCS file&#...
by Mega Man
Fri Dec 02, 2005 7:53 am
Forum: PS2 Development
Topic: Linux Bootloader
Replies: 2
Views: 2524

You can get linux kernel 2.4.17 for ps2 here (headers + source): http://www.sony.net/Products/Linux/Download/PlayStation_BB_Navigator.html The linux toolchain (x86) for cross compiling is here: https://playstation2-linux.com/files/ps2stuff/gcc-2.95.2-cross.tar.gz https://playstation2-linux.com/files...
by Mega Man
Tue Nov 29, 2005 10:57 am
Forum: PS2 Development
Topic: Linux Bootloader
Replies: 2
Views: 2524

Linux Bootloader

I developed a small bootloader for linux. You can boot linux until the init process is started. The graphic driver is working, but there is no communication possible with the iop. So everything based on iop is not working (network, hard disc). I used TGE from cvs, which will reject all calls. You ca...
by Mega Man
Thu Aug 25, 2005 5:14 am
Forum: General Discussion
Topic: Announcement: Game Ballion
Replies: 0
Views: 2104

Announcement: Game Ballion

I developed a small game. You can get it at http://people.freenet.de/ps2dev/. The server doesn't support big files (7.1MB), so you need to get first the download script and start it.

Image

Image
by Mega Man
Fri Aug 19, 2005 7:13 am
Forum: PS2 Development
Topic: Which usb ohci chip is in the ps2?
Replies: 5
Views: 3613

If I remember right, the IOP has some similar devices to the "1394 Lead Vehicle" from LSI. Also, the ps2linux kernel talks directly to the USB host controller, so might be worth checking out their source too. Thanx. The usb ohci registers seems to be similar, because the register at offse...
by Mega Man
Wed Aug 17, 2005 8:13 am
Forum: PS2 Development
Topic: Which usb ohci chip is in the ps2?
Replies: 5
Views: 3613

If I'm not mistaken, this chip is built-in inside the IOP, so, it won't help opening the PS2 anyway. Ok, you are right. I found a description at http://playstation2-linux.com/download/p2lsd/p2lkit-handbook.html#id2717231 , which says it. There is also mentioned that the IOP doesn't have a MMU. So t...
by Mega Man
Mon Aug 15, 2005 8:35 am
Forum: PS2 Development
Topic: Which usb ohci chip is in the ps2?
Replies: 5
Views: 3613

Which usb ohci chip is in the ps2?

I currently working on usbd and I tried to send messages over the usb bus. But I have the problem that there is nothing written to memory (e.g. the frame counter in hcca). I tried the same initialization on x86. Everything is working on x86 with an ohci pci card. So the code seems generally correct....
by Mega Man
Wed Jun 29, 2005 12:05 am
Forum: PS2 Development
Topic: TCP/IP can only send echo
Replies: 9
Views: 3675

Are you saying that this function is partof the IOP kernel, something we don't have the source code for?. Yes, we don't have the source code for it (it is a module located in the ps2 rom). But I finally got the problem. When you know it, it is very easy to solve. The function SifRPCGetOtherData() i...
by Mega Man
Tue Jun 28, 2005 10:41 pm
Forum: PS2 Development
Topic: TCP/IP can only send echo
Replies: 9
Views: 3675

Haven't found my answer as yet. My guess would be that they are in the same order as the functions are packed into the libkernel.a. As the order is quite different this probably isn't it. No, the references are resolved by the PS2-IOP-Kernel. It is some kind of a dynamic linker. There is a descript...
by Mega Man
Mon Jun 27, 2005 5:41 am
Forum: PS2 Development
Topic: TCP/IP can only send echo
Replies: 9
Views: 3675

The ee has a data cache. Some memory operations are not directly written to the memory. It will be cached. The function SifWriteBackDCache() will write the data from the cache to the memory, because the data are transfered via DMA. DMA cannot access the data cache, it can only access the main memory...
by Mega Man
Sat Jun 18, 2005 3:49 am
Forum: PS2 Development
Topic: TCP/IP can only send echo
Replies: 9
Views: 3675

TCP/IP can only send echo

I tried to use ps2gdb, but it was not working. I got only a broken echo when I used telnet. I debugged a little bit: The transfer between EE and IOP is not working, only the first non-aligned part of the data are correctly transfered from EE to the IOP. So I tried to test the network transfer with a...