Welcome
Welcome to a320

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!

gnurobbo running on Dingoo Linux

Only for posting new Dingux software releases.

Moderator: Moderators

gnurobbo running on Dingoo Linux

Postby Gadgetoid on Thu Jun 11, 2009 12:16 am

I've successfully compiled and run gnurobbo for Dingoo Linux.

It looks like it'll run quite well, however it doesn't yet accept any user input as it's a quick compile of the GP2X version.

Here's a video of it in "action": http://www.youtube.com/watch?v=FbIl3-7W1Hc


I need to get the controls working and then, with any luck, it's good to go.
Gadgetoid
 
Posts: 29
Joined: Mon Jun 01, 2009 9:22 pm

Re: gnurobbo running on Dingoo Linux

Postby joyrider on Thu Jun 11, 2009 12:41 pm

The reason the controls don't work is very simple, the gp2x (with it's sdl) makes the input act as joystick events (so SDL_JOYSTICKBUTTONUP & DOWN events) while with dingoo (and it's sdl) the input is mapped as keyboard events so you'll have to use the SDL_KEYUP and SDL_KEYDOWN events.

here are the keyvalues :

#define DINGOO_BUTTON_UP 273
#define DINGOO_BUTTON_DOWN 274
#define DINGOO_BUTTON_RIGHT 275
#define DINGOO_BUTTON_LEFT 276
#define DINGOO_BUTTON_R 8
#define DINGOO_BUTTON_L 9
#define DINGOO_BUTTON_A 306
#define DINGOO_BUTTON_B 308
#define DINGOO_BUTTON_X 32
#define DINGOO_BUTTON_Y 304
#define DINGOO_BUTTON_SELECT 27
#define DINGOO_BUTTON_START 13
joyrider
 
Posts: 77
Joined: Sun May 03, 2009 4:27 pm

Re: gnurobbo running on Dingoo Linux

Postby Gadgetoid on Thu Jun 11, 2009 12:44 pm

Thanks for confirming this. I had suspected that this would be the case, but had not properly altered the code to pick up the keyboard instead of the joystick when the target platform was defined as a Dingoo. With any luck it will be playable this evening.

I know it's a trivial thing to port, but we've all got to start somewhere, eh?


Update: My alterations appear to be in vain, which is odd because the control debug output displays the same key-codes that you have supplied. I suspect I have gone wrong converting them to hexadecimal, as defining them verbatim as above throws errors about using 9 in octal constants.
Gadgetoid
 
Posts: 29
Joined: Mon Jun 01, 2009 9:22 pm

Re: gnurobbo running on Dingoo Linux

Postby joyrider on Thu Jun 11, 2009 5:57 pm

don't know what you mean but try putting brackets around the numbers like #define DINGOO_BUTTON_UP (273)

could be that solves it. I didn't had any problems yet though by not doing this, and not entirely certain it would fix the compile errors your getting. Haven't looked at the source code of gnurobo either so don't know how they work ...
joyrider
 
Posts: 77
Joined: Sun May 03, 2009 4:27 pm

Re: gnurobbo running on Dingoo Linux

Postby Gadgetoid on Thu Jun 11, 2009 8:13 pm

Leading zeros was the problem. I was copying them verbatim from the debug output. Trouble is, it's still not working.

You can grab my modified source and Makefile.a320 here if you've got a moment to look at them: http://www.gadgetoid.com/dingoo/gnurobb ... .62.tar.gz

There's also my most recently compiled binary in there, which should "just run."
Gadgetoid
 
Posts: 29
Joined: Mon Jun 01, 2009 9:22 pm

Re: gnurobbo running on Dingoo Linux

Postby joyrider on Thu Jun 11, 2009 8:52 pm

hey, just tested it out, i didn't change anything just made a staticly linked binary (since i don't have the latest rootfs and am actually using booboo's one). and i can play the game just fine. have no problems what so ever. The only thing i can think of is that you are using a write protected rootfs try "mount -o remount,rw /" before running the game. You could also add a "putenv("SDL_NOMOUSE=1");" in the sources so one doesn't have to type this themselves.

just to be sure : i press the start button and then the b button to play the game.
joyrider
 
Posts: 77
Joined: Sun May 03, 2009 4:27 pm

Re: gnurobbo running on Dingoo Linux

Postby Gadgetoid on Thu Jun 11, 2009 9:46 pm

That's weird! It must be a problem with this rootfs and/or the toolchain. I've got a script for remounting the root fs, so I do that every time I fire up linux. I've also got SDL_NOMOUSE=1 in my profile, so I don't need to do it manually anyway.

You just banged in "make -f Makefile.a320" I guess?

Being somewhat new to this, I couldn't say if I'm compiling a statically linked binary or not.

The weird thing is, that it's definitely picking up the button inputs because I can see them spamming up the minicom screen whilst I frantically mash every button on the Dingoo. So I can't imagine what the problem is.
Gadgetoid
 
Posts: 29
Joined: Mon Jun 01, 2009 9:22 pm

Re: gnurobbo running on Dingoo Linux

Postby joyrider on Thu Jun 11, 2009 9:55 pm

Gadgetoid wrote:You just banged in "make -f Makefile.a320" I guess?


yes that's all i did actually, (well i did modify the makefile to make it create a staticly link binary so had to add a few libs like phtread, z, m etc).

but it does work straight out of the box with me, do you want me to send you the static binary so you can see if that one works ? (if it doesn't could be your using an old kernel although then you wouldn't have gotten the same button results from the debugging part so really have no clue what it could be)
joyrider
 
Posts: 77
Joined: Sun May 03, 2009 4:27 pm

Re: gnurobbo running on Dingoo Linux

Postby Gadgetoid on Thu Jun 11, 2009 10:06 pm

Send away, it can't hurt to try surely. Maybe the Dingoo just dislikes me, and I should wait for the Pandora before I crawl out of my little DotNet dungeon.
Gadgetoid
 
Posts: 29
Joined: Mon Jun 01, 2009 9:22 pm

Re: gnurobbo running on Dingoo Linux

Postby joyrider on Thu Jun 11, 2009 10:17 pm

Gadgetoid wrote:Send away, it can't hurt to try surely. Maybe the Dingoo just dislikes me, and I should wait for the Pandora before I crawl out of my little DotNet dungeon.


uploaded it here : http://users.pandora.be/IMS/gnurobbo.zip should be enough to just replace it with your current binary.
joyrider
 
Posts: 77
Joined: Sun May 03, 2009 4:27 pm

Next

Return to Dingux Releases

Who is online

Users browsing this forum: No registered users and 0 guests