我編寫了一個簡單的hello world內核模塊,編譯並安裝在/lib/modules/kernel_version/extra/
的路徑中。找不到模塊:modprobe
隨着insmod
它得到正確加載,但modprobe
我得到
modprobe: FATAL: Module hello_world.ko not found.
我已經安裝了所有的每一個必要的錯誤。
這裏是Makefile進行編譯和安裝:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules_install
請告訴我怎麼去完成。
在此先感謝。
同樣的錯誤: 一旦我運行Makefile模塊已經位於/ lib/modules/$(shell uname -r)/modules.dep。 – v123 2014-11-24 06:03:38
INSTALL /home/vishal/test/linux_dd/hello_world.ko 無法讀取私鑰 DEPMOD 3.13.0-24-generic make [1]:離開目錄'/usr/src/linux-headers-3.13。上面的0-24-通用' – v123 2014-11-24 06:05:53
是makefile的一些輸出片段。 – v123 2014-11-24 06:06:26