Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-20-2002, 09:16 AM
|
#1
|
LQ Newbie
Registered: Aug 2001
Posts: 24
Rep:
|
Loading kernel modules at boot
I have a K7SEM motherboard with the pctel amr modem, running Mandrake 8.1. I found a driver for the modem on the web. It has an install script that creates and loads 2 modules, pctel.o and ptserial.o. I can load the modules manually using insmod, but I would like to have them load at boot. Where do I need to put the modules? Which init. file do I need to edit and what are the commands? Thanks.
Dale
|
|
|
04-20-2002, 09:43 AM
|
#2
|
Member
Registered: Dec 2001
Location: New Zealand,Auckland
Distribution: debian
Posts: 86
Rep:
|
find out "rc.local" # find /etc -name rc.local
edit it as root
append this line:
modprobe pctel.o ptserial.o
Notes:
-under slackware, "rc.local" is located on /etc/rc.d/
I don't know what's about redhat or mandrake,thus I've suggested to use "find".
good luck
|
|
|
04-20-2002, 10:52 AM
|
#3
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Rep:
|
Under RH and Mandy it's under the same location /etc/rc.d/rc.local
|
|
|
04-20-2002, 06:51 PM
|
#4
|
LQ Newbie
Registered: Aug 2001
Posts: 24
Original Poster
Rep:
|
Still doesn't load
I inserted the following lines in the /etc/rc.d/rc.local file at the end just before the final line (touch /var/lock/subsys/local).
modprobe /home/dale/modem driver/lib/pctel.o
modprobe /home/dale/modem driver/lib/ptserial.o
I get an error message that has something to do with permissions, I think. It flies by pretty fast during boot, and I'm not sure which log file to take a look at.
|
|
|
04-20-2002, 07:19 PM
|
#5
|
Senior Member
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590
Rep:
|
Do "dmesg" right after login to see the boot messages.
If you did a make install on the modem driver then the modules should be in /lib/modules/<kernel-version> and can be loaded with "modprobe pctel" and "modprobe ptserial", you don't use the .o in the command when loading a module, also you should try adding the modules to /etc/modules.conf.
|
|
|
04-21-2002, 04:54 PM
|
#6
|
LQ Newbie
Registered: Aug 2001
Posts: 24
Original Poster
Rep:
|
The install script just does make, then installs using insmod. I guess I need to do some reading on kernel modules. Thanks
Dale
|
|
|
06-07-2002, 04:42 AM
|
#7
|
LQ Newbie
Registered: May 2002
Location: Australia
Distribution: Mandrake 8.2
Posts: 2
Rep:
|
pctel amr autoloading
If you add the following lines to your install script
the modules will load each time you boot up.
As root add this:
----------------------------------------
mkdir /lib/modules/`uname -r`/misc
cp lib/*.o /lib/modules/`uname -r`/misc
echo "insmod pctel" >> /etc/rc.d/rc.local
echo "insmod ptserial" >> /etc/rc.d/rclocal
------------------------------------------------
Let me know if it works for you.
This driver also works in Mdk 8.2
|
|
|
06-10-2002, 07:28 AM
|
#8
|
LQ Newbie
Registered: Aug 2001
Posts: 24
Original Poster
Rep:
|
Thanks Egort. I had already copied the files to the directory and edited my rc.local. Glad to hear the drivers work in 8.2, I've been thinking about upgrading.
|
|
|
All times are GMT -5. The time now is 03:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|