portets
Posts: 186
Joined: Sat Oct 29, 2011 6:24 am

PCSX-ReARMed on Pi

Fri Aug 03, 2012 9:09 am

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.

shawnbusker
Posts: 23
Joined: Sun Jul 01, 2012 3:10 am

Re: PCSX-ReARMed on Pi

Fri Aug 03, 2012 9:26 am

What was the modification? And what are the build requirements?

Shawn

portets
Posts: 186
Joined: Sat Oct 29, 2011 6:24 am

Re: PCSX-ReARMed on Pi

Fri Aug 03, 2012 9:40 am

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.

shawnbusker
Posts: 23
Joined: Sun Jul 01, 2012 3:10 am

Re: PCSX-ReARMed on Pi

Fri Aug 03, 2012 10:13 am

I tried that, didn't work for me, mind sharing your source it'd be easier.

Thanks,
Shawn

portets
Posts: 186
Joined: Sat Oct 29, 2011 6:24 am

Re: PCSX-ReARMed on Pi

Fri Aug 03, 2012 11:06 am

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?

Norefall
Posts: 43
Joined: Sun Nov 06, 2011 12:19 pm

Re: PCSX-ReARMed on Pi

Fri Aug 03, 2012 11:26 am

Great work!

shawnbusker
Posts: 23
Joined: Sun Jul 01, 2012 3:10 am

Re: PCSX-ReARMed on Pi

Fri Aug 03, 2012 11:30 am

Thanks, Google drive actually works quite well for posting files.

Shawn

simon321
Posts: 3
Joined: Thu Feb 02, 2012 2:33 pm

Re: PCSX-ReARMed on Pi

Fri Aug 03, 2012 7:44 pm

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

danboid
Posts: 15
Joined: Sat Jul 28, 2012 1:07 pm

Re: PCSX-ReARMed on Pi

Sat Aug 04, 2012 1:23 am

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!

danboid
Posts: 15
Joined: Sat Jul 28, 2012 1:07 pm

Re: PCSX-ReARMed on Pi

Sat Aug 04, 2012 1:35 am

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.

ndrs
Posts: 31
Joined: Wed Jul 04, 2012 10:22 pm

Re: PCSX-ReARMed on Pi

Sat Aug 04, 2012 8:30 am

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.

danboid
Posts: 15
Joined: Sat Jul 28, 2012 1:07 pm

Re: PCSX-ReARMed on Pi

Sat Aug 04, 2012 12:37 pm

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.

simon321
Posts: 3
Joined: Thu Feb 02, 2012 2:33 pm

Re: PCSX-ReARMed on Pi

Sat Aug 04, 2012 9:29 pm

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

danboid
Posts: 15
Joined: Sat Jul 28, 2012 1:07 pm

Re: PCSX-ReARMed on Pi

Sun Aug 05, 2012 10:33 am

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 

portets
Posts: 186
Joined: Sat Oct 29, 2011 6:24 am

Re: PCSX-ReARMed on Pi

Sun Aug 05, 2012 11:23 am

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

simon321
Posts: 3
Joined: Thu Feb 02, 2012 2:33 pm

Re: PCSX-ReARMed on Pi

Sun Aug 05, 2012 12:05 pm

I just compiled it , the sound now works properly, I will delete the file above because this is much better

ndrs
Posts: 31
Joined: Wed Jul 04, 2012 10:22 pm

Re: PCSX-ReARMed on Pi

Sun Aug 05, 2012 12:37 pm

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.

fraz0815
Posts: 70
Joined: Fri Jul 20, 2012 1:29 pm

Re: PCSX-ReARMed on Pi

Mon Aug 06, 2012 2:25 pm

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.

SSilver2k2
Posts: 179
Joined: Wed Jun 06, 2012 1:51 am
Location: United States
Contact: Website AOL

Re: PCSX-ReARMed on Pi

Tue Aug 07, 2012 1:31 am

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.
My blog of various geeky things - http://blog.sheasilverman.com
PiPLAY - http://piplay.org
DeskCade.com - Mini Raspberry Pi Arcade Cabinet

SSilver2k2
Posts: 179
Joined: Wed Jun 06, 2012 1:51 am
Location: United States
Contact: Website AOL

Re: PCSX-ReARMed on Pi

Wed Aug 08, 2012 2:28 am

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.
My blog of various geeky things - http://blog.sheasilverman.com
PiPLAY - http://piplay.org
DeskCade.com - Mini Raspberry Pi Arcade Cabinet

Crabhead
Posts: 1
Joined: Wed Aug 08, 2012 7:56 am

Re: PCSX-ReARMed on Pi

Wed Aug 08, 2012 8:09 am

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? :)

portets
Posts: 186
Joined: Sat Oct 29, 2011 6:24 am

Re: PCSX-ReARMed on Pi

Wed Aug 08, 2012 8:37 am

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.

ahlidap
Posts: 6
Joined: Wed Sep 05, 2012 9:02 am

Re: PCSX-ReARMed on Pi

Wed Sep 05, 2012 9:04 am

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.

ahlidap
Posts: 6
Joined: Wed Sep 05, 2012 9:02 am

Re: PCSX-ReARMed on Pi

Wed Sep 05, 2012 11:55 am

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?

transcendtient
Posts: 12
Joined: Thu Aug 02, 2012 5:09 am

Re: PCSX-ReARMed on Pi

Thu Sep 13, 2012 6:01 pm

The source had been updated, no need to make any changes anymore.
Just-
git
./configure
make
roms and bios

Return to “Gaming”