Enable HDMI CEC on Beaglebone black

Hi All,

How can I active CEC on bbb’s HDMI? I want the TV to turn on or if its on then switch its HDMI input when HDMI from bbb gets connected to the TV.

Thank you

First read:

https://hverkuil.home.xs4all.nl/cec-status.txt

Then grab mainline as-is for the beaglebone device tree

Regards,

I read the document, and downloaded mainline but not sure how to add it in the device tree.
Can you please explain a little bit more or give some ideas?

Thank you

The default version of the beaglebone black's device tree should support cec.

Our current "released" kernels for the beagleboard black have the cec
stuff ripped out as it was causing RF interference...

Regards,

I see that TI SDK 05.02.00.10 has cec drivers in kernel /drivers/media/cec folder. Is that all I need for CEC capability?

Do what-ever you want, but cec support for the bbb landed on:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=605cdd27a8c84d9236f9f49712a8ea3d309415c7

So you will need a fairly recent kernel.

Regards,

Hi Robert,

I am back on this project. I was able to compile the kernel but I am not able to compile device tree or modules.

I am using this command to compile modules:

sudo make ARCH=arm CROSS_COMPILE=${CC} modules

I get this error:

`
CALL scripts/checksyscalls.sh
:1332:2: warning: #warning syscall io_pgetevents not implemented [-Wcpp]
Building modules, stage 2.
MODPOST 486 modules

`

How can I get rid of this error?

And then which version of root file system can I use with this kernel?

Thank you,

Hi Robert,

I am back on this project. I was able to compile the kernel but I am not able to compile device tree or modules.

I am using this command to compile modules:

sudo make ARCH=arm CROSS_COMPILE=${CC} modules

I get this error:

`
CALL scripts/checksyscalls.sh
:1332:2: warning: #warning syscall io_pgetevents not implemented [-Wcpp]
Building modules, stage 2.
MODPOST 486 modules

`

How can I get rid of this error?

What error? That’s a warning…

Warning is not an error…

And then which version of root file system can I use with this kernel?

I only support Debian Stretch at this point and ignore anything else, but use what ever you want to use.

Regards,

Oh sorry! I found the module and dtbs files.

While compiling the kernel what defconfig should I use? I used omap2plus_defocnfig and tried running it with debian stretch, it booted beaglebone, but it was strange where it was not loading hdmi drivers, and ifconfig was showing command not found. And the username was showing up debian@arm instead of debian@beaglebone.

What would be a good approach to make this kernel work?

Thank you,

Hi Robert,

I figured out my mistakes and was able to compile the kernel and got it working with debian strecth 9.6.
I am getting HDMI output but I am not able to discover bbb as a CEC device on my Vizio tv. Do I need to turn on something on bbb? How can I get CEC working?

I would really appreciate your help.

Thanks

when I run
cec-ctl

I get back
/dev/cec0 not found

Any ideas on how to fix it?