forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

scr_printf & printf, how to debug.

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
anhanguera



Joined: 26 Aug 2004
Posts: 31

PostPosted: Fri Sep 03, 2004 10:34 pm    Post subject: scr_printf & printf, how to debug. Reply with quote

I am very new to ps2 development, and I do need to debug an .irx file. I do not have a prolific cable or smap eth adaptor. I have a klsi eth adaptor, and need to debug it. but I could not manage to print anything.. I cannot manage to use scr_printf inside an irx (iop compiled) .irx file. and printf is useless for anyone that does not have a usbtousb cable I thing.

can anyone give me a clue, how to use printf or scr_printf or something else.

alper.
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Sat Sep 04, 2004 2:57 am    Post subject: Reply with quote

You need to add your own custom printf() routine that outputs over the ethernet adapter.

Since the source is there it should be relatively easy to do. Just use UDP broadcast and have netcat or something listening on that port.
_________________
"He was warned..."
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Sat Sep 04, 2004 2:58 am    Post subject: Reply with quote

Just look at how ps2link does it's tty driver - you could just use that if you're using ps2ip on top of the ksi adapter.
_________________
"He was warned..."
Back to top
View user's profile Send private message
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Sat Sep 04, 2004 5:19 am    Post subject: Reply with quote

Won't he need full drivers for his usb ethernet adapter ? I guess his next question would be "How do I handle my ksi adapter?"...
_________________
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Sat Sep 04, 2004 6:04 am    Post subject: Reply with quote

KSI support is in CVS, in the ps2eth project.

There was a binary release of ps2eth some time ago.
_________________
"He was warned..."
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Sat Sep 04, 2004 6:08 am    Post subject: Reply with quote

mrbrown wrote:
KSI support is in CVS, in the ps2eth project.

There was a binary release of ps2eth some time ago.


Make that KLSI, which is what he said, and I'm not so sure about that binary release since I can't find it. But it looks like he has no trouble building IRXs anyways.
_________________
"He was warned..."
Back to top
View user's profile Send private message
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Sat Sep 04, 2004 7:46 am    Post subject: Reply with quote

Ah ? I was convinced there was no support for it. Good thing to know. Since when does that driver exists ? Well, just beeing curious...
_________________
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Sat Sep 04, 2004 8:45 am    Post subject: Reply with quote

Since ps2eth was first written by Oobles :P.
_________________
"He was warned..."
Back to top
View user's profile Send private message
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Sat Sep 04, 2004 8:48 am    Post subject: Reply with quote

Now, my (dumb) question is: is this driver and the smap driver (more or less) swappable ? I mean, could ps2link work with it ? Or would it require huge changes in the whole design ?
_________________
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Sat Sep 04, 2004 11:48 am    Post subject: Reply with quote

The KLSI driver hasn't been maintained in awhile, but AFAIK if you change ps2link to load the KLSI driver instead, it should just work. The ps2smap driver used the KLSI driver as a model to interact with ps2ip.
_________________
"He was warned..."
Back to top
View user's profile Send private message
Oobles
Site Admin


Joined: 17 Jan 2004
Posts: 362
Location: Melbourne, Australia

PostPosted: Sun Sep 05, 2004 4:28 pm    Post subject: Reply with quote

The KSLI driver was the first driver I used to develop ps2ip. After I found an SMAP I dropped it. I don't know the current state of the driver. If it is working, it should be possible to just replace the smap driver in ps2link with it and ps2link will work with it. Intheory you could load both smap and klsi up together and make a ps2 firewall. :)

To answer the original question. The best way to debug the driver is using Naplink and a pl2301 cable or using the Serial IO as provided by mrbrown,etc. I wouldn't bother trying to debug with scr_printf and burning disks, unless you want to spend more dollars on wasted disks than a pl2301 cable or Serial IO installation.

Oobles.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
anhanguera



Joined: 26 Aug 2004
Posts: 31

PostPosted: Sun Sep 05, 2004 6:26 pm    Post subject: Reply with quote

Oobles wrote:
To answer the original question. The best way to debug the driver is using Naplink and a pl2301 cable or using the Serial IO as provided by mrbrown,etc. I wouldn't bother trying to debug with scr_printf and burning disks, unless you want to spend more dollars on wasted disks than a pl2301 cable or Serial IO installation.
Oobles.


I really know that using naplink is the best solution but believe or not I could not find any usb cable that uses prolific chip here in Turkey/Istanbul. And I am not really able to do such thing like mr.brown s serial io. I do not know how to weld ;)))

anyway, I should look for prolific cable on the internet i think.

alper.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group