Differences
This shows you the differences between two versions of the page.
en:c1_libcec [2016/03/28 16:33] brian.kim created |
en:c1_libcec [2016/03/28 16:52] brian.kim |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== How to use libcec on ODROID-C1 ====== | ====== How to use libcec on ODROID-C1 ====== | ||
- | ===== Kernel re-installation ===== | + | This guide was written on the assumption that you work on ODROID-C1 board. ODROID-C1 kernel can be built on HOST-PC using cross-compiler. But, libcec must be built and installed on ODROID-C1 board. |
+ | ===== Kernel re-installation ===== | ||
**Get the ODROID-C1 kernel source code** | **Get the ODROID-C1 kernel source code** | ||
<code> | <code> | ||
+ | $ sudo apt-get update | ||
+ | $ sudo apt-get install lzop | ||
$ git clone --depth 1 https://github.com/hardkernel/linux.git -b odroidc-3.10.y | $ git clone --depth 1 https://github.com/hardkernel/linux.git -b odroidc-3.10.y | ||
$ cd linux | $ cd linux | ||
Line 17: | Line 20: | ||
<code> | <code> | ||
$ make uImage -j4 | $ make uImage -j4 | ||
- | $ | + | $ sudo cp -f arch/arm/boot/uImage /media/boot/ |
</code> | </code> | ||
+ | **Reboot** | ||
+ | ===== libcec installation ===== | ||
+ | **Build & Install pulse8 platform** | ||
+ | <code> | ||
+ | $ sudo apt-get update | ||
+ | $ sudo apt-get install cmake liblockdev1-dev libudev-dev libxrandr-dev python-dev swig | ||
+ | $ git clone https://github.com/Pulse-Eight/platform.git | ||
+ | $ mkdir platform/build | ||
+ | $ cd platform/build | ||
+ | $ cmake .. | ||
+ | $ make | ||
+ | $ sudo make install | ||
+ | </code> | ||
+ | **Build & Install libcec for ODROID-C1** | ||
+ | <code> | ||
+ | $ git clone https://github.com/Raybuntu/libcec.git | ||
+ | $ mkdir libcec/build | ||
+ | $ cd libcec/build | ||
+ | $ cmake -DHAVE_AMLOGIC_API=1 .. | ||
+ | $ make -j4 | ||
+ | $ sudo make install | ||
+ | $ sudo ldconfig | ||
+ | </code> | ||
+ | |||
+ | **Test libcec using cec-client** | ||
+ | <code> | ||
+ | $ sudo chmod 666 /dev/AmlogicCEC | ||
+ | $ cec-client | ||
+ | </code> | ||
+ | Or | ||
+ | <code> | ||
+ | $ sudo cec-client | ||
+ | </code> |