Search found 269 matches

by Mega Man
Tue Jan 01, 2008 2:16 am
Forum: PS2 Development
Topic: apascan - Handy tool for Linux
Replies: 11
Views: 10671

This is very interesting. Please post a link when your are finished.

As I understand you, I can also use it to install (copy) Linux on the hard disc without a PS2 (as long I have created the partition on the PS2).
by Mega Man
Tue Dec 25, 2007 12:20 am
Forum: PS2 Development
Topic: Linux 2.6 on PS2
Replies: 140
Views: 106949

I have a new kernelloader release 1.0. Now I have also a binary release it can load kernel and initrd from USB memory stick or ps2 memory card. http://mitglied.lycos.de/ps2dev/kernelloader1.0/kloader.elf Added Here are files that can be used for testing: http://mitglied.lycos.de/ps2dev/vmlinux http:...
by Mega Man
Thu Dec 20, 2007 8:21 am
Forum: PS2 Development
Topic: Some questions about tlb
Replies: 3
Views: 2424

DLTB/ITLB is only a cache. The cache can't rearrange anything. So you still have a pair of page frame numbers. I can't agree with you on this one. It's cache, true... but the page size in dtlb/itlb entries is always 4kB, where in main table (jtlb) it can be of many different sizes... So it in fact ...
by Mega Man
Tue Dec 18, 2007 9:01 am
Forum: PS2 Development
Topic: Some questions about tlb
Replies: 3
Views: 2424

JTLB is not described in the EE manual. It is just called TLB lookup. A TLB entry consists always of 1 virtual page number and up to 2 page frame numbers (odd and even). When there is something written about a TLB entry, there is always a pair possible. This is a design issue (or mistake?). DLTB/ITL...
by Mega Man
Sat Dec 01, 2007 10:53 pm
Forum: PS2 Development
Topic: Linux 2.6 on PS2
Replies: 140
Views: 106949

I think I only need to change TGE to get everything working. The loader seems to be stable.
by Mega Man
Fri Nov 23, 2007 11:55 am
Forum: PS2 Development
Topic: Linux 2.6 on PS2
Replies: 140
Views: 106949

I added support for ps2 pads in kernelloader.
by Mega Man
Mon Nov 19, 2007 10:55 am
Forum: PS2 Development
Topic: Linux 2.6 on PS2
Replies: 140
Views: 106949

Best wishes for your wedding.

I added support for memory cards and enabled USB also when ps2link is used for debugging (intrelay.irx).

http://mitglied.lycos.de/ps2dev/linux.html
by Mega Man
Mon Nov 19, 2007 2:33 am
Forum: PS2 Development
Topic: Linux 2.6 on PS2
Replies: 140
Views: 106949

For your information my kernelloader supports now USB with linux. So you can now use your USB keyboard with initrd. Support for mc and pad will follow soon.

http://mitglied.lycos.de/ps2dev/linux.html

Is there some progress with linux 2.6 and the gcc?
by Mega Man
Fri Nov 16, 2007 8:46 am
Forum: PS2 Development
Topic: What needs to be done to make TGE happen ?
Replies: 21
Views: 10899

I've updated kernelloader. The new version is available at: http://mitglied.lycos.de/ps2dev/linux.html Changes in emulated ps2 kernel: - SIF RPC is working with TGE and RTE sbios. - All IOP hardware should work. I've tested it with the pad and the mc example from ps2dev. SIF RPC is not yet working w...
by Mega Man
Fri Nov 16, 2007 8:36 am
Forum: PS2 Development
Topic: PSP Drivers Type B on PS2 + RemoteJoy or Symilar
Replies: 4
Views: 3384

I don't know what "Drivers Type B' is, but when it is not really fast (~8GB/s) then it will be too slow to play games. I think it would be a better idea to write a PSP emulator for PS2. As far as I know PSP has the same processor.
by Mega Man
Tue Nov 06, 2007 10:43 am
Forum: PS2 Development
Topic: gsKit fontm problem and broken arial.fnt
Replies: 17
Views: 9549

