-
Notifications
You must be signed in to change notification settings - Fork 0
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
could not insert the module through the init.sh #2
Comments
Need more information (current kernel version, ...) Probably built against incompatible kernel sources i.e. version mismatch. Also, check dmesg. Edit: Oh yeah, also don't forget to run init.sh as root (see comments in init.sh). |
here is the info: |
it seems that I should do the "apt install linux-source" fisrt, then I can get the correct head files in the /lib/modules/ . |
make -C /lib/modules/5.15.0-58-generic/build M=/media/sf_D_DRIVE/Kernel-Module-master/udev modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-58-generic'
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-58-generic'
Loading Kernel Module...
insmod: ERROR: could not insert module ldx_udev.ko: Invalid module format
Done!
find: ‘/dev/LDX_UDEV’: No such file or directory
Finished!
The text was updated successfully, but these errors were encountered: