Page 1 of 2

PCSX-ReARMed on Pi

Posted: Fri Aug 03, 2012 9:09 am
by portets
A new version of PCSX-ReARMed was released that adds an SDL port. Figured I'd try getting it running. Just a little modification and so far we have:
Image
:D
Kind of slow, but almost playable with frameskip. Just hoping I can get the gles gpu plugin working.

Re: PCSX-ReARMed on Pi

Posted: Fri Aug 03, 2012 9:26 am
by shawnbusker
What was the modification? And what are the build requirements?

Shawn

Re: PCSX-ReARMed on Pi

Posted: Fri Aug 03, 2012 9:40 am
by portets
Open up configure and delete this section:

Code: Select all

# header/library presence tests
check_zlib()
{
  cat > $TMPC <<EOF
  #include <zlib.h>
  void main() { uncompress(0, 0, 0, 0); }
EOF
  compile_binary
}

check_bzlib()
{
  cat > $TMPC <<EOF
  #include <bzlib.h>
  void main() { BZ2_bzBuffToBuffDecompress(0, 0, 0, 0, 0, 0); }
EOF
  compile_object
}

check_libpng()
{
  cat > $TMPC <<EOF
  #include <png.h>
  void main() { png_init_io(0, 0); }
EOF
  compile_binary
}

check_oss()
{
  cat > $TMPC <<EOF
  #include <sys/soundcard.h>
  #include <sys/ioctl.h>
  void main() { int a=0; ioctl(0, SNDCTL_DSP_SETFMT, &a); }
EOF
  compile_binary
}

check_alsa()
{
  cat > $TMPC <<EOF
  #include <alsa/asoundlib.h>
  void main() { snd_pcm_open(0, 0, 0, 0); }
EOF
  compile_binary "[email protected]"
}

check_sdl()
{
  cat > $TMPC <<EOF
  #include <SDL.h>
  void main() { SDL_OpenAudio(0, 0); }
EOF
  compile_binary "[email protected]"
}
but make sure to apt-get all of these packages and their dev.
./configure
open up config.mak and change the cflags and asflags to:

Code: Select all

CFLAGS += -O3 -mfloat-abi=hard -mfpu=vfp -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -march=armv6zk
ASFLAGS += -mfloat-abi=hard -mfpu=vfp --defsym HAVE_ARMV7=0
change HAVE_TSLIB = 1, to: = 0
open up the makefile and change cflags and ldflags to:

Code: Select all

CFLAGS += -Wall -ggdb -Ifrontend -ffast-math -I/usr/include -I/usr/include/SDL
LDLIBS += -lpthread -lSDL -lpng
then make.

I think that's it. I think the gles plugin needs some modification to work. I got it to compile but pcsx complains about it and exits.

Re: PCSX-ReARMed on Pi

Posted: Fri Aug 03, 2012 10:13 am
by shawnbusker
I tried that, didn't work for me, mind sharing your source it'd be easier.

Thanks,
Shawn

Re: PCSX-ReARMed on Pi

Posted: Fri Aug 03, 2012 11:06 am
by portets
https://docs.google.com/file/d/0ByBA2iQ ... edit?pli=1
This contains the executable as well. Don't know all of the dependencies though :(

I don't upload things much. Where would be a better place?

Re: PCSX-ReARMed on Pi

Posted: Fri Aug 03, 2012 11:26 am
by Norefall
Great work!

Re: PCSX-ReARMed on Pi

Posted: Fri Aug 03, 2012 11:30 am
by shawnbusker
Thanks, Google drive actually works quite well for posting files.

Shawn

Re: PCSX-ReARMed on Pi

Posted: Fri Aug 03, 2012 7:44 pm
by simon321
this is fantastic i was worried no one would even try. I have been playing on the emulator most of the day. compatibility seems good with a overclock to 1030mhz .I am nearly getting full speed on most games i have tried, but with no audio and I cannot seem to get that working, and also it seems impossible to get full screen there seems to be no video scaling options

Re: PCSX-ReARMed on Pi

Posted: Sat Aug 04, 2012 1:23 am
by danboid
Thanks very much for uploading this and sharing your fixes portet!

I have got your RPi binary running wonderfully without any recompilation and with USB, PSX style joypad support under Ubuntu 12.04 on my 1Ghz Pandaboard - I get a steady 60fps at an average of about 66-70% CPU. This is incomparably better than the PCSXr in the Ubuntu repos which has no ARM dynarec core.

As has already been mentioned by another poster - I'm not getting any sound here either although I've not tried recompiling it yet. Have you got sound working Portet?

Thanks for turning my Pandaboard into a decent games machine notaz, Portet and the PCSX team!

Re: PCSX-ReARMed on Pi

Posted: Sat Aug 04, 2012 1:35 am
by danboid
portet:

notaz, the dev who added the ARM optimizations to PCSX to create this ReARMed edition, has told me that the GLES code is a bit buggy at the moment so probably not worth getting too excited about just yet.

Re: PCSX-ReARMed on Pi

Posted: Sat Aug 04, 2012 8:30 am
by ndrs
Hi there. I've tested PCSX and... boy, it's awesome, I didn't expected to get it full speed so quickly.

Here's a video of Digimon World 2003 in mi Rpi. It's recorded talking in spanish, sorry, all that I say is what I am using and how it is configured and running.

http://www.youtube.com/watch?v=XDBWODvWSkY

