CEC in Kernel 4.14

Test and fix the Kernel 4.14 features
Post Reply
meaz
Posts: 21
Joined: Fri Apr 12, 2019 5:49 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

CEC in Kernel 4.14

Unread post by meaz » Wed May 08, 2019 6:13 pm

Hello,

I'm a band new user of Odroid. I'm used to use Raspberry pi. There is something very important to me that I can't make work on my Odroid XU4:
CEC with Kodi.

I have installed debian stretch from here view topic.php?f=96&t=30552

Here is what I have done so far:
- /boot/boot.ini has CEC enabled: setenv cecenable "true"
- I have write permission to /dev/cec0
- my ODROID is connected to HDMI-1
- I have installed libcec4 from http://oph.mdrjr.net/meveric/ repo
- I also had to do this: ln -s /dev/cec0 /dev/CEC


When I do that, I have a message on Kodi "Pulse-eight connecting". The peripherals options in Settings/System/Input is now available.
However, Pulse-eight doesn't seem to be connected.

In Kodi log, i have:

Code: Select all

ERROR: CecLogMessage - Write: write failed !
WHen I do that:

Code: Select all

cec-client -l
I get:

Code: Select all

libCEC version: 4.0.1, compiled on Linux-4.14.107+ ... , features:
P8_USB, DRM, P8_detect, randr, Exynos
Found devices: 1

device:              1
com port:            Exynos
ERROR:   [             532]     SetLogicalAddresses: IOCTL
SetLogicalAddr failed !
vendor id:           0000
product id:          0000
firmware version:    0
type:                unknown

The repo maintener, Meveric, tried to help me out. He couldn't find a solution either. He set the cec device in different modes, like tv, playback, tuner, etc. but cec-compliance always fails to test the device.

So, I'm not sure if CEC is still working under Kernel 4.14 or not.
The same driver works fine under Kernel 3.10 so I'd say the real issue is Kernel 4.14 here.
Would you have a way to fix this in the Kernel?

Thanks a lot

meaz

User avatar
OverSun
Posts: 1458
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english
Has thanked: 0
Been thanked: 2 times
Contact:

Re: CEC in Kernel 4.14

Unread post by OverSun » Wed May 08, 2019 6:40 pm

as a first possible step to debug this - turn off your tv, disconnect everything from it, leave only odroid in.
turn on tv, odroid board, and then try to test stuff.
that would eliminate other devices grabbing all available logical ports.

I find quite amusing design when there are only 4 logical ports for each device type (which is again 4 and only 2 of them really useful as input), and when device claims logical port TV cannot give it to any other device, so you can easily exhaust ports just connecting and disconnecting stuff while testing. few plug ins and outs and all logical ports are going to be taking until proper timeouts.
So yeah, try to start clean, and then connect stuff one by one if that helps.

User avatar
AreaScout
Posts: 910
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell
Has thanked: 5 times
Been thanked: 18 times
Contact:

Re: CEC in Kernel 4.14

Unread post by AreaScout » Wed May 08, 2019 8:11 pm

Hello

You don't need a /dev/CEC that's the device naming with the old CEC API, since 4.10 a new API is active in the kernel which uses /dev/cec0 naming, if you have needed the old naming in order to get libecec barely working it only means that you are using an libcec which doesn't support the new API

To add libcec with new API please follow this guide https://wiki.odroid.com/odroid-xu4/soft ... rom_source

Also to be sure the old library is not used anymore copy the one from your compiled source folder over to the one in the system library folder with

Code: Select all

sudo cp src/libcec/libcec.so /usr/lib/arm-linux-gnueabihf/libcec.so.4.0.1
RG

meaz
Posts: 21
Joined: Fri Apr 12, 2019 5:49 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: CEC in Kernel 4.14

Unread post by meaz » Mon May 13, 2019 1:00 am

Thanks a lot for your help.

Thanks to meveric, I now have the right libcec4 : viewtopic.php?f=96&t=30552&p=255688#p255688

It has work like 10 minutes. But now it doesn't anymore! I formatted to start from scratch again. But it still doesn't connect. I have this message from kodi : "Connection to Pulse-Eight CEC..." But it never connects.

I'm on HDMI1, I have unplugged everything else.

