Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

mali 400 debian drivers

7,568 views
Skip to first unread message

Tokka

unread,
Apr 13, 2013, 11:48:15 AM4/13/13
to cubie...@googlegroups.com
Hi all, i'm new to this group, so please be patient if i make some errors :P
I'm using the cubie with raspbian (i tried linaro too, but i don't like it too much), and i tried to compile the mali 400 drivers, but probably i made some errors, because open gl works not at best.
This is my glxgears output

110 frames in 5.0 seconds = 21.968 FPS
112 frames in 5.0 seconds = 22.296 FPS
112 frames in 5.0 seconds = 22.383 FPS
67 frames in 5.2 seconds = 12.832 FPS     
19 frames in 5.0 seconds =  3.783 FPS
19 frames in 5.2 seconds =  3.673 FPS
19 frames in 5.0 seconds =  3.792 FPS

102 frames in 5.0 seconds = 20.222 FPS
106 frames in 5.0 seconds = 21.195 FPS

When i put the grafic in full screen, fps collapse, and i don't know how to solve.
I followed all tutorials i found to complie the drivers, but without success (this is the best result i obtained).
There is a way to set up mali gpu to works properly?
Thanks in advance, and i hope my post is in the right session
Cheers
Tk

Bastiaan van den Berg

unread,
Apr 13, 2013, 11:49:55 AM4/13/13
to cubie...@googlegroups.com
glxgears is not a OpenGLES  application, you are seeing software rendering results.

--
buZz

Tokka

unread,
Apr 13, 2013, 12:43:06 PM4/13/13
to cubie...@googlegroups.com
Hi Bastiaan, and thanks for your answer :)
You're right, openGl and openGLES are different, but i take this for refernce, because all movies i play in full screen collpase too.
Do you know which is the better way to have a fully working mali drivers? This issue isdriving me crazy :(
Thanks in advance
Tk

Roman Mamedov

unread,
Apr 13, 2013, 12:48:53 PM4/13/13
to cubie...@googlegroups.com, mit...@gmail.com
On Sat, 13 Apr 2013 09:43:06 -0700 (PDT)
Tokka <mit...@gmail.com> wrote:

> Hi Bastiaan, and thanks for your answer :)
> You're right, openGl and openGLES are different, but i take this for
> refernce, because all movies i play in full screen collpase too.
> Do you know which is the better way to have a fully working mali drivers?


You still haven't even began to describe what are your actual problems with
following http://linux-sunxi.org/Binary_drivers

As a general comment I can only say that Raspbian is a horrible choice of
distro for the A10, also maybe the fact that it's actually for armv6 and not
armv7/armhf as it claims to be, can be the cause of whatever problem you have.

--
With respect,
Roman
signature.asc

Tokka

unread,
Apr 13, 2013, 1:23:41 PM4/13/13
to cubie...@googlegroups.com, mit...@gmail.com
Hi Roman, thanks you too for your answer :)
I try to explain better



You still haven't even began to describe what are your actual problems with
following http://linux-sunxi.org/Binary_drivers


Following that guide, i installed the drivers (seems not mali, as described, but sunxi...(may be my error or outdate guide?)
Movies play very slow in full screen mode, and youtube videos too (for youtube videos i have had to use a workaround to watch theme, because gnash and flash plugin don't work)

 
As a general comment I can only say that Raspbian is a horrible choice of
distro for the A10, also maybe the fact that it's actually for armv6 and not
armv7/armhf as it claims to be, can be the cause of whatever problem you have.


I agree, raspbian is not the better solution, but was the fastest to take confidence with cubie. I installed debian into nand overwriting android, but it works only without DE at the moment :(
My purpose is to have a fully working debian into nand (as backup) and into sda1, better if not raspbian, to use cubie as mediacenter.

May be this a good solution? https://www.miniand.com/forums/forums/development/topics/debian-wheezy-lxde-armhf-build
Or there is something better?

--
With respect,
Roman


My best regards
Tk

Siarhei Siamashka

unread,
Apr 13, 2013, 4:06:01 PM4/13/13
to cubie...@googlegroups.com, mit...@gmail.com
On Saturday, April 13, 2013 8:23:41 PM UTC+3, Tokka wrote:
Hi Roman, thanks you too for your answer :)
I try to explain better


You still haven't even began to describe what are your actual problems with
following http://linux-sunxi.org/Binary_drivers


Following that guide, i installed the drivers (seems not mali, as described, but sunxi...(may be my error or outdate guide?)

Looks ok to me.
 
Movies play very slow in full screen mode,

How do you play the movies?

In any case, mali drivers are primarily useful for hardware accelerating
3D games (a small subset of them which are already ported from OpenGL to
OpenGL ES). And also in the heavyweight desktop environments for various
eye candy desktop effects (kde, gnome-shell, unity, ..). Also mali drivers
can be used for scaling pictures or video, but is hardly the best solution
for this task.

If you really want to use mali drivers for accelerating a small part
of the video playback pipeline (just scaling to fullscreen), you can
try mplayer:

$ wget http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.1.tar.xz
$ tar -xJf MPlayer-1.1.tar.xz
$ cd MPlayer-1.1
$ ./configure --extra-cflags="-mfpu=neon"

Now pay special attention to the output and make sure that
you have the following two lines there:

Checking for ARM NEON ... yes
Checking for OpenGL ... yes (backends: egl_x11 sdl)

If you use software video decoding in mplayer, making sure that
NEON is enabled is really important. It can speed up the decoding
by a factor of 2 or more. The video players shipped with most armv7
linux distros are compiled for the lowers common denominator,
which happens to be Tegra2. And unlike Allwinner A10, Tegra2
does not have NEON.

As for the OpenGL line, be sure to have "egl_x11" enabled. This
provides OpenGL ES / EGL acceleration for scaling video output.

After the configure step is done, you can compile mplayer:

$ make

And then run it (-vf and -vo options are important):

$ ./mplayer -vf format=rgb32 -vo gl:backend=3 yourvideofile.avi

If you do this whole exercise, you will notice that this solution
is far from perfect. NEON decoding can't handle really heavy
1080p videos, you need http://linux-sunxi.org/CedarX for
hardware accelerated video decoding.

Also even OpenGL ES scaling still taxes the cpu a bit and
has tearing. The proper solution is XV extension, implemented
with sunxi hardware overlays. This is in my TODO list:

    https://github.com/ssvb/xf86-video-sunxifb/issues/4

But I'm kinda slacking off and very few people show any
interest in this feature and bother to ping me :)

and youtube videos too (for youtube videos i have had to use a workaround to watch theme, because gnash and flash plugin don't work)
 
Can you provide a bit more details about youtube videos
playback? Which browser? Is it using html5/webm/vp8?
This is not related to mali drivers, but probably something
still can be done to improve the performance.

Rosimildo DaSilva

unread,
Apr 13, 2013, 4:29:49 PM4/13/13
to cubie...@googlegroups.com, mit...@gmail.com
I am also trying to play videos with A1X's processors. I know these are equivalent to a Pentium 3, but I am a geek and I will spent nearly 2000 hours of work trying the impossible. I could easily buy a powerful PC, and be done in 2 hours. 2000 hours of labor is probably worth $100K, but what the heck, I know I can get it to work. :-)

But, if I fail like many others here,  I know I am trying to do what is nearly impossible, so I will be proud.

Don't take this seriously, I am just shaking my head why so many people believe that everybody else is idiot, and they can do better trying what is not possible, that is to have very good graphics capability with this processor!!!!!!!!!!!!

A1X processors are nice for their price, but they just can't do graphics the way people wants.  If you want to have a *NICE* home theater, this is probably the wrong HW for you.


Roman Mamedov

unread,
Apr 13, 2013, 4:44:06 PM4/13/13
to cubie...@googlegroups.com, rosi...@gmail.com, mit...@gmail.com
On Sat, 13 Apr 2013 13:29:49 -0700 (PDT)
Rosimildo DaSilva <rosi...@gmail.com> wrote:

> trying what is not possible, that is to have very good graphics capability with
> this processor!!!!!!!!!!!!

As far as I know the A10 splendidly plays most video formats with hardware
acceleration in Android, and in GNU/Linux it's just a matter of installing all
the required components (may not be simple enough at the moment). So I do not
see what grounds do you have for stating that the processor itself does not
have "good graphics capability".

--
With respect,
Roman
signature.asc

Rosimildo DaSilva

unread,
Apr 13, 2013, 5:04:04 PM4/13/13
to cubie...@googlegroups.com, rosi...@gmail.com, mit...@gmail.com
First, I'd like to remind everyone that I was not serious. 

I was just trying to "tease" some folks to spicy the discussion. 

Siarhei Siamashka

unread,
Apr 13, 2013, 7:03:52 PM4/13/13
to cubie...@googlegroups.com
On Sat, 13 Apr 2013 14:04:04 -0700 (PDT)
Rosimildo DaSilva <rosi...@gmail.com> wrote:
> On Saturday, April 13, 2013 3:44:06 PM UTC-5, Roman Mamedov wrote:
> >
> > On Sat, 13 Apr 2013 13:29:49 -0700 (PDT)
> > Rosimildo DaSilva <rosi...@gmail.com <javascript:>> wrote:
> >
> > > trying what is not possible, that is to have very good graphics
> > > capability with this processor!!!!!!!!!!!!
> >
> > As far as I know the A10 splendidly plays most video formats with hardware
> > acceleration in Android, and in GNU/Linux it's just a matter of installing
> > all the required components (may not be simple enough at the moment). So I
> > do not see what grounds do you have for stating that the processor itself
> > does not have "good graphics capability".

> First, I'd like to remind everyone that I was not serious.
> I was just trying to "tease" some folks to spicy the discussion.

Serious or not, but the topic starter has asked for "mali drivers",
while appears that in fact he actually wanted something else (movies
playback).

This kinda reminds me the "I think the tachyon modulation must be
wrongly polarised" part from:

http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

:-)

Please. Let's discuss real problems. If you want good video playback,
just say so from the start. If you have performance problems with a
browser or some other application (maybe related to its use in some
specific desktop environment or in some specific distro), then
please also explain it with enough details. So that it can be
reproduced and investigated.

--
Best regards,
Siarhei Siamashka

Patrick Wood

unread,
Apr 13, 2013, 7:40:36 PM4/13/13
to cubie...@googlegroups.com
Perhaps it should be explicitly mentioned that the Mali accelerates graphics, not video, and that cedarx is for hw video acceleration.

Tokka

unread,
Apr 13, 2013, 8:27:40 PM4/13/13
to cubie...@googlegroups.com, mit...@gmail.com
Hi all :)



You still haven't even began to describe what are your actual problems with
following http://linux-sunxi.org/Binary_drivers


Following that guide, i installed the drivers (seems not mali, as described, but sunxi...(may be my error or outdate guide?)


This is my Xorg log


[    40.876]
X.Org X Server 1.12.4
Release Date: 2012-08-27
[    40.876] X Protocol Version 11, Revision 0
[    40.876] Build Operating System: Linux 3.2.0-2-mx5 armv7l Debian
[    40.876] Current Operating System: Linux cubieboard 3.4.24-a10-aufs+ #33 PREEMPT Sun Feb 24 21:17:26 CET 2013 armv7l
[    40.877] Kernel command line: console=ttyS0,115200 console=tty0 disp.screen0_output_mode=EDID:1280x760p60:1920x1080p60:0 hdmi.audio=EDID:0 bootmenutimeout=10 datadev=sda1 mac_addr=1a:49:16:66:7b:6b
[    40.877] Build Date: 01 March 2013  05:21:52PM
[    40.877] xorg-server 2:1.12.4-5 (Julien Cristau <jcri...@debian.org>)
[    40.877] Current version of pixman: 0.26.0
[    40.877]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[    40.877] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    40.878] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Apr 14 01:40:06 2013
[    40.908] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    40.922] (==) No Layout section.  Using the first Screen section.
[    40.922] (**) |-->Screen "Mali Screen" (0)
[    40.922] (**) |   |-->Monitor "<default monitor>"
[    40.948] (==) No device specified for screen "Mali Screen".
    Using the first device section listed.
[    40.949] (**) |   |-->Device "Allwinner A10/A13 FBDEV"
[    40.949] (==) No monitor specified for screen "Mali Screen".
    Using a default monitor configuration.
[    40.949] (**) Option "AIGLX" "true"
[    40.949] (==) Automatically adding devices
[    40.949] (==) Automatically enabling devices
[    41.034] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    41.034]     Entry deleted from font path.
[    41.039] (WW) The directory "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" does not exist.
[    41.039]     Entry deleted from font path.
[    41.039] (==) FontPath set to:
    /usr/share/fonts/X11/misc,
    /usr/share/fonts/X11/100dpi/:unscaled,
    /usr/share/fonts/X11/75dpi/:unscaled,
    /usr/share/fonts/X11/Type1,
    /usr/share/fonts/X11/100dpi,
    /usr/share/fonts/X11/75dpi,
    built-ins
[    41.039] (==) ModulePath set to "/usr/lib/xorg/modules"
[    41.039] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[    41.039] (II) Loader magic: 0xb6f16cf0
[    41.040] (II) Module ABI versions:
[    41.040]     X.Org ANSI C Emulation: 0.4
[    41.040]     X.Org Video Driver: 12.1
[    41.040]     X.Org XInput driver : 16.0
[    41.040]     X.Org Server Extension : 6.0
[    41.040] (II) "extmod" will be loaded by default.
[    41.040] (II) "dbe" will be loaded by default.
[    41.040] (II) "glx" will be loaded by default.
[    41.040] (II) "record" will be loaded by default.
[    41.040] (II) "dri" will be loaded by default.
[    41.040] (II) "dri2" will be loaded by default.
[    41.041] (II) LoadModule: "extmod"
[    41.056] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
[    41.073] (II) Module extmod: vendor="X.Org Foundation"
[    41.073]     compiled for 1.12.4, module version = 1.0.0
[    41.073]     Module class: X.Org Server Extension
[    41.073]     ABI class: X.Org Server Extension, version 6.0
[    41.074] (II) Loading extension SELinux
[    41.074] (II) Loading extension MIT-SCREEN-SAVER
[    41.074] (II) Loading extension XFree86-VidModeExtension
[    41.074] (II) Loading extension XFree86-DGA
[    41.074] (II) Loading extension DPMS
[    41.074] (II) Loading extension XVideo
[    41.074] (II) Loading extension XVideo-MotionCompensation
[    41.074] (II) Loading extension X-Resource
[    41.074] (II) LoadModule: "dbe"
[    41.075] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
[    41.089] (II) Module dbe: vendor="X.Org Foundation"
[    41.089]     compiled for 1.12.4, module version = 1.0.0
[    41.089]     Module class: X.Org Server Extension
[    41.090]     ABI class: X.Org Server Extension, version 6.0
[    41.090] (II) Loading extension DOUBLE-BUFFER
[    41.096] (II) LoadModule: "glx"
[    41.097] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    41.121] (II) Module glx: vendor="X.Org Foundation"
[    41.121]     compiled for 1.12.4, module version = 1.0.0
[    41.121]     ABI class: X.Org Server Extension, version 6.0
[    41.121] (**) AIGLX enabled
[    41.122] (II) Loading extension GLX
[    41.122] (II) LoadModule: "record"
[    41.123] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
[    41.124] (II) Module record: vendor="X.Org Foundation"
[    41.125]     compiled for 1.12.4, module version = 1.13.0
[    41.125]     Module class: X.Org Server Extension
[    41.125]     ABI class: X.Org Server Extension, version 6.0
[    41.125] (II) Loading extension RECORD
[    41.125] (II) LoadModule: "dri"
[    41.126] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
[    41.175] (II) Module dri: vendor="X.Org Foundation"
[    41.175]     compiled for 1.12.4, module version = 1.0.0
[    41.175]     ABI class: X.Org Server Extension, version 6.0
[    41.175] (II) Loading extension XFree86-DRI
[    41.175] (II) LoadModule: "dri2"
[    41.177] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[    41.210] (II) Module dri2: vendor="X.Org Foundation"
[    41.210]     compiled for 1.12.4, module version = 1.2.0
[    41.210]     ABI class: X.Org Server Extension, version 6.0
[    41.210] (II) Loading extension DRI2
[    41.210] (II) LoadModule: "sunxifb"
[    41.229] (II) Loading /usr/lib/xorg/modules/drivers/sunxifb_drv.so
[    41.281] (II) Module sunxifb: vendor="X.Org Foundation"
[    41.281]     compiled for 1.12.4, module version = 0.3.1
[    41.281]     Module class: X.Org Video Driver
[    41.281]     ABI class: X.Org Video Driver, version 12.1
[    41.281] (II) SUNXIFB: driver for framebuffer: sunxifb
[    41.281] (++) using VT number 7

[    41.282] (WW) Falling back to old probe method for sunxifb
[    41.282] (II) Loading sub module "fbdevhw"
[    41.282] (II) LoadModule: "fbdevhw"
[    41.283] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[    41.296] (II) Module fbdevhw: vendor="X.Org Foundation"
[    41.296]     compiled for 1.12.4, module version = 0.0.2
[    41.296]     ABI class: X.Org Video Driver, version 12.1
[    41.297] (II) SUNXIFB(0): using /dev/fb0
[    41.297] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    41.297] (**) SUNXIFB(0): Depth 16, (--) framebuffer bpp 16
[    41.297] (==) SUNXIFB(0): RGB weight 565
[    41.297] (==) SUNXIFB(0): Default visual is TrueColor
[    41.297] (==) SUNXIFB(0): Using gamma correction (1.0, 1.0, 1.0)
[    41.297] (II) SUNXIFB(0): hardware:  (video memory: 7200kB)
[    41.297] (**) SUNXIFB(0): Option "ShadowFB"
[    41.298] (**) SUNXIFB(0): Option "fbdev" "/dev/fb0"
[    41.298] (**) SUNXIFB(0): Option "DRI2" "false"
[    41.298] (II) SUNXIFB(0): processor: Late ARM Cortex-A8 (NEON can bypass L1 cache)
[    41.298] (II) SUNXIFB(0): checking modes against framebuffer device...
[    41.298] (II) SUNXIFB(0): checking modes against monitor...
[    41.317] (--) SUNXIFB(0): Virtual size is 1280x720 (pitch 1280)
[    41.317] (**) SUNXIFB(0):  Built-in mode "current": 74.2 MHz, 37.5 kHz, 50.0 Hz
[    41.317] (II) SUNXIFB(0): Modeline "current"x0.0   74.25  1280 1720 1760 1980  720 725 730 750 +hsync +vsync -csync (37.5 kHz b)
[    41.317] (==) SUNXIFB(0): DPI set to (96, 96)
[    41.317] (II) Loading sub module "fb"
[    41.317] (II) LoadModule: "fb"
[    41.318] (II) Loading /usr/lib/xorg/modules/libfb.so
[    41.324] (II) Module fb: vendor="X.Org Foundation"
[    41.324]     compiled for 1.12.4, module version = 1.0.0
[    41.324]     ABI class: X.Org ANSI C Emulation, version 0.4
[    41.325] (**) SUNXIFB(0): using shadow framebuffer
[    41.325] (II) Loading sub module "shadow"
[    41.325] (II) LoadModule: "shadow"
[    41.325] (II) Loading /usr/lib/xorg/modules/libshadow.so
[    41.328] (II) Module shadow: vendor="X.Org Foundation"
[    41.328]     compiled for 1.12.4, module version = 1.1.0
[    41.328]     ABI class: X.Org ANSI C Emulation, version 0.4
[    41.375] (II) SUNXIFB(0): no 2D acceleration selected via AccelMethod option
[    41.375] (II) SUNXIFB(0): enabled NEON optimizations
[    41.375] (==) SUNXIFB(0): Backing store disabled
[    41.376] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.376] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.376] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.376] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.376] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.376] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.376] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.376] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.376] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.376] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.377] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.377] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.377] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.377] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.377] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.377] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.377] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.377] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.377] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.377] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.377] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.377] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.377] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.377] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.377] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.377] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.378] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.378] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.378] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.378] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.378] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.378] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.378] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.378] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.378] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.378] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.378] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.378] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.378] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.378] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.378] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.378] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.379] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.379] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.379] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.379] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.379] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.379] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    41.379] (==) SUNXIFB(0): DPMS enabled
[    41.379] (II) SUNXIFB(0): using hardware cursor
[    41.379] (II) SUNXIFB(0): no 3D acceleration because the driver has been compiled without libUMP
[    41.379] (II) SUNXIFB(0): if this is wrong and needs to be fixed, please check ./configure log
[    41.379] (==) RandR enabled
[    41.379] (II) Initializing built-in extension Generic Event Extension
[    41.379] (II) Initializing built-in extension SHAPE
[    41.379] (II) Initializing built-in extension MIT-SHM
[    41.380] (II) Initializing built-in extension XInputExtension
[    41.380] (II) Initializing built-in extension XTEST
[    41.380] (II) Initializing built-in extension BIG-REQUESTS
[    41.380] (II) Initializing built-in extension SYNC
[    41.380] (II) Initializing built-in extension XKEYBOARD
[    41.381] (II) Initializing built-in extension XC-MISC
[    41.381] (II) Initializing built-in extension SECURITY
[    41.381] (II) Initializing built-in extension XINERAMA
[    41.381] (II) Initializing built-in extension XFIXES
[    41.381] (II) Initializing built-in extension RENDER
[    41.381] (II) Initializing built-in extension RANDR
[    41.381] (II) Initializing built-in extension COMPOSITE
[    41.381] (II) Initializing built-in extension DAMAGE
[    41.381] (II) SELinux: Disabled on system
[    41.485] (II) AIGLX: Screen 0 is not DRI2 capable
[    41.485] (II) AIGLX: Screen 0 is not DRI capable
[    41.573] (II) AIGLX: Loaded and initialized swrast
[    41.573] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[    44.413] (II) config/udev: Adding input device axp20-supplyer (/dev/input/event0)
[    44.414] (**) axp20-supplyer: Applying InputClass "evdev keyboard catchall"
[    44.414] (II) LoadModule: "evdev"
[    44.417] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[    44.434] (II) Module evdev: vendor="X.Org Foundation"
[    44.434]     compiled for 1.12.1, module version = 2.7.0
[    44.434]     Module class: X.Org XInput Driver
[    44.434]     ABI class: X.Org XInput driver, version 16.0
[    44.434] (II) Using input driver 'evdev' for 'axp20-supplyer'
[    44.434] (**) axp20-supplyer: always reports core events
[    44.435] (**) evdev: axp20-supplyer: Device: "/dev/input/event0"
[    44.435] (--) evdev: axp20-supplyer: Vendor 0x1 Product 0x1
[    44.435] (--) evdev: axp20-supplyer: Found keys
[    44.435] (II) evdev: axp20-supplyer: Configuring as keyboard
[    44.435] (**) Option "config_info" "udev:/sys/devices/platform/sun4i-i2c.0/i2c-0/0-0034/axp20-supplyer.28/input/input0/event0"
[    44.435] (II) XINPUT: Adding extended input device "axp20-supplyer" (type: KEYBOARD, id 6)
[    44.435] (**) Option "xkb_rules" "evdev"
[    44.435] (**) Option "xkb_model" "pc105"
[    44.435] (**) Option "xkb_layout" "it"
[    44.436] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[   207.626] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[   207.626] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument




 
Looks ok to me.
 
Movies play very slow in full screen mode,

How do you play the movies?


I tried vlc, xbmc, enna, miro, and at the moment the best result is with smplayer


 

If you really want to use mali drivers for accelerating a small part
of the video playback pipeline (just scaling to fullscreen), you can
try mplayer:

Smplayer use mplayer, but i will try your suggestion complinig it directly, thanks :)
 
Can you provide a bit more details about youtube videos
playback? Which browser? Is it using html5/webm/vp8?
This is not related to mali drivers, but probably something
still can be done to improve the performance.

Same way, for youtbute i tried gnash and all plugins i found, without success, so the only way i found is to complie smplayer 0.8.4 an smtube, in this way i can browse and play youtube directly from smplayer, whitout any browser. With standard ./configure smplayer 0.8.4 is slower than 0.8.0 (with 0.8.0 smtube don't works), so i will try to apply your suggestion for mplayer to smplayer too, may be it works :P

sources here: http://smplayer.sourceforge.net/en/downloads

So, i'm not a 1080 fanatic, and for mediaserver i used my debian nslu2 and a second pc connected to tv...my hope with cubie was to have only it, connected to tv. I don't want to play 3d games, or use effects like cairo dock.

BTW, i will try your suggestion, and to purge raspbian changing with cubie version (cubian? lol)

Best regards
Tk
 

Siarhei Siamashka

unread,
Apr 14, 2013, 11:57:32 AM4/14/13
to cubie...@googlegroups.com
It looks like you are explicitly enabling ShadowFB. This is not a very
good idea for performance. Now xf86-video-sunxifb uses NEON code for
reading back from the framebuffer and ShadowFB becomes unnecessary.

> [ 41.298] (**) SUNXIFB(0): Option "fbdev" "/dev/fb0"
> [ 41.298] (**) SUNXIFB(0): Option "DRI2" "false"

And here you are disabling DRI2. But DRI2 is necessary for OpenGL ES
acceleration.

> [ 41.298] (II) SUNXIFB(0): processor: Late ARM Cortex-A8 (NEON can
> [ 41.379] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
> [ 41.379] (==) SUNXIFB(0): DPMS enabled
> [ 41.379] (II) SUNXIFB(0): using hardware cursor
> [ 41.379] (II) SUNXIFB(0): no 3D acceleration because the driver has
> been compiled without libUMP
> [ 41.379] (II) SUNXIFB(0): if this is wrong and needs to be fixed,
> please check ./configure log

As these messages say, you actually have not enabled support for the
mali binary blob. So you have no hardware acceleration for OpenGL ES.

Are you sure that you have properly installed
https://github.com/linux-sunxi/sunxi-mali
as explained at
http://linux-sunxi.org/Binary_drivers ?

> [ 41.379] (==) RandR enabled
> >> Movies play very slow in full screen mode,
> >>
> >
> > How do you play the movies?
> >
>
> I tried vlc, xbmc, enna, miro, and at the moment the best result is with
> smplayer

Sure, mplayer is a good video player with very low overhead. But
mplayer is using CPU for decoding video. I have not tried it yet
myself, but this patched variant of VLC is supposed to support CedarX:

http://linux-sunxi.org/VLC

> If you really want to use mali drivers for accelerating a small part
> of the video playback pipeline (just scaling to fullscreen), you can
> try mplayer:
>
> Smplayer use mplayer, but i will try your suggestion complinig it directly,
> thanks :)

It will only work if you enable support for mali blob driver :-)

> > Can you provide a bit more details about youtube videos
> > playback? Which browser? Is it using html5/webm/vp8?
> > This is not related to mali drivers, but probably something
> > still can be done to improve the performance.
> >
> Same way, for youtbute i tried gnash and all plugins i found, without
> success

You can also try to enable html5/webm for youtube by visiting this link:

http://www.youtube.com/html5

It should allow your browser (firefox or maybe chromium) to natively
decode videos without any proprietary libraries or plugins. But the
performance is going to be dependent on whether the codecs, colorspace
conversion and scaling are properly utilizing NEON in your browser. Some
browsers may also use OpenGL (and OpenGL ES) for html5 video rendering:

https://blog.mozilla.org/joe/2010/05/25/hardware-accelerating-firefox/

It will not necessarily work out of the box. So some work may be
required to properly enable these features. Firefox is using OpenGL ES
in Android, but hardly gets any serious testing in "normal" ARM Linux.

> so the only way i found is to complie smplayer 0.8.4 an smtube, in
> this way i can browse and play youtube directly from smplayer, whitout any
> browser. With standard ./configure smplayer 0.8.4 is slower than 0.8.0
> (with 0.8.0 smtube don't works), so i will try to apply your suggestion for
> mplayer to smplayer too, may be it works :P
>
> sources here: http://smplayer.sourceforge.net/en/downloads
>
> So, i'm not a 1080 fanatic, and for mediaserver i used my debian nslu2 and
> a second pc connected to tv...my hope with cubie was to have only it,
> connected to tv. I don't want to play 3d games, or use effects like cairo
> dock.
>
> BTW, i will try your suggestion, and to purge raspbian changing with cubie
> version (cubian? lol)

Tokka

unread,
Apr 14, 2013, 8:19:01 PM4/14/13
to cubie...@googlegroups.com

Are you sure that you have properly installed
    https://github.com/linux-sunxi/sunxi-mali
as explained at
    http://linux-sunxi.org/Binary_drivers ?


Hi Siarehi,
yes, i'm sure, i followed that guide, but as i said, i've probably done something wrong.
I give also chmod a+x to 50-mali.rules, tried make config VERSION=r3p1 ABI=armhf EGL_TYPE=framebuffer, VERSION=r2p4, VERSION=r3p0 (this one seems not working), EGL_TYPE=x11.

may this be a raspbian issue too, because when i give modprobe mali, o modprobe ump, i receive an error message.


Sure, mplayer is a good video player with very low overhead. But
mplayer is using CPU for decoding video. I have not tried it yet
myself, but this patched variant of VLC is supposed to support CedarX:

    http://linux-sunxi.org/VLC


Good news, i will try this version asap :))) (and yes, mplayer use 100% of cpu)
You can also try to enable html5/webm for youtube by visiting this link:

    http://www.youtube.com/html5

It should allow your browser (firefox or maybe chromium) to natively
decode videos without any proprietary libraries or plugins. But the
performance is going to be dependent on whether the codecs, colorspace
conversion and scaling are properly utilizing NEON in your browser. Some
browsers may also use OpenGL (and OpenGL ES) for html5 video rendering:


I tried html5 too, and chromium, but smplayer is the best working solution in this situation :(

Best regards
Tk

Tokka

unread,
Apr 16, 2013, 9:04:11 AM4/16/13
to cubie...@googlegroups.com

So, a little update:
form the sunxi-mali folder, when i give: test/test i receive this message:

(if i give the command as user)
libEGL warning: DRI2: failed to authenticate
EGL Version: "1.4 (DRI2)"
EGL Vendor: "Mesa Project"
EGL Extensions: "EGL_KHR_surfaceless_gles1 EGL_KHR_surfaceless_gles2 EGL_KHR_surfaceless_opengl "
Segmentation fault

(giving it as root)
libEGL warning: DRI2: failed to authenticate
EGL Version: "1.4 (DRI2)"
EGL Vendor: "Mesa Project"
EGL Extensions: "EGL_KHR_surfaceless_gles1 EGL_KHR_surfaceless_gles2 EGL_KHR_surfaceless_opengl "
(no segmentation fault in this case)

And a little question too (i need to understand):
is tha guide outdated? http://linux-sunxi.org/Binary_drivers#Mali_kernel_driver


git clone https://github.com/ssvb/xf86-video-sunxifb.git


older stable driver is available at git://github.com/linux-sunxi/xf86-video-mali.git

(the right link for older stable is https://github.com/linux-sunxi/xf86-video-mali.git)

so it's right if i have

(II) Module sunxifb: vendor="X.Org Foundation"
  compiled for 1.12.4, module version = 0.3.1
 Module class: X.Org Video Driver
 ABI class: X.Org Video Driver, version 12.1
(II) SUNXIFB: driver for framebuffer: sunxifb
(++) using VT number 7

(WW) Falling back to old probe method for sunxifb
 
instead
(II) Module mali: vendor="X.Org Foundation"
   compiled for 1.11.3, module version = 0.4.2
   ABI class: X.Org Video Driver, version 11.0
(II) MALI: driver for Mali Framebuffer: mali
(++) using VT number 7

(WW) Falling back to old probe method for mali
(II) Loading /usr/lib/xorg/modules/drivers/mali_drv.so
(II) MALI(0): using /dev/fb0

?
if i give
modprobe sunxifb
FATAL: Module sunxifb not found.

and if i give
modprobe mali
ERROR: could not insert 'mali': Exec format error

Can someone clarify me this point?
Many Thanks
Tk

Siarhei Siamashka

unread,
Apr 16, 2013, 1:03:31 PM4/16/13
to cubie...@googlegroups.com
On Tue, 16 Apr 2013 06:04:11 -0700 (PDT)
Tokka <mit...@gmail.com> wrote:

>
> So, a little update:
> form the sunxi-mali folder, when i give: test/test i receive this message:
>
> (if i give the command as user)
> libEGL warning: DRI2: failed to authenticate
> EGL Version: "1.4 (DRI2)"
> EGL Vendor: "Mesa Project"
> EGL Extensions: "EGL_KHR_surfaceless_gles1 EGL_KHR_surfaceless_gles2
> EGL_KHR_surfaceless_opengl "
> Segmentation fault
>
> (giving it as root)
> libEGL warning: DRI2: failed to authenticate
> EGL Version: "1.4 (DRI2)"
> EGL Vendor: "Mesa Project"
> EGL Extensions: "EGL_KHR_surfaceless_gles1 EGL_KHR_surfaceless_gles2
> EGL_KHR_surfaceless_opengl "
> (no segmentation fault in this case)

Looks like you are using libEGL from Mesa instead of the Mali blob,
which is wrong. Try to run "ldd" for the test program to get the list
of the shared libraries it tries to use.

Also check http://linux-sunxi.org/Binary_drivers#Common_pitfalls
for the hints about getting Mesa out of the way.

> And a little question too (i need to understand):
> is tha guide outdated?
> http://linux-sunxi.org/Binary_drivers#Mali_kernel_driver

No, it should be perfectly up to date. Carefully following the
instructions without trying to execute them out of order, skipping
steps or applying any other creative adjustments should be enough
to get OpenGL ES acceleration working.

Paying attention to any possible error messages also may help to
identify if something is wrong at an early stage. So far, based on
the output from "modprobe mali", looks like you have a broken kernel
and/or broken/mismatched kernel modules.

> git clone https://github.com/ssvb/xf86-video-*sunxifb*.git
>
> older stable driver is available at git://github.com/linux-sunxi/xf86-video-
> > *mali*.git <git://github.com/linux-sunxi/xf86-video-mali.git>

Any of these xorg ddx drivers should work fine after you have a proper
kernel with mali kernel modules and also install the mali userland blobs
correctly.

> if i give
> modprobe sunxifb
> FATAL: Module sunxifb not found.

There is no such kernel module, so this is normal. The xorg ddx drivers
(userland shared libraries) and kernel modules are different things.

> and if i give
> modprobe mali
> ERROR: could not insert 'mali': Exec format error

This looks wrong. Where did you get your kernel and the modules for it?
Can you load any other kernel module? What does "lsmod" say?

Tokka

unread,
Apr 16, 2013, 2:17:00 PM4/16/13
to cubie...@googlegroups.com
Hi Siarhei, thanks for your answer :)




Looks like you are using libEGL from Mesa instead of the Mali blob,
which is wrong. Try to run "ldd" for the test program to get the list
of the shared libraries it tries to use.

The ldd output is:

root@cubieboard:~# ldd /usr/lib/libEGL.so
        /usr/lib/arm-linux-gnueabihf/libcofi_rpi.so (0xb6f11000)
        libUMP.so => /lib/libUMP.so (0xb6eeb000)
        libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6ecc000)
        libX11.so.6 => /usr/lib/arm-linux-gnueabihf/libX11.so.6 (0xb6db8000)
        libdrm.so.2 => /usr/lib/arm-linux-gnueabihf/libdrm.so.2 (0xb6da6000)
        libXfixes.so.3 => /usr/lib/arm-linux-gnueabihf/libXfixes.so.3 (0xb6d99000)
        libXext.so.6 => /usr/lib/arm-linux-gnueabihf/libXext.so.6 (0xb6d81000)
        libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6d10000)
        libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb6d05000)
        libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb6cdd000)
        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6bae000)
        /lib/ld-linux-armhf.so.3 (0xb6fde000)
        libxcb.so.1 => /usr/lib/arm-linux-gnueabihf/libxcb.so.1 (0xb6b8e000)
        librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb6b7f000)
        libXau.so.6 => /usr/lib/arm-linux-gnueabihf/libXau.so.6 (0xb6b75000)
        libXdmcp.so.6 => /usr/lib/arm-linux-gnueabihf/libXdmcp.so.6 (0xb6b69000)

 
