PS2Link, Pukklink, InLink, XLink?!?

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

Moderators: cheriff, Herben

Post Reply
shawn_t
Posts: 11
Joined: Tue Jul 26, 2005 4:32 am

PS2Link, Pukklink, InLink, XLink?!?

Post by shawn_t »

I've been searching for the truth about the boot loader client and server software but am quite confused.

The forum seems to suggest that pukklink and InLink are not supported and outdated. Is this in fact true? Does InLink work with PS2Link?

Assuming I am supposed to use PS2Link and XLink how do I install PS2Link on the memory card for boot from ps2linux? I had pukklink and InLink working from ps2linux, but I get random reboots from my PC when I use it for any amount of time.

Here is what I tried:

1) Download PS2Link version 1.24
2) Boot PS2 Linux
3) Login as root
4) issue 'mount /mnt/mc00' command
5) copy the contents of the bin directory to /mnt/mc00
6) modify pl2boot.cnf adding line for PS2Link

When I try to boot the new PS2Link option, I just get a black screen.

The contents of my IPCONFIG.DAT file is correct except I removed the second line (mc0:conf.dat)

Also, I didn't copy extra.cnf and system.cnf over to the memory card. Are they required? Where are they accessed from?

Could smeone please provide installation instructions to install PS2Link to be bootable using the PS2 Linux RTE?

Thanks in advance
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

To use the ps2linux boot disc as a way to run ps2link, you need to use a process called 'reload1'. This exits the RTE and runs the program directly on the hardware. Lucky for you, I have a prebuilt package you can use. I'm doing the same thing on my pstwo as it hasn't been modded yet. Here it is:

http://www.oopo.net/consoledev/files/re ... s2link.tgz

I added this line to my p2lboot.opt:

"Reload1" reload1.elf "" 203 /dev/hda1 reload1 RELOAD1

Enjoy!
shawn_t
Posts: 11
Joined: Tue Jul 26, 2005 4:32 am

Post by shawn_t »

Thanks for the quick reply!

A few quick questions:

1) I assume you make the modification to /mnt/mc00/p2lboot.cnf and not p2lboot.opt?

2) Is reload1.elf in the BWLINUX subdirectory? If so, do I have to modify the command to reference this subdirectory? Something like:
"Reload1" BWLINUX/reload1.elf "" 203 /dev/hda1 reload1 RELOAD1
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Here's what I'm currently using:

Code: Select all

$ cat p2lboot.cnf
"Reload1" reload1.elf "" 203 /dev/hda1 reload1 RELOAD1

$ cat p2lboot.opt
timeout=
display=ntsc
prevent=Reload1%mc0:/BWLINUX/reload1.elf%
Everything is put into mc0:/BWLINUX, as per the included readme:

Code: Select all

  fsclient mkdir mc0:/BWLINUX
  fsclient copyto p2lboot.cnf mc0:/BWLINUX/p2lboot.cnf
  fsclient copyto p2lboot.opt mc0:/BWLINUX/reload1.opt
  fsclient copyto reload1.elf mc0:/BWLINUX/reload1.elf
I believe the loader assumes the files are in the BWLINUX directory, so you don't have to specify it in the config files.
shawn_t
Posts: 11
Joined: Tue Jul 26, 2005 4:32 am

Post by shawn_t »

I'm trying to follow the installation instructions, but I can't get ps2client to work. I have successfully compiled ps2client on my linux server and tried:

ps2client -t 1 execiop rom0:SIO2MAN

but I get:
[ERROR] Connect socket failed. (-1)
[ERROR] Connect to request failed. (-1)
[ERROR] Connect to ps2link failed. (-1)

I have also tried setting the PS2HOSTNAME environment variable to my PS2 IP address as well as using the -h command to specify the PS2 host address. I still get the same errors...

I then successfully compiled ps2client within PS2 Linux and tried the same thing there. I get the same errors.

I have also just tried to copy the files to the memory card from within PS2 Linux, but I don't have the MC Full Access patch installed so I can't create the directory.

What should be running on my PS2 when I try to invoke ps2client?

Also, has fsclient merged with ps2client? If so, do I just type:

ps2client copyto ...

instead of fsclient?
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Those instructions assume you already have ps2link running. :)

Just copy the reload1.elf to your mc0:/BWLINUX directory, and edit your p2lboot config file to add the entry for it. That's it.
shawn_t
Posts: 11
Joined: Tue Jul 26, 2005 4:32 am

Post by shawn_t »

Unfortunately, I can't copy reload1.elf because I don't have the MC full access patch installed in PS2 linux so I can't see the subdirectories.

