I have been struggling for 2 nights now to make the remote working in CoreElec 9.01 installed on a sd card for a Rikomagic MK22 box S912 2G/16G and Gigabit Lan. The standard device tree in the image made the box freeze, so I tried using gxm_q200_2g.dtb and also gxm_q201_2g_1gbit.dtb and even gxm_q200_2g_minix_neo_u9_.dtb. They all work with this box but I am not sure if I am using the right one. Not much information available about this box.
After following the instructions I managed to produce a file in Notepad++ called mk22. I extracted the remote.conf file from the Android system on this box to complete my list. This is my mapping:
#table mk22, type: NEC
0x0e 105 KEY_LEFT
0x1a 106 KEY_RIGHT
0x02 108 KEY_DOWN
0x03 103 KEY_UP
0x5c 158 KEY_RETURN
0x58 114 KEY_VOLUME_DOWN
0x01 113 KEY_MUTE
0x0b 115 KEY_VOLUME_UP
0x14 116 KEY_POWER
I saved this file in /storage/.config/rc_keymaps/ together with the file rc_maps.cfg containing this line meson-ir * mk22.
After executing the command ir-keytable -a /storage/.config/rc_keymaps/rc_maps.cfg -s rc0 the result over SSH in putty is:
OLD keytable cleared
Wrote 12 keycode(s) to driver
Protocols changed to nec
After restarting Kodi and eventlircd over SSH my remote works fine in Kodi, but after rebooting the box the remote stops working. When I try again I do not get response anymore from the remote after executing the command ir-keytable -t. So I have to start all over again with a fresh installation.
I also tried installing CoreElec 9.00 first, make the remote work and then let it upgrade to 9.01, during update I read that device tree is being updated, aml_autoscript is updated and remote-toggle/meson-ir/ is enabled in device tree. After that remote is not working either anymore.
Something must be missing in the configuration.
But what? Wrong paths? Wrong device tree, wrong editor? Wrong aml_autoscript? I am lost.