-------------------------------------------------------------------------------- Hello everyone, I ask for help to insert/install module automatically in boot time. I use Ubuntu 11.04. I try to insert a module automatically in boot time. I added the name of my module (hello) to the file /etc/modules. I copied the the file hello.ko to the following directories: - /lib/modules/2.6.38-8-generic/kernel - /lib/modules/2.6.38-8-generic/kernel/drivers - /lib/modules/2.6.38-8-generic/kernel/drivers/hello The hello module prints (printk) message to kern.log and responds to open/read/write/ioctl and close functions. I don't see the init log messages in the kern.log file. While I use "insmod hello.ko" command, the command succeeds and I see the log messages. Can anyone help me why the automatically insertion of the module does not succeed? Thank you. Yacob.
Hi Yacob... 2011/9/26 Yacob Hassidim <yacobh@zahav.net.il>:
________________________________ Hello everyone,
I ask for help to insert/install module automatically in boot time.
I use Ubuntu 11.04.
I try to insert a module automatically in boot time.
I added the name of my module (hello) to the file /etc/modules.
I don't think that is the place. Boot time? perhaps better to put your modprobe/insmod calling your module in something like rc.local, or manually modify your initrd/initramfs so that it load your module earlier. -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
participants (2)
-
Mulyadi Santosa -
Yacob Hassidim