Installing Vivante Drivers and configuring Xorg

Discuss Ubuntu related items.

Re: Installing Vivante Drivers and configuring Xorg

Postby Wig » Mon Feb 22, 2016 6:45 am

Hi !

About https://www.github.com/wandboard-org/linux
,this link is okay to use, you can change to "wandboard_imx_3.10.53_1.1.0_ga" branch

Another solution, you can refer this good company named Technexion, their github already support wandboard using 3.14 kernel.
link: https://github.com/TechNexion/linux/tre ... 2_1.1.0_ga

about the toolchain, you can download the latest release as below from linaro:
https://releases.linaro.org/components/ ... atest-5.1/
choose "gcc-5.1-2015.08-x86_64_arm-linux-gnueabihf.tar.xz" is good!

default wandboard defconfig is enough, by the way, I release the latest ubuntu-14.04 beta image for you, you can use this image to test!
https://dl.dropboxusercontent.com/u/702 ... 151217.zip
note: this download link has only 3 days alive.

thank you!
Wig
 
Posts: 80
Joined: Mon Apr 20, 2015 7:20 am

Re: Installing Vivante Drivers and configuring Xorg

Postby p0rc0_r0ss0 » Mon Feb 22, 2016 6:54 am

Wig wrote:About https://www.github.com/wandboard-org/linux
,this link is okay to use, you can change to "wandboard_imx_3.10.53_1.1.0_ga" branch

Another solution, you can refer this good company named Technexion, their github already support wandboard using 3.14 kernel.
link: https://github.com/TechNexion/linux/tre ... 2_1.1.0_ga

Am I getting it right, that I can make ONE kernel, for example 3.14.52, compile in all drivers as modules and use it when needed as I do in regular "desktop" or "server" Ubuntu?
As soon as we compile standard C code, and have imx-friendly compiler, drivers should have no trouble working with my iMX board, or it is possibility that drivers will fail?

Wig wrote:default wandboard defconfig is enough, by the way, I release the latest ubuntu-14.04 beta image for you, you can use this image to test!
https://dl.dropboxusercontent.com/u/702 ... 151217.zip
note: this download link has only 3 days alive.

Thanks.

Why can't I use 14.04 kernel for 15.04 distribution?
User avatar
p0rc0_r0ss0
 
Posts: 11
Joined: Fri Jun 05, 2015 5:06 am
Location: unknown

Re: Installing Vivante Drivers and configuring Xorg

Postby Wig » Mon Feb 22, 2016 10:29 am

1. it's no problem using default kernel defconfig, easy compile instruction as below:
export PATH="${PATH_UBOOT}/tools:${PATH}"
PATH_TOOLCHAIN="${PWD}/toolchain"
make ARCH=arm CROSS_COMPILE=${PATH_TOOLCHAIN}/bin/arm-linux-gnueabihf- zImage modules dtbs
make ARCH=arm CROSS_COMPILE=${PATH_TOOLCHAIN}/bin/arm-linux-gnueabihf- modules_install INSTALL_MOD_PATH=./modules

you have to modify the config if you want to use vivante gpu, or both ok no matter the version of desktop or server.

2. Why not? you just replace the u-boot, kernel and modules into the 15.04 image, it must be working without.... GPU and VPU :D

Thank you
Wig
 
Posts: 80
Joined: Mon Apr 20, 2015 7:20 am

Re: Installing Vivante Drivers and configuring Xorg

Postby p0rc0_r0ss0 » Thu Feb 25, 2016 6:41 pm

