linux - could not insert module after kernel upgrade in VM -
i running win7 host , ubuntu14.04 vm, on virtualbox upgraded vm kernel. thereafter, after compiling kernel module again against new kernel, not able insmoding it.
it gives following error :
vm@vm:~/documents/kerneldev/customsockets$ sudo insmod customsocket.ko insmod: error: not insert module customsocket.ko: invalid module format
i dont see eror message in dmesg logs.
i make sure compiling module against correct kernel running.
vm@vm:/lib/modules/3.12.59uml$ pwd /lib/modules/3.12.59uml
makefile compile module:
obj-m += customsocket.o all: make -c /lib/modules/3.12.59uml/build m=$(pwd) modules clean: make -c /lib/modules/3.12.59uml/build m=$(pwd) clean
can pls me out here ?
my bad, compiling against wrong kernel version headers. issue has been resolved.
Comments
Post a Comment