In Kodi log, i have:

Code: Select all

17:51:45.682 T:2519712496  NOTICE: Register - new cec device registered on cec->Linux: CEC Adapter (0000:0000)
17:51:45.683 T:2462589680   ERROR: CecLogMessage - CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=1
17:51:45.754 T:2976116720   ERROR: Previous line repeats 3 times.
17:51:45.754 T:2976116720  NOTICE: initialize done
17:51:45.754 T:2976116720  NOTICE: Running the application...
17:51:45.762 T:2976116720  NOTICE: starting zeroconf publishing
17:51:45.762 T:2976116720  NOTICE: starting upnp client
17:51:45.768 T:2353484528  NOTICE: ES: Starting UDP Event server on port 9777
17:51:45.768 T:2353484528  NOTICE: UDP: Listening on port 9777 (ipv6 : false)
17:51:49.244 T:2462589680   ERROR: CecLogMessage - CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=1
17:51:49.448 T:2462589680   ERROR: Previous line repeats 1 times.
17:51:49.448 T:2462589680   ERROR: CecLogMessage - CLinuxCECAdapterCommunication::Write - ioctl CEC_TRANSMIT failed - tx_status=00 errno=22
If I do:

Code: Select all

cec-client -l
I get this:

Code: Select all

libCEC version: 4.0.4, compiled on Linux-4.14.107+ ... , features: P8_USB, DRM, P8_detect, randr, Exynos, Linux, AOCEC
Found devices: 1

device:              1
com port:            Linux
vendor id:           0000
product id:          0000
firmware version:    0
type:                Linux
I don't understand why it doesn't work, especially why as it worked some minutes!

User avatar
AreaScout
Posts: 910
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell
Has thanked: 5 times
Been thanked: 18 times
Contact:

Re: CEC in Kernel 4.14

