LibreELEC 7.1.0 - media_build edition.

aNORes
Posts: 46
Joined: Tue Jul 12, 2016 4:58 am
languages_spoken: english
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

LibreELEC 7.1.0 - media_build edition.

Post by aNORes » Tue Aug 02, 2016 3:40 am

Hi there,

It is my build LibreELEC 7.1.0 (Git: 1d813b6) + media_build (2016-07-18-009a62084821) from www.linuxtv.org

All credit goes to: Changelog:
  • v4 (28-11-2016)
    - update media_build (2016-11-22-d3d83ee20afd)
    - update CrazyCat (https://github.com/crazycat69/linux_media, 2016-11-25, Git: e61c9f0)

    I also strongly recommend to add to file /storage/.config/autostart.sh

    Code: Select all

    # set smp_affinity
    #            Binary       Hex
    #    CPU 0    0001         1
    #    CPU 1    0010         2
    #    CPU 2    0100         4
    #    CPU 3    1000         8
    echo f > /proc/irq/231/smp_affinity  # hdmi_aocec
    echo 2 > /proc/irq/40/smp_affinity   # eth0
    echo 4 > /proc/irq/63/smp_affinity   # dwc_otg, dwc_otg_hcd:usb1
    echo 8 > /proc/irq/62/smp_affinity   # dwc_otg, dwc_otg_hcd:usb2, dwc_otg_pcd
    
    More info: http://forum.odroid.com/viewtopic.php?p=155840#p155840
    If you are using two dvb devices one insert to the port Micro USB OTG. https://www.linuxtv.org/wiki/index.php/DVB_via_USB
  • v3 (25-08-2016)
    - update wrxtasy source (Git: 1a8de0a)
    - attempt to fix MPEG-TS stream lost packet (HDMI-CEC irq issue)
    - update media_build (2016-08-08-b6aa39228966)
    - add CrazyCat fork (can support more cards)

    After first boot LibreELEC please do (via ssh session):

    Code: Select all

    echo "3.14.65-media_build" > /storage/downloads/dvb-drivers.txt
    reboot
    To switch to CrazyCat fork:

    Code: Select all

    echo "3.14.65-media_build-CrazyCat" > /storage/downloads/dvb-drivers.txt
    reboot
  • v2 (04-08-2016)
    - fixed broken LIRC support
  • v1 (01-08-2016)
    - initial release
Download: I wrote the script and instructions on how to compile my build:
https://github.com/anor-es/media_build-libreelec

I have tested it one day with my DVBSky S960 + Mygica T230 + Tvheadend 4.1.1945 (all on Odroid C2).

Code: Select all

Odroid:~ # dmesg | grep -i dvb
[    9.211729] dvb-usb: found a 'Mygica T230 DVB-T/T2/C' in warm state.
[    9.463152] usb 1-1.4.4.2: dvb_usb_v2: found a 'DVBSky S960/S860' in warm state
[    9.463451] usb 1-1.4.4.2: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer
[    9.463503] DVB: registering new adapter (DVBSky S960/S860)
[    9.463609] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[    9.463902] DVB: registering new adapter (Mygica T230 DVB-T/T2/C)
[    9.464996] dvb_create_media_entity: media entity 'dvb-demux' registered.
[    9.465754] usb 1-1.4.4.2: dvb_usb_v2: MAC address: 00:17:42:54:96:0c
[    9.466855] dvb_create_media_entity: media entity 'dvb-demux' registered.
[    9.507494] usb 1-1.1: DVB: registering adapter 1 frontend 0 (Silicon Labs Si2168)...
[    9.507516] dvb_create_media_entity: media entity 'Silicon Labs Si2168' registered.
[    9.511792] input: IR-receiver inside an USB DVB receiver as /devices/platform/dwc2_b/usb1/1-1/1-1.1/input/input5
[    9.511943] dvb-usb: schedule remote query interval to 100 msecs.
[    9.512794] dvb-usb: Mygica T230 DVB-T/T2/C successfully initialized and connected.
[    9.512911] usbcore: registered new interface driver dvb_usb_cxusb
[    9.546651] usb 1-1.4.4.2: DVB: registering adapter 0 frontend 0 (Montage Technology M88DS3103)...
[    9.546675] dvb_create_media_entity: media entity 'Montage Technology M88DS3103' registered.
[    9.582138] Registered IR keymap rc-dvbsky
[    9.582368] input: DVBSky S960/S860 as /devices/platform/dwc2_b/usb1/1-1/1-1.4/1-1.4.4/1-1.4.4.2/rc/rc0/input6
[    9.582518] rc rc0: DVBSky S960/S860 as /devices/platform/dwc2_b/usb1/1-1/1-1.4/1-1.4.4/1-1.4.4.2/rc/rc0
[    9.582530] usb 1-1.4.4.2: dvb_usb_v2: schedule remote query interval to 300 msecs
[    9.582542] usb 1-1.4.4.2: dvb_usb_v2: 'DVBSky S960/S860' successfully initialized and connected
[    9.582608] usbcore: registered new interface driver dvb_usb_dvbsky
[   15.651313] m88ds3103 0-0068: downloading firmware from file 'dvb-demod-m88ds3103.fw'
[   16.744974] usb 1-1.4.4.2: DVB: adapter 0 frontend 0 frequency 0 out of range (950000..2150000)
[   17.006603] si2168 3-0064: downloading firmware from file 'dvb-demod-si2168-b40-01.fw'
[   17.791303] si2157 5-0060: downloading firmware from file 'dvb-tuner-si2158-a20-01.fw'
[   19.118666] usb 1-1.1: DVB: adapter 1 frontend 0 frequency 0 out of range (42000000..870000000)
Odroid:~ # lsmod
Module                  Size  Used by
rc_dvbsky               1085  0
si2157                  6220  1
ts2020                  7141  1
si2168                  8223  1
spi_gpio                6746  0
spi_bitbang             4071  1 spi_gpio
8021q                  22636  0
dvb_usb_dvbsky         10925  1
m88ds3103              12642  2 dvb_usb_dvbsky
dvb_usb_v2             16850  1 dvb_usb_dvbsky
dvb_usb_cxusb          73095  1
dib0070                 9263  1 dvb_usb_cxusb
dvb_usb                26442  1 dvb_usb_cxusb
dvb_core              101015  4 dvb_usb,dvb_usb_v2,m88ds3103,dvb_usb_dvbsky
media                  23346  4 dvb_usb,si2157,dvb_usb_v2,dvb_core
gxbb_wdt                3443  0
meson_ir                3428  0
rc_core                22200  6 meson_ir,dvb_usb,rc_dvbsky,dvb_usb_v2,dvb_usb_dvbsky
autofs4                28111  0
Odroid:~ #
Everything works very well!
Have fun!
Last edited by aNORes on Tue Nov 29, 2016 5:44 am, edited 6 times in total.

best_odroidfreak
Posts: 366
Joined: Wed May 04, 2016 1:07 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by best_odroidfreak » Tue Aug 02, 2016 5:44 am

EDIT by wrxtasy..

Sorry @best_odroidfreak, I've had to commandeer your post to compile a master list of working USB DVB TV Tuners:

Confirmed working USB tuners - Kodi PVR backend servers:

- Sundtek SkyTV Ultimate (DVB-S/S2) Stick
- DVBSky S960 + Mygica T230 + Tvheadend 4.1.1945
- DVBSky T330 works together with Sundtec MediaTV Pro III
- Edision Optimuss DVB-C/T/T2 USB Tuner Combo Stick (DVBSky T 330 compatible)

User avatar
wrxtasy
Posts: 1300
Joined: Wed May 13, 2015 1:59 pm
languages_spoken: english
ODROIDs: C1, C1+, C2, N2
Location: Australia
Has thanked: 3 times
Been thanked: 3 times
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by wrxtasy » Tue Aug 02, 2016 12:47 pm

@aNORes,
Nice work indeed !
That will make a LOT of USB DVB users very happy as they can now use modern Tuners with the older v3.14 Linux C2 Kernel.

Suggestion
Can you rename the .img and .tar files to end with -media_build.tar -media_build.img so as to not confuse users with the number of LE editions floating about ?
Kodi Hardware Guru

andy5macht
Posts: 238
Joined: Mon May 16, 2016 5:25 am
languages_spoken: english, german
ODROIDs: U3, C2, N2
Has thanked: 5 times
Been thanked: 0
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by andy5macht » Tue Aug 02, 2016 5:04 pm

wow this sounds really nice. thanks for the nice work!
i am going to try DVBSky T330 later today.

aNORes
Posts: 46
Joined: Tue Jul 12, 2016 4:58 am
languages_spoken: english
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by aNORes » Tue Aug 02, 2016 6:27 pm

best_odroidfreak wrote: Is provided LibreELEC 7.1.0 - media_build edition HiFi Shield support?
Unfortunately, no, it's a completely different story...
wrxtasy wrote: Suggestion
Can you rename the .img and .tar files to end with -media_build.tar -media_build.img so as to not confuse users with the number of LE editions floating about ?
The file names changed, I added also md5sums.

User avatar
wrxtasy
Posts: 1300
Joined: Wed May 13, 2015 1:59 pm
languages_spoken: english
ODROIDs: C1, C1+, C2, N2
Location: Australia
Has thanked: 3 times
Been thanked: 3 times
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by wrxtasy » Tue Aug 02, 2016 10:40 pm

@aNORes,

Please reconfigure the lirc.conf and recompile as you have broken lirc and IR with the changes you currently have in this LE media_build
Revert to this original CONFIG_IR section for linux.conf and lirc will work again.

https://github.com/wrxtasy/LibreELEC.tv ... conf#L2187
Kodi Hardware Guru

andy5macht
Posts: 238
Joined: Mon May 16, 2016 5:25 am
languages_spoken: english, german
ODROIDs: U3, C2, N2
Has thanked: 5 times
Been thanked: 0
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by andy5macht » Wed Aug 03, 2016 6:18 am

my DVBSky T330 works together with Sundtec MediaTV Pro III without external power. thanky you so much!
amazing fast channel switching! ;)
Record two channels at same time. nice nice nice

User avatar
odroid
Site Admin
Posts: 34542
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 807 times
Been thanked: 699 times
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by odroid » Wed Aug 03, 2016 10:25 am

Great news!

Is there any working ATSC USB receiver for US and Korean people?

User avatar
wrxtasy
Posts: 1300
Joined: Wed May 13, 2015 1:59 pm
languages_spoken: english
ODROIDs: C1, C1+, C2, N2
Location: Australia
Has thanked: 3 times
Been thanked: 3 times
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by wrxtasy » Wed Aug 03, 2016 1:47 pm

The HK guys must have a bunch or USB DVB dongles available for testing, and then it would help end LE C2 users if we compile a master list of working dongles here.

I will keep this master list in one of the first posts to ease the burden of searching through this thread :)
Kodi Hardware Guru

aNORes
Posts: 46
Joined: Tue Jul 12, 2016 4:58 am
languages_spoken: english
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by aNORes » Wed Aug 03, 2016 3:44 pm

wrxtasy wrote:@aNORes,

Please reconfigure the lirc.conf and recompile as you have broken lirc and IR with the changes you currently have in this LE media_build
Revert to this original CONFIG_IR section for linux.conf and lirc will work again.

https://github.com/wrxtasy/LibreELEC.tv ... conf#L2187
Sorry about that. I see it now. I will try to fix it.

andy5macht
Posts: 238
Joined: Mon May 16, 2016 5:25 am
languages_spoken: english, german
ODROIDs: U3, C2, N2
Has thanked: 5 times
Been thanked: 0
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by andy5macht » Wed Aug 03, 2016 3:48 pm

delete - T330 working fine here :D
Last edited by andy5macht on Thu Aug 04, 2016 4:13 pm, edited 1 time in total.

User avatar
odroid
Site Admin
Posts: 34542
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 807 times
Been thanked: 699 times
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by odroid » Wed Aug 03, 2016 8:15 pm

wrxtasy wrote:The HK guys must have a bunch or USB DVB dongles available for testing, and then it would help end LE C2 users if we compile a master list of working dongles here.

I will keep this master list in one of the first posts to ease the burden of searching through this thread :)
I am an HK guy obviously ;) but we have no USB TV receiver dongle at all.
I tried to find one. KWorld UB435-Q or Hauppauge WinTV-HVR-955Q seems to support linux driver. But they are expensive probably.
I will try to search other models.

Raybuntu
Posts: 1397
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2
Has thanked: 3 times
Been thanked: 16 times
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by Raybuntu » Wed Aug 03, 2016 8:27 pm

I hear the sundtek devices work very nice. They are precompiled (closed source) and arch independent and run on basically everything. They cost a bit but you get a working usb DVB device.

