Module load (insmod): Unknown symbol
Hello,
I am trying to load a third party proprietary driver (successfully compiled) but when I try to load it with insmod, I get the "Unknown symbol" error: Code:
loading out-of-tree module taints kernel. Additionally, depmode <driver.ko> returns the error: Code:
depmod: ERROR: Bad version passed Code:
Linux hostname 4.9-camera-lt-qcom #1 SMP PREEMPT Fri Jun 30 16:14:43 UTC 2017 aarch64 GNU/Linux Thank you in advance. Best regards, s |
when you're messing with an out of tree kernel module, stuff gets messy. you can only try different versions of the kernel. i just grepped the source for the first symbol in kernel 4.15, and got- include/linux/thread_info.h:extern void __check_object_size(const void *ptr, unsigned long n,
include/linux/thread_info.h: __check_object_size(ptr, n, to_user); mm/usercopy.c:void __check_object_size(const void *ptr, unsigned long n, bool to_user) mm/usercopy.c:EXPORT_SYMBOL(__check_object_size); do you think your version doesn't have those symbols? |
Hey whansard,
Quote:
So from the error I understood that the driver was looking for some other missing part/driver/feature of the kernel, obviously not compiled at that time. I finally solved (at least it was it seems) using the correct configuration file provided from Linaro (I found it later), without messing with these kind of trouble. Regards, Simon |
...
|
All times are GMT -5. The time now is 04:22 PM. |