Here is what I'm trying:

mount /mnt/mc00
cp reload1.elf /mnt/mc00/BWLINUX/

I get a cp: cannot create regular file `/mnt/mc00/BWLINUX'

I've been trying to locate the full access patch for a while, but the website doesn't seem to be there anymore (www.0xd6.org) so I can't update my kernel to be able to create directories or access directories on my memory card...

Do you have any other suggestions?
shawn_t
Posts: 11
Joined: Tue Jul 26, 2005 4:32 am

Post by shawn_t »

Would it be possible for me to build my own version of reload1.elf that doesn't look in the BWLINUX subdirectory? Then I could just place reload1.elf in the root of /mnt/mc00 and not the BWLINUX subdirectory?

I tried it quickly and I think the problem I'm having is that it is looking for IPCONFIG.DAT in the BWLINUX subdirectory. When I get home, I can try to update my IP address to 192.168.0.10 (which I believe is the default) and see if that works...

Do you have the source available for this RELOAD1/PS2LINK project so I can make the modifications and build it?
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Its not reload1.elf that needs a BWLINUX directory... its the bootloader on the ps2linux disc that does. This is not something you can work around. :)

But, there's hope. When unpatched, ps2linux automatically mounts the BWLINUX directory as the root directory on the mc00 device - putting stuff in the root of /mnt/mc00 will actually be putting it into mc0:/BWLINUX. Does this make sense?

What this means is you can mount mc00, dump reload1.elf into the root directory and edit the config files in that same root directory. Unmount, reboot... and you should see an extra entry in the boot menu when you load the ps2linux disc.

A quick google shows source for reload1-1.1 is at:

http://playstation2-linux.com/projects/haven

And ps2link source is available on the svn repository at:

http://svn.ps2dev.org
shawn_t
Posts: 11
Joined: Tue Jul 26, 2005 4:32 am

Post by shawn_t »

Your description makes perfect sense to me and this is actually the first thing I tried. Unfortunately, it didn't work for me...I do get the option when I boot from the PS2 Linux RTE disc, but when selected, I get the following information on the screen:
Welcome to ps2link v1.30
Booting from host (host:)
Initializing...
Could not find IPCONFIG.DAT, using defaults
Net config: 192.168.1.10 255.255.255.0 192.168.1.1
Ready
I have a working IPCONFIG.DAT in the same directory as reload1.elf but it seems to suggest that it is booting from the host...

Anyway, I appreciate all your efforts, but I think I'll leave you alone and just stick with the pukklink v1.0 solution that at least works sometimes.

Thanks again and sorry for being such a bother
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

That message means its ready to go - it just used defaults because no configuration was found.

Hooray?
shawn_t
Posts: 11
Joined: Tue Jul 26, 2005 4:32 am

Post by shawn_t »

I have the IPCONFIG.DAT file in the same directory on the memory card as the reload1.elf file is this where it is supposed to be? The booting from host (host:) perhaps means that it should be on my host machine?!?

This file specifies my PS2 IP address which is unfortunately on a different subnet then the defaults listed so it isn't a simple change to switch over to 192.168.1.10.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Bust out that hex editor and change the defaults 'manually'. :)
shawn_t
Posts: 11
Joined: Tue Jul 26, 2005 4:32 am

Post by shawn_t »

That'll fix it...I'll try that tonight!

I checked it out in the HEX editor and it seems to be looking for the IPCONFIG.DAT file in mc0:/BOOT/IPCONFIG.DAT [0x0000c5a8 of reload1.elf] so that is probably the problem.

BTW: I just noticed your location was Canada! I was born in Ontario and then moved to Vancouver. I now live in the States, but still miss my homeland!!!
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

So move back. :)
cheriff
Regular
Posts: 258
Joined: Wed Jun 23, 2004 5:35 pm
Location: Sydney.au

Post by cheriff »

Hey,
I just got my reload1.elf setup in case i ever need to boot with rte rather than using the exploit.
Not sure if you ended up patching ps2client so it finds the net config file yet, or are just sticking with the defaults, but...

in http://forums.ps2dev.org/viewtopic.php? ... ht=reload1about 7th post down, boomint links to a premade reload1.elf that contains a modified version that is (more?) rte-aware and knows to look in mc0:/BWLINUX for the config file. Whether thats hardcoded in, or it's smarter at determining where it was booted from, im not sure, but it works! all IRX's are compiled in as well.

So if anyone's still interested, there it is.
enjoy!
Damn, I need a decent signature!
Post Reply