Dear support,
Hello, I am currently working on an old product built with BSP2.8b6. I need to make some changes to a kernel module. I downloaded the kernel libraries using the command “git clone -b Colibri-iMX6_LXDE-Image_2.8b6.184-20190401 git://git.toradex.com/linux-toradex.git” and configured it with “make colibri_imx6_defconfig”. I successfully built my foo.ko file using the Makefile. However, when I try to insmod it on my Colibri IMX6 I get the following error: “insmod: ERROR: could not insert module ariodrv.ko: Invalid parameters”. Additionally, the dmsg output shows the following error messages:
[ 8593.257580] ariodrv: disagrees about version of symbol gpiod_set_raw_value_cansleep
[ 8593.265455] ariodrv: Unknown symbol gpiod_set_raw_value_cansleep (err -22)
[ 8593.272471] ariodrv: disagrees about version of symbol gpiod_to_irq
[ 8593.278952] ariodrv: Unknown symbol gpiod_to_irq (err -22)
[ 8593.289085] ariodrv: disagrees about version of symbol gpiod_set_debounce
[ 8593.295995] ariodrv: Unknown symbol gpiod_set_debounce (err -22)
[ 8593.304298] ariodrv: disagrees about version of symbol gpiod_get_raw_value_cansleep
[ 8593.311995] ariodrv: Unknown symbol gpiod_get_raw_value_cansleep (err -22)
[ 8593.320447] ariodrv: disagrees about version of symbol gpiod_direction_output_raw
[ 8593.328056] ariodrv: Unknown symbol gpiod_direction_output_raw (err -22)
[ 8593.336939] ariodrv: disagrees about version of symbol gpiod_direction_input
[ 8593.344097] ariodrv: Unknown symbol gpiod_direction_input (err -22)
[ 8593.352445] ariodrv: disagrees about version of symbol gpio_to_desc
[ 8593.358834] ariodrv: Unknown symbol gpio_to_desc (err -22)
I have also tried building a HelloWorld module, and it works fine. Could you please help me identify my mistake?
this is modinfo of Helloworld and foo.ko:
root@colibri-imx6:~# modinfo hello.ko
filename: /home/root/hello.ko
license: GPL
srcversion: 3BC0FFA929F4F2AEC60F624
depends:
vermagic: 4.9.166 SMP mod_unload modversions ARMv7 p2v8
root@colibri-imx6:~# modinfo ariodrv.ko
filename: /home/root/ariodrv.ko
license: GPL
srcversion: 7ABE173F5F7D1417BB40949
depends:
vermagic: 4.9.166 SMP mod_unload modversions ARMv7 p2v8
I’m using a Colibri IMX6 with BSP2.8b6 and the Iris carrier board.
Thank you for your support.
best regard
Mehdi