Page 1 of 1

Pcsx_ReARMed on Pi2

Posted: Sat Feb 07, 2015 9:44 am
by welshy
Having issues with a re compiled Pcsx_ReARMed (stand alone Binary NOT the RetroArch Core). Although the performance in XWindows is awsome (fulscreen/fullspeed) it doesn't seem to run in Console (just a blank screen). Does anyone have any ideas what the issue is?

Re: Pcsx_ReARMed on Pi2

Posted: Fri Mar 13, 2015 2:11 am
by stingray101
Having the same problem myself.

I cant run it in bash as it just freezes at a black screen. In X it brings up this error

/lib/ cannot open shared object file: No such file or directory
Could not open touchscreen
plat_sdl: using 1776x952 as fullscreen resolution
plat_sdl: overlay: fmt 59565955, planes: 1, pitch: 1280, hw: 0
warning: video overlay is not hardware accelerated, not going to use it.
input: new device #0 "sdl:keys"
input: async-only devices detected..
# drv probed binds name
0 0 y y sdl:keys
frontend/libpicofe/readpng.c: unexpected font image size 256x320, needed 128x160
frontend/libpicofe/readpng.c: unexpected selector image size 16x20, needed 8x10
found skin.txt
menu_load_config: failed to open: ./.pcsx/pcsx.cfg
frontend/libpicofe/readpng.c: failed to open: /home/stingray/.picodrive/skin/background.png
me_id2offset: id 28 not found
Starting PCSX-ReARMed r22-2-g663fc55
Running PCSX Version 1.9 (Mar 13 2015).
warning: failed to do hugetlb mmap (0x80000000, 2162688): 22
psxMap: warning: wanted to map @80000000, got (nil)
Segmentation fault

and then crashes.

I'm using Linux raspberrypi 3.18.9-v7+ #767 SMP PREEMPT Sat Mar 7 21:52:35 GMT 2015 armv7l GNU/Linux

Re: Pcsx_ReARMed on Pi2

Posted: Fri Mar 13, 2015 9:20 pm
by stingray101
Ive figured out this much the problem my psxmap having is a memory issue cannot find it. I can get pre-compiled binarys working in X. Not in console though. Not that its not running I can hear the sounds of the roms but its just a black screen.

Re: Pcsx_ReARMed on Pi2

Posted: Thu Mar 19, 2015 8:33 pm
by stingray101
Ok I was able to fix the black screen issue and the crashing on execution with pcsx_rearmed. Its running fine on my rpi 2.

So I went into i pcxmem.c in libpcsxcore folder and change a line in the function psxMemInit()

Code: Select all

 int psxMemInit() {
	int i;

	psxMemRLUT = (u8 **)malloc(0x10000 * sizeof(void *));
	psxMemWLUT = (u8 **)malloc(0x10000 * sizeof(void *));
	memset(psxMemRLUT, 0, 0x10000 * sizeof(void *));
	memset(psxMemWLUT, 0, 0x10000 * sizeof(void *));

	psxM = psxMap(^HERE^-->0x70000000<---^HERE^, 0x00210000, 1, MAP_TAG_RAM);

from "x80000000" to "x70000000" then made the program again and it works.. in terminal and x. Seems to be running fine too.

I havent the fainest clue why it worked. My guess it was'nt finding what I assume was a ram address on my Pi or something who knows. Guesswork. Hope this helps.

Re: Pcsx_ReARMed on Pi2

Posted: Fri Mar 20, 2015 1:11 pm
by welshy
Thanks! I will give it a go when time allows!

Re: Pcsx_ReARMed on Pi2

Posted: Sat Mar 21, 2015 4:16 am
by steev
I went ahead and opened a bug report:

So hopefully notaz will be able to fix the issue upstream.

Re: Pcsx_ReARMed on Pi2

Posted: Tue Mar 24, 2015 11:34 pm
by steev
notaz says it should be fixed with the latest commit

Re: Pcsx_ReARMed on Pi2

Posted: Wed Mar 25, 2015 6:51 am
by welshy
NIce One! Thanks for the information!