Ok I'm going to write some very interesting stuff you could do with this driver of notro... I should actually write a blog about this but I'm to lazy...
After some days of intense searching trough pages and pages of information I've managed to do this so far:
Working remote is a must have. If you have some death moments on the job you could set your teat's into the device.
Creating a remote solution for framebuffer devices is unfortunately only possible with fastdroid in andriod.
So we're going to hack fastdriod. Download fastdriod-vnc:
http://code.google.com/p/fastdroid-vnc/downloads/list
Before compiling the code.
- Make a symbolic link: ln -s /usr/lib/arm-linux-gnueabihf/libjpeg.a /usr/lib/libjpeg.a
- open the file fbvncserver.c
Change
Code: Select all
/* framebuffer */
#ifdef ANDROID
# define FB_DEVICE "/dev/graphics/fb0"
#else
# define FB_DEVICE "/dev/fb0"
#endif
to, you know it:
Code: Select all
/* framebuffer */
#define FB_DEVICE "/dev/fb1"
Now we also have to disable the touch screen. Search where the function "init_touch" is called and place it into comments.
Code: Select all
if (TOUCH_DEVICE[0]) {
pr_info("Initializing touch device %s ...\n", TOUCH_DEVICE);
//init_touch();
}
Save and compile the project and execute
make
Start vnc with the command: ./fastdroid-vnc
VNC will automaticly start and you can connect with it with a simple vnc viewer. Tunnel port 5901 all you want so you can connect from anywhere you want.
Now to continue with RetroArch.
I've managed to get retroarch workin by manually building version 0.9.9 and making these changes in the file "0.9.9/RetroArch-0.9.9/gfx/sdl_gfx.c"
Add above all includes
In the function sdl_gfx_init before SDL_InitSubSystem(SDL_INIT_VIDEO); add
Code: Select all
putenv("SDL_FBDEV=/dev/fb1");
putenv("SDL_VIDEODRIVER=fbcon");
SDL_Init(SDL_INIT_VIDEO);
"Make" and "sudo make install" and adjust the /etc/retroarch.conf file to your needs. (screen width, height, fullscreen, ...)
Unfortunately this does not work with the trunk of RetroArch. Don't know why but it does work with version 0.0.9.
When you start a game like "sudo retroarch -L /home/pi/RetroPie/emulatorcores/fceu-next/fceumm-code/fceumm_libretro.so castle.nes" <= Woot CastleVania
You will see in your vnc that it's booting. (and hopefully also on your screen)
Now I've noticed that it's very, verrry slow. Is this a problem with the framebuffer device or does this have something to do with RetroArch. I can't imagine RetroArch being this slow on a raspberry pi.
If it's RetroArch then I'm off topic. Any help is appreciated but I think I need to ask my question again in a RetroArch forum.
Anyhow, any help is greatly appreciated
Regards
Xump