Unread post by AreaScout » Mon May 13, 2019 9:08 pm

    Please do a sudo apt install mlocate followed by a sudo updatedb and then please locate all libcec with locate libcec and post the output, I wanna be sure if this is the only libcec library around on the system

    RG

    meaz
    Posts: 21
    Joined: Fri Apr 12, 2019 5:49 pm
    languages_spoken: english
    ODROIDs: XU4
    Has thanked: 0
    Been thanked: 0
    Contact:

    Re: CEC in Kernel 4.14

    Unread post by meaz » Mon May 13, 2019 10:43 pm

    Here is what I get: with locate libcec

    Code: Select all

    /usr/lib/arm-linux-gnueabihf/libcec.so.4
    /usr/lib/arm-linux-gnueabihf/libcec.so.4.0.4
    /usr/share/doc/libcec4
    /usr/share/doc/libcec4/changelog.Debian.gz
    /usr/share/doc/libcec4/changelog.gz
    /usr/share/doc/libcec4/copyright
    /var/cache/apt/archives/libcec4_4.0.4+dfsg1-2~bpo9_armhf.deb
    /var/lib/dpkg/info/libcec4:armhf.list
    /var/lib/dpkg/info/libcec4:armhf.md5sums
    /var/lib/dpkg/info/libcec4:armhf.shlibs
    /var/lib/dpkg/info/libcec4:armhf.symbols
    /var/lib/dpkg/info/libcec4:armhf.triggers
    

    User avatar
    AreaScout
    Posts: 910
    Joined: Sun Jul 07, 2013 3:05 am
    languages_spoken: german, english
    ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
    N1, Go, VU5A, Show2, CloudShell2,
    H2, N2, VU7A, VuShell
    Has thanked: 5 times
    Been thanked: 18 times
    Contact:

    Re: CEC in Kernel 4.14

    Unread post by AreaScout » Wed May 15, 2019 11:20 pm

      Sorry for the late, here some things you can check before you build it again for yourself

      check if the permissions of the /dev/cec0 device are ok

      echo 'KERNEL=="cec0", MODE="0666", GROUP="video"' > /etc/udev/rules.d/51-cec0.rules

      issue a udevadm control --reload-rules && udevadm trigger to reload the rules

      If your TV has more then one HDMI ports, try it only on HDMI 1, sometimes only the first HDMI port is able to do cec i.e my LG TV

      If all that doesn't help, try to build it for your self <-- last panic solution

      Code: Select all

      apt-get install git cmake libudev-dev libxrandr-dev python-dev swig
      
      git clone https://github.com/Pulse-Eight/libcec.git
      cd libcec
      wget -O libcec.patch https://github.com/Kwiboo/libcec/commit/48255b7d4e1cba1050b8abfbd03be37c0737e832.patch
      git apply libcec.patch
      mkdir build
      cd build
      cmake -DHAVE_LINUX_API=1 ..
      make -j7
      
      after building was finished, copy the library over to /usr/lib/arm-linux-gnueabihf with

      Code: Select all

      sudo cp src/libcec/libcec.so /usr/lib/arm-linux-gnueabihf/libcec.so.4.0.4
      
      RG

      meaz
      Posts: 21
      Joined: Fri Apr 12, 2019 5:49 pm
      languages_spoken: english
      ODROIDs: XU4
      Has thanked: 0
      Been thanked: 0
      Contact:

      Re: CEC in Kernel 4.14

      Unread post by meaz » Thu May 16, 2019 10:52 pm

      Hi AreaScout,

      don't worry, I know that you guys have plenty of things to do, it is already so nie to take of your time to help us out.

      I have checked the permissions of the /dev/cec0 device and they are ok (KERNEL=="cec0", MODE="0666", GROUP="video" in /etc/udev/rules.d/51-cec0.rules.
      I have pluged the XU4 on HDMI 1.
      But it still doesn't work.

      So, I have tried to build it for myself.

      All this part is fine:

      Code: Select all

      apt-get install git cmake libudev-dev libxrandr-dev python-dev swig
      
      git clone https://github.com/Pulse-Eight/libcec.git
      cd libcec
      wget -O libcec.patch https://github.com/Kwiboo/libcec/commit/48255b7d4e1cba1050b8abfbd03be37c0737e832.patch
      git apply libcec.patch
      mkdir build
      cd build
      But

      Code: Select all

      cmake -DHAVE_LINUX_API=1 ..
      gives me that:

      Code: Select all

      -- The C compiler identification is GNU 6.3.0
      -- The CXX compiler identification is GNU 6.3.0
      -- Check for working C compiler: /usr/bin/cc
      -- Check for working C compiler: /usr/bin/cc -- works
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Check for working CXX compiler: /usr/bin/c++
      -- Check for working CXX compiler: /usr/bin/c++ -- works
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Performing Test SUPPORTS_CXX11
      -- Performing Test SUPPORTS_CXX11 - Success
      -- Looking for pthread.h
      -- Looking for pthread.h - found
      -- Looking for pthread_create
      -- Looking for pthread_create - not found
      -- Looking for pthread_create in pthreads
      -- Looking for pthread_create in pthreads - not found
      -- Looking for pthread_create in pthread
      -- Looking for pthread_create in pthread - found
      -- Found Threads: TRUE  
      -- Looking for initscr in curses
      -- Looking for initscr in curses - not found
      -- Looking for dlopen in dl
      -- Looking for dlopen in dl - found
      -- Looking for clock_gettime in rt
      -- Looking for clock_gettime in rt - found
      -- Found PythonLibs: /usr/lib/arm-linux-gnueabihf/libpython2.7.so (found version "2.7.13") 
      -- git found: libcec-4.0.4+1-ba9b538~dirty
      -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29") 
      -- Looking for include file sys/file.h
      -- Looking for include file sys/file.h - found
      -- Looking for flock
      -- Looking for flock - found
      -- Checking for module 'udev'
      --   Found udev, version 232
      -- Looking for 3 include files X11/Xlib.h, ..., X11/extensions/Xrandr.h
      -- Looking for 3 include files X11/Xlib.h, ..., X11/extensions/Xrandr.h - found
      -- Looking for XRRGetScreenResources in Xrandr
      -- Looking for XRRGetScreenResources in Xrandr - found
      -- Looking for bcm_host_init in bcm_host
      -- Looking for bcm_host_init in bcm_host - not found
      -- Looking for include files tda998x_ioctl.h, comps/tmdlHdmiCEC/inc/tmdlHdmiCEC_Types.h
      -- Looking for include files tda998x_ioctl.h, comps/tmdlHdmiCEC/inc/tmdlHdmiCEC_Types.h - not found
      -- Found SWIG: /usr/bin/swig3.0 (found version "3.0.10") 
      -- Configured features:
      -- Pulse-Eight CEC Adapter:                yes
      -- Pulse-Eight CEC Adapter detection:      yes
      -- xrandr support:                         yes
      -- Raspberry Pi support:                   no
      -- TDA995x support:                        no
      -- Exynos support:                         no
      -- DRM support:                            yes
      -- Linux support:                          yes
      -- AOCEC support:                          no
      -- Python support:                         version 2.7.13 (2.7)
      -- lib info: git revision: libcec-4.0.4+1-ba9b538~dirty, compiled on jeudi 16 mai 2019, 13:44:44 (UTC+0000) by root@myodroid on Linux 4.14.111+ (armv7l), features: P8_USB, DRM, P8_detect, randr, Linux
      -- Configuring done
      -- Generating done
      -- Build files have been written to: /root/libcec/build
      and then I have an error with

      Code: Select all

      make -j7
      :

      Code: Select all

      Scanning dependencies of target cec
      [  7%] Building CXX object src/libcec/CMakeFiles/cec.dir/LibCEC.cpp.o
      [  7%] Building CXX object src/libcec/CMakeFiles/cec.dir/CECProcessor.cpp.o
      [  7%] Building CXX object src/libcec/CMakeFiles/cec.dir/CECClient.cpp.o
      [  9%] Building CXX object src/libcec/CMakeFiles/cec.dir/LibCECC.cpp.o
      [ 12%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/Linux/LinuxCECAdapterCommunication.cpp.o
      [ 14%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/AdapterFactory.cpp.o
      [ 17%] Building CXX object src/libcec/CMakeFiles/cec.dir/adapter/Linux/LinuxCECAdapterDetection.cpp.o
      /root/libcec/src/libcec/adapter/Linux/LinuxCECAdapterCommunication.cpp:46:23: fatal error: linux/cec.h: Aucun fichier ou dossier de ce type
       #include <linux/cec.h>
                             ^
      compilation terminated.
      src/libcec/CMakeFiles/cec.dir/build.make:182 : la recette pour la cible « src/libcec/CMakeFiles/cec.dir/adapter/Linux/LinuxCECAdapterCommunication.cpp.o » a échouée
      make[2]: *** [src/libcec/CMakeFiles/cec.dir/adapter/Linux/LinuxCECAdapterCommunication.cpp.o] Erreur 1
      make[2]: *** Attente des tâches non terminées....
      CMakeFiles/Makefile2:252 : la recette pour la cible « src/libcec/CMakeFiles/cec.dir/all » a échouée
      make[1]: *** [src/libcec/CMakeFiles/cec.dir/all] Erreur 2
      Makefile:127 : la recette pour la cible « all » a échouée
      make: *** [all] Erreur 2
      Sorry it is in French, I'm sure you get the idea, but if you need me to translate everything let me know.

      Thanks for your help

      PS: I had to

      Code: Select all

      apt install pkg-config
      because I also ha the error message:

      Code: Select all

      missing: PKG_CONFIG_EXECUTABLE

      User avatar
      AreaScout
      Posts: 910
      Joined: Sun Jul 07, 2013 3:05 am
      languages_spoken: german, english
      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
      N1, Go, VU5A, Show2, CloudShell2,
      H2, N2, VU7A, VuShell
      Has thanked: 5 times
      Been thanked: 18 times
      Contact:

      Re: CEC in Kernel 4.14

      Unread post by AreaScout » Thu May 16, 2019 11:24 pm

      Hello

      Whenever a compiling task notifies you that a file is missing search with apt-file which package provides this file, I did a quick search and it told me that linux-libc-dev is needed -> I didn't had to install it separately

      so sudo apt install linux-libc-dev should fix that error

      and

      sudo apt-file search cec.h told me the package name, that was for debian but I guess it should be the same on Ubuntu

      RG

      meaz
      Posts: 21
      Joined: Fri Apr 12, 2019 5:49 pm
      languages_spoken: english
      ODROIDs: XU4
      Has thanked: 0
      Been thanked: 0
      Contact:

      Re: CEC in Kernel 4.14

      Unread post by meaz » Sat May 18, 2019 1:16 am

      Hello AreaScout

      Code: Select all

      apt-file search cec.h

      gives me this:

      Code: Select all

      gnuift-doc: /usr/share/doc/gnuift-doc/html/dir_87bc324e7a365d2e9a08a5a82f54bcec.html
      libcec-dev: /usr/include/libcec/cec.h
      libmediainfo-doc: /usr/share/doc/libmediainfo-doc/Doc/dir_04ac3ca04e7df05c28b97e8a54b78cec.html
      libstdc++-6-doc: /usr/share/doc/gcc-6-base/libstdc++/user/dir_e5ba9bcada37e869022a9c0b687a3cec.html
      linux-doc-4.19: /usr/share/doc/linux-doc-4.19/html/media/cec-drivers/pulse8-cec.html
      linux-headers-4.19.0-0.bpo.4-armmp: /usr/src/linux-headers-4.19.0-0.bpo.4-armmp/include/config/drm/dw/hdmi/cec.h
      linux-headers-4.19.0-0.bpo.4-armmp: /usr/src/linux-headers-4.19.0-0.bpo.4-armmp/include/config/drm/sun4i/hdmi/cec.h
      linux-headers-4.19.0-0.bpo.4-armmp: /usr/src/linux-headers-4.19.0-0.bpo.4-armmp/include/config/omap4/dss/hdmi/cec.h
      linux-headers-4.19.0-0.bpo.4-armmp: /usr/src/linux-headers-4.19.0-0.bpo.4-armmp/include/config/usb/pulse8/cec.h
      linux-headers-4.19.0-0.bpo.4-armmp: /usr/src/linux-headers-4.19.0-0.bpo.4-armmp/include/config/usb/rainshadow/cec.h
      linux-headers-4.19.0-0.bpo.4-armmp: /usr/src/linux-headers-4.19.0-0.bpo.4-armmp/include/config/video/vivid/cec.h
      linux-headers-4.19.0-0.bpo.4-armmp-lpae: /usr/src/linux-headers-4.19.0-0.bpo.4-armmp-lpae/include/config/drm/dw/hdmi/cec.h
      linux-headers-4.19.0-0.bpo.4-armmp-lpae: /usr/src/linux-headers-4.19.0-0.bpo.4-armmp-lpae/include/config/drm/sun4i/hdmi/cec.h
      linux-headers-4.19.0-0.bpo.4-armmp-lpae: /usr/src/linux-headers-4.19.0-0.bpo.4-armmp-lpae/include/config/omap4/dss/hdmi/cec.h
      linux-headers-4.19.0-0.bpo.4-armmp-lpae: /usr/src/linux-headers-4.19.0-0.bpo.4-armmp-lpae/include/config/usb/pulse8/cec.h
      linux-headers-4.19.0-0.bpo.4-armmp-lpae: /usr/src/linux-headers-4.19.0-0.bpo.4-armmp-lpae/include/config/usb/rainshadow/cec.h
      linux-headers-4.19.0-0.bpo.4-armmp-lpae: /usr/src/linux-headers-4.19.0-0.bpo.4-armmp-lpae/include/config/video/vivid/cec.h
      linux-headers-4.19.0-0.bpo.4-common: /usr/src/linux-headers-4.19.0-0.bpo.4-common/include/media/cec.h
      linux-headers-4.19.0-0.bpo.4-common: /usr/src/linux-headers-4.19.0-0.bpo.4-common/include/uapi/linux/cec.h
      linux-headers-4.19.0-0.bpo.4-common-rt: /usr/src/linux-headers-4.19.0-0.bpo.4-common-rt/include/media/cec.h
      linux-headers-4.19.0-0.bpo.4-common-rt: /usr/src/linux-headers-4.19.0-0.bpo.4-common-rt/include/uapi/linux/cec.h
      linux-headers-4.19.0-0.bpo.4-rt-armmp: /usr/src/linux-headers-4.19.0-0.bpo.4-rt-armmp/include/config/drm/dw/hdmi/cec.h
      linux-headers-4.19.0-0.bpo.4-rt-armmp: /usr/src/linux-headers-4.19.0-0.bpo.4-rt-armmp/include/config/drm/sun4i/hdmi/cec.h
      linux-headers-4.19.0-0.bpo.4-rt-armmp: /usr/src/linux-headers-4.19.0-0.bpo.4-rt-armmp/include/config/omap4/dss/hdmi/cec.h
      linux-headers-4.19.0-0.bpo.4-rt-armmp: /usr/src/linux-headers-4.19.0-0.bpo.4-rt-armmp/include/config/usb/pulse8/cec.h
      linux-headers-4.19.0-0.bpo.4-rt-armmp: /usr/src/linux-headers-4.19.0-0.bpo.4-rt-armmp/include/config/usb/rainshadow/cec.h
      linux-headers-4.19.0-0.bpo.4-rt-armmp: /usr/src/linux-headers-4.19.0-0.bpo.4-rt-armmp/include/config/video/vivid/cec.h
      linux-headers-4.9.0-4-common-grsec: /usr/src/linux-headers-4.9.0-4-common-grsec/include/linux/cec.h
      linux-headers-4.9.0-4-common-grsec: /usr/src/linux-headers-4.9.0-4-common-grsec/include/media/cec.h
      linux-headers-4.9.0-8-common: /usr/src/linux-headers-4.9.0-8-common/include/linux/cec.h
      linux-headers-4.9.0-8-common: /usr/src/linux-headers-4.9.0-8-common/include/media/cec.h
      linux-headers-4.9.0-8-common-rt: /usr/src/linux-headers-4.9.0-8-common-rt/include/linux/cec.h
      linux-headers-4.9.0-8-common-rt: /usr/src/linux-headers-4.9.0-8-common-rt/include/media/cec.h
      linux-headers-4.9.0-9-common: /usr/src/linux-headers-4.9.0-9-common/include/linux/cec.h
      linux-headers-4.9.0-9-common: /usr/src/linux-headers-4.9.0-9-common/include/media/cec.h
      linux-headers-4.9.0-9-common-rt: /usr/src/linux-headers-4.9.0-9-common-rt/include/linux/cec.h
      linux-headers-4.9.0-9-common-rt: /usr/src/linux-headers-4.9.0-9-common-rt/include/media/cec.h
      linux-libc-dev: /usr/include/linux/cec.h
      
      I have installed

      Code: Select all

      linux-libc-dev
      and

      Code: Select all

      libcec-dev
      But I still have the exact same error:

      Code: Select all

      /root/libcec/src/libcec/adapter/Linux/LinuxCECAdapterCommunication.cpp:46:23: fatal error: linux/cec.h: Aucun fichier ou dossier de ce type
       #include <linux/cec.h>
                             ^
      

      User avatar
      AreaScout
      Posts: 910
      Joined: Sun Jul 07, 2013 3:05 am
      languages_spoken: german, english
      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
      N1, Go, VU5A, Show2, CloudShell2,
      H2, N2, VU7A, VuShell
      Has thanked: 5 times
      Been thanked: 18 times
      Contact:

      Re: CEC in Kernel 4.14

      Unread post by AreaScout » Sat May 18, 2019 2:49 am

        Hu ? ... delete your build folder, recreate it, cd into it, and issue the cmake command again followed by a make

        RG

        User avatar
        meveric
        Posts: 10083
        Joined: Mon Feb 25, 2013 2:41 pm
        languages_spoken: german, english
        ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
        Has thanked: 9 times
        Been thanked: 58 times
        Contact:

        Re: CEC in Kernel 4.14

        Unread post by meveric » Sat May 18, 2019 5:43 am

        meaz wrote:
        Sat May 18, 2019 1:16 am
        I have installed

        Code: Select all

        linux-libc-dev

        Code: Select all

        apt-get install -t stretch linux-libc-dev
        Check that you have version 4.14 or higher installed.. the changes only exist in Kernel 4.10 or higher but the default linux-libc-dev from Debian is for Kernel 3.16.
        Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
        Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
        If you want to add my repository to your image read my HOWTO integrate my repo into your image.

        meaz
        Posts: 21
        Joined: Fri Apr 12, 2019 5:49 pm
        languages_spoken: english
        ODROIDs: XU4
        Has thanked: 0
        Been thanked: 0
        Contact:

        Re: CEC in Kernel 4.14

        Unread post by meaz » Sat May 18, 2019 1:15 pm

        Thanks meveric, that was the problem. Now I am able to make it.

        However, cec still doesn't work. I deleted build, recreated it. Followed the instructions. Rebooted. Cec is still not connecting. I've also followed this https://wiki.odroid.com/odroid-xu4/soft ... rom_source from its very beginning. THe only problem I had was with

        Code: Select all

        sudo apt remove libcec4
        sudo apt install cec-utils
        because apt install cec-utils wants to also install libcec4
        I did it anyway and then

        Code: Select all

        sudo cp src/libcec/libcec.so /usr/lib/arm-linux-gnueabihf/libcec.so.4.0.4
        So I had also

        Code: Select all

        /usr/lib/arm-linux-gnueabihf/libcec.so.4.0.1
        wich I deleted it.

        Code: Select all

        ls -l /usr/lib/arm-linux-gnueabihf/libcec*
        gives me this:

        Code: Select all

        lrwxrwxrwx 1 root root      15 mai   18 06:09 /usr/lib/arm-linux-gnueabihf/libcec.so.4 -> libcec.so.4.0.4
        -rwxr-xr-x 1 root root 1060056 mai   18 06:10 /usr/lib/arm-linux-gnueabihf/libcec.so.4.0.4
        
        I rebooted.

        But CEC still not connects...

        User avatar
        meveric
        Posts: 10083
        Joined: Mon Feb 25, 2013 2:41 pm
        languages_spoken: german, english
        ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, N2
        Has thanked: 9 times
        Been thanked: 58 times
        Contact:

        Re: CEC in Kernel 4.14

        Unread post by meveric » Sat May 18, 2019 4:17 pm

        meaz wrote:
        Sat May 18, 2019 1:15 pm
        Thanks meveric, that was the problem. Now I am able to make it.

        However, cec still doesn't work. I deleted build, recreated it. Followed the instructions. Rebooted. Cec is still not connecting.
        I would have been surprised if that would have worked, as it's the same as in my libcec package, therefore it would be very strange if you do the same as I did and it works, but the packages that I created the same way do not ;)

        After all, it WAS working at the beginning... so the drivers from my repo are fine. I suspect something else changed.
        Maybe HDMI cable is not CEC capable, TV is not working correctly, or something like that... the drivers are fine.. and rebuilding everything just did mess up your image for no real good reason, except for knowing it doesn't make any difference.
        Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
        Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
        If you want to add my repository to your image read my HOWTO integrate my repo into your image.

        User avatar
        AreaScout
        Posts: 910
        Joined: Sun Jul 07, 2013 3:05 am
        languages_spoken: german, english
        ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
        N1, Go, VU5A, Show2, CloudShell2,
        H2, N2, VU7A, VuShell
        Has thanked: 5 times
        Been thanked: 18 times
        Contact:

        Re: CEC in Kernel 4.14

        Unread post by AreaScout » Sat May 18, 2019 6:11 pm

          Yes, like meveric pointed out already, it's very unlikely now that it's a software or config problem, to compile libcec again was the last panic option from a software point of view, if something doesn't work you have to go to the process as unlikely it is. Contact your local TV manufacturer branch and ask if your TV model is really capable of doing CEC, check cable, and lastly exchange your XU4

          RG

          meaz
          Posts: 21
          Joined: Fri Apr 12, 2019 5:49 pm
          languages_spoken: english
          ODROIDs: XU4
          Has thanked: 0
          Been thanked: 0
          Contact:

          Re: CEC in Kernel 4.14

          Unread post by meaz » Sat May 18, 2019 10:36 pm

          Alright thanks to both of you.

          It is for sure not coming from my TV nor from my HDMI cable either, because I have a Raspberry PI 2 with kodi that I use with the same cable and same tv and that works just fine.
          Perhaps it is coming from the XU4, but it is brand new.

          Thanks anyway, I understand there is nothing else to try!

          meaz

          Post Reply

          Return to “Linux Kernel 4.14 Debugging Party”

          Who is online

          Users browsing this forum: No registered users and 3 guests