Bananapi m2p HDMI CEC


Recommended Posts

Hello, I have a question about HDMI CEC in Armbian Stretch, is it possible to run this? After command lsmod I have module hdmi_hw_cec, I install libcec and cec-utils packages but cec-client still show "not devices". I read in sunxi wiki http://linux-sunxi.org/Linux_mainlining_effort#Status_Matrix that HDMI CEC should be active in revision 4.17, so when we can expect this version? :)

 

Link to post
Share on other sites
Donate and support the project!

libcec and cec-utils will probably never work with mainline kernel CEC infrastructure. You need cec-ctl from v4l-utils to work with that.

 

BTW, if you have 4.17 kernel or higher, make sure that you have "/dev/cec0" device present, otherwise some kernel features might not be enabled. Additionally, it seems that CEC doesn't work on some H3 boards but it does on others. Probably because this feature was never supported in BSP kernel and board maker couldn't really test it. I really don't know if it works on BPi M2+.

Link to post
Share on other sites

Thank you jernej. I tested CEC in OpenElec (http://forum.banana-pi.org/t/openelec-kodi-16-0-xbmc-on-the-banana-pi-bpi-m2-project/1600) with kernel 3.4.113 and it's work. Now I'm testing 4.14.78-sunxi  and I have cec0 in /dev/. I installed v4l-utils and in cec-ctl:

 

root@bananapim2plus:~# cec-ctl
Driver Info:
        Driver Name                : sun8i-dw-hdmi
        Adapter Name               : dw_hdmi
        Capabilities               : 0x0000001e
                Logical Addresses
                Transmit
                Passthrough
                Remote Control Support
        Driver version             : 4.14.78
        Available Logical Addresses: 4
        Physical Address           : 1.0.0.0
        Logical Address Mask       : 0x0000
        CEC Version                : 2.0
        OSD Name                   : ''
        Logical Addresses          : 0

In lsmod:

root@bananapim2plus:~# lsmod
Module                  Size  Used by
snd_soc_hdmi_codec     16384  0
rc_cec                 16384  0
dw_hdmi_i2s_audio      16384  0
dw_hdmi_cec            16384  0
lz4hc                  16384  4
lz4hc_compress         24576  1 lz4hc
joydev                 20480  0
sun4i_codec            32768  3
sun8i_codec_analog     24576  1
sun4i_i2s              16384  0
zram                   24576  5
snd_soc_core          118784  4 sun4i_codec,sun4i_i2s,sun8i_codec_analog,snd_soc_hdmi_codec
ir_lirc_codec          16384  0
lirc_dev               16384  1 ir_lirc_codec
evdev                  20480  4
sun8i_dw_hdmi          16384  0
input_leds             16384  0
dw_hdmi                28672  2 dw_hdmi_i2s_audio,sun8i_dw_hdmi
sunxi_cir              16384  0
snd_pcm_dmaengine      16384  1 snd_soc_core
snd_pcm                69632  4 sun4i_i2s,snd_pcm_dmaengine,snd_soc_hdmi_codec,snd_soc_core
cec                    40960  2 dw_hdmi_cec,dw_hdmi
snd_timer              24576  1 snd_pcm
sun4i_gpadc_iio        16384  0
snd                    45056  4 snd_soc_hdmi_codec,snd_timer,snd_soc_core,snd_pcm
soundcore              16384  1 snd
sun8i_mixer            16384  0
sun4i_tcon             20480  1 sun8i_dw_hdmi
uio_pdrv_genirq        16384  0
sun4i_drm              16384  2
uio                    16384  1 uio_pdrv_genirq
usb_f_acm              16384  1
u_serial               20480  3 usb_f_acm
g_serial               16384  0
libcomposite           40960  2 g_serial,usb_f_acm
brcmfmac              159744  0
brcmutil               16384  1 brcmfmac
cfg80211              376832  1 brcmfmac
rfkill                 20480  4 cfg80211
ip_tables              20480  0
x_tables               20480  1 ip_tables
pwrseq_simple          16384  1
realtek                16384  1

Unfortunatelly CEC still not working. If I try running cec-follower:
 

root@bananapim2plus:~# cec-follower -m
cec-follower SHA                   : not available

Driver Info:
        Driver Name                : sun8i-dw-hdmi
        Adapter Name               : dw_hdmi
        Capabilities               : 0x0000001e
                Logical Addresses
                Transmit
                Passthrough
                Remote Control Support
        Driver version             : 4.14.78
        Available Logical Addresses: 4
        Physical Address           : 1.0.0.0
        Logical Address Mask       : 0x0000
        CEC Version                : 2.0
        Logical Addresses          : 0 (Allow RC Passthrough)


FAIL: missing logical address(es), use cec-ctl to configure this

Does anybody have an idea how CEC running?

Link to post
Share on other sites
Guest
This topic is now closed to further replies.