Debian Stretch and Kodi Krypton on Rock64
#4
(10-06-2017, 11:38 AM)zarusz Wrote: @stuartiannaylor thanks for your response. Could you please elaborate more? 


Here is the error I am getting while kodi start:

Code:
rock64@rock64:~$ kodi-standalone
ERROR: Unable to create GUI. Exiting
*** Error in `/usr/lib/aarch64-linux-gnu/kodi/kodi.bin': free(): invalid pointer: 0x000000557a9233b0 ***
Aborted
Crash report available at /home/rock64/kodi_crashlog-20171006_172001.log
ERROR: Unable to create GUI. Exiting
*** Error in `/usr/lib/aarch64-linux-gnu/kodi/kodi.bin': free(): invalid pointer: 0x00000055c28682e0 ***
Aborted
Crash report available at /home/rock64/kodi_crashlog-20171006_172006.log
ERROR: Unable to create GUI. Exiting
*** Error in `/usr/lib/aarch64-linux-gnu/kodi/kodi.bin': free(): invalid pointer: 0x000000557ec19280 ***
Aborted
Crash report available at /home/rock64/kodi_crashlog-20171006_172007.log
/usr/bin/kodi --standalone  has exited in an unclean state 3 times in the last 10 seconds.
Something is probably wrong

Here is the crash log:
Code:
############## Kodi CRASH LOG ###############

################ SYSTEM INFO ################
Date: Fri Oct  6 17:20:01 UTC 2017
Kodi Options:
Arch: aarch64
Kernel: Linux 4.4.77-rockchip-ayufan-118 #1 SMP Thu Sep 14 21:59:24 UTC 2017
Release: Debian GNU/Linux 9 (stretch)
############## END SYSTEM INFO ##############

############### STACK TRACE #################
gdb not installed, can't get stack trace.
############# END STACK TRACE ###############

################# LOG FILE ##################

17:19:58.896 T:547665640016  NOTICE: special://profile/ is mapped to: special://masterprofile/
17:19:58.896 T:547665640016  NOTICE: -----------------------------------------------------------------------
17:19:58.896 T:547665640016  NOTICE: Starting Kodi from Debian (17.1 Debian package version: 2:17.1+dfsg1-3). Platform: Linux ARM 64-bit
17:19:58.896 T:547665640016  NOTICE: Using Release Kodi from Debian x64 build
17:19:58.896 T:547665640016  NOTICE: Kodi from Debian compiled from 2:17.1+dfsg1-3 by GCC 6.3.0 for Linux ARM 64-bit version 4.9.25 (264473)
17:19:58.896 T:547665640016  NOTICE: Running on Debian GNU/Linux 9 (stretch), kernel: Linux ARM 64-bit version 4.4.77-rockchip-ayufan-118
17:19:58.896 T:547665640016  NOTICE: FFmpeg version/source: 3.2.7-1~deb9u1
17:19:58.896 T:547665640016  NOTICE: 4 CPU cores available
17:19:58.896 T:547665640016  NOTICE: ARM Features: Neon disabled
17:19:58.896 T:547665640016  NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
17:19:58.896 T:547665640016  NOTICE: special://xbmcbin/ is mapped to: /usr/lib/aarch64-linux-gnu/kodi
17:19:58.896 T:547665640016  NOTICE: special://xbmcbinaddons/ is mapped to: /usr/lib/aarch64-linux-gnu/kodi/addons
17:19:58.896 T:547665640016  NOTICE: special://masterprofile/ is mapped to: /home/rock64/.kodi/userdata
17:19:58.896 T:547665640016  NOTICE: special://envhome/ is mapped to: /home/rock64
17:19:58.896 T:547665640016  NOTICE: special://home/ is mapped to: /home/rock64/.kodi
17:19:58.896 T:547665640016  NOTICE: special://temp/ is mapped to: /home/rock64/.kodi/temp
17:19:58.896 T:547665640016  NOTICE: special://logpath/ is mapped to: /home/rock64/.kodi/temp
17:19:58.896 T:547665640016  NOTICE: The executable running is: /usr/lib/aarch64-linux-gnu/kodi/kodi.bin
17:19:58.896 T:547665640016  NOTICE: Local hostname: rock64
17:19:58.897 T:547665640016  NOTICE: Log File is located: /home/rock64/.kodi/temp//kodi.log
17:19:58.897 T:547665640016  NOTICE: -----------------------------------------------------------------------
17:19:58.906 T:547665640016   ERROR: DBus: Error org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UPower was not provided by any .service files
17:19:59.058 T:547665640016  NOTICE: load settings...
17:19:59.105 T:547665640016   ERROR: PulseAudio: Failed to connect context
17:19:59.105 T:547665640016  NOTICE: PulseAudio might not be running. Context was not created.
17:19:59.155 T:547665640016  NOTICE: Found 1 Lists of Devices
17:19:59.155 T:547665640016  NOTICE: Enumerated ALSA devices:
17:19:59.155 T:547665640016  NOTICE:     Device 1
17:19:59.156 T:547665640016  NOTICE:         m_deviceName      : default
17:19:59.156 T:547665640016  NOTICE:         m_displayName     : Default (HDMI Analog)
17:19:59.156 T:547665640016  NOTICE:         m_displayNameExtra:
17:19:59.156 T:547665640016  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
17:19:59.156 T:547665640016  NOTICE:         m_channels        : FL,FR,BL,BR,FC,LFE,SL,SR
17:19:59.156 T:547665640016  NOTICE:         m_sampleRates     : 32000,44100,48000,88200,96000,176400,192000
17:19:59.156 T:547665640016  NOTICE:         m_dataFormats     : AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE
17:19:59.156 T:547665640016  NOTICE:         m_streamTypes     : No passthrough capabilities
17:19:59.158 T:547665640016   ERROR: CSettings: unable to load settings from special://masterprofile/guisettings.xml, creating new default settings
17:19:59.171 T:547665640016  NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml)
17:19:59.171 T:547665640016  NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)
17:19:59.171 T:547665640016  NOTICE: Default Video Player: VideoPlayer
17:19:59.171 T:547665640016  NOTICE: Default Audio Player: paplayer
17:19:59.171 T:547665640016  NOTICE: Disabled debug logging due to GUI setting. Level 0.
17:19:59.171 T:547665640016  NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
17:19:59.171 T:547665640016  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
17:19:59.172 T:547665640016  NOTICE: Loaded playercorefactory configuration
17:19:59.172 T:547665640016  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
17:19:59.172 T:547665640016  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
17:20:01.162 T:547665640016  NOTICE: ADDONS: Using repository repository.xbmc.org
17:20:01.211 T:547665640016   ERROR: X11 Error: No Display found
17:20:01.211 T:547665640016   FATAL: CApplication::Create: Unable to init windowing system


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

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

Looks like the graphics X11 subsystem needs to be installed? 
What package should I install for Rock64 Debian Stretch to leverage the hardware acceleration and/or 4K support?

You have to have X11 for kodi krypton which is going to change in Leia with I think a DRI Wayland implementation (dunno haven't read enough)

https://www.richud.com/wiki/Ubuntu_Minimal_KODI_Install (exchange the kodi user elements to rock64 and add rock64 to the video & audio groups)
That will give you a basic Kodi but been round this one several times.

What I have been doing is trying to get Xorg to use the Mali driver and provide GL ES 2 or FBDev with Glamor 2D acceleration.
Both are software libraries and actually it is possible, also to use the NEON to provide 2D acceleration of 100% gains and also keep that work off the CPU, noone seems interested.

If you follow the above URL you will end up with LLVMpipe virtual card using GL and you will also find the UI with this has all procs roughly about 100%.
To say it sucks is like saying Irma was just a bit of hot air, it sucks big style.

Isn't a chance you will get any better with Stretch as the Rockchip optimized xorg server isn't implemented.

In fact to my surprise if you do a apt-cache -showpgk [package] you will see we get the mainline ubuntu xserver in xenial.

The https://github.com/rockchip-linux/xserver that is Ayufans PPA doesn't have priority and libmali will just crash out with a seg fault.

There isn't an image with any form of graphics optimization or customization and consequently under Linux the Rock64 sucks and unless you can get round kernel compilation with the matching kernel and userspace drivers which I think are currently incorrect.
Patch the umplock patch to kernel and also compile the DRM & DRI...

Too much for me and strangely its missing from every image available, so graphically you have a SBC that like mine might be destined for the bin. 


Or wait for 18.04 next year some time with kernel 4.14 which has much already in the mainline. Maybe with 4.14 release we might see a restart on the distro images and rockchip specifics.


http://opensource.rock-chips.com/wiki_Graphics
http://rockchip.wikidot.com/graphics
https://github.com/rockchip-linux/xserver ( the xserver with 2d accel we are not getting)
https://github.com/rockchip-linux/libmali
https://github.com/rockchip-linux/libdrm-rockchip
https://github.com/rockchip-linux/gstrea...chip-extra
https://www.freedesktop.org/wiki/Software/Glamor/
http://opensource.rock-chips.com/images/...170711.pdf RK3328_Linux_Debian-SDK_V1.1
Development Guide

PS Stretch is like the Artful images and Ayufan is only providing for xenial even if ppa:xserver is not pulled in preference for the xenial version.
Then with xenial there are not backports for just 2 kodi (ppa) libs but gave up as everything is so totally disjointed.

What I wanted to do is startx with kodi and have a chromium option which would swap sessions, but all a bit pointless as we don't have an image that is distinctly capable.
The offerings by others are just hacks to knock down proc requirements to a bare min so it will run all via LLVMpipe on the CPU, which even after its ropey & slow.
Raybuntu might give you some handy hints maybe, but I took all this as a bad sign and ground to a halt.

Why we have all these images and not a complete installation of the Debian 9 / 4.4 kernel is confusing and also a shame we don't have any of the 2d acceleration to at least try.
Haven't tried it on Debian but have a look at http://lxqt.org/ as opposed to LXDE as it will prob be one of the first non-X desktops as QT doesn't need X11.
  Reply


Messages In This Thread
RE: Debian Stretch and Kodi Krypton on Rock64 - by stuartiannaylor - 10-06-2017, 07:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to update/compile Debian 12.5? Wizardknight 3 502 03-29-2024, 05:01 AM
Last Post: gedas07
  irradium (based on crux linux) Rock64 riscv64, aarch64 mara 0 172 03-24-2024, 01:07 PM
Last Post: mara
  Rock64 v2 - did not work song / audio sqw200zu 2 1,405 03-14-2024, 03:09 AM
Last Post: dmitrymyadzelets
  Rock64 won't boot dstallmo 0 356 12-27-2023, 10:34 AM
Last Post: dstallmo
  HDMI doesn't work on rock64 Noung1991 1 654 11-21-2023, 08:33 AM
Last Post: as365n4
  Rock64 + Klipper + KlipperScreen Instructions godzilla62 0 643 10-22-2023, 01:52 AM
Last Post: godzilla62
  Rock64 Debian 11 (Bullseye) install problem jbize 15 8,623 10-12-2023, 05:14 PM
Last Post: tpaul
  slarm64 (unofficial slackware) Rock64 RK3328 (aarch64) mara 133 192,106 10-09-2023, 03:31 AM
Last Post: mara
  arch rock64 does not boot nemnob 0 612 07-09-2023, 03:28 AM
Last Post: nemnob
  RXDP from Win10 to Armbian on Rock64 Transportsicherung 0 670 05-27-2023, 06:11 AM
Last Post: Transportsicherung

Forum Jump:


Users browsing this thread: 2 Guest(s)