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 

NapLink

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



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun Jun 20, 2004 6:12 am    Post subject: NapLink Reply with quote

I was using NapLink in Windows, but recently switched to Fedora Core 2 (Linux). Both NapLink and npsh seem to be waiting for a peer (NapLink says this, npsh just sits at the point where it looks for a peer). Any suggestions?

The PS2 side reports the cable and PC to be ready. It seems that the Linux USB is having some trouble trying to send or receive packets.
Back to top
View user's profile Send private message AIM Address
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Sun Jun 20, 2004 6:20 am    Post subject: Reply with quote

hasn't pksh a support for naplink ?
_________________
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
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun Jun 20, 2004 6:52 am    Post subject: Reply with quote

Yes, that is npsh. As I mentioned above, it doesn't work either, which isn't surprising as it uses the NapLink Linux code for it's base.
Back to top
View user's profile Send private message AIM Address
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Sun Jun 20, 2004 7:40 am    Post subject: Reply with quote

True. Actually, I never tried naplink. Can' t help you any further. You should try to debug the PC-side code of naplink somehow. Maybe you simply need to run it as root or something. No better clue, sorry; you have to wait for a better one from somebody else.
_________________
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
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun Jun 20, 2004 7:47 am    Post subject: Reply with quote

Looking at the code, the PC is looping around fetching the quick link feature register, waiting for the peer exists bit to become set. It's nothing to do with packets apparently. When I unplug the cable from the PS2, the status goes to Cable: not ready PC: not ready. If I unplug from the PC, it goes to Cable: ready PC: not ready. Running NapLink then changes that to PC: ready. On the PC side, it just sits waiting on that peer exists bit. Swapping the cable ends made no difference to anything (not that I expected it to, just trying to be thorough). I'll try skipping the check for peer exists on the PC side and see what happens.
Back to top
View user's profile Send private message AIM Address
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Sun Jun 20, 2004 9:17 am    Post subject: Reply with quote

could you try to run npsh first, then boot naplink on the ps2. cable attached and everything.

if this doesnt work, and the kernel do recognize the usblink cable, im not sure what is going on.

out of curiosity, what libusb version did you link npsh with ?
_________________
Kung VU
Back to top
View user's profile Send private message Visit poster's website
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun Jun 20, 2004 9:41 am    Post subject: Reply with quote

blackdroid wrote:
could you try to run npsh first, then boot naplink on the ps2. cable attached and everything.


No difference.

Quote:
if this doesnt work, and the kernel do recognize the usblink cable, im not sure what is going on.


Very strange since it works in Windows. There's something different between the two PC sided clients.

Quote:
out of curiosity, what libusb version did you link npsh with ?


0.1.7 initially, then 0.1.8 just to see if that made any difference. It doesn't.
Back to top
View user's profile Send private message AIM Address
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun Jun 20, 2004 9:46 am    Post subject: Reply with quote

By the way, I have hooked my PS2 up to my enthernet hub, but I'm not sure how to set up the Linux side to allow pksh to work. Any docs somewhere on setting up the Linux side for networking with the PS2? I made a PS2Link disk that I can boot. It says it's setup as 192.168.0.10 and ready to go. It is connected to the hub according to the hub status lights. I have pksh compiled, I just need to get my eth1 setup to communicate to the hub and the PS2. eth0 is already running my cable modem. Any help appreciated.
Back to top
View user's profile Send private message AIM Address
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Sun Jun 20, 2004 2:18 pm    Post subject: Reply with quote

That's easy. Give eth1 an address on the 192.168.0.x network and you're good to go. Your OS docs should explain how to assign an IP address to an interface. Here's example values you could use:

IP: 192.68.0.11
Network: 192.168.0.0
Broadcast: 192.168.0.255
Subnet mask: 255.255.255.0

Typical commands to initialize a network interface to a given address are "ifconfig eth1 ip <ip> ... up" (see it's manpage). But that's usually distribution dependent.

Now, if you want to get the PS2 to be able to access the Internet, you're going to have to setup NAT/IP Masquerading. There's a ton of good FAQs on it (start at linuxdoc.org).
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun Jun 20, 2004 3:12 pm    Post subject: Reply with quote

Yeah, I figured that out and got ps2client working. I'll set it up to access the net later. This is fine for now. Weird about the NapLink though...

Thanks for all the help!
Back to top
View user's profile Send private message AIM Address
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Sun Jun 20, 2004 6:55 pm    Post subject: Reply with quote

im sure my and wiRe's code differs, nonetheless it does work as long as the kernel and libusb plays nice. ive used libusb 0.1.7 and 0.1.8 here and it worked.
_________________
Kung VU
Back to top
View user's profile Send private message Visit poster's website
dnc



Joined: 27 May 2004
Posts: 7

PostPosted: Mon Jun 21, 2004 12:20 am    Post subject: Reply with quote

J.F. wrote:
Yeah, I figured that out and got ps2client working. I'll set it up to access the net later. This is fine for now. Weird about the NapLink though...

Thanks for all the help!


I came late anyway, check if the usbnet kernel module is loaded (if true remove it), and if you don't modify the /proc/bus/usb permission/group your need to run npsh as root (via sudo, setuid root, etc)...


Andrea
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