Compiling kernel modules
$ make M=/home/liyongjun/project/c/linux-4.4.1/net/mac80211/ modules
Installation error
$ sudo insmod net/mac80211/mac80211.ko
insmod: ERROR: could not insert module net/mac80211/mac80211.ko: Invalid module format
dmesg
$ dmesg
...
[ 3187.509374] mac80211: no symbol version for module_layout
Solution:
Add the -C /lib/modules/`uname -r`/build
option
$ make -C /lib/modules/`uname -r`/build M=/home/liyongjun/project/c/linux-4.4.1/net/mac80211/ modules
Read More:
- [Solved] DPDK Error: insmod: ERROR: could not insert module igb_uio.ko: Invalid parameters
- [Solved] Android Compile and Package Error: Invalid keystore format
- [Solved] AndroidStudio package Invalid keystore format Error: Execution failed for task ‘:examplecases:packageRelease’…
- [Solved] Vermagic error and signature error in insmod
- TypeError: unsupported format string passed to numpy.ndarray.__format__
- [Solved] Canoe CAPL Error: “the test module is not assigned or invalid”
- kernel module insert error: ERROR: could not insert module …../file.ko : File exits
- [Solved] SyntaxError: Invalid regular expression: invalid group specifier name
- [Solved] Appium Error: InvalidArgumentException: Message: invalid argument: invalid locator
- ROS Error: warning: “deprecated pixel format used“
- Oracle prompt text does not match format string
- Python3: Str.format Keyerror Solution for incoming parameter error
- Log4j2 reports ERROR StatusLogger Unrecognized format specifier
- [Solved] error adding symbols: File in wrong format collect2: error: ld returned 1 exit status
- NPM run dev Error Module build failed: Error: Cannot find module ‘node-sass’
- [Solved] standard_init_linux.go:190: exec user process caused “exec format error“
- [Solved] rqt_graph Skipped loading plugin with error & Format: “dot“ not recognized
- How to Solve Docker Run Error: standard_init_linux.go:219: exec user process caused: exec format error
- [Solved] logback log format adjustment error: Failed to create converter for [%M] keyword
- IDEA appears Module ** must not contain source root **. The root already belongs to module ** This kind of error solution