XU4 HDMI CEC issue

Having issues with your DietPi installation or found a bug? Post it here.
User avatar
Joulinar
Posts: 5090
Joined: Sat Nov 16, 2019 12:49 am

Re: XU4 HDMI CEC issue

Post by Joulinar »

Best to my knowledge, on a RPi4 the ethernet interface is not shared anymore and a real gigabit one.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3088
Joined: Sat Nov 18, 2017 6:21 pm

Re: XU4 HDMI CEC issue

Post by MichaIng »

Since the two packages were compiled on/for Stretch, probably some other libraries not not match, causing the issue. I asked Meveric if those were patched or compiled with options different from the regular Debian repo packages, to work with Odroids. If so, we'd need to compile own Odroid-ready packages for Debian Buster.
doomdog
Posts: 7
Joined: Thu Feb 11, 2021 3:40 pm

Re: XU4 HDMI CEC issue

Post by doomdog »

I've compiled the latest libcec6 (which is already patched for kernel CEC framework) directly on the latest DietPi.
It also throws the same transmit errors as in my previous logs.
Also, dmesg does not show anything CEC-related, even though the kernel has the support (I checked in /proc/config.gz) and boot.ini has CEC enabled explicitly. It's almost like the CEC hardware is not there when the system boots. Something is really messing with 4.x kernels on the XU4...
tardistardat
Posts: 6
Joined: Sat Feb 20, 2021 10:10 am

Re: XU4 HDMI CEC issue

Post by tardistardat »

I'm having the same issue. Switched from Ubuntu 20.04 LTS to DietPI, because I could not get cec working.
I have never seen or used cec, so I don't exactly know what to look for in dmesg. The following returns nothing:

Code: Select all

root@DietPi:~# dmesg | grep -i cec
Kernel config:

Code: Select all

root@DietPi:~# zgrep -i cec /proc/config.gz 
CONFIG_TABLET_USB_ACECAD=m
CONFIG_CEC_CORE=y
CONFIG_CEC_NOTIFIER=y
CONFIG_MEDIA_CEC_SUPPORT=y
# CONFIG_MEDIA_CEC_RC is not set
# USB HDMI CEC adapters
# CONFIG_USB_PULSE8_CEC is not set
# CONFIG_USB_RAINSHADOW_CEC is not set
# CONFIG_VIDEO_VIVID_CEC is not set
CONFIG_CEC_PLATFORM_DRIVERS=y
CONFIG_VIDEO_SAMSUNG_S5P_CEC=y
Since we're debugging, it does not hurt to list what does kernel parameters do. Will include only CEC related parameters:
CONFIG_CEC_CORE=y - https://cateee.net/lkddb/web-lkddb/CEC_CORE.html
CONFIG_CEC_NOTIFIER=y - https://cateee.net/lkddb/web-lkddb/CEC_NOTIFIER.html
CONFIG_MEDIA_CEC_SUPPORT=y - https://cateee.net/lkddb/web-lkddb/MEDI ... PPORT.html
# CONFIG_MEDIA_CEC_RC is not set - https://cateee.net/lkddb/web-lkddb/MEDIA_CEC_RC.html <<-this looks like a potential problem
# CONFIG_USB_PULSE8_CEC is not set - https://cateee.net/lkddb/web-lkddb/USB_PULSE8_CEC.html
# CONFIG_USB_RAINSHADOW_CEC is not set - https://cateee.net/lkddb/web-lkddb/USB_ ... W_CEC.html
# CONFIG_VIDEO_VIVID_CEC is not set - https://cateee.net/lkddb/web-lkddb/VIDEO_VIVID_CEC.html
CONFIG_CEC_PLATFORM_DRIVERS=y - https://cateee.net/lkddb/web-lkddb/CEC_ ... IVERS.html
CONFIG_VIDEO_SAMSUNG_S5P_CEC=y - https://cateee.net/lkddb/web-lkddb/VIDE ... P_CEC.html

From https://bugs.debian.org/cgi-bin/bugrepo ... bug=868511 we learn that CEC was included in the mainline kernel starting from 4.10.

So, DietPI kernel is not "far" from when CEC support was included in the kernel:

Code: Select all

root@DietPi:~# uname -a
Linux DietPi 4.14.180+ #1 SMP PREEMPT Tue Oct 13 13:28:54 UTC 2020 armv7l GNU/Linux
tardistardat
Posts: 6
Joined: Sat Feb 20, 2021 10:10 am

Re: XU4 HDMI CEC issue

Post by tardistardat »

Found this debian bug report, seems to be still open: https://bugs.debian.org/cgi-bin/bugrepo ... bug=872650
User avatar
Joulinar
Posts: 5090
Joined: Sat Nov 16, 2019 12:49 am

Re: XU4 HDMI CEC issue

Post by Joulinar »

So, DietPI kernel is not "far" from when CEC support was included in the kernel:
just to avoid a misunderstanding. DietPi is not creating any kernel. The kernel is provided by the base image used. DietPi is not an own OS, it is a set of scripts on top of a Debian based destro/image. The image used depends on the SBC you are using. It could be a Raspberry OS, Armbian, plain Debian or Meveric image.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
tardistardat
Posts: 6
Joined: Sat Feb 20, 2021 10:10 am

Re: XU4 HDMI CEC issue

Post by tardistardat »

Joulinar wrote: Sat Feb 20, 2021 11:01 am
So, DietPI kernel is not "far" from when CEC support was included in the kernel:
[...]
The kernel is provided by the base image used.
[...]
The image used depends on the SBC you are using. It could be a Raspberry OS, Armbian, plain Debian or Meveric image.
How do I check / know which base image was used? It's not specified on the download page https://dietpi.com/#download
User avatar
Joulinar
Posts: 5090
Joined: Sat Nov 16, 2019 12:49 am

Re: XU4 HDMI CEC issue

Post by Joulinar »

usually it's part of the header once you login

Code: Select all

 ─────────────────────────────────────────────────────
 DietPi v6.34.3 : 26 APT updates available
 ─────────────────────────────────────────────────────
 - Device model : RPi 4 Model B (armv7l)
 - Uptime : up 3 days, 15 hours, 8 minutes
 - CPU temp : 41'C : 105'F (Optimal temperature)
 - LAN IP : 192.168.0.11 (eth0)
 - Info Text : !!! PRODUCTION SYSTEM !!!
 ─────────────────────────────────────────────────────

 DietPi Team     : MichaIng (lead), Daniel Knight (founder), Joulinar (support)
 Image           : DietPi Core Team (pre-image: Raspbian Lite)
 Web             : https://dietpi.com | https://twitter.com/DietPi_
 Donate          : https://dietpi.com/#donate
 DietPi Hosting  : Powered by https://myvirtualserver.com

 apt upgrade     : Run now to apply 26 available APT package upgrades.

root@DietPiProd:~#
In my case it's RPi OS
Image : DietPi Core Team (pre-image: Raspbian Lite)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3088
Joined: Sat Nov 18, 2017 6:21 pm

Re: XU4 HDMI CEC issue

Post by MichaIng »

Yeah, "Meveric" is probably a bit short. For Odroids we use Meveric's images/kernel repository:
- https://forum.odroid.com/viewtopic.php?t=30552
- https://dietpi.com/meveric/

I already forwarded the CEC topic to him and he's testing it on Debian Buster. The libcec packages from the Debian Buster repositories have Exynos CEC support enabled by default, so likely it's related to the kernel indeed.

Debian bug reports are likely not helpful here, since it's not the Debian kernel but Hardkernel's (Odroid SBC manufacturer) kernel sources, built and packaged by Meveric. But interesting to learn about the options, many thanks for sharing :).
User avatar
Joulinar
Posts: 5090
Joined: Sat Nov 16, 2019 12:49 am

Re: XU4 HDMI CEC issue

Post by Joulinar »

@MichaIng
Maybe we should create an overview of SBC and show the used base image? Just thinking :?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply