Vivante GC2000 drivers?

4,088 views
Skip to first unread message

Michele Adduci

unread,
Jul 31, 2013, 8:25:19 AM7/31/13
to wand...@googlegroups.com
Hi

i am trying to figuring out the problem of not working graphics on Wandboard Quad with latest Ubuntu (13.04).
Until now i've installed X11 and Xfce environment, but it cannot start, while i can only use terminal by pressing Ctrl+Alt+F7.

The Xorg.log shows the following message:

[    18.485] 
X.Org X Server 1.13.3
Release Date: 2013-03-07
[    18.485] X Protocol Version 11, Revision 0
[    18.485] Build Operating System: Linux 3.2.0-1426-omap4 armv7l Ubuntu
[    18.485] Current Operating System: Linux arm 3.0.35-wand6.3 #2 SMP PREEMPT Thu Jul 25 18:10:14 CEST 2013 armv7l
[    18.486] Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24
[    18.486] Build Date: 17 April 2013  10:48:48PM
[    18.486] xorg-server 2:1.13.3-0ubuntu6 (For technical support please see http://www.ubuntu.com/support
[    18.486] Current version of pixman: 0.28.2
[    18.486] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[    18.486] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    18.487] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Jan  1 00:00:18 1970
[    18.498] (==) Using config file: "/etc/X11/xorg.conf"
[    18.498] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    18.557] (==) ServerLayout "Default Layout"
[    18.557] (**) |-->Screen "Default Screen" (0)
[    18.558] (**) |   |-->Monitor "Configured Monitor"
[    18.559] (**) |   |-->Device "i.MX Accelerated Framebuffer Device"
[    18.559] (==) Automatically adding devices
[    18.559] (==) Automatically enabling devices
[    18.559] (==) Automatically adding GPU devices
[    18.589] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    18.589] Entry deleted from font path.
[    18.589] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[    18.589] Entry deleted from font path.
[    18.589] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[    18.590] Entry deleted from font path.
[    18.615] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[    18.616] Entry deleted from font path.
[    18.616] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[    18.616] Entry deleted from font path.
[    18.616] (WW) The directory "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" does not exist.
[    18.616] Entry deleted from font path.
[    18.616] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/Type1,
built-ins
[    18.616] (==) ModulePath set to "/usr/lib/arm-linux-gnueabihf/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules"
[    18.616] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[    18.616] (II) Loader magic: 0x401caed8
[    18.616] (II) Module ABI versions:
[    18.616] X.Org ANSI C Emulation: 0.4
[    18.616] X.Org Video Driver: 13.1
[    18.616] X.Org XInput driver : 18.0
[    18.616] X.Org Server Extension : 7.0
[    18.617] (II) config/udev: Adding drm device (/dev/dri/card0)
[    18.617] (WW) Could not extract busid from syspath /sys/devices/virtual/drm/card0, attempting drm probe
[    18.618] (II) Open APM successful
[    18.618] Initializing built-in extension Generic Event Extension
[    18.618] Initializing built-in extension SHAPE
[    18.618] Initializing built-in extension MIT-SHM
[    18.618] Initializing built-in extension XInputExtension
[    18.618] Initializing built-in extension XTEST
[    18.619] Initializing built-in extension BIG-REQUESTS
[    18.619] Initializing built-in extension SYNC
[    18.619] Initializing built-in extension XKEYBOARD
[    18.619] Initializing built-in extension XC-MISC
[    18.619] Initializing built-in extension SECURITY
[    18.619] Initializing built-in extension XINERAMA
[    18.619] Initializing built-in extension XFIXES
[    18.619] Initializing built-in extension RENDER
[    18.619] Initializing built-in extension RANDR
[    18.619] Initializing built-in extension COMPOSITE
[    18.619] Initializing built-in extension DAMAGE
[    18.619] Initializing built-in extension MIT-SCREEN-SAVER
[    18.620] Initializing built-in extension DOUBLE-BUFFER
[    18.620] Initializing built-in extension RECORD
[    18.620] Initializing built-in extension DPMS
[    18.620] Initializing built-in extension X-Resource
[    18.620] Initializing built-in extension XVideo
[    18.620] Initializing built-in extension XVideo-MotionCompensation
[    18.620] Initializing built-in extension SELinux
[    18.620] Initializing built-in extension XFree86-VidModeExtension
[    18.620] Initializing built-in extension XFree86-DGA
[    18.620] Initializing built-in extension XFree86-DRI
[    18.620] Initializing built-in extension DRI2
[    18.620] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[    18.621] (II) LoadModule: "dbe"
[    18.621] (II) Module "dbe" already built-in
[    18.621] (II) LoadModule: "extmod"
[    18.621] (II) Module "extmod" already built-in
[    18.621] (II) LoadModule: "glx"
[    18.649] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    18.689] (II) Module glx: vendor="X.Org Foundation"
[    18.689] compiled for 1.13.3, module version = 1.0.0
[    18.689] ABI class: X.Org Server Extension, version 7.0
[    18.689] (==) AIGLX enabled
[    18.689] Loading extension GLX
[    18.689] (II) LoadModule: "dri"
[    18.689] (II) Module "dri" already built-in
[    18.689] (II) LoadModule: "vivante"
[    18.706] (WW) Warning, couldn't open module vivante
[    18.706] (II) UnloadModule: "vivante"
[    18.706] (II) Unloading vivante
[    18.706] (EE) Failed to load module "vivante" (module does not exist, 0)
[    18.707] (==) Matched modesetting as autoconfigured driver 0
[    18.707] (==) Matched fbdev as autoconfigured driver 1
[    18.707] (==) Assigned the driver to the xf86ConfigLayout
[    18.707] (II) LoadModule: "modesetting"
[    18.708] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    18.725] (II) Module modesetting: vendor="X.Org Foundation"
[    18.725] compiled for 1.13.3, module version = 0.7.0
[    18.725] Module class: X.Org Video Driver
[    18.725] ABI class: X.Org Video Driver, version 13.1
[    18.725] (II) LoadModule: "fbdev"
[    18.727] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[    18.738] (II) Module fbdev: vendor="X.Org Foundation"
[    18.738] compiled for 1.12.99.902, module version = 0.4.3
[    18.738] Module class: X.Org Video Driver
[    18.738] ABI class: X.Org Video Driver, version 13.0
[    18.739] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    18.739] (II) FBDEV: driver for framebuffer: fbdev
[    18.739] (++) using VT number 7

[    18.780] (II) modesetting(0): using drv /dev/dri/card0
[    18.780] (WW) Falling back to old probe method for fbdev
[    18.780] (II) Loading sub module "fbdevhw"
[    18.781] (II) LoadModule: "fbdevhw"
[    18.781] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[    18.788] (II) Module fbdevhw: vendor="X.Org Foundation"
[    18.788] compiled for 1.13.3, module version = 0.0.2
[    18.788] ABI class: X.Org Video Driver, version 13.1
[    18.788] (II) modesetting(0): Creating default Display subsection in Screen section
"Default Screen" for depth/fbbpp 24/32
[    18.788] (**) modesetting(0): Depth 24, (--) framebuffer bpp 32
[    18.789] (==) modesetting(0): RGB weight 888
[    18.789] (==) modesetting(0): Default visual is TrueColor
[    18.789] (II) modesetting(0): ShadowFB: preferred YES, enabled YES
[    18.789] (EE) modesetting(0): KMS doesn't support dumb interface
[    18.789] (EE) modesetting(0): KMS setup failed
[    18.789] (II) UnloadModule: "modesetting"
[    18.789] (EE) Screen(s) found, but none have a usable configuration.
[    18.789] 
Fatal server error:
[    18.789] no screens found
[    18.790] (EE) 
Please consult the The X.Org Foundation support 
 for help. 
[    18.790] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    18.790] (EE) 
[    18.916] Server terminated with error (1). Closing log file.

which clearly confirms the missing of Vivante drivers. 
I tried to compile the xserver-xorg-video-imx-viv-3.0.35-4.0.0 drivers contained in Ubuntu 12.04 image but many errors occur during the code compilation, due old libraries versions. 
I couldn't find any suitable new version of that package, maybe any of you has found it? 
Best

Michele

Michał Ściubidło

unread,
Jul 31, 2013, 8:34:19 AM7/31/13
to wand...@googlegroups.com

which clearly confirms the missing of Vivante drivers. 
I tried to compile the xserver-xorg-video-imx-viv-3.0.35-4.0.0 drivers contained in Ubuntu 12.04 image but many errors occur during the code compilation, due old libraries versions. 
I couldn't find any suitable new version of that package, maybe any of you has found it? 
Best

https://community.freescale.com/message/328267#328267 you can try hardfloat drivers from here. I don't know if they work. Maybe you need only libs. Or libs+kernel... If you manage to install them can you pm me or write to group about what is needed?

Michele Adduci

unread,
Jul 31, 2013, 8:36:47 AM7/31/13
to wand...@googlegroups.com
the main point is that i can run glxgears as root on Ubuntu 13.04 and it works (i use ssh -X for X11 forwarding) and it is shown fine in my system at ~40 FPS, so the GPU itself works fine, but i cannot force Xorg to load the GPU module / driver.


--
You received this message because you are subscribed to a topic in the Google Groups "Wandboard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wandboard/6sEHFj6PMds/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wandboard+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Michele Adduci
Computer Engineer

Michele Adduci

unread,
Jul 31, 2013, 8:59:44 AM7/31/13
to wand...@googlegroups.com
ok i have fixed it.
Seems like xorg.conf was a little bit messy.

Now LXDE is loaded successfully on Ubuntu 13.04. I'll manage to create an image and upload it within the next days.
I have also installed mesa-utils package 

Here my xorg.conf file:


 ######################################
Section "Module"
        Load            "dbe"
        Load            "extmod"
        Load            "freetype"
        Load            "glx"
        Load            "dri"
EndSection

Section "Device"
        Identifier      "i.MX Accelerated Framebuffer Device"
        Driver          "vivante"
        Option          "fbdev"         "/dev/fb0"
        Option          "vivante_fbdev" "/dev/fb0"
        Option          "HWcursor"      "false"
EndSection

Section "Monitor"
        Identifier      "Configured Monitor"
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Monitor         "Configured Monitor"
        Device          "i.MX Accelerated Framebuffer Device"
        DefaultDepth    24
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen          "Default Screen"
EndSection

Section "DRI"
        Mode 0666
EndSection

Martin Wild

unread,
Jul 31, 2013, 10:25:42 AM7/31/13
to wand...@googlegroups.com
Hey, this are great news!!

Could you post what how you did this, so i can add acceleration to my debian image and update the download?
Or maybe add a tutorial directly to the new wandboard wiki, i am sure there are more people trying to get this done.

Thanks in advance, martin

Michele Adduci