Have a good day.

Re: PCSX-ReARMed on Pi

Posted: Sat Aug 04, 2012 12:37 pm
by danboid
Looking at portets modified pcsx, I'd say Pi owners should be able to get sound working by adding:

Code: Select all

SOUND_DRIVERS = sdl
To config.mak then recompiling

No-one uses OSS any more and sdl is often a better choice over ALSA because it often works with Pulseaudio whereas ALSA only apps can have probs with PA sometimes.

Re: PCSX-ReARMed on Pi

Posted: Sat Aug 04, 2012 9:29 pm
by simon321
I have recompiled it with sound support and it works but the sound is terribly scratchy, for anybody that wants to try it and cannot be bothered to mess around I have uploaded it here http://www.filefactory.com/file/6rdj7c9 ... rry_pi.zip

Re: PCSX-ReARMed on Pi

Posted: Sun Aug 05, 2012 10:33 am
by danboid
notaz has now updated the pcsx rearmed git repo so that the configure script runs without portets hacks and you should find that pcsx builds cleanly on armhf platforms now - at least it builds fine on Pandaboard Ubuntu 12.04 armhf now and after changing the sound driver option as I recommended above I have crystal clear sound to go with my 60fps PSX emulation! Woohoo!

Thanks again notaz, unai and the PCSX devs!

Code: Select all

git clone git://notaz.gp2x.de/~notaz/pcsx_rearmed.git 

Re: PCSX-ReARMed on Pi

Posted: Sun Aug 05, 2012 11:23 am
by portets
Been gone for a few days. Great to know it's working good for everyone. :)

Will have to check out the new changes and thank notaz for this! :D

Re: PCSX-ReARMed on Pi

Posted: Sun Aug 05, 2012 12:05 pm
by simon321
I just compiled it , the sound now works properly, I will delete the file above because this is much better

Re: PCSX-ReARMed on Pi

Posted: Sun Aug 05, 2012 12:37 pm
by ndrs
I'm compiling it right now, will test and will make a video of usage, I suposse.

This time I will try to do the video in english.

Have a nice day.

Re: PCSX-ReARMed on Pi

Posted: Mon Aug 06, 2012 2:25 pm
by fraz0815
Is there any way of getting a larger view of the games, like upscaling or setting down the resolution of tv?
Don't know if it's a problem on my side or just not implemented, looks quite tiny on 720p :)

:edit nvm, shouldn't just have tested only FF7. Tekken 3 seems fine.

Re: PCSX-ReARMed on Pi

Posted: Tue Aug 07, 2012 1:31 am
by SSilver2k2
This is really cool. Got it almost working on my Pi. It loads a game, plays the intro, then crashes. Going to have to go dig out my PS1 collection and try some more.

Re: PCSX-ReARMed on Pi

Posted: Wed Aug 08, 2012 2:28 am
by SSilver2k2
So it looks like it was just the game I was using. Tried a couple more and they play.
SSilver2k2 wrote:This is really cool. Got it almost working on my Pi. It loads a game, plays the intro, then crashes. Going to have to go dig out my PS1 collection and try some more.

Re: PCSX-ReARMed on Pi

Posted: Wed Aug 08, 2012 8:09 am
by Crabhead
Got it from

Code: Select all

git clone git://notaz.gp2x.de/~notaz/pcsx_rearmed.git
and changed the config.mak like danboid suggested and compiled like a charm.
danboid wrote:

Code: Select all

SOUND_DRIVERS = sdl
I tested it with Tekken 3. The sound is not working properly since is doing unrecognizable noises and is running at 14 FPS more or less. I tried to use the arm128_start.elf file as start.elf file to adress more RAM for the GPU (and I’m using raspbian with it's default overclock to 800MHz), but no improvement observed.

Any more tweaking ideas? How many average FPS you people got while testing other games? :)

Re: PCSX-ReARMed on Pi

Posted: Wed Aug 08, 2012 8:37 am
by portets
I've noticed in other applications that the sound backend can be chosen in run slower with SDL sound. ALSA is way faster but has terrible popping that'll hopefully be fixed soon. I think the quality issues with ALSA may only be on the analog out though. You don't have to modify config.mak to enable audio under the latest get, ALSA is chosen by default.

Re: PCSX-ReARMed on Pi

Posted: Wed Sep 05, 2012 9:04 am
by ahlidap
I've got sound in the RPi!
;)


I've modified the sources... compiled and it seems to be working.
I'll make a video and share (Crash Bandicoot), along with the compiled files.

Re: PCSX-ReARMed on Pi

Posted: Wed Sep 05, 2012 11:55 am
by ahlidap
Here I am..
It works... with reasonable speed...
Really missing the "Full Screen" feature...

You can get my compiled binaries here:https://docs.google.com/open?id=0B7L2N6 ... lY4c3ZQcWs

Here you can see two gameplays:
Crash Bandicoot: http://youtu.be/eQDt_Ijj11U
Dragon Ball GT Final Bout: http://youtu.be/ASmCLkpGdQg


Sorry for the video quallity...
An for the mess with the buttons in the Dragon Ball.. Lol
I've to figure how to configure the gamepad...


What do you think?

Re: PCSX-ReARMed on Pi

Posted: Thu Sep 13, 2012 6:01 pm
by transcendtient
The source had been updated, no need to make any changes anymore.
Just-
git
./configure
make
roms and bios