Armbian-Stretch and IR-Remote?

Recommended Posts

after a short break, wants to continue with the Tinkerboard. :) I use Armbian-Stretch with the kernel-4.4.126.
I want to connect an IR receiver to a GPIO port and use it with the lircd tool.
What possibilities does Armbian-Stretch offer me here?
Thank you very much.

Share this post

Link to post

Share on other sites

Armbian offers you a buildscript to figure out on your own whats needed to get it working.

From what I know IR related drivers are not enabled per default in the kernel. So you might look what's needed, activate it and test it. The current bsp kernel (and by activate IR it's most likely that you need HW acceleration, so bsp 4.4 kernel is a must) has some issues so you might consider waiting a bit until it's stabilized again or you help get it stabilized. It's currently working but it has still some issues.

Share this post

Link to post

Share on other sites

others (e.g. Mediatek) have dedicated IR-drivers.. It might be worth to look through some RK3288 based TV boxes to see how they solved it.. I never spend much attention to IR-stuff. You might look through ArmbianIO, I've in mind that @Larry Bank has done some IR-Stuff for boards witch have a IR receiver populated, so maybe this is also possible for the tinker, no clue cause never tested.

Share this post

Link to post

Share on other sites

others (e.g. Mediatek) have dedicated IR-drivers.. It might be worth to look through some RK3288 based TV boxes to see how they solved it.. I never spend much attention to IR-stuff. You might look through ArmbianIO, I've in mind that @Larry Bank has done some IR-Stuff for boards witch have a IR receiver populated, so maybe this is also possible for the tinker, no clue cause never tested.

Share this post

Link to post

Share on other sites

If we are talking about connecting IR receiver to any GPIO (and not using a dedicated GPIO pin and an in-SoC CIR decoding HW) then it should be enough to use this which requires the appropriate kernel drivers, RC keymaps and DT modifications (since we don't have overlays support there yet).

Share this post

Link to post

Share on other sites

This is what I did to enable remote control on my tv box, which has its own remote controller. I don't know if the same apply for the tinkerboard, at best the key mappings defined below are wrong, at worst the tinkerboard uses a totally differente approach, but anyway this could be a hint if the suggestions you already received did not work.

If you're using the default legacy kernel (4.4.x) you have to modify these two configuration options in the kernel .config file to enable the proprietary rockchip driver:

CONFIG_ROCKCHIP_REMOTECTL=y
CONFIG_ROCKCHIP_REMOTECTL_PWM=y

And then add this section to the device tree which configures the remote controller driver to use pwm0 as an input and also configures the key mappings: