linux kernel module not autoloading

Adir Kuhn

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://www.makelinux.net/ldd3/chp-2-sect-2

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

Zan Lynx

What you are describing sounds like you did not include a newline ("\n") at the end of your printk.

Since you didn't share your actual code and your insmod is obviously not from the example. (insmod akmod.ko? Why akmod? akmod is a completely different thing.) debugging this is a complete guess.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Disadvantages of linux kernel module?

From Dev

Linux kernel module programming

From Dev

Disadvantages of linux kernel module?

From Dev

Linux Kernel Module Compilation

From Dev

Linux Kernel Module development compile for other kernel

From Dev

Implementing poll in a Linux kernel module

From Dev

Cross Compile Linux Kernel Module

From Dev

Cross Compile Linux Kernel Module

From Dev

Sofware pwm as linux kernel module

From Dev

Makefile for linux kernel module issue

From Dev

Linux Kernel module calling a function in another module

From Dev

Linux Kernel module calling a function in another module

From Dev

Autoloading a particular driver, based on a detected specific kernel

From Dev

How to disable Kernel Module Signing in linux

From Dev

How to compile module with new kernel in Linux

From Dev

Linux Kernel Module/IOCTL: inappropriate ioctl for device

From Dev

CLI instruction not executed in Linux kernel module

From Dev

Is it possible to develop linux kernel module in CLion?

From Dev

How to stop init_module: linux kernel

From Dev

linux kernel module dies after 100000 interrupts

From Dev

Linux kernel module hangs during unloading

From Dev

Linux Kernel Module Character Device Permissions

From Dev

Linux kernel module to monitor a particular process

From Dev

Configuring Eclipse for Linux Kernel module development

From Dev

Linking Custom Library to Linux Kernel Module in the Makefile

From Dev

Flush CPU data caches in Linux kernel module

From Dev

Set cpu affinity on a loadable linux kernel module

From Dev

Compile a linux 2.6 kernel module with newer compiler

From Dev

Debug a linux kernel module using gdb

Related Related

HotTag

Archive