Also check http://linux-sunxi.org/Binary_drivers#Common_pitfalls



I checked pitfalls too, but i haven't a folder mesa-egl

root@cubieboard:~# ls -l /usr/lib/arm-linux-gnueabihf/ |grep mesa
root@cubieboard:~#

 :-/


> And a little question too (i need to understand):
> is tha guide outdated?
> http://linux-sunxi.org/Binary_drivers#Mali_kernel_driver

No, it should be perfectly up to date. Carefully following the
instructions without trying to execute them out of order,

I will try again, paying more attention
 
This looks wrong. Where did you get your kernel and the modules for it?
Can you load any other kernel module? What does "lsmod" say?


root@cubieboard:~# lsmod
Module                  Size  Used by
8192cu                441249  0

Linux cubieboard 3.4.24-a10-aufs+ #33 PREEMPT Sun Feb 24 21:17:26 CET 2013 armv7l GNU/Linux

Unluckly i'm using raspbian, but i don't like it very much. I tried a lot of images, but without success, or with dimension trouble (3.7gb images, 3.6 gb card space, and i have a 5 hdd.....i couldn't use - Murphye's law lol)
 
Many thanks for your help
Tk

Siarhei Siamashka

unread,
Apr 16, 2013, 5:11:49 PM4/16/13
to cubie...@googlegroups.com
On Tue, 16 Apr 2013 11:17:00 -0700 (PDT)
Tokka <mit...@gmail.com> wrote:

> Hi Siarhei, thanks for your answer :)

You are welcome :)
I mean "ldd" for the test application itself. It is possible
that /usr/lib/libEGL.so is the right library, but you also
may have libEGL.so from Mesa somewhere else which happens
to have higher priority. On some systems it is in

/usr/lib/arm-linux-gnueabihf/mesa-egl/

But you may have Mesa EGL libraries in some other directory.

> root@cubieboard:~# lsmod
> Module Size Used by
> 8192cu 441249 0
>
> Linux cubieboard 3.4.24-a10-aufs+ #33 PREEMPT Sun Feb 24 21:17:26 CET 2013
> armv7l GNU/Linux

Based on the "-aufs" suffix, you may have the kernel from
https://github.com/maxnet/linux-allwinner-aufs34
And it does not look up to date.

It is generally recommended to use
https://github.com/linux-sunxi/linux-sunxi

And there are even some pre-built hwpacks for it:
http://linux-sunxi.org/Hwpack

> Unluckly i'm using raspbian, but i don't like it very much. I tried a lot
> of images, but without success,

Perhaps some people could recommend good debian or ubuntu images
for cubieboard. I'm not a "distro" person myself.

> or with dimension trouble (3.7gb images, 3.6 gb card space, and i have
> a 5 hdd.....i couldn't use - Murphye's law lol)

Do you have just a single small 3.6gb SD card? Maybe it is a good
idea to pay a visit to your local shop and get a bigger spare SD card
for experiments :)

Tokka

unread,
Apr 19, 2013, 11:51:52 AM4/19/13
to cubie...@googlegroups.com

Ok, with the (great) help of Guillaume, i'm near to make mali drivers work :D

This is the error startx gives to me:


[  2128.917] (==) Using config file: "/etc/X11/xorg.conf"
[  2128.917] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  2128.918] (==) ServerLayout "Layout0"
[  2128.919] (**) |-->Screen "Mali Screen" (0)
[  2128.919] (**) |   |-->Monitor "<default monitor>"
[  2128.919] (**) |   |-->Device "Mali FBDEV"
[  2128.919] (==) No monitor specified for screen "Mali Screen".

        Using a default monitor configuration.
[  2128.920] (**) Option "AIGLX" "false"
[  2128.920] (**) Option "IgnoreABI" "Yes"
[  2128.920] (**) Option "DRI2" "true"
[  2128.920] (**) Ignoring ABI Version
[  2128.920] (==) Automatically adding devices
[  2128.920] (==) Automatically enabling devices
[  2128.920] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[  2128.920]    Entry deleted from font path.
[  2128.920] (WW) The directory "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" does not exist.
[  2128.920]    Entry deleted from font path.
[  2128.920] (==) FontPath set to:

        /usr/share/fonts/X11/misc,
        /usr/share/fonts/X11/100dpi/:unscaled,
        /usr/share/fonts/X11/75dpi/:unscaled,
        /usr/share/fonts/X11/Type1,
        /usr/share/fonts/X11/100dpi,
        /usr/share/fonts/X11/75dpi,
        built-ins
[  2128.920] (==) ModulePath set to "/usr/lib/xorg/modules"
[  2128.921] (II) The server relies on udev to provide the list of input devices.

        If no devices become available, reconfigure udev or disable AutoAddDevices.
[  2128.921] (II) Loader magic: 0x40148cf0
[  2128.921] (II) Module ABI versions:
[  2128.921]    X.Org ANSI C Emulation: 0.4
[  2128.921]    X.Org Video Driver: 12.1
[  2128.921]    X.Org XInput driver : 16.0
[  2128.921]    X.Org Server Extension : 6.0
[  2128.921] (II) LoadModule: "extmod"
[  2128.922] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
[  2128.924] (II) Module extmod: vendor="X.Org Foundation"
[  2128.924]    compiled for 1.12.4, module version = 1.0.0
[  2128.924]    Module class: X.Org Server Extension
[  2128.924]    ABI class: X.Org Server Extension, version 6.0
[  2128.924] (II) Loading extension SELinux
[  2128.924] (II) Loading extension MIT-SCREEN-SAVER
[  2128.924] (II) Loading extension XFree86-VidModeExtension
[  2128.924] (II) Loading extension XFree86-DGA
[  2128.924] (II) Loading extension DPMS
[  2128.924] (II) Loading extension XVideo
[  2128.924] (II) Loading extension XVideo-MotionCompensation
[  2128.924] (II) Loading extension X-Resource
[  2128.924] (II) LoadModule: "dbe"
[  2128.925] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
[  2128.925] (II) Module dbe: vendor="X.Org Foundation"
[  2128.925]    compiled for 1.12.4, module version = 1.0.0
[  2128.925]    Module class: X.Org Server Extension
[  2128.926]    ABI class: X.Org Server Extension, version 6.0
[  2128.926] (II) Loading extension DOUBLE-BUFFER
[  2128.926] (II) LoadModule: "glx"
[  2128.926] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  2128.927] (II) Module glx: vendor="X.Org Foundation"
[  2128.927]    compiled for 1.12.4, module version = 1.0.0
[  2128.927]    ABI class: X.Org Server Extension, version 6.0
[  2128.927] (**) AIGLX disabled
[  2128.927] (II) Loading extension GLX
[  2128.927] (II) LoadModule: "record"
[  2128.928] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
[  2128.928] (II) Module record: vendor="X.Org Foundation"
[  2128.928]    compiled for 1.12.4, module version = 1.13.0
[  2128.929]    Module class: X.Org Server Extension
[  2128.929]    ABI class: X.Org Server Extension, version 6.0
[  2128.929] (II) Loading extension RECORD
[  2128.929] (II) LoadModule: "dri"
[  2128.929] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
[  2128.930] (II) Module dri: vendor="X.Org Foundation"
[  2128.930]    compiled for 1.12.4, module version = 1.0.0
[  2128.930]    ABI class: X.Org Server Extension, version 6.0
[  2128.930] (II) Loading extension XFree86-DRI
[  2128.931] (II) LoadModule: "dri2"
[  2128.931] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[  2128.932] (II) Module dri2: vendor="X.Org Foundation"
[  2128.932]    compiled for 1.12.4, module version = 1.2.0
[  2128.932]    ABI class: X.Org Server Extension, version 6.0
[  2128.932] (II) Loading extension DRI2
[  2128.932] (II) LoadModule: "mali"
[  2128.932] (II) Loading /usr/lib/xorg/modules/drivers/mali_drv.so
[  2128.933] (II) Module mali: vendor="X.Org Foundation"
[  2128.933]    compiled for 1.13.0, module version = 0.4.2
[  2128.933]    ABI class: X.Org Video Driver, version 13.0
[  2128.934] (WW) module ABI major version (13) doesn't match the server's version (12)
[  2128.934] (II) MALI: driver for Mali Framebuffer: mali
[  2128.934] (--) using VT number 1

[  2128.949] (WW) Falling back to old probe method for mali
[  2128.949] (II) MALI(0): using /dev/fb0
[  2128.949] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[  2128.949] (II) MALI(0): Creating default Display subsection in Screen section
        "Mali Screen" for depth/fbbpp 24/32
[  2128.949] (==) MALI(0): Depth 24, (==) framebuffer bpp 32
[  2128.949] (==) MALI(0): RGB weight 888
[  2128.949] (==) MALI(0): Default visual is TrueColor
[  2128.949] (==) MALI(0): Using gamma correction (1.0, 1.0, 1.0)
[  2128.949] (II) MALI(0): hardware:  (video memory: 7200kB)
[  2128.949] (**) MALI(0): Option "DRI2" "true"
[  2128.949] (**) MALI(0): Option "DRI2_PAGE_FLIP" "true"
[  2128.950] (**) MALI(0): Option "DRI2_WAIT_VSYNC" "false"
[  2128.950] (**) MALI(0): DRI Fullscreen page flip enabled
[  2128.950] (**) MALI(0): DRI Fullscreen page flip VSYNC disabled
[  2128.950] drmOpenDevice: node name is /dev/dri/card0
[  2128.950] drmOpenDevice: open result is 7, (OK)
[  2128.950] drmOpenDevice: node name is /dev/dri/card0
[  2128.950] drmOpenDevice: open result is 7, (OK)
[  2128.950] drmOpenDevice: node name is /dev/dri/card0
[  2128.950] drmOpenDevice: open result is 7, (OK)
[  2128.950] drmGetBusid returned ''
[  2128.950] (EE) MALI(0): mali_drm_open_master DRM OPEN (fd: 0x7)
[  2128.951] (**) MALI(0): DRI Fullscreen page flip enabled
[  2128.951] (**) MALI(0): DRI Fullscreen page flip VSYNC disabled
[  2128.951] (II) MALI(0): Output LCD has no monitor section
[  2128.951] (II) MALI(0): Mode 1280 x 720 valid
[  2128.951] (II) MALI(0): Printing probed modes for output LCD
[  2128.951] (II) MALI(0): Modeline "1280x720"x60.0   65.28  1280 1300 1320 1360  720 740 760 800 (48.0 kHz e)
[  2128.951] (II) MALI(0): Output LCD connected
[  2128.951] (II) MALI(0): Using sloppy heuristic for initial modes
[  2128.951] (II) MALI(0): Output LCD using initial mode 1280x720
[  2128.951] (II) MALI(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
[  2128.951] (--) MALI(0): Virtual size is 1280x720 (pitch 1280)
[  2128.951] (**) MALI(0):  Driver mode "1280x720": 65.3 MHz (scaled from 0.0 MHz), 48.0 kHz, 60.0 Hz
[  2128.951] (II) MALI(0): Modeline "1280x720"x60.0   65.28  1280 1300 1320 1360  720 740 760 800 (48.0 kHz e)
[  2128.951] (==) MALI(0): DPI set to (96, 96)
[  2128.951] (II) Loading sub module "fb"
[  2128.951] (II) LoadModule: "fb"
[  2128.952] (II) Loading /usr/lib/xorg/modules/libfb.so
[  2128.953] (II) Module fb: vendor="X.Org Foundation"
[  2128.953]    compiled for 1.12.4, module version = 1.0.0
[  2128.953]    ABI class: X.Org ANSI C Emulation, version 0.4
[  2128.953] (==) Depth 24 pixmap format is 32 bpp
[  2128.953]
[  2128.954] Backtrace:
[  2128.954]
[  2128.954] Segmentation fault at address (nil)
[  2128.955]
Fatal server error:
[  2128.955] Caught signal 11 (Segmentation fault). Server aborting
[  2128.955]
[  2128.956]
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[  2128.956] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  2128.957]
[  2128.985] Server terminated with error (1). Closing log file.


I'm not sure if it is a xorg.conf error, or something related memory :/
all suggestion will be appreciated :)
Tk

Tokka

unread,
Apr 19, 2013, 12:27:04 PM4/19/13
to cubie...@googlegroups.com

Edit: changed default depth in xorg.conf, set to 32, and now the error is:


(WW) Falling back to old probe method for mali
(II) MALI(0): using /dev/fb0

(WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
(II) MALI(0): Creating default Display subsection in Screen section
        "Mali Screen" for depth/fbbpp 32/32
(**) MALI(0): Depth 32, (**) framebuffer bpp 32
(EE) MALI(0): Weight given (000) is inconsistent with the depth (32)
(II) UnloadModule: "mali"
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found


Siarhei Siamashka

unread,
Apr 19, 2013, 3:38:57 PM4/19/13
to cubie...@googlegroups.com
On Fri, 19 Apr 2013 08:51:52 -0700 (PDT)
Tokka <mit...@gmail.com> wrote:

>
> Ok, with the (great) help of Guillaume, i'm near to make mali drivers work
> :D

:D

I'm not so sure about this. There no indication that you progressed
even a little bit. Have you already resolved your kernel problem? If
you can't get mali kernel modules loaded, which is the first step from
http://linux-sunxi.org/Binary_drivers , then you have absolutely no
chances to succeed.

First make sure that 'lsmod' reports something like this:

Module Size Used by
mali_drm 2600 0
drm 208016 1 mali_drm
mali 109686 0
ump 50853 1 mali

And then proceed to the next stage at
http://linux-sunxi.org/Binary_drivers

> This is the error startx gives to me:

[...]

> [ 2128.932] (II) Loading extension DRI2
> [ 2128.932] (II) LoadModule: "mali"
> [ 2128.932] (II) Loading /usr/lib/xorg/modules/drivers/mali_drv.so
> [ 2128.933] (II) Module mali: vendor="X.Org Foundation"
> [ 2128.933] compiled for 1.13.0, module version = 0.4.2
> [ 2128.933] ABI class: X.Org Video Driver, version 13.0
> [ 2128.934] (WW) module ABI major version (13) doesn't match the server's
> version (12)

You have got mismatched ABI for the X server and mali_drv.so, so
expect your X server to blow up.


[...]

> [ 2128.951] (II) MALI(0): Modeline "1280x720"x60.0 65.28 1280 1300 1320
> 1360 720 740 760 800 (48.0 kHz e)
> [ 2128.951] (==) MALI(0): DPI set to (96, 96)
> [ 2128.951] (II) Loading sub module "fb"
> [ 2128.951] (II) LoadModule: "fb"
> [ 2128.952] (II) Loading /usr/lib/xorg/modules/libfb.so
> [ 2128.953] (II) Module fb: vendor="X.Org Foundation"
> [ 2128.953] compiled for 1.12.4, module version = 1.0.0
> [ 2128.953] ABI class: X.Org ANSI C Emulation, version 0.4
> [ 2128.953] (==) Depth 24 pixmap format is 32 bpp
> [ 2128.953]
> [ 2128.954] Backtrace:
> [ 2128.954]
> [ 2128.954] Segmentation fault at address (nil)
> [ 2128.955]
> Fatal server error:
> [ 2128.955] Caught signal 11 (Segmentation fault). Server aborting

Yep, here we go.

Tokka

unread,
Apr 19, 2013, 4:31:41 PM4/19/13
to cubie...@googlegroups.com

Hi Siarhei, nice to read you again :)

after a lot of try and search over the net, now i'm stopped here :(
This is the full Xorg log:


X.Org X Server 1.12.4
Release Date: 2012-08-27
[  1769.954] X Protocol Version 11, Revision 0
[  1769.955] Build Operating System: Linux 3.2.0-4-mx5 armv7l Debian
[  1769.955] Current Operating System: Linux mele 3.0.42 #3 PREEMPT Fri Feb 8 04:07:03 CET 2013 armv7l
[  1769.955] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 loglevel=7 panic=10 rootwait
[  1769.956] Build Date: 23 February 2013  03:44:46PM
[  1769.956] xorg-server 2:1.12.4-5 (Julien Cristau <jcri...@debian.org>)
[  1769.957] Current version of pixman: 0.26.0
[  1769.957]    Before reporting problems, check http://wiki.x.org

        to make sure that you have the latest version.
[  1769.957] Markers: (--) probed, (**) from config file, (==) default setting,

        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1769.960] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Apr 19 19:51:42 2013
[  1769.961] (==) Using config file: "/etc/X11/xorg.conf"
[  1769.961] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  1769.962] (==) ServerLayout "Layout0"
[  1769.963] (**) |-->Screen "Mali Screen" (0)
[  1769.963] (**) |   |-->Monitor "<default monitor>"
[  1769.963] (**) |   |-->Device "Mali FBDEV"
[  1769.963] (==) No monitor specified for screen "Mali Screen".

        Using a default monitor configuration.
[  1769.964] (**) Option "BlankTime" "0"
[  1769.964] (**) Option "StandbyTime" "0"
[  1769.964] (**) Option "SuspendTime" "0"
[  1769.964] (**) Option "OffTime" "0"
[  1769.964] (**) Option "Xinerama" "false"
[  1769.964] (**) Option "AIGLX" "false"
[  1769.964] (**) Option "IgnoreABI" "Yes"
[  1769.964] (**) Option "DRI2" "true"
[  1769.964] (**) Ignoring ABI Version
[  1769.964] (==) Automatically adding devices
[  1769.964] (==) Automatically enabling devices
[  1769.964] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[  1769.964]    Entry deleted from font path.
[  1769.965] (WW) The directory "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" does not exist.
[  1769.965]    Entry deleted from font path.
[  1769.965] (==) FontPath set to:

        /usr/share/fonts/X11/misc,
        /usr/share/fonts/X11/100dpi/:unscaled,
        /usr/share/fonts/X11/75dpi/:unscaled,
        /usr/share/fonts/X11/Type1,
        /usr/share/fonts/X11/100dpi,
        /usr/share/fonts/X11/75dpi,
        built-ins
[  1769.965] (==) ModulePath set to "/usr/lib/xorg/modules"
[  1769.965] (II) The server relies on udev to provide the list of input devices.

        If no devices become available, reconfigure udev or disable AutoAddDevices.
[  1769.965] (II) Loader magic: 0x401eecf0
[  1769.965] (II) Module ABI versions:
[  1769.965]    X.Org ANSI C Emulation: 0.4
[  1769.965]    X.Org Video Driver: 12.1
[  1769.965]    X.Org XInput driver : 16.0
[  1769.965]    X.Org Server Extension : 6.0
[  1769.965] (II) LoadModule: "extmod"
[  1769.966] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
[  1769.968] (II) Module extmod: vendor="X.Org Foundation"
[  1769.968]    compiled for 1.12.4, module version = 1.0.0
[  1769.968]    Module class: X.Org Server Extension
[  1769.968]    ABI class: X.Org Server Extension, version 6.0
[  1769.968] (II) Loading extension SELinux
[  1769.968] (II) Loading extension MIT-SCREEN-SAVER
[  1769.968] (II) Loading extension XFree86-VidModeExtension
[  1769.968] (II) Loading extension XFree86-DGA
[  1769.968] (II) Loading extension DPMS
[  1769.968] (II) Loading extension XVideo
[  1769.968] (II) Loading extension XVideo-MotionCompensation
[  1769.968] (II) Loading extension X-Resource
[  1769.968] (II) LoadModule: "dbe"
[  1769.969] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
[  1769.970] (II) Module dbe: vendor="X.Org Foundation"
[  1769.970]    compiled for 1.12.4, module version = 1.0.0
[  1769.970]    Module class: X.Org Server Extension
[  1769.970]    ABI class: X.Org Server Extension, version 6.0
[  1769.970] (II) Loading extension DOUBLE-BUFFER
[  1769.970] (II) LoadModule: "glx"
[  1769.971] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  1769.971] (II) Module glx: vendor="X.Org Foundation"
[  1769.971]    compiled for 1.12.4, module version = 1.0.0
[  1769.971]    ABI class: X.Org Server Extension, version 6.0
[  1769.971] (**) AIGLX disabled
[  1769.972] (II) Loading extension GLX
[  1769.972] (II) LoadModule: "record"
[  1769.972] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
[  1769.973] (II) Module record: vendor="X.Org Foundation"
[  1769.973]    compiled for 1.12.4, module version = 1.13.0
[  1769.973]    Module class: X.Org Server Extension
[  1769.973]    ABI class: X.Org Server Extension, version 6.0
[  1769.973] (II) Loading extension RECORD
[  1769.973] (II) LoadModule: "dri"
[  1769.974] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
[  1769.974] (II) Module dri: vendor="X.Org Foundation"
[  1769.974]    compiled for 1.12.4, module version = 1.0.0
[  1769.975]    ABI class: X.Org Server Extension, version 6.0
[  1769.975] (II) Loading extension XFree86-DRI
[  1769.975] (II) LoadModule: "dri2"
[  1769.975] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[  1769.976] (II) Module dri2: vendor="X.Org Foundation"
[  1769.976]    compiled for 1.12.4, module version = 1.2.0
[  1769.976]    ABI class: X.Org Server Extension, version 6.0
[  1769.976] (II) Loading extension DRI2
[  1769.976] (II) LoadModule: "mali"
[  1769.976] (II) Loading /usr/lib/xorg/modules/drivers/mali_drv.so
[  1769.977] (II) Module mali: vendor="X.Org Foundation"
[  1769.977]    compiled for 1.13.0, module version = 0.4.2
[  1769.977]    ABI class: X.Org Video Driver, version 13.0
[  1769.978] (WW) module ABI major version (13) doesn't match the server's version (12)
[  1769.978] (II) MALI: driver for Mali Framebuffer: mali
[  1769.978] (--) using VT number 1

