“FATAL: Module not found error” using modprobe

前端 未结 6 633
猫巷女王i
猫巷女王i 2021-01-31 18:03

I have a problem with modprobe command... I compiled the hello world module and loaded it with insmod, it works fine and when I do lsmod,

6条回答
  •  太阳男子
    2021-01-31 18:41

    Insert this in your Makefile
    
     $(MAKE) -C $(KDIR) M=$(PWD) modules_install                      
    
     it will install the module in the directory /lib/modules//extra/
     After make , insert module with modprobe module_name (without .ko extension)
    

    OR

    After your normal make, you copy module module_name.ko into   directory  /lib/modules//extra/
    

    then do modprobe module_name (without .ko extension)

提交回复
热议问题