LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 02-14-2005, 05:50 PM   #1
dustin_wielenga
Member
 
Registered: Jun 2004
Location: Washington, USA
Distribution: SLAX, Ubuntu
Posts: 113

Rep: Reputation: 15
Adding kernel modules


How do I install kernel modules? Is there a website link for this? Do I just select Yes for these things when I recompile the kernel? I'm trying to use the Linux-Live-5.0.8 scripts to do this. I need SquashFS and other stuff.

Thanks.
 
Old 02-14-2005, 06:18 PM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,282

Rep: Reputation: 61
The modules are installed with the ' make modules_install ' step in kernel compilation

To enable driver/feature as module, usually you type m or checkbox dot depending on the configure style
 
Old 02-14-2005, 08:00 PM   #3
dustin_wielenga
Member
 
Registered: Jun 2004
Location: Washington, USA
Distribution: SLAX, Ubuntu
Posts: 113

Original Poster
Rep: Reputation: 15
So do I do:

make modules_install /tmp/squashfs.ko.gz

Will that work?
 
Old 02-15-2005, 11:07 AM   #4
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 9.1
Posts: 527

Rep: Reputation: 30
What keefaz suggested is valid if you're configuring/compiling a new kernel.
I do not fully understand what you mean, anyway if you want a module/driver to be loaded the command is
/sbin/modprobe module_name (no trailing .o or .ko are necessary)
If you want a module (not previously configured/compiled) to be available, then you must go to the kernel sources, open your .config file by xconfig or similar, edit it as necessary, and run again make modules && make modules_install.
This will compile the missing module, making it available for loading.
If you need a driver which is not supprted by the kernel, you have to compile it separetely and then install it according to its own instructions.
Usually the method is
extract the tar file
go to the extracted directory and from there
./configure
make
su to root
make install.
It may be different according to the language used to write the sources.
Hope this helps
ciao

Last edited by urka58; 02-15-2005 at 11:20 AM.
 
Old 02-15-2005, 09:11 PM   #5
JoannesX
Member
 
Registered: Dec 2004
Location: Brazil
Distribution: Slackware
Posts: 99

Rep: Reputation: 15
if you want to INSTALL new modules you could first see if your kernel supports the wished modules.. In /usr/src/linux, type:

make xconfig if you are running X and want a grafical interface of the kernel config..

make menuconfig if you are in console mode

add support for whatever you need there..
mark whatever you want to be loaded as modules with "m"

after you did that, save (be careful and sure of what you're doing) and exit..

in the prompt, type:
make modules
make modules_install

To load the modules that were installed, type
modprobe "name of the module"
 
Old 02-15-2005, 11:10 PM   #6
dustin_wielenga
Member
 
Registered: Jun 2004
Location: Washington, USA
Distribution: SLAX, Ubuntu
Posts: 113

Original Poster
Rep: Reputation: 15
I'll look over these and try them when I'm in Slackware. (It's a pain to only have internet in Windows)

Thanks a lot guys!
 
  


Reply


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem adding kernel modules on bootup irmark Linux - Hardware 1 02-10-2006 12:44 AM
Adding Modules ikkuh1991 Slackware 5 07-15-2005 08:39 AM
adding to modules.conf berrance Linux - Software 5 05-30-2005 06:04 AM
Rehashing Apache and adding Modules to it pilot1 Linux - Newbie 1 11-08-2002 07:14 PM
Adding modules to apache.... morbo Linux - Networking 2 02-11-2002 06:40 PM


All times are GMT -5. The time now is 09:18 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration