• 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 23
hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy)
#61
Yep, optimizations are disabled. I get the same error when compiling ffmpeg without optimizations. They need to be enabled.
Reply
#62
Okay, i jumped into the folder and run

Code:
./configure --prefix=/root/test/xbmc/tools/depends/target/ffmpeg/ffmpeg-install --extra-version=kodi-2.8.6-Jarvis-16.0 --disable-devices --disable-ffplay --disable-ffmpeg --disable-sdl --disable-ffprobe --disable-ffserver --disable-doc --enable-gpl --enable-runtime-cpudetect --enable-postproc --enable-vaapi --enable-vdpau --enable-bzlib --enable-gnutls --enable-muxer=spdif --enable-muxer=adts --enable-muxer=asf --enable-muxer=ipod --enable-encoder=ac3 --enable-encoder=aac --enable-encoder=wmav2 --enable-protocol=http --enable-libvorbis --enable-muxer=ogg --enable-encoder=libvorbis --enable-nonfree --enable-pthreads --enable-zlib --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --enable-libdcadec --enable-optimizations

after that i run

Code:
make -j2

it compiles at the monent. In my Theorie, next step is to run a make install and after that, try compile kodi again?
Reply
#63
Nope, you don't need to configure and build ffmpeg manually. Just start from scratch and re-configure kodi with "--enable-optimizations" added.
Reply
#64
Tom, next Question Smile I Try to compile your libcedarjpeg. But i get this error

Code:
root@cubietruck:~/libcedarjpeg# make
CC main.c
main.c: In function ‘decode_jpeg’:
main.c:150:62: warning: unused parameter ‘width’ [-Wunused-parameter]
static void decode_jpeg(struct cedarJpeg_handle *handle, int width, int height)
                                                              ^
main.c:150:73: warning: unused parameter ‘height’ [-Wunused-parameter]
static void decode_jpeg(struct cedarJpeg_handle *handle, int width, int height)
                                                                         ^
