Compile is native on armv7l linux, kernel version is same.
Compile ko file success, but insmod failed.
Download kmod source and debug, error is from file shared/misssing.h
, code syscall(__NR_finit_module, fd, uargs, flags);
return -1, errno = -8.
readelf
show ko file is okay.
Asked
Active
Viewed 146 times
0

Divlaker
- 401
- 6
- 16
-
In case of `insmod` failing, `dmesg` output should contain useful information about that fail. – Tsyvarev Oct 18 '21 at 07:15
-
@Tsyvarev dmesg shows no extra messages after running insmod – Divlaker Oct 18 '21 at 08:14
-
I recompiled and tested, this time, dmesg shows 'no symbol version for module_layout' – Divlaker Oct 18 '21 at 09:09
-
Probably, something wrong with setup of your compiling environment. See e.g. [that question](https://askubuntu.com/questions/14627/no-symbol-version-for-module-layout-when-trying-to-load-usbhid-ko). – Tsyvarev Oct 18 '21 at 09:16