Hello
I'm trying to compile the following module (for Chaos Calmer): https://openwrt.org/docs/guide-user/hardware/lirc-gpioblaster
In the howto, the proposed method is recompiling the entire openwrt image with the module inserted and re-flash the router, but I'm trying to build it as a package and install it through opkg.
For doing so, I downloaded the SDK for the corresponding Openwrt version and architecture. I followed the guide "Using the SDK" and I ended with the module ipk's. But after installing them on the router, the kernel module fails to start and the Dmesg output is:
[ 17.340000] lirc_gpioblaster: Unknown symbol lirc_unregister_driver (err 0)
[ 17.350000] lirc_gpioblaster: Unknown symbol lirc_dev_fop_poll (err 0)
[ 17.370000] lirc_gpioblaster: Unknown symbol lirc_dev_fop_open (err 0)
[ 17.380000] lirc_gpioblaster: Unknown symbol lirc_dev_fop_close (err 0)
[ 17.390000] lirc_gpioblaster: Unknown symbol lirc_dev_fop_read (err 0)
[ 17.410000] lirc_gpioblaster: Unknown symbol lirc_register_driver (err 0)
[ 17.420000] lirc_gpioblaster: Unknown symbol lirc_dev_fop_ioctl (err 0)
After searching, these symbols are defined in "lirc.h" and "lirc_dev.h", which are part of the kernel itself. The actual kernel which is running my device apparently doesn't have them and therefore the module throws the previous errors. Is there any way of building a kernel module so it can be installed to add these definitions without need of rebuilding and reflashing the entire kernel?
Thanks for your attention