samedi 9 mai 2015

linux kernel module not autoloading

I'm studing the linux kernel and start with hello world module at this point everything is fine but after compile

$ make

and install

$ insmod akmod.ko

the module it's not showing a "hello world" message on KERN_DEBUG

$ dmesg
nothing here
$

just show on rmmod

$ rmmod akmod
[4543.3423432] hello world
[5462.5323452] goodbye

The code is the same found here: http://ift.tt/1czSAi3

I just changed the KERN_ALERT for KERN_DEBUG

I'm using Debian 8.

I think that occurs because the module it´s not autoloading on insmod

When I run

$ make menuconfig

I can't find the option Automatic kernel module loading

Loadable module support  --->
  [*] Enable loadable module support
  [*]   Module unloading
  [ ]   Module versioning support (EXPERIMENTAL)
  [*]   Automatic kernel module loading **(My menu config don´t show this option)**

Any advice will be appreciated

Aucun commentaire:

Enregistrer un commentaire