Hi Maxim,
would you mind sharing your solution with us, or at least with me?
I´m currently trying the same thing, I want my Banana Pi to act as MySensors gateway to hook up to my openHAB (also running on the bpi).
It seems there need to be some tweaks in the sources and in the makefile, any files you modified would help me! I may be able to figure the rest for my system (Arch Linux) out myself.
Thanks in advance
Tilman