LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-12-2010, 09:09 AM   #1
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Rep: Reputation: 30
load the modules at poweron and onloading at poweroff


How to load the modules at powerON and onloading at powerOFF?
where we have to make an entry for that?

Regards,
Ravi
 
Old 01-12-2010, 09:17 AM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Could you please be a bit more specific with your question? Which distribution are you concerned with using this on (as different distributions handle module loading and unloading slightly differently)?

Typically, you shouldn't have to worry about unloading modules, by hand, at power-off.
 
Old 01-12-2010, 10:44 AM   #3
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Original Poster
Rep: Reputation: 30
Thumbs up

It is for an Embedded linux based system.The system is not having a distribution,it is having redboot bootloader,customized ramdisk and zImage.
 
Old 01-12-2010, 03:41 PM   #4
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Well, if you want to manually insert kernel modules on boot, the place I would suggest to do it would be in "/etc/rc.local". Just add "/sbin/modprobe kernel_module" for each kernel module you would like to load at boot.
 
Old 01-13-2010, 08:23 AM   #5
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Original Poster
Rep: Reputation: 30
Thumbs up

i am having just /etc/rc.sysinit file, i have already put them in rc.sysinit file as

insmod /lib/modules/2.6.20-4/misc/module1.ko
insmod /lib/modules/2.6.20-4/misc/module1.ko

Is it fine?

Regards,
Ravi
 
Old 01-13-2010, 10:24 AM   #6
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
That's fine, but instead of using "insmod" I would use "modprobe", and I would supply the full pathname just for safety: "/sbin/modprobe".
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
modprobe: FATAL: Could not load /lib/modules/.../modules.dep Ankardo Debian 9 02-01-2011 05:09 PM
lenova T61 Thinkpad laptop Poweron password ..user locked.. vikesh.u General 1 09-27-2009 07:36 AM
FATAL: Could not load /lib/modules/2.6.14-default/modules.dep no such file exist dr_zayus69 Linux - Software 3 12-26-2005 06:44 PM
FATAL: could not load /lib/modules/2.6.1/modules.dep Fr33B33R Slackware 3 01-12-2004 05:40 AM
modules.conf - Cannot get modules to load automatically gundelgauk Linux - General 1 12-27-2003 11:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration