Author Topic: Gpsp Gba Emulator For Cacko/sharp Roms  (Read 27801 times)

tovarish

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
Gpsp Gba Emulator For Cacko/sharp Roms
« on: October 21, 2007, 01:49:16 pm »
Who wants a near full speed and very playable GBA emulator for the Sharp Roms. Suhami(is that his name?) compiled the original gpsp for pdaxrom and I ported it to the sharp rom (http://www.suhami.net/ez/?page_id=7).
It needed a compiler upgrade, the 2.95 gcc is not up to the task of compiling anything anymore.
Gpsp since it is made for the psp and then ported to gp2x has very good arm assembly optimisation for near full speed play. I have tried many games and most of them are very playable.
I am including the executable in this post as well as the script needed to play it in zemu frontend. I have modified Suhami's code to change the key bindings to
(L,R,Down,Up,Left,Right,Start,Select,B,A) => (SDLK_a,SDLK_s,SDLK_DOWN,SDLK_UP,SDLK_LEFT,SDLK_RIGHT,SDLK_q,SDLK_w,SDLK_z,SDLK_
)
If you dont like these keys suhami aslo mentions in his website and i checked his code that you can use the environment variable GPSPKEYS as shown below to use your favorite keys.

GPSPKEYS= L,R,Down,Up,Left,Right,Start,Select,B,A
$ export GPSPKEYS=303,120,274,273,276,275,13,32,306,308

I am sorry not to ipk it but maybe someone can do it for me... and oh yes you need libsdl for it.

tovarish

bolbit

  • Full Member
  • ***
  • Posts: 111
    • View Profile
    • http://
Gpsp Gba Emulator For Cacko/sharp Roms
« Reply #1 on: October 31, 2007, 12:50:55 pm »
hi, i'm very interested by this emulator, from where this executable for cacko can be downloaded?
thanks
Zaurus C1000, Cacko 1.23, Symbol Wifi Card, BT USB dongle.
PdaXQtrom

tovarish

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
Gpsp Gba Emulator For Cacko/sharp Roms
« Reply #2 on: October 31, 2007, 01:55:39 pm »
strange someone deleted the attachment i had there but i see that the porter himself has compiled it for sharp roms. you can get it from here
http://www.suhami.net/zaurus/gpsp/gpsp-qt_0.9-SDL-3_arm.ipk

bolbit

  • Full Member
  • ***
  • Posts: 111
    • View Profile
    • http://
Gpsp Gba Emulator For Cacko/sharp Roms
« Reply #3 on: November 01, 2007, 09:24:48 am »
thanks !!
« Last Edit: November 01, 2007, 09:25:34 am by bolbit »
Zaurus C1000, Cacko 1.23, Symbol Wifi Card, BT USB dongle.
PdaXQtrom

bolbit

  • Full Member
  • ***
  • Posts: 111
    • View Profile
    • http://
Gpsp Gba Emulator For Cacko/sharp Roms
« Reply #4 on: November 01, 2007, 02:12:07 pm »
hi, bad news, on a C1000 with cacko 1.23, and after copying the gba-bios.bin file on the same directory than the rom directory, gpsp just freeze the zaurus (reset needed).

Any hint?
Zaurus C1000, Cacko 1.23, Symbol Wifi Card, BT USB dongle.
PdaXQtrom

sidmoraes

  • Full Member
  • ***
  • Posts: 116
    • View Profile
    • http://
Gpsp Gba Emulator For Cacko/sharp Roms
« Reply #5 on: November 01, 2007, 03:39:19 pm »
Quote from: bolbit
hi, bad news, on a C1000 with cacko 1.23, and after copying the gba-bios.bin file on the same directory than the rom directory, gpsp just freeze the zaurus (reset needed).

Any hint?

I have a c1000 and a c3100 with cacko, working. I beleive you need another version of libsdl, with bvdd support. Package from feed don't work.

Get from this address: http://piro.sytes.net/~piro/pukiwiki/pukiw...vdd%CD%D1libSDL

Give to us your feedback.
SL-C1000 ( Cacko-Rom 1.23 ) + SL-C3100 ( Cacko-Rom 1.23 )
2Gb SD, usb host cable made by myself, CF modem Xircom,
CF wifi Zonet, Hawking CF 10/100 ethernet,
 USB net, USB CD-Writer Sony CRX10U, CF to PCMCIA adapter,
PCMCIA 2G disk Toshiba, USB charger self-made,
USB BLuetooth,
RH2 ( Wired control for Z ) made by myself,
Serial cable, also made ...

bolbit

  • Full Member
  • ***
  • Posts: 111
    • View Profile
    • http://
Gpsp Gba Emulator For Cacko/sharp Roms
« Reply #6 on: November 02, 2007, 10:05:31 am »
thanks, that was that!.
Zaurus C1000, Cacko 1.23, Symbol Wifi Card, BT USB dongle.
PdaXQtrom

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Gpsp Gba Emulator For Cacko/sharp Roms
« Reply #7 on: November 02, 2007, 12:04:58 pm »
gpsp-qt_0.9-SDL-3_arm.ipk places "gpsp" here:
/opt/QtPalmtop/bin/gpsp
I placed my "gba_bios.bin" in the same directory, but when run from a console, I get:
Code: [Select]
gba_bios.bin not foundWhere does the bios file need to be placed?
If I put it where I have my game stored, I know it won't be found there either. I tried that and got the same result.
My gba games are all here:
/hdd3/Documents/application/Game_Roms/gba/
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Gpsp Gba Emulator For Cacko/sharp Roms
« Reply #8 on: November 02, 2007, 05:26:12 pm »
I figured that gba_bios.bin needed to be placed in /home/zaurus/
I tried it and my Z locked up. (SL-C3100 with Cacko 1.23)
So I downloaded libsdl_1.2.5-bvdd-03_arm.ipk from this thread, and installed it after uninstalling libsdl_1.2.5-bvdd-07-2
gpsp still locks up my Z.
tovarish, where is the script that allows this to be used in the zemu frontend?
I have Cresho's entire zemu package with all games working, including Turbografx CD games.
I would like to get Gpsp Gba Emulator working, but I don't want to break my current setup that uses the zemu frontend.
« Last Edit: November 02, 2007, 05:28:08 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

sidmoraes

  • Full Member
  • ***
  • Posts: 116
    • View Profile
    • http://
Gpsp Gba Emulator For Cacko/sharp Roms
« Reply #9 on: November 02, 2007, 11:02:42 pm »
Quote from: Jon_J
I figured that gba_bios.bin needed to be placed in /home/zaurus/
I tried it and my Z locked up. (SL-C3100 with Cacko 1.23)
So I downloaded libsdl_1.2.5-bvdd-03_arm.ipk from this thread, and installed it after uninstalling libsdl_1.2.5-bvdd-07-2
gpsp still locks up my Z.
tovarish, where is the script that allows this to be used in the zemu frontend?
I have Cresho's entire zemu package with all games working, including Turbografx CD games.
I would like to get Gpsp Gba Emulator working, but I don't want to break my current setup that uses the zemu frontend.

This is my script:
# cat /opt/QtPalmtop/bin/zemufeex_gba.sh
#!/bin/bash
 
cd "$1"
#GPSPKEYS=L,R,Down,Up,Left,Right,Start,Select,B,A
#export GPSPKEYS=105,111,122,119,97,115,109,110,107,106
#export GPSPKEYS=111,112,304,113,9,97,13,32,107,108
#export GPSPKEYS=303,120,274,273,276,275,13,32,306,308
#export GPSPKEYS=97,115,274,273,276,275,13,32,122,120
#Sidao
export GPSPKEYS=115,97,276,275,273,274,13,32,120,122
 
gpsp "$2"
 
#VisualBoyAdvance --auto-frameskip --rom-size16 "$2"
 
exit 0
#  

I tried some keys combination, and I like my "joystick" in my zaurus keyborad.
SL-C1000 ( Cacko-Rom 1.23 ) + SL-C3100 ( Cacko-Rom 1.23 )
2Gb SD, usb host cable made by myself, CF modem Xircom,
CF wifi Zonet, Hawking CF 10/100 ethernet,
 USB net, USB CD-Writer Sony CRX10U, CF to PCMCIA adapter,
PCMCIA 2G disk Toshiba, USB charger self-made,
USB BLuetooth,
RH2 ( Wired control for Z ) made by myself,
Serial cable, also made ...

bolbit

  • Full Member
  • ***
  • Posts: 111
    • View Profile
    • http://
Gpsp Gba Emulator For Cacko/sharp Roms
« Reply #10 on: November 03, 2007, 07:04:32 am »
Jon_J, you need to place the gba_bios.bin in the same directory as the gba rom directory, and launch gpsp from that directory.
about the sdl lib, i have downloaded the v6 : http://piro.sytes.net/~piro/zaurus/SDL/lib...bvdd-06_arm.ipk and it works for gpsp.
This sdl lib breaks the cresho setup for the other emulators : the arrow key are inverted in snes. do not know how to correct this yet (did not tried the GPSPKEY setup above...)
I have done quite the same scrip than above to run gpsp from qt. Note that you need to un-check the "run in magnified screen" box to have the arrow keys not inverted.
« Last Edit: November 03, 2007, 07:07:18 am by bolbit »
Zaurus C1000, Cacko 1.23, Symbol Wifi Card, BT USB dongle.
PdaXQtrom

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Gpsp Gba Emulator For Cacko/sharp Roms
« Reply #11 on: November 03, 2007, 10:54:32 am »
Here's what I have tried so far:
1. I tried this emulator in pdaxii13 and discovered that I needed to launch it in a console after I navigate to the directory that gpsp and gpsp_bios.bin are located. It launched in a very small size and the controls are backwards.

2. So I tried the same method in Cacko, and my machine froze up.

3. Next, I tried my 2nd console that I have set up for Turbografx CD games. This console has "run in magnified screen" checked. This stopped the game from freezing. I still have to navigate to the directory to launch the emulator. The controls are reversed here. Running this emulator this way is similar to to running psxforall, in that you navigate your file system in a text console, and the emu options are available.
Next, I need to use the script that I use in turbografx, but modify it to make the controls work and make it recognize gba games, which takes me to the last thing I did.

4. I copied sidmoraes script, placed it into /opt/QtPalmtop/bin and launched Zemu. When I selected the game ROM in Zemu's file browser, it looks like it starts to load, but throws me back to the file browser. So I think I need to make a new script that has part of the above script and some of the turbografx script. As I recall, all the different emus in Cresho's package have similar named scripts.
« Last Edit: November 03, 2007, 10:57:57 am by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

sidmoraes

  • Full Member
  • ***
  • Posts: 116
    • View Profile
    • http://
Gpsp Gba Emulator For Cacko/sharp Roms
« Reply #12 on: November 03, 2007, 02:40:16 pm »
Quote from: Jon_J
Here's what I have tried so far:
1. I tried this emulator in pdaxii13 and discovered that I needed to launch it in a console after I navigate to the directory that gpsp and gpsp_bios.bin are located. It launched in a very small size and the controls are backwards.

2. So I tried the same method in Cacko, and my machine froze up.

3. Next, I tried my 2nd console that I have set up for Turbografx CD games. This console has "run in magnified screen" checked. This stopped the game from freezing. I still have to navigate to the directory to launch the emulator. The controls are reversed here. Running this emulator this way is similar to to running psxforall, in that you navigate your file system in a text console, and the emu options are available.
Next, I need to use the script that I use in turbografx, but modify it to make the controls work and make it recognize gba games, which takes me to the last thing I did.

4. I copied sidmoraes script, placed it into /opt/QtPalmtop/bin and launched Zemu. When I selected the game ROM in Zemu's file browser, it looks like it starts to load, but throws me back to the file browser. So I think I need to make a new script that has part of the above script and some of the turbografx script. As I recall, all the different emus in Cresho's package have similar named scripts.

First: Take a look at the executables, or, make shure zaurus can execute: chmod +x "/opt/QtPalmtop/bin/zemufeex_gba.sh" and "chmod /opt/QtPalmtop/bin/gpsp", as I can remember, I make this litle trick.

Second: We have a linux machine, you can have diferent versions of libs and load the proper one. Change the script, in the line "gpsp $2", change to 'LD_PRELOAD=<where are the right lib is> gpsp "$2"', like this:
LD_PRELOAD=/opt/QtPalmtop/lib/libsdl.so.0.7.2 gpsp "$2"
You can see what file is from what version with "ipkg files <package>"
Remember to copy the files from the least used libs to another place, and use this version only when required.


Give to us your feedback
SL-C1000 ( Cacko-Rom 1.23 ) + SL-C3100 ( Cacko-Rom 1.23 )
2Gb SD, usb host cable made by myself, CF modem Xircom,
CF wifi Zonet, Hawking CF 10/100 ethernet,
 USB net, USB CD-Writer Sony CRX10U, CF to PCMCIA adapter,
PCMCIA 2G disk Toshiba, USB charger self-made,
USB BLuetooth,
RH2 ( Wired control for Z ) made by myself,
Serial cable, also made ...

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Gpsp Gba Emulator For Cacko/sharp Roms
« Reply #13 on: November 03, 2007, 06:07:44 pm »
I chmod +x /opt/QtPalmtop/bin/zemufeex_gba.sh and gpsp

I tried these 3 libsdl IPKs, none of them have libsdl.so.0.7.2
libsdl_1.2.5-bvdd-03_arm.ipk
libsdl_1.2.5-bvdd-06_arm.ipk
libsdl_1.2.5-bvdd-07-2_arm.ipk

So I tried loading it with
LD_PRELOAD=/opt/QtPalmtop/lib/libsdl.so.0.0.7
All the above IPKs have these same files.
libsdl.so
libsdl.1.2.so.0
libsdl.1.2.so.0.0.5
libsdl.1.2.so.0.0.7

zemu didn't launch the game, it just tried and went back to the file browser.
When I tried launching gpsp in a console, after CD-ing to /opt/QtPalmtop/bin, my Z would just freeze up.
I tried launching it in a console with each of the above SDL libs installed seperately.
The GUI installer won't let you install a different version without un-installing the previous one.

The only method that has worked for me so far, is to open a console that has "run in magnified screen" checked.
This is the only way I can launch gpsp without it freezing up my Zaurus.
This launches gpsp front end where you can change settings, or load a game through a text type file browser.
However, the controls are backwards.
I have a 2nd copy of qkonsole binary renamed to qkonsole2, just for turbografx CD games.
It behaves separately from the original QKonsole and has it's own .desktop file.
I don't remember how the turbografx CD games are handled in this console,
I'll have to look up my instructions for launching TG-CD games, since I have removed them from my hard drive on this Zaurus.
The controls for those games were correct.
« Last Edit: November 03, 2007, 06:10:34 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

sidmoraes

  • Full Member
  • ***
  • Posts: 116
    • View Profile
    • http://
Gpsp Gba Emulator For Cacko/sharp Roms
« Reply #14 on: November 03, 2007, 10:07:32 pm »
We need to investigate this case with anther aproach...

Give to me the results of this comand:
ldd /opt/QtPalmtop/bin/gpsp
SL-C1000 ( Cacko-Rom 1.23 ) + SL-C3100 ( Cacko-Rom 1.23 )
2Gb SD, usb host cable made by myself, CF modem Xircom,
CF wifi Zonet, Hawking CF 10/100 ethernet,
 USB net, USB CD-Writer Sony CRX10U, CF to PCMCIA adapter,
PCMCIA 2G disk Toshiba, USB charger self-made,
USB BLuetooth,
RH2 ( Wired control for Z ) made by myself,
Serial cable, also made ...