unread,
Jul 31, 2013, 10:31:31 AM7/31/13
to wand...@googlegroups.com
Hi
i still didn't test the 3D acceleration inside the desktop environment but Xorg is booting (from VNC i can access to X environment).
Basically i've followed Robert Nelson's tutorial and i was playing around with xserver-xorg vivante package i've found on Ubuntu 12.04 image.
After installing mesa driver and doing the symbolic links for libraries, i have removed  the .Xauthority file contained in /home/ubuntu/ folder and then installed xfce4.
From what i see, wlan0 is disabled (and i don't know how to enable it - tried with sudo ifconfig wlan0 up but it gave me error).
I will create in next days a full tutorial to reach X environment and i will test it with 3D acceleration further.

I don't know if 40FPS with glxgears are fine or Wandboard Quad could do more

Best

Michele



--
You received this message because you are subscribed to a topic in the Google Groups "Wandboard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wandboard/6sEHFj6PMds/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wandboard+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


jas

unread,
Jul 31, 2013, 11:31:45 AM7/31/13
to wand...@googlegroups.com
At 40 fps glxgears its not using h/w acceleration, it should around 400-600 at 720p. I spent consider time getting this working for the xubuntu build on the GK802. The current vivante X11 drivers seem to be compatible up to Xorg 11.4, therefore you won't be able to get h/w acceleration unless the linux distro you are deploying supports Xorg 11.4 or below.  This is explains why it works for ubuntu 11.10 & 12.04 (armel). Ubuntu 13.04 has moved to xorg 13.

Otavio Salvador

unread,
Jul 31, 2013, 12:24:19 PM7/31/13
to Wandboard Discussion Group
On Wed, Jul 31, 2013 at 12:31 PM, jas <mtx5...@gmail.com> wrote:
> At 40 fps glxgears its not using h/w acceleration, it should around 400-600
> at 720p. I spent consider time getting this working for the xubuntu build on
> the GK802. The current vivante X11 drivers seem to be compatible up to Xorg
> 11.4, therefore you won't be able to get h/w acceleration unless the linux
> distro you are deploying supports Xorg 11.4 or below. This is explains why
> it works for ubuntu 11.10 & 12.04 (armel). Ubuntu 13.04 has moved to xorg
> 13.

The 3.5.7 GPU code works with Xorg 1.14.

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750

Michele Adduci

unread,
Jul 31, 2013, 3:21:54 PM7/31/13
to wand...@googlegroups.com
so basically compiling the kernel 3.5.7 it should work?


--
You received this message because you are subscribed to a topic in the Google Groups "Wandboard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wandboard/6sEHFj6PMds/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wandboard+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Otavio Salvador

unread,
Jul 31, 2013, 3:27:05 PM7/31/13
to Wandboard Discussion Group
On Wed, Jul 31, 2013 at 4:21 PM, Michele Adduci
<adduci....@gmail.com> wrote:
> so basically compiling the kernel 3.5.7 it should work?

No; 3.5.7 does not support Wandboard or GK802. Both need to be add there.

Michele Adduci

unread,
Aug 1, 2013, 2:26:15 AM8/1/13
to wand...@googlegroups.com

And what about Etna_viv project? (Opensource vivante drivers for GC processors)
Did anybody give that a try?

Michele Adduci

unread,
Dec 3, 2013, 4:34:16 PM12/3/13
to wand...@googlegroups.com
Is there any new with kernel 3.10/11/12 and Vivante graphic drivers?
Was anybody able to gain hw acceleration under newer versions of Ubuntu/Debian?

Best,

Michele

Robert Nelson

unread,
Dec 3, 2013, 4:42:27 PM12/3/13
to wand...@googlegroups.com
On Tue, Dec 3, 2013 at 3:34 PM, Michele Adduci <adduci....@gmail.com> wrote:
> Is there any new with kernel 3.10/11/12 and Vivante graphic drivers?
> Was anybody able to gain hw acceleration under newer versions of Ubuntu/Debian?

I was kinda hoping Freescale would at-least base there acceleration
drivers on imx_drm stack with the new v3.10.x based bsp, but i haven't
seen anything yet on that..

Regards,

--
Robert Nelson
http://www.rcn-ee.com/

Kevin Krüger

unread,
Dec 14, 2013, 6:20:54 AM12/14/13
to wand...@googlegroups.com
Hello,
I did not try it out yet I just wanted to inform you that the etna_viv driver made some progress. There now is experimental support for the gc2000 chip. I will check it out as soon as I have some time to spare. I think this are great news for the Wandboard community. The gc880 was well supported, and soon the quad users might get rid of the blobs as well.

more intel here:
https://blog.visucore.com/

Regards Kevin

Michele Adduci

unread,
Dec 15, 2013, 12:23:25 PM12/15/13
to wand...@googlegroups.com
Hi Kevin

that sounds great! At the moment, I'm setting a new Ubuntu image, built on a harddrive, thanks to the sata boot hack and i will check this new version of etna_viv.
I hope it can be soon a good replacement for the closed Vivante drivers.
Best

Michele

Michele Adduci

unread,
Dec 30, 2013, 2:27:37 AM12/30/13
to wand...@googlegroups.com
Hi

I've tried etna_viv drivers but they are framebuffer only ones and without DRI support, so X11 cannot work.
So far, in these days I've done some trials with all the resources available online and the result is terrible.
A demo image in armhf with X11 and 3D  acceleration is impossible to be built, just because the single libraries are simply full of errors in C code.
All the xserver-xorg-imx packages (from 3.0.35 to 3.5.7 - 3.10.9 one isn´t available) don't compile because of errors. I've installed all the packages required by the configuration step, including the add of the path to imx6 sdk, which has to be set in "viv-config.sh" script.
So far, until now I have a kernel 3.12.6 coming from Robert Nelson's repository with Vivante module enabled and loaded (I've ported the driver from official 3.10.9 alpha kernel provided by Freescale), but the xorg video module cannot be built.

If anybody has hints or suggestion, please reply here or contact me.

Kind regards and happy new year

Michele

Michele Adduci

unread,
Jan 8, 2014, 3:36:06 AM1/8/14
to wand...@googlegroups.com
For those interested, I've created a patch for the mainline kernel 3.13 taken from Robert Nelson's repository.
It adds the GPU driver coming from kernel 3.10.9-alpha of Freescale. So far, I've compiled the kernel and it works fine.
Hoping it can help. 

Haakon Stende

unread,
Jan 8, 2014, 3:54:26 AM1/8/14
to wand...@googlegroups.com
There are some working rootfs made by jas_hacks. He has compiled in gpu support on both debian and ubuntu
http://jas-hacks.blogspot.no/

hste


2014/1/8 Michele Adduci <adduci....@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Wandboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wandboard+...@googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages