Kodi 18 - LibreELEC Testbuilds for RaspberryPi (Kodi 18.0)

  Thread Rating:
  • 7 Vote(s) - 4.86 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Aux_ Offline
Senior Member
Posts: 190
Joined: May 2016
Reputation: 1
Location: Germany / BW
Post: #2971
(2017-08-18 07:14)polo_joe Wrote:  Since a couple of builds the lan leds don't turn off anymore when shutting down the pi. Is this now normal behavior or is there an issue with shut down?
Could someone else test shut down when lan cable is plugged in?

Aha, that is related to my problem
The shutdown and reboot does not work with the shutdown button in Kodi I have now testet.
I can see it because the fan continues to run (I have myself what was tinkered).
On SSH (shutdown -h now) does also not work, it seems the RPi go not completly down because hangs up?

@polo_joe, yes the LAN leds goes not off.

EDIT:

I can now find that shutdown with RPi2 works but RPi3 does not work. I had tested the build versions of #0815 - #0817

[ 2x RPi2, 2x RPi3 ]
[ LE Testbuilds for RaspberryPi (Kodi 18.0) ]
[ Marantz NR1506 ]
[ Panasonic TX-50EXW784 ]
[ NAS @ OMV 3.0.8x (Erasmus) on Banana Pi ]
[ ODROID C2 + wrxtasy's LE 8.0 ]
(This post was last modified: 2017-08-18 20:16 by Aux_.)
find quote
Milhouse Offline
Team-Kodi Member
Posts: 13,232
Joined: Jan 2011
Reputation: 671
Post: #2972
New LibreELEC.tv Leia build #0818: RPi / RPi2
(Supercedes previous build)

Code:
# uname -a
Linux rpi512 4.12.7 #1 Fri Aug 18 21:04:39 BST 2017 armv6l GNU/Linux

# vcgencmd version
Aug  8 2017 12:05:45
Copyright (c) 2012 Broadcom
version 196063438d7bb0769861c86f948ae653727adb7e (clean) (release)

# lsb_release
LibreELEC (Milhouse): devel-20170818210326-#0818-g32406a7 [Build #0818]

# Kodi version
(18.0-ALPHA1 Git:e6b0c83). Platform: Linux ARM 32-bit

Based on tip of LibreELEC.tv master (32406a74, changelog) and tip of XBMC master (e6b0c83d, changelog) with the following modifications:
  • Includes newclock5 patches
  • Excludes the LibreELEC linux-01-RPi_support patch in favour of sourcing these and possibly more recent patches directly from kernel branch rpi-4.12.y
  • Includes latest bcm2835-driver master (b9a8e6a5, ahead +4)
  • Includes latest kodi-platform master (36fb4937)
  • Includes latest libcec master (8adc786b, ahead +26)
  • Includes latest libnfs master (df94ae93, ahead +56)
  • Includes latest p8-platform master (a822e196)
  • Includes latest addons: inputstream.adaptive (3a9bda1a, +41), inputstream.rtmp (e094fa38, +1), peripheral.joystick (cc14287c, +3), pvr.argustv (310737e2), pvr.demo (f07d898c, +1), pvr.dvblink (0b66c640, +4), pvr.dvbviewer (a1e4bb0c, +5), pvr.filmon (1c9d2ebe), pvr.hdhomerun (b89c2be4, +9), pvr.hts (a1de6329, +1), pvr.iptvsimple (260434e4, +5), pvr.mediaportal.tvserver (d7a9acdb), pvr.mythtv (a17a3a4f, +1), pvr.nextpvr (03a3b714), pvr.njoy (79e8e653), pvr.octonet (a77cf111), pvr.pctv (00b76689), pvr.stalker (df492d27, +1), pvr.vbox (44f3d04e), pvr.vdr.vnsi (07172ed0, +1), pvr.vuplus (921b14f6, +5), pvr.wmc (1d655540)
  • Include [env] compare: linux: update to linux-4.12.7
  • Include [env] patch: nss/nspr: include in main image [rfc][gcc7]
  • Include [env] patch: rev hack for kodi
  • Include [env] patch: tvheadend42: fixup ffmpeg patch
  • Include [env] patch: buildsystem: update to gcc (to 7.2), glibc and binutils
  • Include [env] patch: Add experimental splash video for RPi
  • Include [env] patch: Bump included addon versions to prevent online updates
  • Include [env] patch: HACK: Disable multiple PVR addons during migration. Always enable inputstream.* and os.*
  • Include [env] patch: pvr addons: disable broken addons
  • Include [env] patch: Add kodi binary addons (pvr, adsp, inputstream, vfs, other)
  • Include [env] PR:1773: init: make break after behaviour really break after
  • Include [env] PR:1776: Don't cause system to hang on halt/reboot when net-booting
  • Include [env] PR:1821: use 7zip for addon.zip creation
  • Include [env] PR:1835: add support for optional kernel modules in image and from addons
  • Include [env] PR:1862: busybox: revert dd fsync change which makes no sense
  • Include [env] PR:1896: config/functions: fix bash-4.4 issue, and empty 2nd param behaviour
  • Include [pkg] patch: Pre-release RPi0W/RPi3 Bluetooth firmware (details) (brcmfmac_sdio-firmware-rpi)
  • Include [pkg] patch: Pre-release RPi0W/RPi3 WiFi firmware (details) (kernel-firmware)
  • Include [pkg] patch: Pre-release RPi0W/RPi3 WiFi firmware (details) (wlan-firmware)
  • Include [pkg] patch: skin.estuary: reduce system info font size (kodi)
  • Include [pkg] PR:12311: FIX: ensure real filename from videodb in playlists
Build Highlights:
  1. Use 7zip to create addon archives (should make them a little smaller)
  2. Add audio description stream identification - still needs add-on changes (ie. Netflix addon - hopefully this weekend)
Build Details:
  1. LibreELEC.tv:
    • add xmlstarlet to toolchain depends (PR:1883, 3 commits, 8 files changed)
  2. XBMC:
    • VideoPlayer - PVR: allow GetTimes for recordings (PR:12686, 1 commit, 1 file changed)
    • [utils] fix component log functions introduced at 06bbead (PR:12685, 2 commits, 2 files changed)
    • Add EFlags to inputstream API interface (PR:12690, 1 commit, 3 files changed)
  3. inputstream.adaptive:
    • [HLS] break segment refresh loop rep based (b405f991)
    • [HLS] use swaplist for periodic fetched segments (a50742d8)
    • request manifest updates directly before segment change / implement mpd::impaired for audio (3a9bda1a)
  4. newclock5:
    • Updated commits in this build:
      • Revert "[omxplayer] Add ability to dump out audio/video data for later debugging" (2827621f => 656c0cbf)
  5. Additional commits/pull requests/changes not yet merged upstream:
    • Added: [env] PR:1821: use 7zip for addon.zip creation

Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
find quote
Milhouse Offline
Team-Kodi Member
Posts: 13,232
Joined: Jan 2011
Reputation: 671
Post: #2973
(2017-08-18 12:45)Aux_ Wrote:  
(2017-08-18 07:14)polo_joe Wrote:  Since a couple of builds the lan leds don't turn off anymore when shutting down the pi. Is this now normal behavior or is there an issue with shut down?
Could someone else test shut down when lan cable is plugged in?

Aha, that is related to my problem
The shutdown and reboot does not work with the shutdown button in Kodi I have now testet.
I can see it because the fan continues to run (I have myself what was tinkered).
On SSH (shutdown -h now) does also not work, it seems the RPi go not completly down because hangs up?

@polo_joe, yes the LAN leds goes not off.

EDIT:

I can now find that shutdown with RPi2 works but RPi3 does not work. I had tested the build versions of #0815 - #0817

I'm testing build #0818 with an RPi3 but have not been able to reproduce any of the reported problems - reboot and shutdown are both working for me, and the LAN LEDs will eventually go off when executing "shutdown -h now" (or poweroff, or selecting shutdown from the Kodi power menu).

On a hunch I enabled the CrazyCat drivers, but reboot shutdown (and the LEDs) still behave normally, so that's not it.

Are you able to test with a "clean" system, maybe a new image on a fresh SD card? It may be something specific to your setup.

Which version is the first that does not shutdown, is it #0816?

And which version is the first that does not turn off the LEDS, is this also #0816?

Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
find quote
Aux_ Offline
Senior Member
Posts: 190
Joined: May 2016
Reputation: 1
Location: Germany / BW
Post: #2974
@Milhouse

I found this problem.
I refer to DVB-C over Fritz box (SAT> IP) and additionally I have DVB-S receiver the "DVBSky S960 USB Box". Last time I did not use the S960 and had pulled out the power plug,
only the USB plug was in the raspberry Pi stuck.
I had 10 different builds tried but without success, I thought there was something wrong. I plugged the power plug into the S960 and everything works again.
Already funny, something should not give. Is this a bug?

[ 2x RPi2, 2x RPi3 ]
[ LE Testbuilds for RaspberryPi (Kodi 18.0) ]
[ Marantz NR1506 ]
[ Panasonic TX-50EXW784 ]
[ NAS @ OMV 3.0.8x (Erasmus) on Banana Pi ]
[ ODROID C2 + wrxtasy's LE 8.0 ]
find quote
HiassofT Offline
Senior Member
Posts: 122
Joined: Mar 2014
Reputation: 6
Location: Salzburg, Austria
Post: #2975
(2017-08-19 02:49)Aux_ Wrote:  I found this problem.
I refer to DVB-C over Fritz box (SAT> IP) and additionally I have DVB-S receiver the "DVBSky S960 USB Box". Last time I did not use the S960 and had pulled out the power plug,
only the USB plug was in the raspberry Pi stuck.
I had 10 different builds tried but without success, I thought there was something wrong. I plugged the power plug into the S960 and everything works again.
Already funny, something should not give. Is this a bug?

Could you run these commands and post the output, once with the S960 USB unplugged, and once with S960 USB plugged in but not powered:
Code:
lsusb | paste
dmesg | paste
journalctl -a | paste

so long,

Hias
find quote
Aux_ Offline
Senior Member
Posts: 190
Joined: May 2016
Reputation: 1
Location: Germany / BW
Post: #2976
@HiassofT here the logs

Plugged in:

lsusb | paste -> http://sprunge.us/OXVc
dmesg | paste -> http://sprunge.us/dRGb
journalctl -a | paste -> http://sprunge.us/CONb

Unplugged:

lsusb | paste -> http://sprunge.us/ITPJ
dmesg | paste -> http://sprunge.us/EJPJ
journalctl -a | paste -> http://sprunge.us/CCZC

[ 2x RPi2, 2x RPi3 ]
[ LE Testbuilds for RaspberryPi (Kodi 18.0) ]
[ Marantz NR1506 ]
[ Panasonic TX-50EXW784 ]
[ NAS @ OMV 3.0.8x (Erasmus) on Banana Pi ]
[ ODROID C2 + wrxtasy's LE 8.0 ]
find quote
HiassofT Offline
Senior Member
Posts: 122
Joined: Mar 2014
Reputation: 6
Location: Salzburg, Austria
Post: #2977
@Aux_ the logs are odd, dRGb and EJPJ are identical.

Please grab the logs after doing a reboot, once booting with power and once booting without.

Another thing that would be interesting is if it worked in older builds. If yes, please find out the first build where it stopped working.

so long,

Hias
find quote
Aux_ Offline
Senior Member
Posts: 190
Joined: May 2016
Reputation: 1
Location: Germany / BW
Post: #2978
(2017-08-19 10:57)HiassofT Wrote:  @Aux_ the logs are odd, dRGb and EJPJ are identical.

Please grab the logs after doing a reboot, once booting with power and once booting without.

Another thing that would be interesting is if it worked in older builds. If yes, please find out the first build where it stopped working.

so long,

Hias

After reboot plugged in:

lsusb | paste -> http://sprunge.us/GUHE
dmesg | paste -> http://sprunge.us/eAhE
journalctl -a | paste -> http://sprunge.us/OYQJ

After reboot unplugged: After pulling off the power plug the first reboot had worked normally but at the second reboot raspberry has stayed again.

lsusb | paste -> http://sprunge.us/UgFL
dmesg | paste -> http://sprunge.us/FMEN
journalctl -a | paste -> http://sprunge.us/abDD

With the older builds I had tried until May I believe to # 0516 and the problem was always there.
Could perhaps someone else test whether the issue is there?

[ 2x RPi2, 2x RPi3 ]
[ LE Testbuilds for RaspberryPi (Kodi 18.0) ]
[ Marantz NR1506 ]
[ Panasonic TX-50EXW784 ]
[ NAS @ OMV 3.0.8x (Erasmus) on Banana Pi ]
[ ODROID C2 + wrxtasy's LE 8.0 ]
(This post was last modified: 2017-08-19 13:12 by Aux_.)
find quote
HiassofT Offline
Senior Member
Posts: 122
Joined: Mar 2014
Reputation: 6
Location: Salzburg, Austria
Post: #2979
(2017-08-19 12:20)Aux_ Wrote:  After reboot unplugged: After pulling off the power plug the first reboot had worked normally but at the second reboot raspberry has stayed again.

lsusb | paste -> http://sprunge.us/UgFL
dmesg | paste -> http://sprunge.us/FMEN
journalctl -a | paste -> http://sprunge.us/abDD

With the older builds I had tried until May I believe to # 0516 and the problem was always there.
Could perhaps someone else test whether the issue is there?
Thanks for the logs!

In the unplugged case the S960 kernel driver crashes when trying to attach the dvb tuner/demodulator driver:
Code:
[   10.824322] usb 1-1.4: dvb_usb_v2: MAC address: 00:17:42:54:96:0c
[   10.828840] Unhandled prefetch abort: unknown 1 (0x001) at 0x00000002
[   10.828864] Internal error: : 1 [#1] SMP ARM
[   10.828894] Modules linked in: brcmfmac dvb_usb_dvbsky(+) m88ds3103 brcmutil dvb_usb_v2 cfg80211 rc_core i2c_mux dvb_core bcm2835_gpiomem rfkill fixed
[   10.828944] CPU: 3 PID: 292 Comm: systemd-udevd Not tainted 4.12.7 #1
[   10.828952] Hardware name: BCM2835
[   10.828961] task: aa944600 task.stack: aa09e000
[   10.828971] PC is at 0x2
[   10.828987] LR is at m88ds3103_attach+0x104/0x12c [m88ds3103]
This crash is quite certainly the reason why your kernel won't shut down cleanly, could well be that something is stuck in the background or the kernel then is in an illegal state.

You can try to contact the DVB driver author, maybe he can fix that bug (the kernel shouldn't crash but simply print an error if something unexpected happens).

so long,

Hias
find quote
Aux_ Offline
Senior Member
Posts: 190
Joined: May 2016
Reputation: 1
Location: Germany / BW
Post: #2980
Thanks @Hiassoft


But unfortunately the issue is also available in the official build 8.0.2, have just been tested - but - If you wait 2min the raspberry finally reboots Smile
That is why it is not so critical.

A question - should not the watchdog start in such a case?

[ 2x RPi2, 2x RPi3 ]
[ LE Testbuilds for RaspberryPi (Kodi 18.0) ]
[ Marantz NR1506 ]
[ Panasonic TX-50EXW784 ]
[ NAS @ OMV 3.0.8x (Erasmus) on Banana Pi ]
[ ODROID C2 + wrxtasy's LE 8.0 ]
(This post was last modified: 2017-08-19 13:45 by Aux_.)
find quote
HiassofT Offline
Senior Member
Posts: 122
Joined: Mar 2014
Reputation: 6
Location: Salzburg, Austria
Post: #2981
@Aux_

on a second thought it's more probable that the issue is caused by the device drawing too much power - this is a very common issue on RPi.

Check the output of
Code:
vcgencmd get_throttled
after booting up with the power disconnected, if you get anything else than "0x0" quite certainly your RPi power supply isn't adequate for that.

Other than that: after a kernel crash everything can happen, even all your HDD data being trashed. Better don't expect the system to run normally after that.

so long,

Hias
(This post was last modified: 2017-08-19 14:57 by HiassofT.)
find quote
Aux_ Offline
Senior Member
Posts: 190
Joined: May 2016
Reputation: 1
Location: Germany / BW
Post: #2982
(2017-08-19 14:54)HiassofT Wrote:  @Aux_

on a second thought it's more probable that the issue is caused by the device drawing too much power - this is a very common issue on RPi.

Check the output of
Code:
vcgencmd get_throttled
after booting up with the power disconnected, if you get anything else than "0x0" quite certainly your RPi power supply isn't adequate for that.

Other than that: after a kernel crash everything can happen, even all your HDD data being trashed. Better don't expect the system to run normally after that.

so long,

Hias

I have looked
Code:
vcgencmd get_throttled
the result was 0x0

Nevertheless, another power supply tested, unfortunately also negative result.
So I think it can not be at the power supply.

[ 2x RPi2, 2x RPi3 ]
[ LE Testbuilds for RaspberryPi (Kodi 18.0) ]
[ Marantz NR1506 ]
[ Panasonic TX-50EXW784 ]
[ NAS @ OMV 3.0.8x (Erasmus) on Banana Pi ]
[ ODROID C2 + wrxtasy's LE 8.0 ]
find quote
HiassofT Offline
Senior Member
Posts: 122
Joined: Mar 2014
Reputation: 6
Location: Salzburg, Austria
Post: #2983
You could also try connecting the S960 to a powered USB hub instead of directly to the RPi to rule out RPi power issues.

I couldn't find a manual for the box so I'm not sure if using the box without the power supply is supported at all. If the manual says this works and it's not an issue with the RPi power supply contact the manufacturer / driver author.

so long,

Hias
(This post was last modified: 2017-08-19 16:02 by HiassofT.)
find quote
Aux_ Offline
Senior Member
Posts: 190
Joined: May 2016
Reputation: 1
Location: Germany / BW
Post: #2984
(2017-08-19 16:00)HiassofT Wrote:  You could also try connecting the S960 to a powered USB hub instead of directly to the RPi to rule out RPi power issues.

I couldn't find a manual for the box so I'm not sure if using the box without the power supply is supported at all. If the manual says this works and it's not an issue with the RPi power supply contact the manufacturer / driver author.

so long,

Hias

This is not really a problem when you know what it is.
Easier said if you do not use the S960 you have to pull out both USB and power plug then there is no problem

[ 2x RPi2, 2x RPi3 ]
[ LE Testbuilds for RaspberryPi (Kodi 18.0) ]
[ Marantz NR1506 ]
[ Panasonic TX-50EXW784 ]
[ NAS @ OMV 3.0.8x (Erasmus) on Banana Pi ]
[ ODROID C2 + wrxtasy's LE 8.0 ]
find quote
Milhouse Offline
Team-Kodi Member
Posts: 13,232
Joined: Jan 2011
Reputation: 671
Post: #2985
New LibreELEC.tv Leia build #0819: RPi / RPi2
(Supercedes previous build)

Code:
# uname -a
Linux rpi512 4.12.7 #1 Sat Aug 19 21:05:31 BST 2017 armv6l GNU/Linux

# vcgencmd version
Aug  8 2017 12:05:45
Copyright (c) 2012 Broadcom
version 196063438d7bb0769861c86f948ae653727adb7e (clean) (release)

# lsb_release
LibreELEC (Milhouse): devel-20170819210414-#0819-g32406a7 [Build #0819]

# Kodi version
(18.0-ALPHA1 Git:0f9abae). Platform: Linux ARM 32-bit

Based on tip of LibreELEC.tv master (32406a74, changelog) and tip of XBMC master (0f9abae6, changelog) with the following modifications:
  • Includes newclock5 patches
  • Excludes the LibreELEC linux-01-RPi_support patch in favour of sourcing these and possibly more recent patches directly from kernel branch rpi-4.12.y
  • Includes latest bcm2835-driver master (b9a8e6a5, ahead +4)
  • Includes latest kodi-platform master (36fb4937)
  • Includes latest libcec master (8adc786b, ahead +26)
  • Includes latest libnfs master (df94ae93, ahead +56)
  • Includes latest p8-platform master (a822e196)
  • Includes latest addons: inputstream.adaptive (0c7e9754, +42), inputstream.rtmp (e094fa38, +1), peripheral.joystick (cc14287c, +3), pvr.argustv (310737e2), pvr.demo (f07d898c, +1), pvr.dvblink (0b66c640, +4), pvr.dvbviewer (a1e4bb0c, +5), pvr.filmon (1c9d2ebe), pvr.hdhomerun (b89c2be4, +9), pvr.hts (a1de6329, +1), pvr.iptvsimple (260434e4, +5), pvr.mediaportal.tvserver (d7a9acdb), pvr.mythtv (a17a3a4f, +1), pvr.nextpvr (03a3b714), pvr.njoy (79e8e653), pvr.octonet (a77cf111), pvr.pctv (00b76689), pvr.stalker (df492d27, +1), pvr.vbox (44f3d04e), pvr.vdr.vnsi (07172ed0, +1), pvr.vuplus (921b14f6, +5), pvr.wmc (1d655540)
  • Include [env] compare: linux: update to linux-4.12.7
  • Include [env] patch: libcec: don't link non-existant libtinfo
  • Include [env] patch: nss/nspr: include in main image [rfc][gcc7]
  • Include [env] patch: rev hack for kodi
  • Include [env] patch: tvheadend42: fixup ffmpeg patch
  • Include [env] patch: switch back to standard ncurses
  • Include [env] patch: buildsystem: update to gcc (to 7.2), glibc and binutils
  • Include [env] patch: Add experimental splash video for RPi
  • Include [env] patch: Bump included addon versions to prevent online updates
  • Include [env] patch: HACK: Disable multiple PVR addons during migration. Always enable inputstream.* and os.*
  • Include [env] patch: pvr addons: disable broken addons
  • Include [env] patch: Add kodi binary addons (pvr, adsp, inputstream, vfs, other)
  • Include [env] PR:1773: init: make break after behaviour really break after
  • Include [env] PR:1776: Don't cause system to hang on halt/reboot when net-booting
  • Include [env] PR:1821: use 7zip for addon.zip creation
  • Include [env] PR:1835: add support for optional kernel modules in image and from addons
  • Include [env] PR:1862: busybox: revert dd fsync change which makes no sense
  • Include [env] PR:1896: config/functions: fix bash-4.4 issue, and empty 2nd param behaviour
  • Include [pkg] patch: Pre-release RPi0W/RPi3 Bluetooth firmware (details) (brcmfmac_sdio-firmware-rpi)
  • Include [pkg] patch: Pre-release RPi0W/RPi3 WiFi firmware (details) (kernel-firmware)
  • Include [pkg] patch: Pre-release RPi0W/RPi3 WiFi firmware (details) (wlan-firmware)
  • Include [pkg] patch: skin.estuary: reduce system info font size (kodi)
  • Include [pkg] PR:12311: FIX: ensure real filename from videodb in playlists
Build Highlights:
  1. switch back to standard ncurses
Build Details:
  1. XBMC:
    • [Fix] Add .m4v to music tag loader factory as valid extension (PR:12682, 1 commit, 2 files changed)
    • Add system/lcms2.dll to .gitignore (PR:12694, 1 commit, 1 file changed)
    • [wayland] Fix compilation with older gcc (PR:12693, 1 commit, 1 file changed)
    • Integrate Wayland build into buildsteps (PR:12691, 1 commit, 10 files changed)
  2. inputstream.adaptive:
    • reduce #psshsets by using use_count (0c7e9754)
  3. Additional commits/pull requests/changes not yet merged upstream:
    • Added: [env] patch: switch back to standard ncurses
    • Added: [env] patch: libcec: don't link non-existant libtinfo

Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
find quote
Post Reply