Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 04-20-2002, 09:16 AM   #1
LQ Newbie
Registered: Aug 2001
Posts: 24

Rep: Reputation: 15
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.

Old 04-20-2002, 09:43 AM   #2
Registered: Dec 2001
Location: New Zealand,Auckland
Distribution: debian
Posts: 86

Rep: Reputation: 15
find out "rc.local" # find /etc -name rc.local

edit it as root

append this line:
modprobe pctel.o ptserial.o

-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
Old 04-20-2002, 10:52 AM   #3
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Under RH and Mandy it's under the same location /etc/rc.d/rc.local
Old 04-20-2002, 06:51 PM   #4
LQ Newbie
Registered: Aug 2001
Posts: 24

Original Poster
Rep: Reputation: 15
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.
Old 04-20-2002, 07:19 PM   #5
Senior Member
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
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.
Old 04-21-2002, 04:54 PM   #6
LQ Newbie
Registered: Aug 2001
Posts: 24

Original Poster
Rep: Reputation: 15
The install script just does make, then installs using insmod. I guess I need to do some reading on kernel modules. Thanks

Old 06-07-2002, 04:42 AM   #7
LQ Newbie
Registered: May 2002
Location: Australia
Distribution: Mandrake 8.2
Posts: 2

Rep: Reputation: 0
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
Old 06-10-2002, 07:28 AM   #8
LQ Newbie
Registered: Aug 2001
Posts: 24

Original Poster
Rep: Reputation: 15
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot problem after loading modules into kernel scr02bcg Linux - General 2 07-21-2005 10:23 AM
how to configure loading of kernel modules at boot? eigenyeugen Debian 2 06-26-2005 03:35 PM
Loading kernel modules during boot. alexeyak Fedora 4 12-20-2004 09:04 AM
Loading modules error after loading compiled kernel td0l2 Linux - Newbie 12 07-28-2004 11:10 AM
loading modules at boot Davidian1024 Linux From Scratch 3 06-25-2004 12:19 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:10 AM.

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