• 1
  • 5
  • 6
  • 7(current)
  • 8
  • 9
  • 23
hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy)
#91
I solve the kernel problems, but i stuck on missing vdpau_msmpeg4.o, i try to apply a patches from Tom but no luck is output many errors Sad

@Tom,

Please help hotto solve this .. Sad
Reply
#92
Which patch did you use and what are the error messages you get?
Also try using https://github.com/tnmeyer/xbmc/tree/Jarvis_vdpau_gles , that one should be buildable.
Reply
#93
Hi Tom

I try to build Jarvis from Your repor but stuck on this message

CPP xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.o
In file included from DVDVideoCodecFFmpeg.cpp:51:0:
VDPAU.h:292:3: error: ‘EGLSyncKHR’ does not name a type
EGLSyncKHR fence;
^
DVDVideoCodecFFmpeg.cpp: In member function ‘virtual int CDVDVideoCodecFFmpeg:Big Grinecode(uint8_t*, int, double, double)’:
DVDVideoCodecFFmpeg.cpp:521:48: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘int64_t {aka long long int}’ [-Wformat=]
m_pFrame->pkt_pts, m_pFrame->pkt_dts);
^
DVDVideoCodecFFmpeg.cpp:521:48: warning: format ‘%d’ expects argument of type ‘int’, but argument 7 has type ‘int64_t {aka long long int}’ [-Wformat=]
/mnt/torrent/test_kod/xbmc/Makefile.include:97: recipe for target 'DVDVideoCodecFFmpeg.o' failed
make[1]: *** [DVDVideoCodecFFmpeg.o] Error 1
Makefile:420: recipe for target 'xbmc/cores/dvdplayer/DVDCodecs/Video/Video.a' failed
make: *** [xbmc/cores/dvdplayer/DVDCodecs/Video/Video.a] Error 2


I install all the libs from

https://twistedlinux.wordpress.com/2016/...eleration/
Reply
#94
vdpau_msmpeg4.c is missing, could be someone so kind to share this file?
Reply
#95
(2016-03-28, 11:01)porlock Wrote: I install all the libs from

https://twistedlinux.wordpress.com/2016/...eleration/

Wrong EGL headers. Copy all the include files from https://github.com/codesnake/aml-mali/tr...nclude/EGL
Also, if you are using mosterta's kernel, you need mali libs r3p0 and not r3p2 from sunxi-mali.
Reply
#96
I think i do it already Sad when i do the instructions from twisted_tits.
I skip to build .deb (that is all checkinstalls) and on build sunxi-mail i use
make config VERSION=r3p0 EGL_TYPE=framebuffer


5. build sunxi-mail

git clone https://github.com/linux-sunxi/sunxi-mali.git
cd sunxi-mali
git submodule init
git submodule update
make VERSION="r3p2-01rel1"
checkinstall -D --install=no --pkgname=sunxi-mali-libs --pkgversion=3.2.1.1 --pkgrelease="mosterta" [email protected] --strip=no --stripso=no --addso=yes
make install
mv *.deb ../
cd ..

6. build original sunxi

git clone https://github.com/linux-sunxi/libvdpau-sunxi libvdpau-sunxi-original
cd libvdpau-sunxi-original
make
checkinstall -D --install=no --pkgname=libvdpau-sunxi-original --pkgversion=1.0.0 --pkgrelease="mosterta" [email protected] --strip=no --stripso=no --addso=yes
make install
mv *.deb ../
cd ..

7. fetch missing headers

git clone https://github.com/codesnake/aml-mali
cp aml-mali/include/EGL/eglplatform.h aml-mali/include/EGL/eglplatform_fb.h

8. build libvdpau-sunxi

git clone https://github.com/mosterta/libvdpau-sunxi
cd libvdpau-sunxi

nano ve.c – comment valgrind/ammt_reqs.h
nano opengl_nv.c – replace mem.mem_id with mem
nano Makefile – change LIBS_VDPAU_SUNXI = -L /usr/local/lib/vdpau -lvdpau_sunxi



make CFLAGS="-I/opt/sunxi-mali/include -I/opt/aml-mali/include "
checkinstall -D --install=no --pkgname=libvdpau-sunxi --pkgversion=1.0.0 --pkgrelease="mosterta" [email protected] --strip=no --stripso=no --addso=yes
make install
mv *.deb ../
Reply
#97
Did you actually *install* the new EGL header files? I don't think so...
Reply
#98
tom81, let's collaborate and write proper instructions to build things up, headers isn't installed, but included in make CFLAGS, what's wrong here?
Reply
#99
twisted_tits:
This headers must to be used for building Kodi not only for libvdpau, so it is needed do put them in system patch tree.

I successfully build Kodi, now im fighting with a krenel, it was compiled successfully but stuck on booting Undecided i'm searching what can cause that.
Reply
It stuck on this .. i try many options Sad

https://goo.gl/photos/ga6pSK8XfL4yJ1zCA

Tom do You have any idea ?

Complete boot sequence

https://youtu.be/ux9n4Ur5xYM

I You pause on right moment there is a message that

"Unable to handle kernel paging request at virtual address c046c290"
Internal error: Oops: 80F [#1] Preempt SMP ARM
Reply
Try disabling CONFIG_JUMP_LABEL in your kernel config.
Reply
tom81:
Thx with Your help i was able to compile kernel and Kodi, i'm grateful.

But i suppose my battle with this :-) is just begin.

I get this errors after trying to run kodi binary from root user. , mayby i shoudl compile and install all libs from https://github.com/codesnake/aml-mali not only headers.


Code:
05:34:07 T:3031220224   DEBUG: UDisks: org.freedesktop.DBus.Error.Spawn.ExecFailed - Failed to execute program org.freedesktop.UDisks: Success
05:34:07 T:3031220224   DEBUG: DeviceKit.Disks: org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.DeviceKit.Disks was not provide by any .service files
05:34:07 T:3031220224   DEBUG: Selected UDev as storage provider
05:34:07 T:3031220224   ERROR: Sunxi-DISP: display mode 255 is unknown. Assume refreh rate 60Hz
05:34:07 T:3031220224  NOTICE: InitWindowSystem: Using EGL Implementation: Sunxi DISP
05:34:08 T:3031220224   ERROR: EGL error in InitDisplay: 3001
05:34:08 T:3031220224   ERROR: InitWindowSystem: Could not create display
05:34:08 T:3031220224   FATAL: CApplication::Create: Unable to init windowing system
05:34:08 T:3031220224   DEBUG: ActiveAE DSP - destroyed
05:34:08 T:3031220224   DEBUG: PVRManager - destroyed
05:34:08 T:2943349664   DEBUG: Failed to connect to LIRC. Giving up.

Code:
root@cubieez:/mnt/torrent/xbmc# lsmod
Module                  Size  Used by
sunxi_cedar_mod        10492  0
disp_ump                 842  0
tun                    14116  2
nfsd                  222120  13
exportfs                3560  1 nfsd
lcd                     3778  0
mali                  114287  0
ump                    61879  2 mali,disp_ump

root@cubieez:/mnt/torrent/xbmc# set|grep VDPAU_DRIVER
VDPAU_DRIVER=sunxi

Code:
crw------- 1 root root 150, 0 Mar 29 05:34 /dev/cedar_dev
crw------- 1 root root 251, 0 Jan  1  2010 /dev/disp
crw-rw---T 1 root video 244, 0 Mar 29 05:17 /dev/ump
crw-rw---T 1 root video 243, 0 Mar 29 05:17 /dev/mali
Reply
Please read post #76. Do *not* use the libs from aml-mali, they won't work.
Reply
Hi Tom
I notice that libEGL.so in ldd /usr/local/lib/kodi/kodi.bin leads to /usr/lib/arm-linux-gnueabihf
and it should go to /usr/lib/:

Code:
lrwxrwxrwx  1 root root      11 Mar 29 06:07 libEGL.so -> libEGL.so.1
lrwxrwxrwx  1 root root      13 Mar 29 06:07 libEGL.so.1 -> libEGL.so.1.4
lrwxrwxrwx  1 root root      10 Mar 29 06:07 libEGL.so.1.4 -> libMali.so

So i uninstall all system EGL libs packages, atfher that i run ldconfig and then there is no libEGL.so on ldd /usr/local/lib/kodi/kodi.bin, and that is a litle strange.. should i recompile kodi ?

Kodi it self It finally runs, but there is no sound and movies looks like slideshows :-(

please find ldd file:
http://porlock.waw.pl/public/ldd.txt
and
kodi.log
http://porlock.waw.pl/public/kodi.log
Reply
libEGL.so.* and libGLES*.so.* are all symlinks to libMali.so, at least for r3p0 driver version. Your Kodi build is loading just fine so EGL works.
Sound output is on the analog jack by default, you can change it in system settings.

Video decoding doesn't seem to work because VDPAU cannot initialize the driver. Check if libvdpau_sunxi.so is installed properly (in /usr/lib/vdpau). Check dmesg and console output for error messages. Memory issues show up in kernel logs, driver issues with VDPAU show up on console output as soon as you start playing a video. Try playing a SD or 720p video file. Press the button for codec information in Kodi ("I" or "O", I think), if it says "ff-h264-vdpau" somewhere, then hw video decoding is working.
Reply
  • 1
  • 5
  • 6
  • 7(current)
  • 8
  • 9
  • 23

Logout Mark Read Team Forum Stats Members Help
hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy)2