• 1
  • 4
  • 5
  • 6(current)
  • 7
  • 8
  • 23
hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy)
#76
Please post the output of "ldd /usr/lib/kodi/kodi.bin". We should be able to see which EGL lib it links to.
Some other things to check:
- Mali kernel driver version *must* match the userspace library version. It depends on the kernel you are using. The one in the sunxi-3.4 kernel is (I think) r3p0. The kernel from my repository uses r3p2.
- There are two variants of the Mali lib: one for X11 environment, one for pure framebuffer env. Kodi needs the framebuffer version, check that the correct one is installed.
- You need to reserve enough memory for graphics stuff. I have "sunxi_fb_mem_reserve=128" in my kernel boot parameters.
Have you read http://linux-sunxi.org/Mali_binary_driver and http://linux-sunxi.org/Display ?
Reply
#77
Hi Tom,
here is my result:

Code:
root@cubietruck:~# ldd /usr/local/lib/kodi/kodi.bin
    libssh.so.4 => /usr/lib/arm-linux-gnueabihf/libssh.so.4 (0xb6ece000)
    libavahi-client.so.3 => /usr/lib/arm-linux-gnueabihf/libavahi-client.so.3 (0xb6eb1000)
    libavahi-common.so.3 => /usr/lib/arm-linux-gnueabihf/libavahi-common.so.3 (0xb6e98000)
    libmicrohttpd.so.10 => /usr/lib/arm-linux-gnueabihf/libmicrohttpd.so.10 (0xb6e79000)
    libjasper.so.1 => /usr/lib/arm-linux-gnueabihf/libjasper.so.1 (0xb6e2f000)
    libresolv.so.2 => /lib/arm-linux-gnueabihf/libresolv.so.2 (0xb6e0f000)
    libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb6dfb000)
    libbluetooth.so.3 => /usr/lib/arm-linux-gnueabihf/libbluetooth.so.3 (0xb6dd7000)
    libssl.so.1.0.0 => /usr/lib/arm-linux-gnueabihf/libssl.so.1.0.0 (0xb6d8f000)
    libcrypto.so.1.0.0 => /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0 (0xb6c6a000)
    libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0xb6c48000)
    liblzo2.so.2 => /lib/arm-linux-gnueabihf/liblzo2.so.2 (0xb6c21000)
    libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6bfe000)
    libtiff.so.5 => /usr/lib/arm-linux-gnueabihf/libtiff.so.5 (0xb6b98000)
    libjpeg.so.62 => /usr/lib/arm-linux-gnueabihf/libjpeg.so.62 (0xb6b4f000)
    libbz2.so.1.0 => /lib/arm-linux-gnueabihf/libbz2.so.1.0 (0xb6b33000)
    libGLESv2.so => /usr/lib/libGLESv2.so (0xb69ba000)
    libpython2.7.so.1.0 => /usr/lib/arm-linux-gnueabihf/libpython2.7.so.1.0 (0xb6738000)
    libtinyxml.so.2.6.2 => /usr/lib/arm-linux-gnueabihf/libtinyxml.so.2.6.2 (0xb6721000)
    libuuid.so.1 => /lib/arm-linux-gnueabihf/libuuid.so.1 (0xb670d000)
    libyajl.so.2 => /usr/lib/arm-linux-gnueabihf/libyajl.so.2 (0xb66f6000)
    libxml2.so.2 => /usr/lib/arm-linux-gnueabihf/libxml2.so.2 (0xb660a000)
    libxslt.so.1 => /usr/lib/arm-linux-gnueabihf/libxslt.so.1 (0xb65d0000)
    libfribidi.so.0 => /usr/lib/arm-linux-gnueabihf/libfribidi.so.0 (0xb65ab000)
    libsqlite3.so.0 => /usr/lib/arm-linux-gnueabihf/libsqlite3.so.0 (0xb6522000)
    libpng12.so.0 => /lib/arm-linux-gnueabihf/libpng12.so.0 (0xb64f9000)
    libpcre.so.3 => /lib/arm-linux-gnueabihf/libpcre.so.3 (0xb649c000)
    libpcrecpp.so.0 => /usr/lib/arm-linux-gnueabihf/libpcrecpp.so.0 (0xb6485000)
    libfreetype.so.6 => /usr/lib/arm-linux-gnueabihf/libfreetype.so.6 (0xb6410000)
    libtag.so.1 => /usr/lib/arm-linux-gnueabihf/libtag.so.1 (0xb637d000)
    libcdio.so.13 => /usr/lib/libcdio.so.13 (0xb6355000)
    libasound.so.2 => /usr/lib/arm-linux-gnueabihf/libasound.so.2 (0xb62b7000)
    libdbus-1.so.3 => /lib/arm-linux-gnueabihf/libdbus-1.so.3 (0xb627c000)
    libpulse.so.0 => /usr/lib/arm-linux-gnueabihf/libpulse.so.0 (0xb6239000)
    libsmbclient.so.0 => /usr/lib/arm-linux-gnueabihf/libsmbclient.so.0 (0xb6210000)
    libudev.so.1 => /lib/arm-linux-gnueabihf/libudev.so.1 (0xb61f6000)
    libcap.so.2 => /lib/arm-linux-gnueabihf/libcap.so.2 (0xb61e1000)
    libcedarJpeg.so => /usr/local/lib/libcedarJpeg.so (0xb61ce000)
    libva.so.1 => /usr/lib/arm-linux-gnueabihf/libva.so.1 (0xb61ae000)
    libva-x11.so.1 => not found
    libxcb.so.1 => /usr/lib/arm-linux-gnueabihf/libxcb.so.1 (0xb6189000)
    libxcb-xfixes.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-xfixes.so.0 (0xb6173000)
    libxcb-render.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-render.so.0 (0xb615c000)
    libxcb-shape.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-shape.so.0 (0xb6149000)
    libX11.so.6 => /usr/lib/arm-linux-gnueabihf/libX11.so.6 (0xb6054000)
    libgmp.so.10 => /usr/lib/arm-linux-gnueabihf/libgmp.so.10 (0xb5ff7000)
    libvorbisenc.so.2 => /usr/lib/arm-linux-gnueabihf/libvorbisenc.so.2 (0xb5f64000)
    libvorbis.so.0 => /usr/lib/arm-linux-gnueabihf/libvorbis.so.0 (0xb5f32000)
    libogg.so.0 => /usr/lib/arm-linux-gnueabihf/libogg.so.0 (0xb5f25000)
    libgnutls-deb0.so.28 => /usr/lib/arm-linux-gnueabihf/libgnutls-deb0.so.28 (0xb5e5f000)
    libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb5deb000)
    liblzma.so.5 => /lib/arm-linux-gnueabihf/liblzma.so.5 (0xb5dc2000)
    libp11-kit.so.0 => /usr/lib/arm-linux-gnueabihf/libp11-kit.so.0 (0xb5d89000)
    libhogweed.so.2 => /usr/lib/arm-linux-gnueabihf/libhogweed.so.2 (0xb5d54000)
    libnettle.so.4 => /usr/lib/arm-linux-gnueabihf/libnettle.so.4 (0xb5d1b000)
    libtasn1.so.6 => /usr/lib/arm-linux-gnueabihf/libtasn1.so.6 (0xb5cff000)
    libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0xb5c47000)
    libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb5c1e000)
    libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb5b2d000)
    librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb5b17000)
    libgssapi_krb5.so.2 => /usr/lib/arm-linux-gnueabihf/libgssapi_krb5.so.2 (0xb5add000)
    /lib/ld-linux-armhf.so.3 (0xb6f1e000)
    libgcrypt.so.20 => /lib/arm-linux-gnueabihf/libgcrypt.so.20 (0xb5a4d000)
    libjbig.so.0 => /usr/lib/arm-linux-gnueabihf/libjbig.so.0 (0xb5a32000)
    libUMP.so.3 => /usr/local/lib/libUMP.so.3 (0xb5a1d000)
    libdrm.so.2 => /usr/lib/arm-linux-gnueabihf/libdrm.so.2 (0xb5a04000)
    libdri2.so.1 => /usr/lib/libdri2.so.1 (0xb59f2000)
    libXfixes.so.3 => /usr/lib/arm-linux-gnueabihf/libXfixes.so.3 (0xb59dd000)
    libXext.so.6 => /usr/lib/arm-linux-gnueabihf/libXext.so.6 (0xb59c2000)
    libutil.so.1 => /lib/arm-linux-gnueabihf/libutil.so.1 (0xb59af000)
    libjson-c.so.2 => /lib/arm-linux-gnueabihf/libjson-c.so.2 (0xb599f000)
    libpulsecommon-5.0.so => /usr/lib/arm-linux-gnueabihf/pulseaudio/libpulsecommon-5.0.so (0xb5940000)
    libsamba-util.so.0 => /usr/lib/arm-linux-gnueabihf/libsamba-util.so.0 (0xb590e000)
    liblibsmb.so.0 => /usr/lib/arm-linux-gnueabihf/samba/liblibsmb.so.0 (0xb58bb000)
    libmsrpc3.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libmsrpc3.so.0 (0xb589c000)
    liblibcli_lsa3.so.0 => /usr/lib/arm-linux-gnueabihf/samba/liblibcli_lsa3.so.0 (0xb5889000)
    libsamba-security.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libsamba-security.so.0 (0xb5865000)
    liberrors.so.0 => /usr/lib/arm-linux-gnueabihf/samba/liberrors.so.0 (0xb57f5000)
    libsmbconf.so.0 => /usr/lib/arm-linux-gnueabihf/libsmbconf.so.0 (0xb5785000)
    libndr.so.0 => /usr/lib/arm-linux-gnueabihf/libndr.so.0 (0xb5767000)
    libcli_smb_common.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libcli_smb_common.so.0 (0xb5741000)
    libgse.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libgse.so.0 (0xb5714000)
    libutil_cmdline.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libutil_cmdline.so.0 (0xb5701000)
    libndr-standard.so.0 => /usr/lib/arm-linux-gnueabihf/libndr-standard.so.0 (0xb54ed000)
    libdcerpc-samba.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libdcerpc-samba.so.0 (0xb53dc000)
    libsmbregistry.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libsmbregistry.so.0 (0xb53b8000)
    libsecrets3.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libsecrets3.so.0 (0xb539f000)
    libtalloc.so.2 => /usr/lib/arm-linux-gnueabihf/libtalloc.so.2 (0xb5388000)
    libbsd.so.0 => /lib/arm-linux-gnueabihf/libbsd.so.0 (0xb536e000)
    libattr.so.1 => /lib/arm-linux-gnueabihf/libattr.so.1 (0xb535a000)
    libEGL.so.1 => /usr/lib/arm-linux-gnueabihf/libEGL.so.1 (0xb5330000)
    libcedar_access.so => /usr/lib/libcedar_access.so (0xb531d000)
    libXau.so.6 => /usr/lib/arm-linux-gnueabihf/libXau.so.6 (0xb5312000)
    libXdmcp.so.6 => /usr/lib/arm-linux-gnueabihf/libXdmcp.so.6 (0xb52ff000)
    libffi.so.6 => /usr/lib/arm-linux-gnueabihf/libffi.so.6 (0xb52e9000)
    libkrb5.so.3 => /usr/lib/arm-linux-gnueabihf/libkrb5.so.3 (0xb5252000)
    libk5crypto.so.3 => /usr/lib/arm-linux-gnueabihf/libk5crypto.so.3 (0xb521d000)
    libcom_err.so.2 => /lib/arm-linux-gnueabihf/libcom_err.so.2 (0xb520a000)
    libkrb5support.so.0 => /usr/lib/arm-linux-gnueabihf/libkrb5support.so.0 (0xb51f3000)
    libkeyutils.so.1 => /lib/arm-linux-gnueabihf/libkeyutils.so.1 (0xb51e0000)
    libgpg-error.so.0 => /lib/arm-linux-gnueabihf/libgpg-error.so.0 (0xb51c4000)
    libX11-xcb.so.1 => /usr/lib/arm-linux-gnueabihf/libX11-xcb.so.1 (0xb51b2000)
    libICE.so.6 => /usr/lib/arm-linux-gnueabihf/libICE.so.6 (0xb5190000)
    libSM.so.6 => /usr/lib/arm-linux-gnueabihf/libSM.so.6 (0xb517a000)
    libXtst.so.6 => /usr/lib/arm-linux-gnueabihf/libXtst.so.6 (0xb5166000)
    libsystemd.so.0 => /lib/arm-linux-gnueabihf/libsystemd.so.0 (0xb513e000)
    libwrap.so.0 => /lib/arm-linux-gnueabihf/libwrap.so.0 (0xb5130000)
    libsndfile.so.1 => /usr/lib/arm-linux-gnueabihf/libsndfile.so.1 (0xb50d6000)
    libasyncns.so.0 => /usr/lib/arm-linux-gnueabihf/libasyncns.so.0 (0xb50ca000)
    libtevent.so.0 => /usr/lib/arm-linux-gnueabihf/libtevent.so.0 (0xb50b9000)
    libwbclient.so.0 => /usr/lib/arm-linux-gnueabihf/libwbclient.so.0 (0xb50a0000)
    libsamba-credentials.so.0 => /usr/lib/arm-linux-gnueabihf/libsamba-credentials.so.0 (0xb5084000)
    libndr-samba.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libndr-samba.so.0 (0xb4fd1000)
    libcli_cldap.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libcli_cldap.so.0 (0xb4fbb000)
    libcliauth.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libcliauth.so.0 (0xb4f9e000)
    libkrb5samba.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libkrb5samba.so.0 (0xb4f86000)
    libsamba-sockets.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libsamba-sockets.so.0 (0xb4f67000)
    libgensec.so.0 => /usr/lib/arm-linux-gnueabihf/libgensec.so.0 (0xb4f3e000)
    libasn1util.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libasn1util.so.0 (0xb4f2a000)
    libsamba-hostconfig.so.0 => /usr/lib/arm-linux-gnueabihf/libsamba-hostconfig.so.0 (0xb4ef3000)
    libndr-nbt.so.0 => /usr/lib/arm-linux-gnueabihf/libndr-nbt.so.0 (0xb4ed4000)
    libtevent-util.so.0 => /usr/lib/arm-linux-gnueabihf/libtevent-util.so.0 (0xb4ec1000)
    libsmb_transport.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libsmb_transport.so.0 (0xb4ead000)
    libsamba3-util.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libsamba3-util.so.0 (0xb4e96000)
    libCHARSET3.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libCHARSET3.so.0 (0xb4e83000)
    libdcerpc-binding.so.0 => /usr/lib/arm-linux-gnueabihf/libdcerpc-binding.so.0 (0xb4e62000)
    libinterfaces.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libinterfaces.so.0 (0xb4e50000)
    libdbwrap.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libdbwrap.so.0 (0xb4e37000)
    libutil_tdb.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libutil_tdb.so.0 (0xb4e24000)
    libutil_reg.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libutil_reg.so.0 (0xb4e11000)
    libsmbd_shim.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libsmbd_shim.so.0 (0xb4dff000)
    libutil_setid.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libutil_setid.so.0 (0xb4ded000)
    libtdb-wrap.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libtdb-wrap.so.0 (0xb4ddb000)
    libserver-role.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libserver-role.so.0 (0xb4dc9000)
    libnsl.so.1 => /lib/arm-linux-gnueabihf/libnsl.so.1 (0xb4da9000)
    libtdb.so.1 => /usr/lib/arm-linux-gnueabihf/libtdb.so.1 (0xb4d8a000)
    liblber-2.4.so.2 => /usr/lib/arm-linux-gnueabihf/liblber-2.4.so.2 (0xb4d71000)
    libldap_r-2.4.so.2 => /usr/lib/arm-linux-gnueabihf/libldap_r-2.4.so.2 (0xb4d3e000)
    libaddns.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libaddns.so.0 (0xb4d25000)
    libauthkrb5.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libauthkrb5.so.0 (0xb4d02000)
    libcli-nbt.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libcli-nbt.so.0 (0xb4cea000)
    libkrb5.so.26 => /usr/lib/arm-linux-gnueabihf/libkrb5.so.26 (0xb4c88000)
    libgssapi.so.3 => /usr/lib/arm-linux-gnueabihf/libgssapi.so.3 (0xb4c53000)
    libxcb-dri2.so.0 => /usr/lib/arm-linux-gnueabihf/libxcb-dri2.so.0 (0xb4c3f000)
    libwayland-client.so.0 => /usr/lib/arm-linux-gnueabihf/libwayland-client.so.0 (0xb4c26000)
    libwayland-server.so.0 => /usr/lib/arm-linux-gnueabihf/libwayland-server.so.0 (0xb4c0c000)
    libgbm.so.1 => /usr/lib/arm-linux-gnueabihf/libgbm.so.1 (0xb4bf2000)
    libexpat.so.1 => /lib/arm-linux-gnueabihf/libexpat.so.1 (0xb4bca000)
    libXi.so.6 => /usr/lib/arm-linux-gnueabihf/libXi.so.6 (0xb4baf000)
    libFLAC.so.8 => /usr/lib/arm-linux-gnueabihf/libFLAC.so.8 (0xb4b7d000)
    libwinbind-client.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libwinbind-client.so.0 (0xb4b6a000)
    libsamdb-common.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libsamdb-common.so.0 (0xb4b45000)
    libldbsamba.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libldbsamba.so.0 (0xb4b18000)
    libldb.so.1 => /usr/lib/arm-linux-gnueabihf/libldb.so.1 (0xb4aeb000)
    libcli-ldap-common.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libcli-ldap-common.so.0 (0xb4ad6000)
    libasn1.so.8 => /usr/lib/arm-linux-gnueabihf/libasn1.so.8 (0xb4a66000)
    libsamba-modules.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libsamba-modules.so.0 (0xb4a53000)
    libsamdb.so.0 => /usr/lib/arm-linux-gnueabihf/libsamdb.so.0 (0xb4a32000)
    libutil_ntdb.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libutil_ntdb.so.0 (0xb4a1f000)
    libntdb.so.1 => /usr/lib/arm-linux-gnueabihf/libntdb.so.1 (0xb4a07000)
    libsasl2.so.2 => /usr/lib/arm-linux-gnueabihf/libsasl2.so.2 (0xb49e6000)
    libauth_sam_reply.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libauth_sam_reply.so.0 (0xb49d2000)
    libndr-krb5pac.so.0 => /usr/lib/arm-linux-gnueabihf/libndr-krb5pac.so.0 (0xb49bb000)
    libwind.so.0 => /usr/lib/arm-linux-gnueabihf/libwind.so.0 (0xb4983000)
    libheimbase.so.1 => /usr/lib/arm-linux-gnueabihf/libheimbase.so.1 (0xb496a000)
    libhx509.so.5 => /usr/lib/arm-linux-gnueabihf/libhx509.so.5 (0xb492c000)
    libhcrypto.so.4 => /usr/lib/arm-linux-gnueabihf/libhcrypto.so.4 (0xb48f8000)
    libroken.so.18 => /usr/lib/arm-linux-gnueabihf/libroken.so.18 (0xb48db000)
    libcrypt.so.1 => /lib/arm-linux-gnueabihf/libcrypt.so.1 (0xb489c000)
    libheimntlm.so.0 => /usr/lib/arm-linux-gnueabihf/libheimntlm.so.0 (0xb4886000)
    libglapi.so.0 => /usr/lib/arm-linux-gnueabihf/libglapi.so.0 (0xb4848000)
    libflag_mapping.so.0 => /usr/lib/arm-linux-gnueabihf/samba/libflag_mapping.so.0 (0xb4836000)

I spend so much time in this project but only mistakes in every step Undecided Is it possible, that you give me a download link from your working kodi build for a 4 or 8 GB SD card. That will be great Nod My girlfriend would be very grateful than I come away from the computer. Rofl
Reply
#78
I see a lot of X11 and wayland libs, but no libMali.so reference.
Which means that you still have Mesa libs installed. Kodi won't run until you have found and uninstalled all of them.
Sorry, I don't have a "working kodi build" as an image a.t.m., I'm using Arch Linux ARM on my Cubietruck for all development purposes - which means that it's quite a mess...
I am currently working on an OpenELEC build but this will take more time, I think.
Reply
#79
Hi Tom, a OpenELEC Image for Cubietruck will be so nice. Can't wait for it Big Grin

I think i have to start from zero and do all steps again without installing grap like wayland or x11 stuff. My target is to build a clean Kodi image based on Armbian. If i get this working, i'd like to make a image from it and post it here for download.

I have build my own kernel. It is located here: https://git.t3cube.de/cubietruck-kodi/li...ree/master
Can you tell if my kernel has the right mali version? I have no idea how to find out the version from it.
Reply
#80
Your kernel has r3p0 (API_VERSION 14).
Reply
#81
This is my way to build Kodi with mentioned hardware acceleration

https://twistedlinux.wordpress.com/2016/...allwinner/
Reply
#82
I started from beginning with a fresh SD Card and the HowTo from twisted_tits. But i want to use tom81s kodi build because it's the newer jarvis version. I cant understand why everthing goes so easy on your machines. I have big problems with compiling libcedarjpeg and kodi itself. Do you use libcedarjpeg, tom81 or twisted_tits?

Libcedarjpeg won't compile because of wrong EGL header files. But i did everything exactly like the howto before with aml headers. My question is, should i copy the folders EGL, GLES, GLES2 and so on completly from aml-mali/include to /use/include or only the single file eglplatform.h and copy/rename it to /usr/include/EGL/eglplatform_fb.h? The second way comes from twisted_tits.

For building kodi i did a "apt-get build-dep xbmc". But after that i got back x11 and mesa stuff which i won't have on my machine. After that i tried again to create the config for building kodi but it fails on so much points and its so frustrating to me.

I thinging about to buy a rp3 and install OpenElec on it and everything is fine. But my ambition says the hardware from cubietruck is more than enough, so save this money and get it working on it. Twisted_tits, have you maybe a ready-to-use image with this kodi build for me? I think i am too much linux noop to handle this right...
Reply
#83
I'm using libcedarjpeg, but there were some issues when I tried to build it. Can't remember what exactly, though... I only know that I fixed it...
I copied all the EGL header stuff to /usr/include, and copied eglplatform_fb.h to eglplatform.h. (kodi should use eglplatform_fb.h, maybe I should fix that).
Reply
#84
Hi all,

I have prepared a first OpenELEC test build based on vdpau_sunxi and mosterta's patches. You can find it here: https://www.dropbox.com/s/rv9kdo7trwn980...mg.gz?dl=0

