Enable HDMI CEC on Beaglebone black

178 views
Skip to first unread message

sam.a...@gmail.com

unread,
Feb 15, 2019, 4:45:55 PM2/15/19
to BeagleBoard
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

Robert Nelson

unread,
Feb 15, 2019, 4:55:09 PM2/15/19
to Beagle Board, Samer Abbas
On Fri, Feb 15, 2019 at 3:45 PM <sam.a...@gmail.com> wrote:
>
> 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.

First read:

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

Then grab mainline as-is for the beaglebone device tree

Regards,

--
Robert Nelson
https://rcn-ee.com/

Samer Abbas

unread,
Feb 15, 2019, 5:29:02 PM2/15/19
to Robert Nelson, Beagle Board
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

Robert Nelson

unread,
Feb 15, 2019, 5:51:31 PM2/15/19
to Beagle Board
On Fri, Feb 15, 2019 at 4:29 PM Samer Abbas <sam.a...@gmail.com> wrote:
>
> 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?

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...

sam.a...@gmail.com

unread,
Feb 15, 2019, 5:58:34 PM2/15/19
to BeagleBoard
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?

Robert Nelson

unread,
Feb 15, 2019, 6:03:49 PM2/15/19
to Beagle Board, Samer Abbas
On Fri, Feb 15, 2019 at 4:58 PM <sam.a...@gmail.com> wrote:
>
> 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.

sam.a...@gmail.com

unread,
May 8, 2019, 4:37:36 PM5/8/19
to BeagleBoard
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
<stdin>: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,

On Friday, February 15, 2019 at 4:03:49 PM UTC-7, RobertCNelson wrote:

Robert Nelson

unread,
May 8, 2019, 5:28:41 PM5/8/19
to Beagle Board, Samer Abbas


On Wed, May 8, 2019, 3:37 PM <sam.a...@gmail.com> wrote:
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
<stdin>: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,

sam.a...@gmail.com

unread,
May 10, 2019, 12:49:40 PM5/10/19
to BeagleBoard
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,

On Wednesday, May 8, 2019 at 3:28:41 PM UTC-6, RobertCNelson wrote:

sam.a...@gmail.com

unread,
May 13, 2019, 10:47:41 AM5/13/19
to BeagleBoard
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

On Wednesday, May 8, 2019 at 3:28:41 PM UTC-6, RobertCNelson wrote:

sam.a...@gmail.com

unread,
May 13, 2019, 3:43:37 PM5/13/19
to BeagleBoard
when I run 
cec-ctl

 I get back
/dev/cec0 not found


Any ideas on how to fix it?
Reply all
Reply to author
Forward
0 new messages