-
Notifications
You must be signed in to change notification settings - Fork 84
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
Invalid module format #3
Comments
That usually happens when we build the module using kernel headers of a different version from the kernel being used. Have you built the module in the same system into which you are trying to load it? Have you updated the kernel? |
Thanks for the reply @adrianomarto , And Yes I am using the same Raspberry PI Model 3 to built and load the module.(using the steps given by you on the https://github.com/adrianomarto/soft_uart ) |
Hello @adrianomarto can you please help me out for the solution. As I need this in my production. |
Hi @ESLHemantSangle,
You can also try to load the module using "insmod ./soft_uart.ko" to make sure you are loading the module in the current folder instad of something in the search path. Cheers, |
Hi @adrianomarto
As the output of step 1,2 and 3 referring to same kernel version i.e. Thanks, |
Hi @ESLHemantSangle, Have you noticed that the version indicated by modinfo is 4.4.50-v7 whilst your kernel is 4.4.50-v7+? I don't know exactly from where you downloaded the kernel headers, but it is not exactly the same version as the kernel you are using. I would try to use the linux kernel and linux-headers from raspbian repository instead of downloading them from anywhere else. Just some tips:
Cheers, |
Thank very much @adrianomarto with your help I have solved the issue of kernel and the soft_uart module is running now thank you so much for your code and time |
I am glad that the problem is solved. |
Hi @adrianomarto, Thanks, |
How can we load the driver for 2 devices such as SOFT0 and SOFT1 (and select the appropriated pins) ? As both will run on very low baud rate I believe we will not face any performance issue. Thanks |
I am having the same issue of invalid module format while trying to insert a module |
Sir,
|
There is a error while using "insmod soft_uart.ko" command on Raspberry PI 3
ERROR
insmod: ERROR: could not insert module soft_uart.ko: Invalid module format
OS Detials
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
so can you help me solve this error
Thanks,
The text was updated successfully, but these errors were encountered: