Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exec format error on modprobe #15

Closed
peterlopen opened this issue Apr 10, 2021 · 3 comments
Closed

Exec format error on modprobe #15

peterlopen opened this issue Apr 10, 2021 · 3 comments

Comments

@peterlopen
Copy link

peterlopen commented Apr 10, 2021

hi @Kimplul ,

thanks for your driver!

I tried to install and use hid-tmff2 and everything went smoothly until last step:
peter@dell:~/Projects/hid-tmff2$ sudo modprobe hid_tmt300rs modprobe: ERROR: could not insert 'hid_tmt300rs': Exec format error
Please, any idea what is wrong?

Thanks a lot.

peter@dell:~/Projects/hid-tmff2$ uname -a
Linux dell 5.4.0-70-generic #78-Ubuntu SMP Fri Mar 19 13:29:52 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
peter@dell:~/Projects/hid-tmff2$ ls /lib/modules/$(uname -r)/extra
hid-tminit.ko hid-tmt300rs.ko

@Kimplul
Copy link
Owner

Kimplul commented Apr 10, 2021

Full transparency, I haven't bumped into anything like this myself, so any info I can give is more or less just regurgitated from the internet.

Anycase, from what I can find, there are a number of different causes and fixes, see

Here for a compiler issue
Here for some other/out of date package causing issues
Here for an arch/platform issue

Here is also a person that claims running modprobe with --force sometimes works, but it seems somewhat risky. The kernel usually knows when not to load modules, and its opinions should be respected.

Could you run modprobe with the verbose flag (modprobe -v) and see if there is any output in the dmesg buffer? That could help narrow things down.

@peterlopen
Copy link
Author

hi,

my bad. I compiled with older version of kernel, even before buying just to see how likely it is to work :)
looks good now

thanks again for awesome work!
closing

@Kimplul
Copy link
Owner

Kimplul commented Apr 10, 2021

Yeah, that'll do it. Glad you got it working, if you have any other issues or suggestions for improvements, just open up another issue, I'd be happy to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants