How do I get Remtoe Joy working in Linux

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Kraust
Posts: 1
Joined: Wed Apr 08, 2009 5:03 am

How do I get Remtoe Joy working in Linux

Post by Kraust »

-Before I start my endless rant I would love to say that the Image verification was the biggest piece if **** that I have ever seen. I got two of my 3 email banned because of it. <_<

Well I've been searching for the longest time for a legitimate tutorial on how to get Remote Joy working on Linux. I did it *once* but that was a hard drive ago. Now when I try to get everything working I can't seem to get either Remotejoy or usbhost to work.

So can someone post a good guide on how to do this? Everything I look up is either out of date or broken. It's like people don't want me to use this or something.

-Thanks in advanced.

EDIT: Other things you'll need <_<
OS: Ubuntu 8.10 32-bit
When getting files from the repository assume I have none of the packages required.
Beuc
Posts: 33
Joined: Thu Mar 26, 2009 5:04 am
Location: holland

Re: How do I get Remtoe Joy working in Linux

Post by Beuc »

Here are my notes from a couple days ago. I managed to run some of it, but not all.

A tutorial: http://www.ngine.de/index.jsp?pageid=4292
Another (French) tutorial with a better Makefile: http://www.metagames-eu.com/forums/psp/ ... 87533.html

I'm using Debian Lenny.

The 'pmount' commands are optional and just show that I'm manually mounting the PSP link like a USB key.

1) Build PSPLink

Code: Select all

  svn co svn&#58;//svn.ps2dev.org/psp/trunk/psplinkusb
  pushd psplinkusb
  # Check psplink_manual.pdf
  make -f Makefile.oe release
  &#40;cd release_oe/pc/usbhostfs_pc/ && $SUDO ./mod.sh &#41;
2) Install PSPLink

Code: Select all

  pmount /dev/sdb1
  cp -a release_oe/psplink /media/sdb1/PSP/GAME/
  pumount /dev/sdb1
3) Compile remotejoy
First use a better Makefile, replace tools/remotejoy/pcsdl/Makefile with this one.
FYI, pthread weren't included and the author said this caused a problem, plus CFLAGS weren't actually used in the original Makefile. I personaly haven't tested with the original Makefile though ;)

Code: Select all

OUTPUT=remotejoy
OBJS=remotejoy.o font.o

CFLAGS=-O2 -pthread -Wall -g $&#40;shell sdl-config --cflags&#41;

all&#58; remotejoy

$&#40;OUTPUT&#41;&#58; $&#40;OBJS&#41;
	$&#40;CC&#41; -o $@ $^ $&#40;CFLAGS&#41; $&#40;shell sdl-config --libs&#41;

clean&#58;
	rm -f $&#40;OUTPUT&#41; *.o
(note: phpbb replaces a leading TAB by 4 spaces, like in front of $CC. You need to put a TAB back)

Then compile it:

Code: Select all

  cd tools/remotejoy
  make
  cd pcsdl
  make


4) Install remotejoy

Code: Select all

  pmount /dev/sdb1
  mkdir /media/sdb1/joy
  cp tools/remotejoy/remotejoy.prx /media/sdb1/joy
  pumount /dev/sdb1
5) Run PSPLink on your PSP

6) Run usbhostfs on your PC:

Code: Select all

  $ release_oe/pc/usbhostfs_pc/usbhostfs_pc
7) On another terminal, start pspsh and run remotejoy in it:

Code: Select all

  $ release_oe/pc/pspsh/pspsh
  host0&#58;/> ldstart ms0&#58;/joy/remotejoy.prx

8) Run RemoteJoy-SDL on yet another terminal on your PC:

Code: Select all

  $ cd tools/remotejoy/pcsdl
  $ ./remotejoy -d -c
9) Run the app manually (PRX only, ELF doesn't work, unless you're on firmware 1.50):

Code: Select all

  host0&#58;/> cd ...
  host0&#58;/> ./myapp.prx
The documentation asks to run vshmain.prx in order to start the XMB (the main PSP interface), but this doesn't work for me - so the app needs to be run manually.

-----

Following the tutorial above, here are what I think you should do to make the remote display activated when running a game. It doesn't work for me..

Code: Select all

  pmount /dev/sdb1
  pushd /media/sdb1/SEPLUGINS
  cp ../PSP/GAME/psplink/usbhostfs.prx .
  cp ../PSP/GAME/psplink/psplink.prx .
  cp ../PSP/GAME/psplink/psplink_user.prx .
  cp ../PSP/GAME/psplink/remotejoy.prx  .
  cat <<EOF >> vsh.txt
ms0&#58;/seplugins/usbhostfs.prx
ms0&#58;/seplugins/psplink.prx
ms0&#58;/seplugins/psplink_user.prx
ms0&#58;/seplugins/remotejoy.prx"
EOF
  cat <<EOF >> game.txt
ms0&#58;/seplugins/usbhostfs.prx
ms0&#58;/seplugins/psplink.prx
ms0&#58;/seplugins/psplink_user.prx
ms0&#58;/seplugins/remotejoy.prx"
EOF
  popd
  pumount /dev/sdb1
Enable the following plugin in the on-boot recovery menu:
- psplink.prx [GAME]
- psplink_user.prx [GAME]
- remotejoy.prx [GAME]

But as I said this didn't do anything special for me.

If you manage to get this running properly, please let us know :)
Post Reply