![]() |
hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +--- Thread: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) (/showthread.php?tid=254202) |
RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - porlock - 2016-03-27 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 ![]() @Tom, Please help hotto solve this .. ![]() RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - tom81 - 2016-03-28 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. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - porlock - 2016-03-28 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: ![]() 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/03/14/build-a10a20-with-hardware-acceleration/ RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - twisted_tits - 2016-03-28 vdpau_msmpeg4.c is missing, could be someone so kind to share this file? RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - tom81 - 2016-03-28 (2016-03-28, 11:01)porlock Wrote: I install all the libs from Wrong EGL headers. Copy all the include files from https://github.com/codesnake/aml-mali/tree/master/include/EGL Also, if you are using mosterta's kernel, you need mali libs r3p0 and not r3p2 from sunxi-mali. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - porlock - 2016-03-28 I think i do it already ![]() 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 ../ RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - tom81 - 2016-03-28 Did you actually *install* the new EGL header files? I don't think so... RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - twisted_tits - 2016-03-29 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? RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - porlock - 2016-03-29 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 ![]() RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - porlock - 2016-03-29 It stuck on this .. i try many options ![]() 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 RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - tom81 - 2016-03-29 Try disabling CONFIG_JUMP_LABEL in your kernel config. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - porlock - 2016-03-29 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 Code: root@cubieez:/mnt/torrent/xbmc# lsmod Code: crw------- 1 root root 150, 0 Mar 29 05:34 /dev/cedar_dev RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - tom81 - 2016-03-29 Please read post #76. Do *not* use the libs from aml-mali, they won't work. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - porlock - 2016-03-29 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 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 RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - tom81 - 2016-03-29 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. |