No hdmi-cec on Utilite (3.14.14)

This forum is for supported devices using an ARMv7 Freescale SoC.

No hdmi-cec on Utilite (3.14.14)

Postby setti » Tue Mar 03, 2015 8:13 am

It's me again.
I just found out that I'm missing /dev/mxc_hdmi_cec
Kernel is built with CONFIG_MXC_HDMI_CEC=y and dtb should contain cec entry as it was built with imx6q.dtsi dependency which in turn contains $this->bbcode_second_pass_code('', ' hdmi_cec: hdmi_cec@00120000 {
compatible = "fsl,imx6q-hdmi-cec";
interrupts = <0 115 0x04>;
status = "disabled";
};
')
I didnt find any hdmi-cec part mentioned anywhere else on the deps list of imx6q-sbc-fx6m.dtb
$this->bbcode_second_pass_code('', '
cmd_arch/arm/boot/dts/imx6q-sbc-fx6m.dtb := gcc -E -Wp,-MD,arch/arm/boot/dts/.imx6q-sbc-fx6m.dtb.d.pre.tmp -nostdinc -I/var/abs/local/linux-utilite-dt/src/linux-kernel-9109d913ef44141f97e1237ed908fba4f43a4010/arch/arm/boot/dts -I/var/abs/local/linux-utilite-dt/src/linux$

source_arch/arm/boot/dts/imx6q-sbc-fx6m.dtb := arch/arm/boot/dts/imx6q-sbc-fx6m.dts

deps_arch/arm/boot/dts/imx6q-sbc-fx6m.dtb := \
arch/arm/boot/dts/imx6q-sb-fx6m.dtsi \
arch/arm/boot/dts/imx6q-sb-fx6x.dtsi \
arch/arm/boot/dts/imx6q.dtsi \
arch/arm/boot/dts/imx6q-pinfunc.h \
arch/arm/boot/dts/imx6qdl.dtsi \
arch/arm/boot/dts/skeleton.dtsi \
/var/abs/local/linux-utilite-dt/src/linux-kernel-9109d913ef44141f97e1237ed908fba4f43a4010/arch/arm/boot/dts/include/dt-bindings/gpio/gpio.h \
arch/arm/boot/dts/imx6q-cm-fx6.dtsi \

arch/arm/boot/dts/imx6q-sbc-fx6m.dtb: $(deps_arch/arm/boot/dts/imx6q-sbc-fx6m.dtb)

$(deps_arch/arm/boot/dts/imx6q-sbc-fx6m.dtb):')

So cec is not enabled in dts is my guess. On my wandboard I had to manually add$this->bbcode_second_pass_code('', '&hdmi_cec {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_hdmi_cec_2>;
status = "okay";
};
')
But I dont know how the part should look like for utilite. Any ideas?
setti
 
Posts: 26
Joined: Tue Sep 04, 2012 9:49 pm

Re: No hdmi-cec on Utilite (3.14.14)

Postby pepedog » Tue Mar 03, 2015 8:20 am

Where did you get the kernel package from?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: No hdmi-cec on Utilite (3.14.14)

Postby setti » Tue Mar 03, 2015 8:27 am

setti
 
Posts: 26
Joined: Tue Sep 04, 2012 9:49 pm

Re: No hdmi-cec on Utilite (3.14.14)

Postby setti » Tue Mar 03, 2015 3:16 pm

Something is strange....
Ive added the following to arch/arm/boot/dts/imx6q-sbc-fx6m.dts
$this->bbcode_second_pass_code('', '&hdmi_cec {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_hdmi_cec_2>;
status = "okay";
};')
Like i did on my wandboard.
After reboot cec-client -l finds my device. But i dont get a connection to my tv. The cec-client command hangs like it is waiting for some answer.
$this->bbcode_second_pass_code('', 'root@utilite - 16:54:49 - ~ # cec-client -l
Found devices: 1

device: 1
com port: i.MX
vendor id: 0471
product id: 1001
firmware version: 0
type: i.MX

root@utilite - 16:54:51 - ~ # cec-client
No device type given. Using 'recording device'
CEC Parser created - libCEC version 2.2.0
no serial port given. trying autodetect:
path: /dev/mxc_hdmi_cec
com port: i.MX

opening a connection to the CEC adapter...
DEBUG: [ 82] unregistering all CEC clients
DEBUG: [ 83] Broadcast (F): osd name set to 'Broadcast'
NOTICE: [ 83] connection opened
DEBUG: [ 84] processor thread started
DEBUG: [ 84] << Broadcast (F) -> TV (0): POLL
TRAFFIC: [ 84] << f0
----------------- HANGING HERE---------------------
')

Some one else having cec running on his utilite? I hope, the cec pins are soldered correctly on my utilite.
setti
 
Posts: 26
Joined: Tue Sep 04, 2012 9:49 pm

Re: No hdmi-cec on Utilite (3.14.14)

Postby pepedog » Tue Mar 03, 2015 7:07 pm

That's 3.10.70 not 3.14.14
It might need so CEC patches, and I'm busy for next fortnight moving.

Want to look at the cubox-I patches?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: No hdmi-cec on Utilite (3.14.14)

Postby setti » Thu Mar 05, 2015 12:04 pm

Ive made a fork of your linux-kernel repo and already added your package patches into kernel repo.
I applied the cubox-i cec patches and afterwards I changed the arch package a bit and kernel is building fine with the config changes, mentioned in viewtopic.php?f=45&t=8547#p45593.
I also had to define a udev rule for /dev/mxc_hdmi_cec
$this->bbcode_second_pass_code('', '# cat /etc/udev/rules.d/99-hdmi-cec.rules
KERNEL=="mxc_hdmi", SUBSYSTEM=="mxc_hdmi", GROUP="video", MODE="0660"
KERNEL=="mxc_hdmi_cec", SUBSYSTEM=="mxc_hdmi_cec", GROUP="video", MODE="0660"')
Attachments
linux-utilite-dt.tar.gz
Updated Package
(36.6 KiB) Downloaded 429 times
setti
 
Posts: 26
Joined: Tue Sep 04, 2012 9:49 pm

Re: No hdmi-cec on Utilite (3.14.14)

Postby Peedy » Thu Mar 05, 2015 4:58 pm

Three days ago I modified my old Wandboard for cec following by these Instructions:
https://www.project-insanity.org/blog/2014/01/24/wandboard-with-hdmi-cec-and-xbmc/

For now, I'm also missing /dev/mxc_hdmi_cec on my Wandboard.

Please tell me how to insert/compile your cec-snippet into the dtb-file to make it work.

I think it will be the best for future to inform the maintainer of the kernel-package. (How?)

Bye ... Peedy
Peedy
 
Posts: 12
Joined: Fri Jan 02, 2015 3:39 pm

Re: No hdmi-cec on Utilite (3.14.14)

Postby setti » Fri Mar 06, 2015 8:53 am

setti
 
Posts: 26
Joined: Tue Sep 04, 2012 9:49 pm


Return to Freescale

Who is online

Users browsing this forum: No registered users and 6 guests