Difference between revisions of "HardwareAndDrivers"

From odroid US
Jump to: navigation, search
(Created page with "== Hardware and Drivers == === HDMI CEC === Part of the HDMI protocol is the CEC protocol. This allows controlling of the TV over the HDMI cable. For android, there's by de...")
 
m (Hardware and Drivers)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Hardware and Drivers ==
+
== HDMI CEC ==
  
=== HDMI CEC ===
+
Part of the HDMI protocol is the [http://en.wikipedia.org/wiki/Consumer_Electronics_Control#CEC CEC protocol]. This allows controlling of the TV over
 
+
Part of the HDMI protocol is the CEC protocol. This allows controlling of the TV over
+
 
the HDMI cable.
 
the HDMI cable.
  
Line 9: Line 7:
 
linux kernel. There's a tree on [https://github.com/ThijsWithaar/linux/tree/odroid-3.8-cec github] which
 
linux kernel. There's a tree on [https://github.com/ThijsWithaar/linux/tree/odroid-3.8-cec github] which
 
contains the ported android driver. It is tested on a OdroidX2.
 
contains the ported android driver. It is tested on a OdroidX2.
 +
<pre>
 +
git clone https://github.com/ThijsWithaar/linux.git
 +
git checkout odroid-3.8-cec
 +
</pre>
  
 
To make the drivers, checkout the patched sources above, then follow the instructions on
 
To make the drivers, checkout the patched sources above, then follow the instructions on
Line 32: Line 34:
  
  
To build the [https://github.com/vamanea/libcec/tree/exynos matching user space program] do:
+
To build the [https://github.com/vamanea/libcec/tree/exynos matching user space program], which is a
 +
modified version of [http://libcec.pulse-eight.com/ Pulse Eight]'s program, do:
 
<pre>
 
<pre>
 
git clone https://github.com/vamanea/libcec.git
 
git clone https://github.com/vamanea/libcec.git

Latest revision as of 12:21, 1 July 2013

HDMI CEC

Part of the HDMI protocol is the CEC protocol. This allows controlling of the TV over the HDMI cable.

For android, there's by default a driver available, which is not in the standard linux kernel. There's a tree on github which contains the ported android driver. It is tested on a OdroidX2.

git clone https://github.com/ThijsWithaar/linux.git
git checkout odroid-3.8-cec

To make the drivers, checkout the patched sources above, then follow the instructions on Step-by-step_Native_Compiling_a_Kernel. Modify the .config file such that it contains

CONFIG_VIDEO_SAMSUNG_S5P_HDMI_CEC=m

After compiling and installing the driver (drivers/media/platform/s5p-cec.ko)

dmesg | grep cec

should contain lines like:

[   63.530000] S5P CEC for TVOUT Driver, Copyright (c) 2011 Samsung Electronics Co., LTD.
[   63.535000] s5p-cec s5p-cec: probe start
[   63.535000] s5p_cec_probe: pdata=ed0e9540
[   63.540000] s5p_cec_cfg_gpio()
[   63.545000] s5p-cec s5p-cec: s5p_cec_mem_probe(): mapped cec_base to f005e000, size 1000
[   63.550000] s5p-cec s5p-cec: Requesting irq 146 for s5p-cec
[   63.555000] s5p-cec s5p-cec: probe successful


To build the matching user space program, which is a modified version of Pulse Eight's program, do:

git clone https://github.com/vamanea/libcec.git
cd libcec
./configure --enable-exynos
make 
make install

Now use 'cec-client -l' or 'cec-client -m' to try it out!