User avatar
odroid
Site Admin
Posts: 34542
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 807 times
Been thanked: 699 times
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by odroid » Wed Aug 03, 2016 9:00 pm

I'm quite new in this area.
Is the DVB-C/T/T2 are compatible with ATSC FHD in US/Korea?
Sorry for hijacking. Would be better to make a new thread...

Raybuntu
Posts: 1397
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2
Has thanked: 3 times
Been thanked: 16 times
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by Raybuntu » Wed Aug 03, 2016 9:11 pm

@odroid: I think DVB and ATSC are 2 different standards and they are not compatible. But hey the new Amlogic S905d is suppose to have a DVB interface. Maybe something for a new Odroid C3 ;) *HINT*

EDIT: @odroid Look here: http://sundtek.com/shop/Digital-TV-Stic ... logTV.html
It's a ATSC stick that should work.

User avatar
wrxtasy
Posts: 1300
Joined: Wed May 13, 2015 1:59 pm
languages_spoken: english
ODROIDs: C1, C1+, C2, N2
Location: Australia
Has thanked: 3 times
Been thanked: 3 times
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by wrxtasy » Wed Aug 03, 2016 11:01 pm

odroid wrote:I'm quite new in this area.
Is the DVB-C/T/T2 are compatible with ATSC FHD in US/Korea?
Sorry for hijacking. Would be better to make a new thread...
Justin, ask over in the Kodi forums where our resident TV engineer guru Noggin would be able to tell you what would be needed:
http://forum.kodi.tv/showthread.php?tid=258707&page=39
Kodi Hardware Guru

User avatar
odroid
Site Admin
Posts: 34542
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 807 times
Been thanked: 699 times
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by odroid » Thu Aug 04, 2016 10:24 am

Okay. I will do that. :) Thanks,

aNORes
Posts: 46
Joined: Tue Jul 12, 2016 4:58 am
languages_spoken: english
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by aNORes » Thu Aug 04, 2016 10:56 pm

Changelog:
  • v2 (04-08-2016)
    - fixed broken LIRC support
  • v1 (01-08-2016)
    - initial release

User avatar
wrxtasy
Posts: 1300
Joined: Wed May 13, 2015 1:59 pm
languages_spoken: english
ODROIDs: C1, C1+, C2, N2
Location: Australia
Has thanked: 3 times
Been thanked: 3 times
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by wrxtasy » Mon Aug 15, 2016 11:08 pm

I would be interested to see how this media-backports release goes.
Its a bit different to aNORes's media-build as a whole bunch of driver modules are backported from the v4.7 Linux Kernel.

http://forum.odroid.com/viewtopic.php?f ... 50#p155665

I can revert individual modules as well to use the original HK v3.14 Linux ones.
Kodi Hardware Guru

aNORes
Posts: 46
Joined: Tue Jul 12, 2016 4:58 am
languages_spoken: english
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by aNORes » Tue Aug 16, 2016 4:47 am


andy5macht
Posts: 238
Joined: Mon May 16, 2016 5:25 am
languages_spoken: english, german
ODROIDs: U3, C2, N2
Has thanked: 5 times
Been thanked: 0
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by andy5macht » Tue Aug 16, 2016 3:23 pm

i tried this.
no more continuity errors with this release on T330 tuner for about an hour.
i will let it run for the next 9 hours - so we will see.

Raybuntu
Posts: 1397
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2
Has thanked: 3 times
Been thanked: 16 times
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by Raybuntu » Tue Aug 16, 2016 3:41 pm

@aNORes: How did you disable cec? In the kernel config? Normally disabling cec with hdmitx=cec0 should do the same. Trying to figure out how this is possible. I'm using vdr and I have no issues. Are you guys using emmc or microsd. Is tvheadend caching on disk? Maybe the cec logging is causing the issue.

andy5macht
Posts: 238
Joined: Mon May 16, 2016 5:25 am
languages_spoken: english, german
ODROIDs: U3, C2, N2
Has thanked: 5 times
Been thanked: 0
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by andy5macht » Tue Aug 16, 2016 4:19 pm

i am using a 8gb emmc module.
tvheadend caching?: what does that mean - picon image caching? i am using timeshift "fit to ram only"

aNORes
Posts: 46
Joined: Tue Jul 12, 2016 4:58 am
languages_spoken: english
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by aNORes » Tue Aug 16, 2016 7:09 pm

Raybuntu wrote:@aNORes: How did you disable cec? In the kernel config?
Yes.
Raybuntu wrote:Normally disabling cec with hdmitx=cec0 should do the same.
It does not work. I disabled both in the Kodi CEC adapter and boot.ini.
I also tried your patch: https://github.com/Raybuntu/linux/commi ... 675c6cdb59
Still get "Continuity counter error"
Raybuntu wrote:I'm using vdr and I have no issues.
I also tried VDR. VDR does not show any error (debug in VDR is enable) but I see the picture micro stutter when I watch live TV. @Raybuntu try Tvheadend.

My kernel config:

Code: Select all

Device Drivers  --->
 Amlogic Device Drivers  --->
  AO CEC Support  --->
   HDMI AO cec driver support = no
"Continuity counter error" still exist
strange... but also with ...

Code: Select all

Device Drivers  --->
 Amlogic Device Drivers  --->
  HDMI TX Support  --->
   HDMI new CEC driver = yes
"Continuity counter error" completely gone

...and sorry for my English, I write everything via translator...

Raybuntu
Posts: 1397
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2
Has thanked: 3 times
Been thanked: 16 times
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by Raybuntu » Tue Aug 16, 2016 7:52 pm

@aNORes: No problem with the language. I'd still like to solve this. I still can't imagine how a cec driver is causing issues in TVheadend. Is that for every DVB card or just a few?
Also let me get that straight. If you disable AO_CEC from kernel config you still have the issue? It's only gone when you enable "HDMI new CEC driver"? That's even stranger.

Can you try to give me more info what that tvheadend error means?

aNORes
Posts: 46
Joined: Tue Jul 12, 2016 4:58 am
languages_spoken: english
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by aNORes » Tue Aug 16, 2016 8:43 pm

Raybuntu wrote:I still can't imagine how a cec driver is causing issues in TVheadend. Is that for every DVB card or just a few?
Still I'm doing tests.
Raybuntu wrote:If you disable AO_CEC from kernel config you still have the issue?
Yes.
Raybuntu wrote:It's only gone when you enable "HDMI new CEC driver"?
Yes.
kernel config

Code: Select all

zcat /proc/config.gz | paste
http://sprunge.us/KNSG
Raybuntu wrote:Can you try to give me more info what that tvheadend error means?
Hmm... it means that the MPEG transport stream has errors.

Raybuntu
Posts: 1397
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2
Has thanked: 3 times
Been thanked: 16 times
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by Raybuntu » Tue Aug 16, 2016 10:48 pm

@aNORes: Can you confirm that the issue is still there if you use libcec and not the internal CEC keyboard mode? The log you supplied was with AML cec keyboard mode and I copied the code from the old driver. Especially this:

https://github.com/Raybuntu/linux/blob/ ... cec.c#L193

There is a HR_timer that might be causing your issues. Can you please confirm that using AO_CEC with only libcec does not cause the issue on key presses?

User avatar
wrxtasy
Posts: 1300
Joined: Wed May 13, 2015 1:59 pm
languages_spoken: english
ODROIDs: C1, C1+, C2, N2
Location: Australia
Has thanked: 3 times
Been thanked: 3 times
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by wrxtasy » Tue Aug 16, 2016 10:56 pm

@ aNORes, is it possible for you to Fork my LE 7.1 on Github and then push your own changes to your own Repo so we can all see what is going on ?

I've just updated my LE7.1 with some patches changed, also the important ao_cec disable one from Raybuntu to disable CEC completely.
Kodi Hardware Guru

aNORes
Posts: 46
Joined: Tue Jul 12, 2016 4:58 am
languages_spoken: english
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by aNORes » Wed Aug 17, 2016 1:07 am

Raybuntu wrote:...if you use libcec and not the internal CEC keyboard mode? The log you supplied was with AML cec keyboard mode ...
Raybuntu wrote:...please confirm that using AO_CEC with only libcec...
How do I use only libcec?
wrxtasy wrote:@ aNORes, is it possible for you to Fork my LE 7.1 on Github and then push your own changes to your own Repo so we can all see what is going on ?
Yes, but a little later, a lot of things I still "do manually."

Raybuntu
Posts: 1397
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2
Has thanked: 3 times
Been thanked: 16 times
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by Raybuntu » Wed Aug 17, 2016 1:10 am

Enable libcec in kodi's peripherals settings. The log in the CEC thread indicates that you use AML CEC keyboard mode.

BTW. Thank you for reporting and helping to solve this.

crashoverride
Posts: 5005
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 305 times
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by crashoverride » Wed Aug 17, 2016 1:46 am

A discontinuity error in TVheadend means the MPEG-TS stream lost a packet in transit. The two typical causes of this I have seen are 1) poor signal quality and 2) USB subsystem latency.

DVB cards typically have a USB BULK-IN endpoint that provides the raw MPEG-TS data stream from the demodulator. This is real time data. On devices with the dwc_otg USB controller chip and driver, this generates an insane amount of interrupts that need to be handled (every 512 bytes). Having any USB 1.x (keyboard/mouse) devices on the same hub compounds this problem causing split transactions that require even more IRQ time.

If the CEC driver is also doing "real time" work, it may be causing IRQ handler delays. A possible solution would be to "pin" (IRQ affinity) each driver's IRQ to a different core. Another suggestion is to plug the USB tuner as the sole device directly to the USB-OTG port eliminating any hubs.

Raybuntu
Posts: 1397
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2
Has thanked: 3 times
Been thanked: 16 times
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by Raybuntu » Wed Aug 17, 2016 2:05 am

Thanks crashoverride. We already looked for irq handler delays but there is nothing obvious I can find. However there is a HR_Timer for the input_events that are beeing faked by the Amlogic driver to produce keyboard events. I suspect this is causing problems because he's having the issues even if he disables the ao_cec driver and reverts to the old cec driver where I copied the code from.

https://github.com/Raybuntu/linux/blob/ ... cec.c#L205

aNORes
Posts: 46
Joined: Tue Jul 12, 2016 4:58 am
languages_spoken: english
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by aNORes » Wed Aug 17, 2016 2:43 am

Raybuntu wrote:Can you please confirm that using AO_CEC with only libcec does not cause the issue on key presses?
patch applied: https://github.com/Raybuntu/linux/commi ... 675c6cdb59

Code: Select all

Odroid:~ # zcat /proc/config.gz | grep -i cec
# AO CEC Support
CONFIG_AML_AO_CEC=y
Odroid:~ #

Code: Select all

Odroid:~ # cat /flash/boot.ini | grep -i cec
# Enable | Disable HDMI CEC Control
####setenv hdmi_cec  "0"                 # Disabled
setenv hdmi_cec  "1"                 # Enabled
# setenv hdmi_cec  "2"                 # Enabled but disable auto TV switching ON
if test "${hdmi_cec}" = "0"; then setenv hdmitx "hdmitx=cec0"; fi
if test "${hdmi_cec}" = "1"; then setenv hdmitx "hdmitx=cecf"; fi
if test "${hdmi_cec}" = "2"; then setenv hdmitx "hdmitx=cec7"; fi
if test "${nographics}" = "0"; then fdt rm /mesonfb; fdt rm /aocec; fi
Odroid:~ #
Image

log:

Code: Select all

Aug 16 19:14:00 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
Aug 16 19:14:06 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
Aug 16 19:14:11 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
Aug 16 19:14:16 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
Aug 16 19:14:17 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 3   dat: 01 8d 01
Aug 16 19:14:17 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 3
Aug 16 19:14:17 Odroid kernel: CEC: tx msg len: 3   dat: 10 8e 00
Aug 16 19:14:17 Odroid tvheadend[807]: TS: DVB-T/226.5MHz/TVP2 HD: H264 @ #202 Continuity counter error (total 1)
Aug 16 19:14:17 Odroid tvheadend[807]: TS: DVB-T/226.5MHz/TVP2 HD: EAC3 @ #204 Continuity counter error (total 1)
Aug 16 19:14:22 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
Aug 16 19:14:25 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 4   dat: 0f 82 00 00
Aug 16 19:14:25 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 4
Aug 16 19:14:25 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 6   dat: 0f 80 20 00 00 00
Aug 16 19:14:25 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 6
Aug 16 19:14:25 Odroid tvheadend[807]: TS: DVB-T/226.5MHz/TVP2 HD: TELETEXT @ #205 Continuity counter error (total 1)
Aug 16 19:14:27 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
Aug 16 19:14:32 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 6   dat: 0f 80 00 00 20 00
Aug 16 19:14:32 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 6
Aug 16 19:14:32 Odroid kernel: CEC: tx msg len: 2   dat: 10 04
Aug 16 19:14:32 Odroid kernel: CEC: tx msg len: 4   dat: 1f 82 20 00
Aug 16 19:14:32 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
Aug 16 19:14:32 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 6   dat: 0f 80 00 00 20 00
Aug 16 19:14:32 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 6
Aug 16 19:14:32 Odroid tvheadend[807]: TS: DVB-T/226.5MHz/TVP2 HD: H264 @ #202 Continuity counter error (total 3)
Aug 16 19:14:32 Odroid kernel: CEC: tx msg len: 3   dat: 10 8e 00
Aug 16 19:14:32 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 3   dat: 01 8d 02
Aug 16 19:14:32 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 3
Aug 16 19:14:33 Odroid kernel: CEC: tx msg len: 2   dat: 10 04
Aug 16 19:14:33 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 3   dat: 01 1a 01
Aug 16 19:14:33 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 3
Aug 16 19:14:33 Odroid kernel: CEC: tx msg len: 4   dat: 1f 82 20 00
Aug 16 19:14:33 Odroid kernel: CEC: tx msg len: 3   dat: 10 8e 00
Aug 16 19:14:33 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 3   dat: 01 8d 02
Aug 16 19:14:33 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 3
Aug 16 19:14:33 Odroid kernel: CEC: tx msg len: 3   dat: 10 8e 00
Aug 16 19:14:33 Odroid kernel: CEC: tx msg len: 3   dat: 10 1b 1a
Aug 16 19:14:33 Odroid kernel: CEC: tx msg len: 3   dat: 10 8e 00
Aug 16 19:14:38 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
Aug 16 19:14:41 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 4   dat: 0f 82 00 00
Aug 16 19:14:41 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 4
Aug 16 19:14:41 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 6   dat: 0f 80 20 00 00 00
Aug 16 19:14:41 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 6
Aug 16 19:14:41 Odroid tvheadend[807]: TS: DVB-T/226.5MHz/TVP2 HD: TELETEXT @ #205 Continuity counter error (total 2)
Aug 16 19:14:43 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
Aug 16 19:14:48 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 6   dat: 0f 80 00 00 20 00
Aug 16 19:14:48 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 6
Aug 16 19:14:48 Odroid kernel: CEC: tx msg len: 2   dat: 10 04
Aug 16 19:14:48 Odroid tvheadend[807]: TS: DVB-T/226.5MHz/TVP2 HD: H264 @ #202 Continuity counter error (total 7)
Aug 16 19:14:48 Odroid tvheadend[807]: TS: DVB-T/226.5MHz/TVP2 HD: EAC3 @ #204 Continuity counter error (total 2)
Aug 16 19:14:48 Odroid tvheadend[807]: TS: DVB-T/226.5MHz/TVP2 HD: MPEG2AUDIO @ #203 Continuity counter error (total 1)
Aug 16 19:14:48 Odroid kernel: CEC: tx msg len: 4   dat: 1f 82 20 00
Aug 16 19:14:48 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 6   dat: 0f 80 00 00 20 00
Aug 16 19:14:48 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 6
Aug 16 19:14:48 Odroid kernel: CEC: tx msg len: 3   dat: 10 8e 00
Aug 16 19:14:48 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
Aug 16 19:14:48 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 3   dat: 01 8d 02
Aug 16 19:14:48 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 3
Aug 16 19:14:48 Odroid kernel: CEC: tx msg len: 2   dat: 10 04
Aug 16 19:14:48 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 3   dat: 01 1a 01
Aug 16 19:14:48 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 3
Aug 16 19:14:49 Odroid kernel: CEC: tx msg len: 4   dat: 1f 82 20 00
Aug 16 19:14:49 Odroid kernel: CEC: tx msg len: 3   dat: 10 8e 00
Aug 16 19:14:49 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 3   dat: 01 8d 02
Aug 16 19:14:49 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 3
Aug 16 19:14:49 Odroid kernel: CEC: tx msg len: 3   dat: 10 8e 00
Aug 16 19:14:49 Odroid kernel: CEC: tx msg len: 3   dat: 10 1b 1a
Aug 16 19:14:49 Odroid kernel: CEC: tx msg len: 3   dat: 10 8e 00
Aug 16 19:14:53 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
Aug 16 19:14:59 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
Aug 16 19:15:04 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
Aug 16 19:15:09 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
crashoverride wrote:Another suggestion is to plug the USB tuner as the sole device directly to the USB-OTG port eliminating any hubs.

Code: Select all

Odroid:~ # lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=dvb_usb_cxusb, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 2: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M
            |__ Port 4: Dev 4, If 0, Class=Hub, Driver=hub/4p, 480M
                |__ Port 3: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 12M
                |__ Port 3: Dev 5, If 1, Class=Human Interface Device, Driver=usbhid, 12M
                |__ Port 3: Dev 5, If 2, Class=Human Interface Device, Driver=usbhid, 12M
                |__ Port 4: Dev 6, If 0, Class=Mass Storage, Driver=usb-storage, 480M
Odroid:~ #
I've tried, does not help.

Raybuntu
Posts: 1397
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2
Has thanked: 3 times
Been thanked: 16 times
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by Raybuntu » Wed Aug 17, 2016 2:57 am

I guess I don't know then anymore. Disabling CEC should have worked. There shouldn't be any interrupts if you disable it.

crashoverride
Posts: 5005
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 305 times
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by crashoverride » Wed Aug 17, 2016 3:54 am

Its also possible that tvheadend is holding on to the URB "too long" and the combination of everything pushes the deadline over the mark. Testing with some other dvb client program should be done; however, I do not know which one would be a good choice because others will stutter on software video decoding and also will not report the dropped packet.

Raybuntu
Posts: 1397
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2
Has thanked: 3 times
Been thanked: 16 times
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by Raybuntu » Thu Aug 18, 2016 12:23 am

@aNORes: can you try what crashoverride suggested and change the smp_affinity of CEC irq just for testing:

echo 2 > /proc/irq/231/smp_affinity

cat /proc/interrupts will give you a list of interrupts and on what CPU.

aNORes
Posts: 46
Joined: Tue Jul 12, 2016 4:58 am
languages_spoken: english
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by aNORes » Thu Aug 18, 2016 1:18 am

Raybuntu wrote:@aNORes: can you try what crashoverride suggested and change the smp_affinity of CEC irq just for testing:

echo 2 > /proc/irq/231/smp_affinity

cat /proc/interrupts will give you a list of interrupts and on what CPU.

Code: Select all

Odroid:~ # echo 1 > /sys/class/cec/dbg_en
Odroid:~ # cat /proc/interrupts
           CPU0       CPU1       CPU2       CPU3
 35:       4475          0          0          0       GIC  35  osd_vsync, vsync
 38:       7445          0          0          0       GIC  38  timerC
 40:       1661          0          0          0       GIC  40  eth0
 58:          0          0          0          0       GIC  58  meson_uart
 62:       1178          0          0          0       GIC  62  dwc_otg, dwc_otg_hcd:usb2, dwc_otg_pcd
 63:     679703          0          0          0       GIC  63  dwc_otg, dwc_otg_hcd:usb1
 78:          0          0          0          0       GIC  78  deinterlace
 89:          1          0          0          0       GIC  89  hdmitx
 92:       8871          0          0          0       GIC  92  MESON TIMER-F
 93:          0      14214          0          0       GIC  93  MESON TIMER-G
 94:          0          0      14480          0       GIC  94  MESON TIMER-H
 95:          0          0          0       5539       GIC  95  MESON TIMER-I
 99:          1          0          0          0       GIC  99  sd_emmc_mmc_in
101:          1          0          0          0       GIC 101  sd_emmc_mmc_out
121:       4474          0          0          0       GIC 121  rdma, osd_rdma
182:          0          0          0          0       GIC 182  ge2d
192:       1758          0          0          0       GIC 192  Mali_GP
193:          0          0          0          0       GIC 193  Mali_GP_MMU
194:        880          0          0          0       GIC 194  Mali_PP_Broadcast
196:          0          0          0          0       GIC 196  Mali_PP0
197:          0          0          0          0       GIC 197  Mali_PP0_MMU
198:          0          0          0          0       GIC 198  Mali_PP1
199:          0          0          0          0       GIC 199  Mali_PP1_MMU
200:          0          0          0          0       GIC 200  Mali_PP2
201:          0          0          0          0       GIC 201  Mali_PP2_MMU
225:        247          0          0          0       GIC 225  meson_uart
228:          3          0          0          0       GIC 228  ir-meson
231:         51          0          0          0       GIC 231  hdmi_aocec
241:         80          0          0          0       GIC 241
242:          3          0          0          0       GIC 242
249:       1552          0          0          0       GIC 249  sd_emmc
250:          4          0          0          0       GIC 250  sd_emmc
IPI0:      5873       8760       6877      10414       Rescheduling interrupts
IPI1:        16         24         22         20       Function call interrupts
IPI2:        24        282        536        358       Single function call interrupts
IPI3:         0          0          0          0       CPU stop interrupts
IPI4:         0          0          0          0       Timer broadcast interrupts
IPI5:       341        455        165        159       IRQ work interrupts
Err:          0
Odroid:~ # cat /proc/irq/231/smp_affinity
f
Odroid:~ # echo 2 > /proc/irq/231/smp_affinity
Odroid:~ # cat /proc/irq/231/smp_affinity
2
Odroid:~ #

Code: Select all

Odroid:~ # journalctl --no-tail -f
-- Logs begin at Wed 2016-08-17 18:03:31 CEST. --
Aug 15 09:12:57 Odroid connmand[307]: ntp: time slew +204634.637985 s
Aug 17 18:03:31 Odroid systemd[1]: Time has been changed
Aug 17 18:03:31 Odroid systemd[1]: Started Kodi Media Center.
Aug 17 18:03:31 Odroid systemd[1]: Reached target Kodi Mediacenter Interface.
...
...
...
Aug 17 18:10:41 Odroid tvheadend[804]: mpegts: 226.5MHz in DVB-T - tuning on Silicon Labs Si2168 : DVB-T #0
Aug 17 18:10:41 Odroid tvheadend[804]: subscription: 0002: "127.0.0.1 [  | Kodi Media Center ]" subscribing on channel "TVP1 HD DVB-T", weight: 150, adapter: "Silicon Labs Si2168 : DVB-T #0", network: "DVB-T", mux: "226.5MHz", provider: "EmiTel", service: "TVP1 HD", profile="htsp", hostname="127.0.0.1", username="127.0.0.1", client="Kodi Media Center"
Aug 17 18:10:42 Odroid kernel: buf=2
Aug 17 18:10:42 Odroid kernel: IEC958_mode_raw=2
Aug 17 18:10:42 Odroid kernel: IEC958_mode_codec= 2, IEC958 type Dolby Digital
Aug 17 18:10:42 Odroid kernel: last mode 0,now 2
...
...
...
Aug 17 18:10:51 Odroid kernel: switch_vpu_mem_pd: viu_vd1 ON
Aug 17 18:10:51 Odroid kernel: switch_vpu_mem_pd: afbc_dec ON
Aug 17 18:10:51 Odroid kernel: switch_vpu_mem_pd: di_post ON
Aug 17 18:10:51 Odroid kernel: codec:VsyncEnableVideoLayer
Aug 17 18:10:54 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
Aug 17 18:10:59 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
Aug 17 18:11:04 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
Aug 17 18:11:09 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 4   dat: 0f 82 00 00
Aug 17 18:11:09 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 4
Aug 17 18:11:09 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 6   dat: 0f 80 20 00 30 00
Aug 17 18:11:09 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 6
Aug 17 18:11:09 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
Aug 17 18:11:15 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
Aug 17 18:11:20 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
Aug 17 18:11:21 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 6   dat: 0f 80 30 00 00 00
Aug 17 18:11:21 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 6
Aug 17 18:11:21 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 6   dat: 0f 80 30 00 00 00
Aug 17 18:11:21 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 6
Aug 17 18:11:25 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 6   dat: 0f 80 00 00 20 00
Aug 17 18:11:25 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 6
Aug 17 18:11:25 Odroid kernel: CEC: tx msg len: 2   dat: 10 04
Aug 17 18:11:25 Odroid kernel: CEC: tx msg len: 4   dat: 1f 82 20 00
Aug 17 18:11:25 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 6   dat: 0f 80 00 00 20 00
Aug 17 18:11:25 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 6
Aug 17 18:11:25 Odroid kernel: CEC: tx msg len: 3   dat: 10 8e 00
Aug 17 18:11:25 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 3   dat: 01 8d 02
Aug 17 18:11:25 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 3
Aug 17 18:11:25 Odroid kernel: CEC: tx msg len: 2   dat: 10 04
Aug 17 18:11:25 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 3   dat: 01 1a 01
Aug 17 18:11:25 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 3
Aug 17 18:11:25 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
Aug 17 18:11:25 Odroid kernel: CEC: tx msg len: 4   dat: 1f 82 20 00
Aug 17 18:11:26 Odroid kernel: CEC: tx msg len: 3   dat: 10 8e 00
Aug 17 18:11:26 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 3   dat: 01 8d 02
Aug 17 18:11:26 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 3
Aug 17 18:11:26 Odroid kernel: CEC: tx msg len: 3   dat: 10 8e 00
Aug 17 18:11:26 Odroid kernel: CEC: tx msg len: 3   dat: 10 1b 1a
Aug 17 18:11:26 Odroid kernel: CEC: tx msg len: 3   dat: 10 8e 00
Aug 17 18:11:30 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 3   dat: 01 44 0d
Aug 17 18:11:30 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 3
Aug 17 18:11:30 Odroid tvheadend[804]: http: 127.0.0.1: HTTP/1.1 HEAD /imagecache/10177 -- 404
Aug 17 18:11:30 Odroid tvheadend[804]: http: 127.0.0.1: HTTP/1.1 HEAD /imagecache/9830 -- 404
Aug 17 18:11:30 Odroid tvheadend[804]: http: 127.0.0.1: HTTP/1.1 HEAD /imagecache/10077 -- 404
Aug 17 18:11:30 Odroid tvheadend[804]: http: 127.0.0.1: HTTP/1.1 HEAD /imagecache/9856 -- 404
Aug 17 18:11:30 Odroid tvheadend[804]: http: 127.0.0.1: HTTP/1.1 HEAD /imagecache/9808 -- 404
Aug 17 18:11:30 Odroid tvheadend[804]: http: 127.0.0.1: HTTP/1.1 HEAD /imagecache/10289 -- 404
Aug 17 18:11:30 Odroid tvheadend[804]: http: 127.0.0.1: HTTP/1.1 HEAD /imagecache/10272 -- 404
Aug 17 18:11:30 Odroid tvheadend[804]: http: 127.0.0.1: HTTP/1.1 HEAD /imagecache/10124 -- 404
Aug 17 18:11:30 Odroid kernel: codec:[video4osd] first  picture {1920,1080} pts:3ad0b8,
Aug 17 18:11:30 Odroid kernel: switch_vpu_mem_pd: viu_vd1 ON
Aug 17 18:11:30 Odroid kernel: switch_vpu_mem_pd: afbc_dec ON
Aug 17 18:11:30 Odroid kernel: switch_vpu_mem_pd: di_post ON
Aug 17 18:11:30 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 2   dat: 01 45
Aug 17 18:11:30 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 2
Aug 17 18:11:30 Odroid kernel: codec:[video4osd] first  picture {1920,1080} pts:0,
Aug 17 18:11:30 Odroid kernel: switch_vpu_mem_pd: viu_vd1 ON
Aug 17 18:11:30 Odroid kernel: switch_vpu_mem_pd: afbc_dec ON
Aug 17 18:11:30 Odroid kernel: switch_vpu_mem_pd: di_post ON
Aug 17 18:11:30 Odroid kernel: codec:VsyncEnableVideoLayer
Aug 17 18:11:31 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
Aug 17 18:11:32 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 3   dat: 01 44 01
Aug 17 18:11:32 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 3
Aug 17 18:11:32 Odroid tvheadend[804]: http: 127.0.0.1: HTTP/1.1 HEAD /imagecache/10272 -- 404
Aug 17 18:11:33 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 2   dat: 01 45
Aug 17 18:11:33 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 2
Aug 17 18:11:34 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 3   dat: 01 44 02
Aug 17 18:11:34 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 3
Aug 17 18:11:34 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 2   dat: 01 45
Aug 17 18:11:34 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 2
Aug 17 18:11:36 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
Aug 17 18:11:39 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 3   dat: 01 44 01
Aug 17 18:11:39 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 3
Aug 17 18:11:40 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 2   dat: 01 45
Aug 17 18:11:40 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 2
Aug 17 18:11:41 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 3   dat: 01 44 02
Aug 17 18:11:41 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 3
Aug 17 18:11:41 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 2   dat: 01 45
Aug 17 18:11:41 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 2
Aug 17 18:11:41 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
Aug 17 18:11:41 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 3   dat: 01 44 00
Aug 17 18:11:41 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 3
Aug 17 18:11:41 Odroid kernel: codec:[video4osd] first  picture {1920,1080} pts:4a4048,
Aug 17 18:11:41 Odroid kernel: switch_vpu_mem_pd: viu_vd1 ON
Aug 17 18:11:41 Odroid kernel: switch_vpu_mem_pd: afbc_dec ON
Aug 17 18:11:41 Odroid kernel: switch_vpu_mem_pd: di_post ON
Aug 17 18:11:41 Odroid kernel: codec:[video4osd] first  picture {1920,1080} pts:0,
Aug 17 18:11:41 Odroid kernel: switch_vpu_mem_pd: viu_vd1 ON
Aug 17 18:11:41 Odroid kernel: switch_vpu_mem_pd: afbc_dec ON
Aug 17 18:11:41 Odroid kernel: switch_vpu_mem_pd: di_post ON
Aug 17 18:11:41 Odroid kernel: codec:VsyncEnableVideoLayer
Aug 17 18:11:42 Odroid kernel: cectx c810023c.aocec: cec_ll_rx(): CEC: rx msg len: 2   dat: 01 45
Aug 17 18:11:42 Odroid kernel: cectx c810023c.aocec: hdmitx_cec_read(): RX len: 2
Aug 17 18:11:47 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
Aug 17 18:11:52 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
Aug 17 18:11:57 Odroid kernel: cectx c810023c.aocec: aml_cec_class_devnode(): mode is 1b6
Hmm...It looks like that is well...I'll do the tests at night...

Raybuntu
Posts: 1397
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2
Has thanked: 3 times
Been thanked: 16 times
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by Raybuntu » Thu Aug 18, 2016 1:24 am

Now I need to find the delay in the isr handler. It's not that obvious but gdachs Amlogic CEC driver doesn't have those delays. But it's probably a good idea to use some kind of irq balance.

Raybuntu
Posts: 1397
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2
Has thanked: 3 times
Been thanked: 16 times
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by Raybuntu » Sat Aug 20, 2016 3:32 am

@aNORes: any news did the command help? Can we recommend the settings for users in autostart.sh?

aNORes
Posts: 46
Joined: Tue Jul 12, 2016 4:58 am
languages_spoken: english
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by aNORes » Sat Aug 20, 2016 4:02 am

Raybuntu wrote:@aNORes: any news did the command help? Can we recommend the settings for users in autostart.sh?
I will write tomorrow as I get home...

aNORes
Posts: 46
Joined: Tue Jul 12, 2016 4:58 am
languages_spoken: english
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by aNORes » Sat Aug 20, 2016 6:25 pm

Raybuntu wrote:Can we recommend the settings for users in autostart.sh?
Yes, this setting is strongly recommended:

Code: Select all

echo 2 > /proc/irq/231/smp_affinity
Sometimes I still have error "Continuity counter error" but it may be accidental (signal quality?) and independent of CEC.
I have to do more tests.

Rock stable, no errors (accidentally?) "Continuity counter error" with the kernel settings:

Code: Select all

Odroid:~ # zcat /proc/config.gz | grep -i cec
# AO CEC Support
# CONFIG_AML_AO_CEC is not set
CONFIG_AML_HDMI_TX_NEW_CEC_DRIVER=y
Odroid:~ #
Tomorrow I will compile the "hybrid, all-in-one" build (media_build, ljalves, crazycat, backports drivers) so everyone will be able to choose what suits him best.

User avatar
wrxtasy
Posts: 1300
Joined: Wed May 13, 2015 1:59 pm
languages_spoken: english
ODROIDs: C1, C1+, C2, N2
Location: Australia
Has thanked: 3 times
Been thanked: 3 times
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by wrxtasy » Sat Aug 20, 2016 9:44 pm

noREs, I'm sure you are aware LE is Open Source software.
Make sure you publish your LE modifications to GitHub or similar to comply with the GPL licences the LE and Kodi code contains.

Both RB and I can help if you run into publishing issues. :)
Kodi Hardware Guru

aNORes
Posts: 46
Joined: Tue Jul 12, 2016 4:58 am
languages_spoken: english
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by aNORes » Sat Aug 20, 2016 11:46 pm

wrxtasy wrote:noREs, I'm sure you are aware LE is Open Source software.
Make sure you publish your LE modifications to GitHub or similar to comply with the GPL licences the LE and Kodi code contains.

Both RB and I can help if you run into publishing issues. :)
In a nutshell: Of course I can describe it very exactly. I'm not a programmer. I do not know how git works (I know only: git clone + that I find in google).
If this method violates the GPL license - then I stop to publish my builds.

Raybuntu
Posts: 1397
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2
Has thanked: 3 times
Been thanked: 16 times
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by Raybuntu » Sat Aug 20, 2016 11:59 pm

I guess noone wants that. We highly appreciate your builds.
GPL dictates if you publish binaries you need to publish the sources too but on your terms. So you could just point to the sources from others if you haven't done any changes and publish your patches somewhere. Thats for the legal part but noone forces you to do anything.

I personally appreciate your findings about that CEC irq issue.
Its ok if you are no programmer we don't judge. For what it's worth your builds seem to work for users. However if you are interested to collaborate we are happy to explain stuff.

Thats just an offer. I remember wrxtasy had some trouble publishing his sources at first too ;)

aNORes
Posts: 46
Joined: Tue Jul 12, 2016 4:58 am
languages_spoken: english
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by aNORes » Sun Aug 21, 2016 2:46 am

Raybuntu wrote:I guess noone wants that. We highly appreciate your builds.
GPL dictates if you publish binaries you need to publish the sources too but on your terms. So you could just point to the sources from others if you haven't done any changes and publish your patches somewhere. Thats for the legal part but noone forces you to do anything.

I personally appreciate your findings about that CEC irq issue.
Its ok if you are no programmer we don't judge. For what it's worth your builds seem to work for users. However if you are interested to collaborate we are happy to explain stuff.

Thats just an offer. I remember wrxtasy had some trouble publishing his sources at first too ;)
Ok,

I'll try to learn git -> push my modifications -> publish my builds

User avatar
wrxtasy
Posts: 1300
Joined: Wed May 13, 2015 1:59 pm
languages_spoken: english
ODROIDs: C1, C1+, C2, N2
Location: Australia
Has thanked: 3 times
Been thanked: 3 times
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by wrxtasy » Sun Aug 21, 2016 6:22 pm

Thats just an offer. I remember wrxtasy had some trouble publishing his sources at first too ;)
Yes I did and I'm still learning. So I don't like to throw stones at LE users doing good work like aNORes.
Devs. understand the steep Git learning curve initial required so have to be patient too.

Once you learn a bit about Git and Open Source code and see where your Open Source version of a project ends up it becomes pretty satisfying, especially the collaborative effort that goes into a big project like LE Kodi.

@aNORes, I understand now what you are doing and yours really is a very custom Linux LE job, especially as you are manipulating images directly. If it works, that is all end users really care about. Publishing can stay on the back burner as it looks a bit difficult anyway.
Keep up the good work :)
Kodi Hardware Guru

aNORes
Posts: 46
Joined: Tue Jul 12, 2016 4:58 am
languages_spoken: english
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by aNORes » Sun Aug 21, 2016 11:53 pm


aNORes
Posts: 46
Joined: Tue Jul 12, 2016 4:58 am
languages_spoken: english
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by aNORes » Thu Aug 25, 2016 5:43 pm

I wrote the script and instructions on how to compile my build:

https://github.com/anor-es/media_build-libreelec

xblackdemonx
Posts: 68
Joined: Tue Mar 15, 2016 5:13 am
languages_spoken: english
Has thanked: 9 times
Been thanked: 1 time
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by xblackdemonx » Fri Aug 26, 2016 2:16 am

Is this build supposed to be better/faster than wrxtasy's for Kodi usage?

aNORes
Posts: 46
Joined: Tue Jul 12, 2016 4:58 am
languages_spoken: english
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: LibreELEC 7.1.0 - media_build edition.

Post by aNORes » Fri Aug 26, 2016 2:19 am

xblackdemonx wrote:Is this build supposed to be better/faster than wrxtasy's for Kodi usage?
No, only support dvb cards.

Post Reply

Return to “CoreELEC/LibreELEC - Kodi Project for C1/C2”

Who is online

Users browsing this forum: No registered users and 1 guest