---> PLEASE READ BEFORE USE <---
This is all *very* pre-alpha and unfinished stuff. Be prepared for bugs and crashes. Do not expect to get a fully working OpenELEC image for sunxi devices here. It should only be used for testing purposes!
This image is for Cubietruck *only*!
Not for BananaPi!
Also not for OrangePi!
I do no own any other devices than a Cubietruck, so I will not provide support for other sunxi-based boards. Please do not ask for it. Thank you.

If you want to help improving the sunxi support in kodi, please test video playback with some of your files and report back if something strange happens. It would be helpful if you could provide the unshortened kodi.log file with debug logging enabled (found under /storage/.kodi/temp/kodi.log). Samples of video files where playback is broken are also welcome.

How to use the image:

- Download the file and decompress it.
- Write the unpacked file OpenELEC-A20.Cubietruck.arm-6.0.3-A20.img to a blank micro sd card of at least 4GB size
- Insert it into the cubietruck, connect a keyboard and power up the system.
- Startup can take some time, OpenELEC will first resize the file systems on the sd card and reboot one more time.
- If everything works, you should get the main kodi screen
- *Important*: For accelerated video playback, go to Settings->Video, select user level expert, go to acceleration and disable the VDPAU video mixer (kodi will crash if you don't)
- Configure OpenELEC/Kodi to your needs, Wifi and Ethernet should work, you may need to select the correct audio output for your environment.

Bugs and limitations:

- Screen resolution is currently hardcoded to 1280x720p60. If you know how to deal with u-boot boot.scr you can change it if you like.
- Some MPEG4 video files are broken. It depends on how the file was encoded and is probably a hardware limitation (not sure...)
- WMV3/VC-1 is unsupported
- H.265 is unsupported (hardware limitation)
- Seeking/skipping in videos is only semi-working, you will get a green screen and some delay, before playback continues
- Deinterlacing is broken, it has to be disabled

The OpenELEC build tree will be published when I have cleaned it up a bit.
I checked the image before uploading it, I hope that I didn't mess anything up...

Have fun
tom
Reply
#85
Tom this is awesome, thank you so much!
Installation on a SD Card and Configuration takes 5min - wow! If i look back to my buggy trys which doesn't work this is a big help for me Smile First Tests with some videos from my nas is: 720p recordings working perfectly and absolutly stable. 1080i recordings won't work: Sometimes i get a grey or Green screen and kodi restart itself. Maybe i have to spend more RAM to graphic chip? In boot.src is 128mb set i seen. How can i change the boot.src? From my build, i know to edit the boot.cmd and compile it to boot.src. But in your Build there is no boot.cmd. I thing to edit the boot.src directly is no good idea. I want to Test kodi with 1080p, but there is nothing set for resolution in boot.src. Is it stored in script.bin? Can i install bin2fex on openelec or have i to grap this file to my debian vm and do the changes there?

Tom, again - thanks for your time and work!!
Reply
#86
Glad that it works for you. If 1080i (interlaced) does not work, try disabling deinterlacing completely, I think it's broken.

Here's the content of boot.cmd
Code:
setenv bootm_boot_mode sec
setenv bootargs console=ttyS0,115200 boot=/dev/mmcblk0p1 disk=/dev/mmcblk0p2 consoleblank=0 noram sunxi_fb_mem_reserve=128 sunxi_g2d_mem_reserve=32 sunxi_ve_mem_reserve=0 disp.screen0_output_mode=1280x720p60
fatload mmc 0 0x43000000 script.bin
fatload mmc 0 0x42000000 KERNEL
bootm 0x42000000

The screen resolution is set here, but I don't know what happens at 1080p. Videos in 1080p work fine for me.
Reply
#87
(2016-03-20, 22:02)tom81 Wrote: Glad that it works for you. If 1080i (interlaced) does not work, try disabling deinterlacing completely, I think it's broken.

Oh my god, that did the trick Rofl Now my 1080i stuff is running fine on my cubie Laugh I never believed, that this day coming to my. Smile
I tried to create the boot.cmd file, but /flash is a readonly filesystem. How can i prepare this to test the 1920x1080p60 resolution?
Reply
#88
You can generate boot.scr on another system and copy it to the first partition on the sd card manually. I just tried it, it works, but performance at 1920x1080 display resolution for 1080p playback is bad.
Reply
#89
Okay, whe you say it's bad than i think it's better to leave the system as it is.
Very cool, next step is getting my old white apple remote to work with kodi.
Reply
#90
I try to compile mosterta kernel and it stops on

CONFIG_FB_SUNXI=y

scripts/Makefile.build:307: recipe for target 'drivers/video/sunxi/disp/dev_disp.o' failed
make[3]: *** [drivers/video/sunxi/disp/dev_disp.o] Error 1
scripts/Makefile.build:443: recipe for target 'drivers/video/sunxi/disp' failed
make[2]: *** [drivers/video/sunxi/disp] Error 2
scripts/Makefile.build:443: recipe for target 'drivers/video' failed
make[1]: *** [drivers/video] Error 2
Makefile:947: recipe for target 'drivers' failed
make: *** [drivers] Error 2

pls help :-( shoudl i disable this option ? what is preffered .config for cubieboard2 on this kernel ?

in other hand howtow apply a mosterta patches on standard sunix kernel ?
Reply
  • 1
  • 4
  • 5
  • 6(current)
  • 7
  • 8
  • 23

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