main.c: At top level:
main.c:512:12: warning: ‘TestGLError’ defined but not used [-Wunused-function]
static int TestGLError(const char* pszLocation){
            ^
CC jpeg.c
LD jpeg-test
/usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../libcedar_access.so: undefined reference to `ump_phys_address_get'
collect2: error: ld returned 1 exit status
Makefile:28: recipe for target 'jpeg-test' failed
make: *** [jpeg-test] Error 1

Can you help me in this problem, too?
Reply
#65
Have you installed the patched libump (i.e. this one https://github.com/mosterta/libump/tree/mosterta/master) ?
Reply
#66
Sad 
(2016-03-09, 00:31)rellla Wrote: Hi guys,

for the ump error, see the fix in my repo https://github.com/rellla/libump/commits/ump
For the kernel you did right. You have to apply the 2 ump patches on top of your preferred kernel branch or use mosterta's branch and redo commit cf07273 in here https://github.com/mosterta/linux-sunxi/..._sunxi-3.4
I have neither compiled the other dependencies nor kodi itself. I just needed the ump thing fr another task.

Hope this helps you in the meantime.

Regards
rellla

I used Relllas libump, because the libump from Mosterta didn't work for me. Confused
Reply
#67
You need the patched one from mosterta, you'll have to find out how to compile it...
Reply
#68
Tom, the configuration and building ffmpg was ok. Now i started to compile kodi. But it fails here:

Code:
CPP     xbmc/addons/UISoundsResource.o
In file included from LinuxRendererGLES.h:36:0,
                 from RenderManager.cpp:47:
/root/test/xbmc/xbmc/cores/dvdplayer/DVDCodecs/Video/VDPAU.h:292:3: error: ‘EGLSyncKHR’ does not name a type
   EGLSyncKHR fence;
   ^
/root/test/xbmc/Makefile.include:97: recipe for target 'RenderManager.o' failed
make[1]: *** [RenderManager.o] Error 1
Makefile:420: recipe for target 'xbmc/cores/VideoRenderers/VideoRenderer.a' failed
make: *** [xbmc/cores/VideoRenderers/VideoRenderer.a] Error 2
make: *** Waiting for unfinished jobs....
CPP     xbmc/addons/Visualisation.o
CPP     xbmc/addons/Webinterface.o
AR      xbmc/addons/addons.a

Idea what's wrong? I think compiling kodi on cubietruck is a never ending story for me Sad
Reply
#69
(2016-03-13, 22:27)tom81 Wrote: Have you installed the patched libump (i.e. this one https://github.com/mosterta/libump/tree/mosterta/master) ?

I get it working now. The original libUMP.so was already in /usr/lib. So, i overrite this with my own libUmp.so Files from /usr/local/lib. After this i was able to build libcedarjpg. Make works, but not make install. I copied the generated libcedarJpeg.so to /usr/local/lib and /usr/lib and the cedarJpegLib.h to /usr/include/ and /usr/local/include. Hope, this was the right way. Huh
Reply
#70
You need different EGL headers. Get them from here: https://github.com/codesnake/aml-mali/tr...er/include (only the header files, the Mali libs from sunxi-mali are fine).
Quote:Idea what's wrong? I think compiling kodi on cubietruck is a never ending story for me

That's only the first part of the story. If you managed to compile and install it, the real fun begins... Big Grin
Reply
#71
Thanks Tom, this might be the important tip Smile

For those who running into the same problems as me, here is my step-by-step in which way i was installing the different parts to run kodi:

Code:
drwxr-xr-x  4 root root  4096 Mar 12 19:47 0.1_linux-sunxi_A20compiled
drwxr-xr-x  6 root root  4096 Mar 12 20:19 1.1_libump
drwxr-xr-x  6 root root  4096 Mar 13 22:28 1.2_libump-mosterta
drwxr-xr-x  4 root root  4096 Mar 12 20:30 2.1_libcedrus
drwxr-xr-x  3 root root  4096 Mar 12 20:45 2.2_libvdpau-sunxi
drwxr-xr-x  9 root root  4096 Mar 13 00:26 2.3_libvdpau-mosterta
drwxr-xr-x  7 root root  4096 Mar 12 21:32 3.1_libdri2
drwxr-xr-x  7 root root  4096 Mar 13 23:03 3.2_sunxi-mali
drwxr-xr-x  7 root root  4096 Mar 12 21:42 3.3_aml-mali-onlyheaders
drwxr-xr-x  3 root root  4096 Mar 13 22:29 3.4_libvdpau-sunxi-mosterta
drwxr-xr-x  3 root root  4096 Mar 13 22:52 3.5_libcedarjpeg-tom81
drwxr-xr-x  8 root root  4096 Mar 13 20:24 4.1_shairplay
drwxr-xr-x 16 root root  4096 Mar 13 23:25 5.1_xbmc-tom81

And here is my config to setup Kodi:

Code:
./configure --config-cache --prefix=/usr/local --disable-x11 --disable-sdl --disable-xrandr --disable-joystick --disable-gl --enable-vdpau --disable-vaapi --disable-openmax --enable-neon --enable-gles --disable-mysql --enable-airplay --enable-airtunes --enable-debug --enable-optimizations --with-ffmpeg=force --with-platform=allwinner-mali

I try this stuff on a Cubietruck with Armbian and replaced Kernel build from my own.
Reply
#72
Here is my way to compile everything what's described in first post including deb-packages, missing headers and additional changes.

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

PS. deb-packages for armhf
Reply
#73
Hi, i have compiled and installed Kodi without any errors. Wow Laugh But, now i try to start Kodi and get the following error:

Code:
root@cubietruck:/usr/include/EGL# kodi
libEGL warning: DRI2: xcb_connect failed
libEGL warning: DRI2: xcb_connect failed
ERROR: Unable to create GUI. Exiting

And this is my Crashlog:

Code:
20:47:18 T:3030601728   DEBUG: CKeyboardLayoutManager: keyboard layout "Bulgarian АБВ" successfully loaded
20:47:18 T:3030601728   DEBUG: CKeyboardLayoutManager: keyboard layout "Hungarian QWERTZ" successfully loaded
20:47:18 T:3030601728   DEBUG: UDisks: org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UDisks was not provided by any .service files
20:47:18 T:3030601728   DEBUG: DeviceKit.Disks: org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.DeviceKit.Disks was not provided by any .service files
20:47:18 T:3030601728   DEBUG: Selected UDev as storage provider
20:47:18 T:3030601728   ERROR: Sunxi-DISP: open /dev/disp failed. (13)
20:47:18 T:3030601728   ERROR: Sunxi-DISP: display mode -1 is unknown. Assume refreh rate 60Hz
20:47:18 T:3030601728   ERROR: Sunxi-DISP: DISP_CMD_LAYER_REQUEST failed.
20:47:18 T:3030601728   ERROR: Previous line repeats 2 times.
20:47:18 T:3030601728  NOTICE: InitWindowSystem: Using EGL Implementation: Sunxi DISP
20:47:18 T:3030601728   ERROR: EGL error in InitDisplay: 3001
20:47:18 T:3030601728   ERROR: InitWindowSystem: Could not create display
20:47:18 T:3030601728   FATAL: CApplication::Create: Unable to init windowing system
20:47:18 T:3030601728   DEBUG: ActiveAE DSP - destroyed
20:47:18 T:3030601728   DEBUG: PVRManager - destroyed


############### END LOG FILE ################

############ END Kodi CRASH LOG #############

Can someone help me on this?
Reply
#74
(2016-03-14, 21:51)eckonator Wrote:
Code:
libEGL warning: DRI2: xcb_connect failed
libEGL warning: DRI2: xcb_connect failed

This means that there are still Mesa libraries (libEGL) installed and in the way. Check that you only have libEGL belonging to the Mali driver on your system.


(2016-03-14, 21:51)eckonator Wrote:
Code:
20:47:18 T:3030601728   ERROR: Sunxi-DISP: open /dev/disp failed. (13)

Kodi says that it cannot access the disp interface it uses for display modesetting. Check that the following modules are loaded:

disp
ump
disp_ump
mali
sunxi_cedar_mod

Some of those might not exist if they're built into the kernel. /dev/disp, /dev/ump and /dev/mali should exist.

Edit: Remember to
Code:
export VDPAU_DRIVER=sunxi
or Kodi will look for the NVIDIA vdpau driver...
Reply
#75
I get the first problem away by doing the following;

Add environment variable VDPAU_DRIVER=sunxi in /etc/environment.

Add udev rules for change the permission on /dev/disp and /dev/cedar_dev in /etc/udev/rules.d/90-sunxi-disp-permission.rules :

Code:
KERNEL=="disp", MODE="0777", GROUP="video"
KERNEL=="cedar_dev", MODE="0777", GROUP="video"

Add your user to the video and audio groups :

Code:
sudo usermod -G sudo,video,audio kodi

Now, i hang up on the EGL Problem:
Code:
18:28:12 T:3028520960   DEBUG: UDisks: org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UDisks was not provided by any .service files
18:28:12 T:3028520960   DEBUG: DeviceKit.Disks: org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.DeviceKit.Disks was not provided by any .service files
18:28:12 T:3028520960   DEBUG: Selected UDev as storage provider
18:28:12 T:3028520960  NOTICE: InitWindowSystem: Using EGL Implementation: Sunxi DISP
18:28:12 T:3028520960   ERROR: EGL failed to obtain display
18:28:12 T:3028520960   ERROR: InitWindowSystem: Could not create display
18:28:12 T:3028520960   FATAL: CApplication::Create: Unable to init windowing system
18:28:12 T:3028520960   DEBUG: ActiveAE DSP - destroyed
18:28:12 T:3028520960   DEBUG: PVRManager - destroyed

I think it could be a reason that i have installed before libegl1-mesa-dev and some other mesa libs before. So i purged this packages but no success so far. Any ideas?
Reply
  • 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 23

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