Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - vanfanel

Pages: [1]
1
Gaming / Re: Retroarch on Cubietruck
« on: March 12, 2015, 01:15:39 pm »
Hi guys!

Now you can ditch these GLES2 binary blobs (f**k you, Allwinner!!) and run RetroArch on G2D using my Sunxi G2D driver.
Simply clone RetroArch's github repo here:

Code: [Select]
git clone https://github.com/libretro/RetroArch.git --depth 1

Configure like this:

Code: [Select]
./configure --enable-sunxi --disable-opengl --disable-gles --enable-neon --disable-x11 --disable-sdl2 --enable-floathard --disable-ffmpeg --disable-netplay --enable-udev --disable-sdl --disable-pulse --disable-oss --disable-freetype --disable-7zip --disable-libxml2 --disable-parport

make and run! :)

No binary blobs required at all, just a good kernel. I use this distro:

http://www.cubieforums.com/index.php/topic,1275.0.html

3
Gaming / Scummvm GLES for Cubie/Cubie2/CT
« on: January 10, 2015, 03:02:49 pm »
Hi!

I've added Cubie/Cubie2/Cubietruck GLES context support to Scummvm so GPU is used for stretching and no more tearing is present in games with scrolling sequences.
It's the way these games are inteded to be played on the Cubies :)
No need to install any special libraries.

Instructions:
-Clone my repo here:
Code: [Select]
git clone --depth 1 -b gles_custom https://github.com/vanfanel/scummvm.git
-Change to the scummm directory and run the configure script. This is how I run it, because I like to disable a lot of stuff that is NOT needed on the Cubie at all, and engines I don't use.
Code: [Select]
./configure --enable-gles-fbdev --disable-debug --enable-release --enable-optimizations --disable-mt32emu --enable-flac --disable-mad --disable-vorbis --disable-tremor \
--disable-fluidsynth --disable-taskbar --disable-timidity --disable-alsa \
--disable-engine="hugo,avalanche,bbvs,cge,cge2,cine,composer,cruise,draci,drascula,fullpipe,groovie,groovie2,hopkins,    lastexpress,lure,made,mads,mohawk,cstime,mortevielle,parallaction,pegasus,sci32,sword1,sword2,sword25,teenagent,testbe    d,tinsel,toltecs,tony,toon,touche,tsage,tucker,voyeur,wintermute,zvision"
-Build!
Code: [Select]
make

..and wait, if you're not using DISTCC :)

I hope I can get it merged into mainstream scummvm soon. Enjoy!

4
Gaming / Re: Retroarch on Cubietruck
« on: December 08, 2014, 07:43:28 am »
-To install mali libs, just uncompress them into /usr/lib
-To install new kernel, you can now simply decompress this kernel's uImage (http://mirror.igorpecovnik.com/kernel/cubietruck_kernel_3.4.105_mod_head_fw.zip) in /boot and send the kernel modules modules to /lib. It's very easy!
-The GIT with my modifications is here: https://github.com/vanfanel/RetroArch
The only modifications I did are restricted to the mali_fbdev_ctx.c file. They should be merged into upstream RetroArch, but they are not, so you can use my fork OR simply use upstream RetroArch sources and overwrite the mali_fbdev_ctx.c file.

5
Gaming / Re: Retroarch on Cubietruck
« on: December 03, 2014, 06:05:45 am »
RetroArch now runs without any problem on the Cubie/Cubie2/CT, using the superior GLES2 without X solution (no stupid Xorg involved at all: optimal framerate and no input lag!):
You need:
-This kernel: https://github.com/mireq/linux-sunxi
-These MALI libs: https://www.dropbox.com/s/w266b50gnze44m3/r4p0-mp400-fbdev.tar?dl=0
-These RetroArch binaries I did so you can finally enjoy decent emulation on the CT/CB2 (includes cores, yay!):
https://www.dropbox.com/s/e5plv5grczpim5n/RetroArch_Cubie.zip?dl=0

-These headers in case you want to build yourself: https://www.dropbox.com/s/ior83ho81wb7l87/r4p0_HEADERS.tar?dl=0
-This code file if you want to build yourself also: https://www.dropbox.com/s/ykfv7ckdlofqof1/mali_fbdev_ctx.c?dl=0. You will have to overwrite current gfx/context/mali_fbdev_ctx.c with this for now, until changes I did are merged in mainstream RetroArch.

I HIGHLY recommend this image to start with: http://www.cubieforums.com/index.php/topic,1275.0.html
Then you install the new kernel, install the libs, and use the binaries I provided, and there you go, perfect framerate emulation on the Cubie using GLES2 on the framebuffer! :D

6
Hi, Slovenia!

You really should merge newkernel-side  MALI driver from this fork:
https://github.com/mireq/linux-sunxi

It allows MALI userland binary blobs version r4p0 to work on Cubieboard1/2/Truck!
It's a very interesting thing as it finally solves the situation where our boards have been stuck for YEARS with long outdated r3pX versions of the MALI blobs, which was known to be broken and slow.

Also, in what file is the ASCII logo displayed on login that displays the Cubie model name in blue colors? It's nice but I'd like to remove it. Thanks!
 

7
Hi Slovenia!

Is it possible to update kernel-space MALI driver to r3p2 or not? I'm not asking to be done right now ;)
I just need to know because my usercase requires a better/newer MALI driver and I need the kernel-space driver updated to be able to install better/newer userspace MALI drivers.

8
Thanks, Slovenia!! Kernel updated!!
However, I need MALI kernel-space drivers updated. Your kernel is using r3p0 which is OLD.
Could you update to r3p2, please??

Here's a kernel three with r3p2-01rel2:

https://github.com/ssvb/linux-sunxi/tree/20140116-mali-r3p2-01rel2

can you update to that kernel's MALI kernel-space driver, please?

9
JustACat: thanks for pointing it out! Yes, it seems to be done already!!! Thanks, Slovenia! :)
Is there a way to update the system (kernel, boot scripts) to the latest version from within the OS?
I spent some time finetunning the default system and I'd like to save some time...

10
SLOVENIA: can you please do this very simple thing I asked and update kernel?
Just uncomment line 1074 in https://github.com/dan-and/linux-sunxi/blob/dan-3.4.96/drivers/video/sunxi/disp/dev_fb.c

Will take you a second!

Can you do it, please? I've been asking this very very simple fix for a month now..  :'(


11
I will quote myself...

Quote
Hi! This distro is fantastic, and I adapted it to my needs, but there is a little problem with the kernel: fbdev has wait-for-vsync disabled EVEN if eglSwapInterval() sets it otherwise.
So, can you please uncomment line 1074 from drivers/video/sunxi/disp/dev_fb.c ??
The line in question is:

Code: [Select]
        // Fb_wait_for_vsync(info);
It won't affect system performance AT ALL. It will simply allow us to have wait for vsync active in GLES apps.
Thanks!



12
Hi! This distro is fantastic, and I adapted it to my needs, but there is a little problem with the kernel: fbdev has wait-for-vsync disabled EVEN if eglSwapInterval() sets it otherwise.
So, can you please uncomment line 1074 from drivers/video/sunxi/disp/dev_fb.c ??
The line in question is:

Code: [Select]
        // Fb_wait_for_vsync(info);
It won't affect system performance AT ALL. It will simply allow us to have wait for vsync active in GLES apps.
Thanks!

Pages: [1]