I detected that the texture cache is bigger and my patch didn't fix it. It just reduces the error rate. So I was looking at the GS manual. There must be a flush function and I found it. We need just to access TEXFLUSH register. I was suprised as I saw that this is already done in the texture uploadi...
by Mega Man
Mon Nov 05, 2007 10:39 am
Forum: PS2 Development
Topic: Problems with reads in no-wait RPC calls
Replies: 5
Views: 3458

Your code didn't show how you are calling the RPC functions. I can't say anything without seeing it. I was trying to use it as follows: SifCallRpc(&tmp_cd0, TMP_TRANSFER_BUFF, 0, tmp_rpcReBuff, 16, &tmp_ret, 16, 0, 0); SifCallRpc(&tmp_cd0, TEMP_READBUFFAHEAD, 1, ...
by Mega Man
Sun Nov 04, 2007 7:58 am
Forum: PS2 Development
Topic: Problems with reads in no-wait RPC calls
Replies: 5
Views: 3458

You say that you wait on EE until IOP has filled the buffer using a semaphore. How did you share the semaphore between IOP and EE? Your code didn't show how you are calling the RPC functions. I can't say anything without seeing it. Did you wait until endfunc is called before reading data on the EE? ...
by Mega Man
Mon Oct 29, 2007 8:18 am
Forum: PS2 Development
Topic: What needs to be done to make TGE happen ?
Replies: 21
Views: 10899

Hello, I want to inform you that I updated my kernelloader. You can get it here: http://freenet-homepage.de/ps2dev/kernelloader0.5.tgz New main features: - Graphic support (gsKit) in loader, shows current load state. - Added some SBIOS calls (this is not yet enough to get SIFRPC working, only IOP re...
by Mega Man
Sat Oct 06, 2007 9:52 am
Forum: PS2 Development
Topic: What needs to be done to make TGE happen ?
Replies: 21
Views: 10899

ragnarok2040, can you please give me the following information: Where is the function at 0x01000988 called. This function jumps to 0x0100a9c0, which copy code to address 0x80000018 and call it (at 0x0100ab48). I need a register dump at address 0x80000054. I want to know which function is called at t...
by Mega Man
Thu Sep 20, 2007 7:11 am
Forum: PS2 Development
Topic: What needs to be done to make TGE happen ?
Replies: 21
Views: 10899

ragnarok2040, if your log includes memory accesses to hardware registers, then I need it (especially when you also have the values that are written to the registers).
by Mega Man
Thu Sep 20, 2007 6:57 am
Forum: PS2 Development
Topic: What needs to be done to make TGE happen ?
Replies: 21
Views: 10899

ps2sdk doesn't have a library to read ext2 partitions, but I can use APA partitions. I was never sure, which hard discs will work, because my hard disc was not working and I didn't find any information about it. I thought that I need at least 40GB, but you write that you use only 4GB. So today I tri...
by Mega Man
Wed Sep 19, 2007 7:53 am
Forum: PS2 Development
Topic: What needs to be done to make TGE happen ?
Replies: 21
Views: 10899

I detected that RTE is not capable of loading kernels with a size of 7.2 Mbyte. Initrd.gz need to be smaller.
by Mega Man
Wed Sep 19, 2007 6:54 am
Forum: PS2 Development
Topic: What needs to be done to make TGE happen ?
Replies: 21
Views: 10899

Please run the following commands on ps2 linux as root user: dd if=/dev/mem of=memory.bin bs=4096 count=8192 gzip memory.bin devmem gzip hwregisters.bin and send me the result. This will generate a complete memory dump and compress it. I need at least the first 64 kByte of memory.bin. For devmem you...
by Mega Man
Tue Sep 18, 2007 10:42 am
Forum: PS2 Development
Topic: What needs to be done to make TGE happen ?
Replies: 21
Views: 10899

The status is: - The bootloader is working. Linux can be started and is working. - SBIOS is not finished, but can be used with linux. - dmarelay is not finished. - Working hardware: graphic. I have the original ps2linux DVDs, but I don't have a working hard disc. My first DVD is scratched and have r...
by Mega Man
Sat Sep 15, 2007 7:40 am
Forum: PS2 Development
Topic: gsKit fontm problem and broken arial.fnt
Replies: 17
Views: 9549

I looked over the code and now I am understanding what the code does. There are two pages in the VRAM used for the font. The font is not compeltely uploaded, but uploaded in small blocks. The blocks are stored in the 2 pages. The commands for uploading and drawing a char are put into a DMA queue. Th...
by Mega Man
Fri Sep 14, 2007 5:48 pm
Forum: PS2 Development
Topic: gsKit fontm problem and broken arial.fnt
Replies: 17
Views: 9549

Yes, I am using the latest version. I see that fread is failing. It seems that the calculation for the variable "size" is wrong. When I remove the check for the command "fread(gsFont->Texture->Mem, size, 1, File)", it is working. I think the code for fontm is very strange. It is ...
by Mega Man
Fri Sep 14, 2007 9:12 am
Forum: PS2 Development
Topic: gsKit fontm problem and broken arial.fnt
Replies: 17
Views: 9549

gsKit fontm problem and broken arial.fnt

Hello, I have a problem with gsKit and fontm. I can't print the following string correctly: "host:initrd.gz". The character "d" is replaced by a strange letter (I think this is japanese). On every second frame the character "g" is replaced by a dot. I used the fontm exa...
by Mega Man
Thu Sep 13, 2007 10:35 am
Forum: PS2 Development
Topic: Loading an ELF file above 0x80000000
Replies: 303
Views: 313769

I found out that there must be a nop at address 0x80000204 before starting linux or you will see random exceptions. Now I know why. Linux installs the V_INTERRUPT handler the following way: static inline void __init set_intr_vector(void *addr) { unsigned handler = (u...
by Mega Man
Tue Sep 11, 2007 6:46 am
Forum: PS2 Development
Topic: Linux 2.6 on PS2
Replies: 140
Views: 106949

I interpret this as follows: The label "loop8" is part of function SifWriteBackDCache() in ps2sdk/ee/kernel/src/kernel.S. The function is called as follows: SifWriteBackDCache( void *ptr = 0x158B20 /* register a0 */ int size = 0x8001A670 /* register a1 */ ); The size is too...
by Mega Man
Sat Sep 08, 2007 5:50 am
Forum: PS2 Development
Topic: Start up question
Replies: 5
Views: 3308

There is more than one way to load ps2 homebrew software: 1. The memory card exploit: You need: - normal ps2 memory card which can be used for games without any bootdisk. - supported ps1 disc - something to copy game saves onto the memory card (e.g. action replay). Working on: - Old ps2 with hard di...
by Mega Man
Fri Sep 07, 2007 8:40 am
Forum: PS2 Development
Topic: Loading an ELF file above 0x80000000
Replies: 303
Views: 313769

I am able to start an unpatched linux kernel without any exceptions. Initrd is not yet tested.

Here is the new version:
http://freenet-homepage.de/ps2dev/kernelloader0.3.tgz
by Mega Man
Fri Sep 07, 2007 7:23 am
Forum: PS2 Development
Topic: Loading an ELF file above 0x80000000
Replies: 303
Views: 313769

I found in tx79architecture.pdf, that the first 2 instructions of the exception handler are sometimes interpreted as nop. So I put 2 nops at the beginning of my exception handler (entry.S in kernelloader 0.2). Now suddenly the bus errors disapear and linux started. This is strange, because the excep...
by Mega Man
Fri Sep 07, 2007 5:29 am
Forum: PS2 Development
Topic: Loading an ELF file above 0x80000000
Replies: 303
Views: 313769

This explains why we see strange page faults. It is caused by an bus error, which is sometimes seen. So we need to fix the bus error to get rid of the random page faults.
by Mega Man
Fri Sep 07, 2007 5:22 am
Forum: PS2 Development
Topic: Linux 2.6 on PS2
Replies: 140
Views: 106949

The first time I saw this code, I was thinking: If you have good luck then this is working. It is better when you do this in an assembler file, because reordering is fatal at this point. I think assembler directives like ".noreorder" can also help. Normally you should put everything into o...