Problem in loading module of Software trigger
I read this documentation "Documentation/iio/iio_configfs.txt" for creating software trigger. So, by following this I created the module with name iio-trig-sample.c in drivers/iio/trigger/. iio-trigger-sample.c also compiled successfully. Now, when I tried to insert module: $ sudo insmod iio-trig-sample.ko insmod: ERROR: could not insert module iio-trig-sample.ko: Unknown symbol in module Ans in /var/log/kern.log: I am getting following reason:- iio_trig_sample: Unknown symbol iio_unregister_sw_trigger_type (err 0) iio_trig_sample: Unknown symbol iio_register_sw_trigger_type (err 0)
Insmod will not pick up dependencies in the same way modprobe will. Make sure to also insmod industrialio.ko and iio-sw-trigger.ko before the sw trigger module. I think those are the only ones you will need. J On 26 March 2017 08:02:05 BST, SIMRAN SINGHAL <singhalsimran0@gmail.com> wrote:
I read this documentation "Documentation/iio/iio_configfs.txt" for creating software trigger.
So, by following this I created the module with name iio-trig-sample.c in drivers/iio/trigger/.
iio-trigger-sample.c also compiled successfully.
Now, when I tried to insert module:
$ sudo insmod iio-trig-sample.ko insmod: ERROR: could not insert module iio-trig-sample.ko: Unknown symbol in module
Ans in /var/log/kern.log: I am getting following reason:- iio_trig_sample: Unknown symbol iio_unregister_sw_trigger_type (err 0) iio_trig_sample: Unknown symbol iio_register_sw_trigger_type (err 0) -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
participants (2)
-
Jonathan Cameron -
SIMRAN SINGHAL