Today tried out new image you gave me.
Well... I don't like it.
1. Direct rendering is absent. (That's what glxinfo said)
UPD: As a matter of fact, dmesg | grep viv gives me [drm] Init... vivante (!) .... on minor 0
AND
there is /dev/mxc_vpu present.
AND (!!!!)
xrandr at last have list of resolutions more than one.
Not bad. I'll play with it a bit.
2. lshw gives me *-cpu:1 DISABLED.
// 3. I still can not see VPU. // Let's comment out this for a while :)

Any suggestions?

I propose we agree on common directory structure. Say we build everything in /usr/src/wb/
where:
kernel/ - is kernel source
toolchain/ - is gnueabi toolchain
etc.
This will make scripting much more productive.
User avatar
p0rc0_r0ss0
 
Posts: 11
Joined: Fri Jun 05, 2015 5:06 am
Location: unknown

Re: Installing Vivante Drivers and configuring Xorg

Postby Wig » Fri Feb 26, 2016 3:57 am

Hello p0rc0_r0ss0:

I don't know how do you use for the VPU, but in general for me, I just verify gst-launch and gplay using VPU, it means VPU pass :D , so if you use complex application, I need to survey how to use, or you can give me some comment.

So you still cannot compile the kernel source?? what's the error message?
In addition, maybe you would like to waiting for the official release of wandboard in May ( Ubuntu 16.04-LTS with GPU & VPU).

Thank you
Wig
 
Posts: 80
Joined: Mon Apr 20, 2015 7:20 am

Re: Installing Vivante Drivers and configuring Xorg

Postby p0rc0_r0ss0 » Fri Feb 26, 2016 5:06 pm

I've tuned system a bit, so:
1. If you want telemetry on my board, you should ask me first before installing logging.
2. I tried playing video with mplayer2, here's what I get:
Code: Select all
Load subtitles in .
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
[VO_XV] It seems there is no Xvideo support for your video card available.
[VO_XV] Run 'xvinfo' to verify its Xv support and read
[VO_XV] DOCS/HTML/en/video.html#xv!
[VO_XV] See 'mplayer -vo help' for other (non-xv) video out drivers.
[VO_XV] Try -vo x11.
libGL error: dlopen /usr/lib/arm-linux-gnueabihf/dri/vivante_dri.so failed (/usr/lib/arm-linux-gnueabihf/libGL.so.1.2: undefined symbol: gcoOS_GetWindowInfo)
libGL error: dlopen ${ORIGIN}/dri/vivante_dri.so failed (${ORIGIN}/dri/vivante_dri.so: cannot open shared object file: No such file or directory)
libGL error: dlopen /usr/lib/dri/vivante_dri.so failed (/usr/lib/arm-linux-gnueabihf/libGL.so.1.2: undefined symbol: gcoOS_GetWindowInfo)
libGL error: unable to load driver: vivante_dri.so
libGL error: failed to load driver: vivante
libGL error: dlopen /usr/lib/arm-linux-gnueabihf/dri/vivante_dri.so failed (/usr/lib/arm-linux-gnueabihf/libGL.so.1.2: undefined symbol: gcoOS_GetWindowInfo)
libGL error: dlopen ${ORIGIN}/dri/vivante_dri.so failed (${ORIGIN}/dri/vivante_dri.so: cannot open shared object file: No such file or directory)
libGL error: dlopen /usr/lib/dri/vivante_dri.so failed (/usr/lib/arm-linux-gnueabihf/libGL.so.1.2: undefined symbol: gcoOS_GetWindowInfo)
libGL error: unable to load driver: vivante_dri.so
libGL error: failed to load driver: vivante
Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [libavcodec]
Selected audio codec: AAC (Advanced Audio Coding) [libavcodec]
AUDIO: 44100 Hz, 2 ch, floatle, 64.7 kbit/2.29% (ratio: 8086->352800)
[AO_ALSA] Format floatle is not supported by hardware, trying default.
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
[AO_ALSA] Unable to find simple control 'Master',0.
Starting playback...
VIDEO:  854x356  24.000 fps  734.1 kbps (91.8 kB/s)
VO: [x11] 854x356 => 1280x720 Planar YV12  [fs]
[swscaler @ 0x76052988]No accelerated colorspace conversion found from yuv420p to bgra.
[swscaler @ 0x76052988]using unscaled yuv420p -> bgra special converter
A: 221.1 V: 221.0 A-V:  0.019 ct:  0.005   0/  0 14% 25%  4.7% 5 0
User avatar
p0rc0_r0ss0
 
Posts: 11
Joined: Fri Jun 05, 2015 5:06 am
Location: unknown

Re: Installing Vivante Drivers and configuring Xorg

Postby Wig » Mon Feb 29, 2016 2:42 am

It should not working using mplayer, Did you trying the gplay or gst-launch??
when I saw this log, you can get the vivante relative missing files from the other directory, and you can use the "find" command to get the correct path of the file, copy to the directory what you want, finally, try again.

thank you
Wig
 
Posts: 80
Joined: Mon Apr 20, 2015 7:20 am

Previous

Return to Software - Ubuntu

Who is online

Users browsing this forum: No registered users and 4 guests