* Automatic module insert in boot time
@ 2011-09-26 7:54 Yacob Hassidim
2011-09-26 8:04 ` Mulyadi Santosa
0 siblings, 1 reply; 2+ messages in thread
From: Yacob Hassidim @ 2011-09-26 7:54 UTC (permalink / raw)
To: kernelnewbies
--------------------------------------------------------------------------------
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110926/ba36b05e/attachment.html
^ permalink raw reply [flat|nested] 2+ messages in thread
* Automatic module insert in boot time
2011-09-26 7:54 Automatic module insert in boot time Yacob Hassidim
@ 2011-09-26 8:04 ` Mulyadi Santosa
0 siblings, 0 replies; 2+ messages in thread
From: Mulyadi Santosa @ 2011-09-26 8:04 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-09-26 8:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-26 7:54 Automatic module insert in boot time Yacob Hassidim
2011-09-26 8:04 ` Mulyadi Santosa
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.