Difference between revisions of "NeTV IR driver"
(Created page with "NeTV uses a GPIO-based IR sensor. That means that it's simply counting the pattern of 0s and 1s coming from a sensor that performs IR detection and demodulation. There is curre...") |
|||
Line 9: | Line 9: | ||
# Install and configure the [[NeTV toolchain]] | # Install and configure the [[NeTV toolchain]] | ||
# Check out the kernel | # Check out the kernel | ||
− | #* git clone git://github.com/sutajiokousagi/linux-2.6.28-silvermoon.git; cd linux-2.6.28-silvermoon/src/ | + | #* git clone git://github.com/sutajiokousagi/linux-2.6.28-silvermoon.git; cd linux-2.6.28-silvermoon/src/; git checkout netv |
# Grab the latest config file | # Grab the latest config file | ||
#* wget -O .config https://raw.github.com/sutajiokousagi/meta-chumby/master/recipes/linux/linux-silvermoon-netv/defconfig | #* wget -O .config https://raw.github.com/sutajiokousagi/meta-chumby/master/recipes/linux/linux-silvermoon-netv/defconfig |
Revision as of 08:18, 16 April 2012
NeTV uses a GPIO-based IR sensor. That means that it's simply counting the pattern of 0s and 1s coming from a sensor that performs IR detection and demodulation.
There is currently no LIRC driver. Instead, it acts as a keyboard driver, using a hard-coded set of scancodes and key equivalents. By modifying the driver, it's possible to add new keys or to change the mapping.
Note that it might be useful to build the kernel as a module. That way you can try new code without having to reboot.
These steps instruct you on how to load a new kernel onto your device. Any time you modify the kernel, you risk making your system unbootable. Do not continue unless you are familiar with how to re-image your SD card.
- Install and configure the NeTV toolchain
- Check out the kernel
- git clone git://github.com/sutajiokousagi/linux-2.6.28-silvermoon.git; cd linux-2.6.28-silvermoon/src/; git checkout netv
- Grab the latest config file
- Convert the IR driver from a builtin to a module
- make menuconfig
- Go to Device Drivers ---> Input Device Support ---> CIR device and set it from <*> to <M>
- Select < Exit > repeatedly, answer < Yes > when it asks you to save your new kernel configuration
- Build a new kernel
- make
- Copy the kernel to your NeTV
- scp arch/arm/boot/zImage root@[NeTV-address]:
- On your NeTV, write the new kernel
- config_util --cmd=putblock --block=krnA < zImage
- On your NeTV, reboot into the new kernel
- reboot