[  1769.983] (WW) Falling back to old probe method for mali
[  1769.983] (II) MALI(0): using /dev/fb0
[  1769.983] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[  1769.983] (**) MALI(0): Depth 24, (--) framebuffer bpp 32
[  1769.984] (==) MALI(0): RGB weight 888
[  1769.984] (==) MALI(0): Default visual is TrueColor
[  1769.984] (==) MALI(0): Using gamma correction (1.0, 1.0, 1.0)
[  1769.984] (II) MALI(0): hardware:  (video memory: 2700kB)
[  1769.984] (**) MALI(0): Option "DRI2" "true"
[  1769.984] (**) MALI(0): Option "DRI2_PAGE_FLIP" "true"
[  1769.984] (**) MALI(0): Option "DRI2_WAIT_VSYNC" "false"
[  1769.984] (**) MALI(0): DRI Fullscreen page flip enabled
[  1769.984] (**) MALI(0): DRI Fullscreen page flip VSYNC disabled
[  1769.984] drmOpenDevice: node name is /dev/dri/card0
[  1769.984] drmOpenDevice: open result is 7, (OK)
[  1769.984] drmOpenDevice: node name is /dev/dri/card0
[  1769.985] drmOpenDevice: open result is 7, (OK)
[  1769.985] drmOpenDevice: node name is /dev/dri/card0
[  1769.985] drmOpenDevice: open result is 7, (OK)
[  1769.985] drmGetBusid returned ''
[  1769.985] (EE) MALI(0): mali_drm_open_master DRM OPEN (fd: 0x7)
[  1769.985] (**) MALI(0): DRI Fullscreen page flip enabled
[  1769.985] (**) MALI(0): DRI Fullscreen page flip VSYNC disabled
[  1769.985] (II) MALI(0): Output LCD has no monitor section
[  1769.985] (II) MALI(0): Mode 720 x 480 valid
[  1769.985] (II) MALI(0): Printing probed modes for output LCD
[  1769.985] (II) MALI(0): Modeline "720x480"x60.0   26.88  720 740 760 800  480 500 520 560 (33.6 kHz e)
[  1769.985] (II) MALI(0): Output LCD connected
[  1769.985] (II) MALI(0): Using sloppy heuristic for initial modes
[  1769.985] (II) MALI(0): Output LCD using initial mode 720x480
[  1769.985] (II) MALI(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
[  1769.986] (II) MALI(0):      modename "1920x1080" mode->name "1920x1080"
[  1769.986] (II) MALI(0):      mode "1920x1080" ok
[  1769.986] (II) MALI(0):      modename "1600x1200" mode->name "1600x1200"
[  1769.986] (II) MALI(0):      mode "1600x1200" ok
[  1769.986] (II) MALI(0):      modename "1280x1024" mode->name "1280x1024"
[  1769.986] (II) MALI(0):      mode "1280x1024" ok
[  1769.986] (II) MALI(0):      modename "1280x960" mode->name "1280x960"
[  1769.986] (II) MALI(0):      mode "1280x960" ok
[  1769.986] (II) MALI(0):      mode "1280x720" not found
[  1769.986] (II) MALI(0):      modename "1024x768" mode->name "1024x768"
[  1769.986] (II) MALI(0):      mode "1024x768" ok
[  1769.986] (II) MALI(0):      mode "720x480" not found
[  1769.986] (II) MALI(0):      modename "800x600" mode->name "800x600"
[  1769.986] (II) MALI(0):      mode "800x600" ok
[  1769.986] (II) MALI(0):      modename "640x480" mode->name "640x480"
[  1769.986] (II) MALI(0):      mode "640x480" ok
[  1769.986] (--) MALI(0): Virtual size is 1920x1200 (pitch 1920)
[  1769.986] (**) MALI(0):  Driver mode "720x480": 26.9 MHz (scaled from 0.0 MHz), 33.6 kHz, 60.0 Hz
[  1769.986] (II) MALI(0): Modeline "720x480"x60.0   26.88  720 740 760 800  480 500 520 560 (33.6 kHz e)
[  1769.986] (**) MALI(0):  Default mode "1600x1200": 162.0 MHz (scaled from 0.0 MHz), 75.0 kHz, 60.0 Hz
[  1769.987] (II) MALI(0): Modeline "1600x1200"x0.0  162.00  1600 1664 1856 2160  1200 1201 1204 1250 +hsync +vsync (75.0 kHz d)
[  1769.987] (**) MALI(0):  Default mode "1280x1024": 108.0 MHz (scaled from 0.0 MHz), 64.0 kHz, 60.0 Hz
[  1769.987] (II) MALI(0): Modeline "1280x1024"x0.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz d)
[  1769.987] (**) MALI(0):  Default mode "1280x960": 108.0 MHz (scaled from 0.0 MHz), 60.0 kHz, 60.0 Hz
[  1769.987] (II) MALI(0): Modeline "1280x960"x0.0  108.00  1280 1376 1488 1800  960 961 964 1000 +hsync +vsync (60.0 kHz d)
[  1769.987] (**) MALI(0):  Default mode "1024x768": 65.0 MHz (scaled from 0.0 MHz), 48.4 kHz, 60.0 Hz
[  1769.987] (II) MALI(0): Modeline "1024x768"x0.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz d)
[  1769.987] (**) MALI(0):  Default mode "800x600": 36.0 MHz (scaled from 0.0 MHz), 35.2 kHz, 56.2 Hz
[  1769.987] (II) MALI(0): Modeline "800x600"x0.0   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[  1769.987] (**) MALI(0):  Default mode "640x480": 25.2 MHz (scaled from 0.0 MHz), 31.5 kHz, 59.9 Hz
[  1769.987] (II) MALI(0): Modeline "640x480"x0.0   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz d)
[  1769.987] (==) MALI(0): DPI set to (96, 96)
[  1769.987] (II) Loading sub module "fb"
[  1769.987] (II) LoadModule: "fb"
[  1769.988] (II) Loading /usr/lib/xorg/modules/libfb.so
[  1769.988] (II) Module fb: vendor="X.Org Foundation"
[  1769.988]    compiled for 1.12.4, module version = 1.0.0
[  1769.988]    ABI class: X.Org ANSI C Emulation, version 0.4
[  1769.988] (==) Depth 24 pixmap format is 32 bpp
[  1769.989]
[  1769.989] Backtrace:
[  1769.989]
[  1769.989] Segmentation fault at address (nil)
[  1769.989]
Fatal server error:
[  1769.989] Caught signal 11 (Segmentation fault). Server aborting


and this is lsmod output:
Module                  Size  Used by
cpufreq_stats           2318  0
mali_drm                2273  0
mali                   89504  0
ump                    25935  1 mali
hdmi                   16755  0
lcd                     3282  0
disp                  217171  3 lcd,hdmi
cfbfillrect             2956  1 disp
cfbimgblt               1761  1 disp
cfbcopyarea             2621  1 disp
sun4i_gpio              2961  0
8192cu                488866  0

For the ABI version, i added "ignoreABI" option in xorg.conf, cause different version, and this solved (apparently), but i cannot solve segmaentation fault, and google don't help much :(
Any suggistions will be very glad :D
Tokka

Siarhei Siamashka

unread,
Apr 19, 2013, 5:22:55 PM4/19/13
to cubie...@googlegroups.com
On Fri, 19 Apr 2013 13:31:41 -0700 (PDT)
Tokka <mit...@gmail.com> wrote:

>
> Hi Siarhei, nice to read you again :)
>
> after a lot of try and search over the net, now i'm stopped here :(

After you are done searching all over the net, just try to give
http://linux-sunxi.org/Binary_drivers a chance :)

> and this is lsmod output:
> Module Size Used by
> cpufreq_stats 2318 0
> mali_drm 2273 0
> mali 89504 0
> ump 25935 1 mali
> hdmi 16755 0
> lcd 3282 0
> disp 217171 3 lcd,hdmi
> cfbfillrect 2956 1 disp
> cfbimgblt 1761 1 disp
> cfbcopyarea 2621 1 disp
> sun4i_gpio 2961 0
> 8192cu 488866 0

OK, the kernel might be fine now. It still looks a bit old though
(hdmi/lcd/disp modules should be already statically compiled into
the kernel nowadays).

> For the ABI version, i added "ignoreABI" option in xorg.conf, cause
> different version, and this solved (apparently),

Yeah, earlier the X server warned you "I'm stopping because otherwise
ABI mismatch would cause a segfault". But you added the "ignoreABI"
option which basically asks "Shut up and show me this segfault!".

No offense intended, but looks like you are showing a typical
"mongoose" behaviour described in the section "So then I tried . . ."
from http://www.chiark.greenend.org.uk/~sgtatham/bugs.html :)

> but i cannot solve segmaentation fault, and google don't help much :(

By adding the "ignoreABI" option you got exactly what you asked for.

But seriously. How did you manage to get an ABI mismatch in the first
place? Where did you get this "mali_drv.so" file? It looks like you
even did not compile it yourself, but snatched somewhere.

> Any suggistions will be very glad :D

Just install the drivers according to the instructions from
http://linux-sunxi.org/Binary_drivers

Tokka

unread,
Apr 19, 2013, 5:34:00 PM4/19/13
to cubie...@googlegroups.com

No offense intended, but looks like you are showing a typical
"mongoose" behaviour described in the section "So then I tried . . ."
from http://www.chiark.greenend.org.uk/~sgtatham/bugs.html :)


No problem, i know my limits, and i'm trying to do something over my skills, and the less i can do is a lot of stupid errors....but when possible i will try by myself, even to increase my knowledge :P
 

Just install the drivers according to the instructions from
    http://linux-sunxi.org/Binary_drivers

Ok, i will try again with that, following step-by-step withoud adding anything else :P
Hope in more lucky with this debian version (not raspbian)
 
--
Best regards,
Siarhei Siamashka

My best regards, and thanks for all your support and patience :)
Tokka

Tokka

unread,
Apr 20, 2013, 1:06:54 PM4/20/13
to cubie...@googlegroups.com

New update lol
Installed drivers as described in the guide, used old stable sunxi-mali, and it works. The only issue is the pitfall "Missing X symbols", but i don't know how to solve it.
At the moment the startx log report:

X.Org X Server 1.12.4
Release Date: 2012-08-27
[  9838.479] X Protocol Version 11, Revision 0
[  9838.479] Build Operating System: Linux 3.2.0-4-mx5 armv7l Debian
[  9838.479] Current Operating System: Linux mele 3.0.42 #3 PREEMPT Fri Feb 8 04:07:03 CET 2013 armv7l
[  9838.479] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 loglevel=7 panic=10 rootwait
[  9838.490] Build Date: 23 February 2013  03:44:46PM
[  9838.490] xorg-server 2:1.12.4-5 (Julien Cristau <jcri...@debian.org>)
[  9838.490] Current version of pixman: 0.26.0
[  9838.490]    Before reporting problems, check http://wiki.x.org

        to make sure that you have the latest version.
[  9838.490] Markers: (--) probed, (**) from config file, (==) default setting,

        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  9838.491] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Apr 20 16:55:54 2013
[  9838.491] (==) Using config file: "/etc/X11/xorg.conf"
[  9838.491] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  9838.492] (==) ServerLayout "Layout0"
[  9838.492] (**) |-->Screen "Mali Screen" (0)
[  9838.492] (**) |   |-->Monitor "<default monitor>"
[  9838.493] (**) |   |-->Device "Mali FBDEV"
[  9838.493] (==) No monitor specified for screen "Mali Screen".

        Using a default monitor configuration.
[  9838.493] (**) Option "BlankTime" "0"
[  9838.494] (**) Option "StandbyTime" "0"
[  9838.494] (**) Option "SuspendTime" "0"
[  9838.494] (**) Option "OffTime" "0"
[  9838.494] (**) Option "Xinerama" "false"
[  9838.494] (**) Option "AIGLX" "false"
[  9838.494] (**) Option "DRI2" "true"
[  9838.494] (==) Automatically adding devices
[  9838.494] (==) Automatically enabling devices
[  9838.494] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[  9838.494]    Entry deleted from font path.
[  9838.494] (WW) The directory "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" does not exist.
[  9838.494]    Entry deleted from font path.
[  9838.494] (==) FontPath set to:

        /usr/share/fonts/X11/misc,
        /usr/share/fonts/X11/100dpi/:unscaled,
        /usr/share/fonts/X11/75dpi/:unscaled,
        /usr/share/fonts/X11/Type1,
        /usr/share/fonts/X11/100dpi,
        /usr/share/fonts/X11/75dpi,
        built-ins
[  9838.494] (==) ModulePath set to "/usr/lib/xorg/modules"
[  9838.495] (II) The server relies on udev to provide the list of input devices.

        If no devices become available, reconfigure udev or disable AutoAddDevices.
[  9838.495] (II) Loader magic: 0x40192cf0
[  9838.495] (II) Module ABI versions:
[  9838.495]    X.Org ANSI C Emulation: 0.4
[  9838.495]    X.Org Video Driver: 12.1
[  9838.495]    X.Org XInput driver : 16.0
[  9838.495]    X.Org Server Extension : 6.0
[  9838.495] (II) LoadModule: "extmod"
[  9838.496] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
[  9838.498] (II) Module extmod: vendor="X.Org Foundation"
[  9838.498]    compiled for 1.12.4, module version = 1.0.0
[  9838.498]    Module class: X.Org Server Extension
[  9838.498]    ABI class: X.Org Server Extension, version 6.0
[  9838.498] (II) Loading extension SELinux
[  9838.498] (II) Loading extension MIT-SCREEN-SAVER
[  9838.498] (II) Loading extension XFree86-VidModeExtension
[  9838.498] (II) Loading extension XFree86-DGA
[  9838.498] (II) Loading extension DPMS
[  9838.498] (II) Loading extension XVideo
[  9838.498] (II) Loading extension XVideo-MotionCompensation
[  9838.498] (II) Loading extension X-Resource
[  9838.498] (II) LoadModule: "dbe"
[  9838.499] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
[  9838.504] (II) Module dbe: vendor="X.Org Foundation"
[  9838.504]    compiled for 1.12.4, module version = 1.0.0
[  9838.504]    Module class: X.Org Server Extension
[  9838.504]    ABI class: X.Org Server Extension, version 6.0
[  9838.504] (II) Loading extension DOUBLE-BUFFER
[  9838.504] (II) LoadModule: "glx"
[  9838.505] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  9838.505] (II) Module glx: vendor="X.Org Foundation"
[  9838.505]    compiled for 1.12.4, module version = 1.0.0
[  9838.506]    ABI class: X.Org Server Extension, version 6.0
[  9838.506] (**) AIGLX disabled
[  9838.506] (II) Loading extension GLX
[  9838.506] (II) LoadModule: "record"
[  9838.506] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
[  9838.507] (II) Module record: vendor="X.Org Foundation"
[  9838.507]    compiled for 1.12.4, module version = 1.13.0
[  9838.507]    Module class: X.Org Server Extension
[  9838.507]    ABI class: X.Org Server Extension, version 6.0
[  9838.507] (II) Loading extension RECORD
[  9838.507] (II) LoadModule: "dri"
[  9838.508] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
[  9838.509] (II) Module dri: vendor="X.Org Foundation"
[  9838.509]    compiled for 1.12.4, module version = 1.0.0
[  9838.509]    ABI class: X.Org Server Extension, version 6.0
[  9838.509] (II) Loading extension XFree86-DRI
[  9838.509] (II) LoadModule: "dri2"
[  9838.520] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[  9838.520] (II) Module dri2: vendor="X.Org Foundation"
[  9838.521]    compiled for 1.12.4, module version = 1.2.0
[  9838.521]    ABI class: X.Org Server Extension, version 6.0
[  9838.521] (II) Loading extension DRI2
[  9838.521] (II) LoadModule: "mali"
[  9838.521] (II) Loading /usr/lib/xorg/modules/drivers/mali_drv.so
[  9838.522] (II) Module mali: vendor="X.Org Foundation"
[  9838.522]    compiled for 1.12.4, module version = 0.4.2
[  9838.522]    ABI class: X.Org Video Driver, version 12.1
[  9838.522] (II) MALI: driver for Mali Framebuffer: mali
[  9838.522] (++) using VT number 7

[  9838.523] (WW) Falling back to old probe method for mali
[  9838.523] (II) MALI(0): using /dev/fb0
[  9838.523] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[  9838.523] (II) MALI(0): Creating default Display subsection in Screen section

        "Mali Screen" for depth/fbbpp 24/32
[  9838.523] (**) MALI(0): Depth 24, (--) framebuffer bpp 32
[  9838.523] (==) MALI(0): RGB weight 888
[  9838.523] (==) MALI(0): Default visual is TrueColor
[  9838.523] (==) MALI(0): Using gamma correction (1.0, 1.0, 1.0)
[  9838.523] (II) MALI(0): hardware:  (video memory: 7200kB)
[  9838.523] (**) MALI(0): Option "DRI2" "true"
[  9838.523] (**) MALI(0): Option "DRI2_PAGE_FLIP" "true"
[  9838.524] (**) MALI(0): Option "DRI2_WAIT_VSYNC" "false"
[  9838.524] (**) MALI(0): DRI Fullscreen page flip enabled
[  9838.524] (**) MALI(0): DRI Fullscreen page flip VSYNC disabled
[  9838.524] drmOpenDevice: node name is /dev/dri/card0
[  9838.524] drmOpenDevice: open result is 7, (OK)
[  9838.524] drmOpenDevice: node name is /dev/dri/card0
[  9838.524] drmOpenDevice: open result is 7, (OK)
[  9838.524] drmOpenDevice: node name is /dev/dri/card0
[  9838.524] drmOpenDevice: open result is 7, (OK)
[  9838.524] drmGetBusid returned ''
[  9838.524] (EE) MALI(0): mali_drm_open_master DRM OPEN (fd: 0x7)
[  9838.525] (**) MALI(0): DRI Fullscreen page flip enabled
[  9838.525] (**) MALI(0): DRI Fullscreen page flip VSYNC disabled
[  9838.525] (II) MALI(0): Output LCD has no monitor section
[  9838.525] (II) MALI(0): Mode 1280 x 720 valid
[  9838.525] (II) MALI(0): Printing probed modes for output LCD
[  9838.525] (II) MALI(0): Modeline "1280x720"x60.0   65.28  1280 1300 1320 1360  720 740 760 800 (48.0 kHz e)
[  9838.525] (II) MALI(0): Output LCD connected
[  9838.525] (II) MALI(0): Using sloppy heuristic for initial modes
[  9838.525] (II) MALI(0): Output LCD using initial mode 1280x720
[  9838.525] (II) MALI(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
[  9838.525] (--) MALI(0): Virtual size is 1280x720 (pitch 1280)
[  9838.525] (**) MALI(0):  Driver mode "1280x720": 65.3 MHz (scaled from 0.0 MHz), 48.0 kHz, 60.0 Hz
[  9838.525] (II) MALI(0): Modeline "1280x720"x60.0   65.28  1280 1300 1320 1360  720 740 760 800 (48.0 kHz e)
[  9838.525] (==) MALI(0): DPI set to (96, 96)
[  9838.525] (II) Loading sub module "fb"
[  9838.525] (II) LoadModule: "fb"
[  9838.526] (II) Loading /usr/lib/xorg/modules/libfb.so
[  9838.526] (II) Module fb: vendor="X.Org Foundation"
[  9838.527]    compiled for 1.12.4, module version = 1.0.0
[  9838.527]    ABI class: X.Org ANSI C Emulation, version 0.4
[  9838.527] (==) Depth 24 pixmap format is 32 bpp
[  9838.527] (II) MALI(0): DRI2 version: 1.2
[  9838.527] (II) MALI(0): [DRI2] Setup complete
[  9838.527] (II) MALI(0): [DRI2]   DRI driver: Mali DRI2
[  9838.528] (II) Loading sub module "exa"
[  9838.528] (II) LoadModule: "exa"
[  9838.528] (II) Loading /usr/lib/xorg/modules/libexa.so
[  9838.529] (II) Module exa: vendor="X.Org Foundation"
[  9838.529]    compiled for 1.12.4, module version = 2.5.0
[  9838.529]    ABI class: X.Org Video Driver, version 12.1
[  9838.529] (II) MALI(0): XRES: 1280 YRES: 720 PHYS: 0x5a001000 VIRT: 0x4069c000
[  9838.529] (II) MALI(0): XRES: 1280 YRES: 720 PHYS: 0x5a001000 VIRT: 0x4069c000
[  9838.529] (II) MALI(0): Mali EXA driver is loaded successfully
[  9838.529] (WW) MALI(0): Initializing EXA Driver!
[  9838.530] (II) EXA(0): Driver allocated offscreen pixmaps
[  9838.530] (II) EXA(0): Driver registered support for the following operations:
[  9838.530] (II)         Solid
[  9838.530] (II)         Copy
[  9838.530] (II)         Composite (RENDER acceleration)
[  9838.530] (==) MALI(0): Backing store disabled
[  9838.530] (==) MALI(0): Silken mouse enabled
[  9838.530] (II) MALI(0): Changing mode to 1280 720 1280 1440
[  9838.530] (II) MALI(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[  9838.531] (==) MALI(0): DPMS enabled
[  9838.531] (--) RandR disabled
[  9838.531] (II) Initializing built-in extension Generic Event Extension
[  9838.531] (II) Initializing built-in extension SHAPE
[  9838.531] (II) Initializing built-in extension MIT-SHM
[  9838.531] (II) Initializing built-in extension XInputExtension
[  9838.531] (II) Initializing built-in extension XTEST
[  9838.531] (II) Initializing built-in extension BIG-REQUESTS
[  9838.531] (II) Initializing built-in extension SYNC
[  9838.531] (II) Initializing built-in extension XKEYBOARD
[  9838.531] (II) Initializing built-in extension XC-MISC
[  9838.531] (II) Initializing built-in extension SECURITY
[  9838.531] (II) Initializing built-in extension XINERAMA
[  9838.531] (II) Initializing built-in extension XFIXES
[  9838.532] (II) Initializing built-in extension RENDER
[  9838.532] (II) Initializing built-in extension RANDR
[  9838.532] (II) Initializing built-in extension COMPOSITE
[  9838.532] (II) Initializing built-in extension DAMAGE
[  9838.532] (II) SELinux: Disabled on system
[  9838.590] (II) AIGLX: Loaded and initialized swrast
[  9838.590] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[  9838.592] GET_UMP_SECURE_ID_BUF1 returned 0x1 offset: 0 virt address: 0x4069c000 fb_virt: 0x4069c000
[  9838.592] GET_UMP_SECURE_ID_BUF2 returned 0x2 offset: 3686400 virt address: (nil) fb_virt: 0x4069c000
[  9838.592] (II) MALI(0): Creating FRAMEBUFFER pixmap 0x41e7d690 at offset 3686400, privPixmap=0x41e7d718
[  9838.593] (II) MALI(0): Creating FRAMEBUFFER pixmap 0x41e7d568 at offset 0, privPixmap=0x41e7d4a8
[  9838.593] (II) MALI(0): Setting screen physical size to 338 x 190
[  9838.593] (II) MALI(0): fbdev_crtc_config_resize: width = 1280 height = 720
[  9838.593] (II) MALI(0): Changing mode to 1280 720 1280 1440
[  9838.824] (II) config/udev: Adding input device axp20-supplyer (/dev/input/event0)
[  9838.824] (**) axp20-supplyer: Applying InputClass "evdev keyboard catchall"
[  9838.824] (II) LoadModule: "evdev"
[  9838.825] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[  9838.825] (II) Module evdev: vendor="X.Org Foundation"
[  9838.825]    compiled for 1.12.1, module version = 2.7.0
[  9838.825]    Module class: X.Org XInput Driver
[  9838.825]    ABI class: X.Org XInput driver, version 16.0
[  9838.825] (II) Using input driver 'evdev' for 'axp20-supplyer'
[  9838.826] (**) axp20-supplyer: always reports core events
[  9838.826] (**) evdev: axp20-supplyer: Device: "/dev/input/event0"
[  9838.826] (--) evdev: axp20-supplyer: Vendor 0x1 Product 0x1
[  9838.826] (--) evdev: axp20-supplyer: Found keys
[  9838.826] (II) evdev: axp20-supplyer: Configuring as keyboard
[  9838.826] (**) Option "config_info" "udev:/sys/devices/platform/sun4i-i2c.0/i2c-0/0-0034/axp20-supplyer.28/input/input0/event0"
[  9838.826] (II) XINPUT: Adding extended input device "axp20-supplyer" (type: KEYBOARD, id 6)
[  9838.826] (**) Option "xkb_rules" "evdev"
[  9838.826] (**) Option "xkb_model" "pc105"
[  9838.826] (**) Option "xkb_layout" "us"
[  9877.591] (II) MALI(0): Adding mode: 1280 x 720
[  9877.591] (II) MALI(0): Mode 1280 x 720 valid
[  9927.123] (II) MALI(0): Adding mode: 1280 x 720
[  9927.123] (II) MALI(0): Mode 1280 x 720 valid
[ 10049.055] (II) MALI(0): Adding mode: 1280 x 720
[ 10049.055] (II) MALI(0): Mode 1280 x 720 valid
[ 10050.267] (II) MALI(0): Adding mode: 1280 x 720
[ 10050.268] (II) MALI(0): Mode 1280 x 720 valid

but movies still seems slow :(

I have to clean it, but this is my xorg.conf, if someone look something strange/wrong
# X.Org X server configuration file for xfree86-video-mali

Section "ServerLayout"
    Identifier     "Layout0"
    Screen         "Mali Screen"
#     Screen     0    "Screen0"
#    InputDevice    "Keyboard0" "CoreKeyboard"
#    InputDevice    "Mouse0" "CorePointer"
#    Option "IgnoreABI"  "Yes"
EndSection


Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "HSP M19W2"
    HorizSync       30.0 - 110.0
    VertRefresh     50.0 - 160.0
    Option         "DPMS"
#    # HorizSync source: builtin, VertRefresh source: builtin
EndSection


Section "Device"
    Identifier "Mali FBDEV"
    Driver "mali"
    Option "fbdev" "/dev/fb0"
    Option "DRI2" "true"
    Option "DRI2" "true"
    Option "DRI2_PAGE_FLIP" "true"
    Option "DRI2_WAIT_VSYNC" "false"
EndSection

Section "Screen"
    Identifier "Mali Screen"
    Monitor        "Monitor0"
#        Identifier "Screen0"
    Device "Mali FBDEV"
#Device "Mali FBDEV"
    DefaultDepth 24
#    DefaultFbBpp 32
    SubSection "Display"
    Modes "1920x1080" "1600x1200" "1280x1024""1280x960" "1280x720" "1024x768" "720x480" "800x600" "640x480"
#     Virtual 1280 720
    Modes "1024x768"
#    Depth    32
    EndSubSection
EndSection

Section "ServerFlags"
   Option    "BlankTime"    "0"
   Option    "StandbyTime"    "0"
   Option    "SuspendTime"    "0"
   Option    "OffTime"    "0"
   Option    "AIGLX"        "false"
   Option    "DRI2"        "true"
   Option    "Xinerama"    "false"
EndSection

Section "DRI"
    Mode 0666
EndSection


Cheers
Tokka

Siarhei Siamashka

unread,
Apr 23, 2013, 8:29:23 AM4/23/13
to cubie...@googlegroups.com
On Sat, 20 Apr 2013 10:06:54 -0700 (PDT)
Tokka <mit...@gmail.com> wrote:

>
> New update lol
> Installed drivers as described in the guide, used old stable
> sunxi-mali, and it works.

That's good to know. But is not very surprising ;)

> The only issue is the pitfall "Missing X symbols", but i don't
> know how to solve it.

This means that somebody went wrong and you don't really have 3D
acceleration yet. The culprit is a broken libUMP.so library. Maybe
you have been tossing random libraries to random places in your
file system prior to trying to follow the guide?

If you have more than one libUMP.so in your system, then this could
cause troubles. The real one must be in /usr/lib/libUMP.so

You can run 'ldd' for the GLES test application to get the list
of linked libraries. If it lists any libUMP.so library which
is *not* /usr/lib/libUMP.so, kill it with fire.

You can only be sure that the Mali400 drivers are working if glmark-es2
benchmark application works and shows decent performance (at least
~50fps, but preferably in the ballpark of several hundreds).

> but movies still seems slow :(

Mali handles 3D graphics and fancy visual effects, but is useless for
movies decoding. If you are really interested in movies, then CedarX is
the right keyword for you.

Tokka

unread,
Apr 24, 2013, 10:39:34 AM4/24/13
to cubie...@googlegroups.com
Hi Siarehi,
unlucky i lost all my works, so i decided to give a try to linaro (cb-sdcard 1.1), but when run glmarks-es2 the result is
Error: eglInitialize() failed with error: 0x3003
Error: eglInitialize() failed with error: 0x3003
Error: Failed to get a native-renderable EGLConfig
Error: Error: Could not get a valid XVisualInfo!
Error: Error: Couldn't create X Window!
Error: main: Could not initialize canvas

and with es2_info it return
Error: eglInitialize() failed

It's really so hard to make this video card works?? :o

Thanks as always :)
Cheers
Tokka

Tokka

unread,
Apr 24, 2013, 11:56:33 AM4/24/13
to cubie...@googlegroups.com

Update
just doing some mod to xorg.conf, and now the result is:

sudo es2_info
EGL_VERSION = 1.4 Linux-r3p0-04rel0
EGL_VENDOR = ARM
EGL_EXTENSIONS = EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_reusable_sync EGL_KHR_fence_sync EGL_KHR_lock_surface EGL_KHR_lock_surface2
EGL_CLIENT_APIS = OpenGL_ES
GL_VERSION: OpenGL ES 2.0
GL_RENDERER: Mali-400 MP
GL_EXTENSIONS:
    GL_OES_texture_npot, GL_OES_compressed_ETC1_RGB8_texture,
    GL_OES_standard_derivatives, GL_OES_EGL_image, GL_OES_depth24,
    GL_ARM_rgba8, GL_ARM_mali_shader_binary, GL_OES_depth_texture,
    GL_OES_packed_depth_stencil, GL_EXT_texture_format_BGRA8888,
    GL_EXT_blend_minmax, GL_OES_EGL_image_external, GL_OES_EGL_sync,
    GL_EXT_multisampled_render_to_texture, GL_EXT_discard_framebuffer,
    GL_OES_get_program_binary, GL_EXT_shader_texture_lod


sudo glmark2-es2
=======================================================
    glmark2 2012.12
=======================================================
    OpenGL Information
    GL_VENDOR:     ARM
    GL_RENDERER:   Mali-400 MP
    GL_VERSION:    OpenGL ES 2.0
=======================================================
[build] use-vbo=false: FPS: 158 FrameTime: 6.329 ms
[build] use-vbo=true: FPS: 242 FrameTime: 4.132 ms
[texture] texture-filter=nearest: FPS: 169 FrameTime: 5.917 ms
[texture] texture-filter=linear: FPS: 164 FrameTime: 6.098 ms
[texture] texture-filter=mipmap: FPS: 114 FrameTime: 8.772 ms
[shading] shading=gouraud: FPS: 58 FrameTime: 17.241 ms
[shading] shading=blinn-phong-inf: FPS: 57 FrameTime: 17.544 ms
[shading] shading=phong: FPS: 57 FrameTime: 17.544 ms
[bump] bump-render=high-poly: FPS: 45 FrameTime: 22.222 ms
[bump] bump-render=normals: FPS: 62 FrameTime: 16.129 ms
[bump] bump-render=height: FPS: 64 FrameTime: 15.625 ms
=======================================================
                                  glmark2 Score: 108
=======================================================

This is a little bingo :D :D
now i have to find a good setup fo videos :/

maruprez

unread,
May 21, 2013, 3:53:45 PM5/21/13
to cubie...@googlegroups.com
Hi,

I've followed http://linux-sunxi.org/Binary_drivers instructions. I didn't found libdri2-dev on my repositories, so I followed

git clone https://github.com/robclark/libdri2
cd libdri2
./autogen.sh
make
make install
Finally I installed everything and seems to work everything but I get this error message from Xserver.0.log

[    28.086] (II) LoadModule: "fb"
[    28.087] (II) Loading /usr/lib/xorg/modules/libfb.so
[    28.103] (II) Module fb: vendor="X.Org Foundation"
[    28.103]     compiled for 1.12.4, module version = 1.0.0
[    28.104]     ABI class: X.Org ANSI C Emulation, version 0.4
[    28.104] (==) Depth 24 pixmap format is 32 bpp
[    28.207] (II) SUNXIFB(0): enabled G2D acceleration
[    28.208] (==) SUNXIFB(0): Backing store disabled
[    28.220] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    28.221] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    28.221] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    28.221] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    28.221] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    28.222] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    28.222] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    28.222] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    28.222] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    28.222] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    28.223] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    28.223] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    28.223] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument
[    28.223] (EE) SUNXIFB(0): FBIOPUTCMAP: Invalid argument

It is repeated many, many times.

I will appreciate your help

Thank You

Maruprez
Xorg.0.log

Stefan Boller

unread,
May 22, 2013, 4:27:54 AM5/22/13