LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
  Search this Thread
Old 06-27-2006, 03:02 PM   #1
halfpower
Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 244

Rep: Reputation: 31
Which Folder to Put New Module In?


I've installed a module for my wireless card. Right now its in /usr/bin/. Is there the slightest this is the ideal location? What might be a preferred location?
 
Old 06-27-2006, 03:29 PM   #2
the_real_absinthe
LQ Newbie
 
Registered: May 2006
Distribution: slackware linux
Posts: 28

Rep: Reputation: 15
mmm... usually modules are located inside /lib/modules/`uname -r`/kernel/"somedir"

how did you install it? not via the common (and not reliable) :

./configure
make
make install

procedure?

M
 
Old 06-30-2006, 01:54 PM   #3
halfpower
Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 244

Original Poster
Rep: Reputation: 31
I believe so, although I did have to make some modification to the install process. I manual placed the module in the /usr/bin/ directory though.
 
Old 06-30-2006, 06:12 PM   #4
kd5pbo
Member
 
Registered: Jun 2006
Location: Washington, DC, USA
Distribution: Slackware
Posts: 41

Rep: Reputation: 15
Quote:
Originally Posted by the_real_absinthe

how did you install it? not via the common (and not reliable) :

./configure
make
make install

procedure?
Why is

./configure
make
make install

not reliable?

Is there any reason to build modules as opposed to compiling them straight into the kernel? It seems everybody builds kernels differently, but nobody has an argument as to which is better and why.
 
Old 06-30-2006, 08:54 PM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,352

Rep: Reputation: 5383Reputation: 5383Reputation: 5383Reputation: 5383Reputation: 5383Reputation: 5383Reputation: 5383Reputation: 5383Reputation: 5383Reputation: 5383Reputation: 5383
Quote:
Originally Posted by kd5pbo
Is there any reason to build modules as opposed to compiling them straight into the kernel?
Yes. If they're modules, you can decide not to load them (or to load different ones) if your hardware changes. This is especially important for USB and PCMCIA devices, although being able to change PCI cards without recompiling your kernel is a bonus too.

Last edited by dugan; 07-01-2006 at 12:44 AM.
 
Old 07-01-2006, 12:05 AM   #6
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
you should be able to put the module where absinth said and then run 'depmod -a' and 'insmod yourmodule here' edit or 'modprobe yourmodule here' if it works then add it to bottom of /etc/rc.d/rc.modules
 
Old 07-01-2006, 04:17 AM   #7
the_real_absinthe
LQ Newbie
 
Registered: May 2006
Distribution: slackware linux
Posts: 28

Rep: Reputation: 15
Quote:
Originally Posted by kd5pbo
Why is

./configure
make
make install

not reliable?
becouse not all make files have an "uninstall" option and so is not so easy to remove the whole set of files. more easy is to install them inside a temp dir and after build your own tgz via makepkg. so you can install and remove binaries via pkgtools.

Quote:
Is there any reason to build modules as opposed to compiling them straight into the kernel? It seems everybody builds kernels differently, but nobody has an argument as to which is better and why.
ok: if you are compiling a module which is not part of the official kernel code (eg a driver related to some "unusual" device) you must build it externally, of course
for the common code of a vanilla kernel: to build a drive static or modular is just a problem of "taste". if you use always a device, for example if you use always the same sound card -as I do with my laptop sound card-, you can put the related alsa driver inside the monolitic part of the kernel (/boot/somewhere/vmlinuz). otherwise, if you use a device just few times -for example I plug my usb HD once a month for my backups- you can prefer to put the driver as module : linux will load it via hotplug (in slack is hotplug) just when you'll need it.
of course the more the static drivers the biggest the vmlinuz file. remember that if you want a rescue floppy the monolitic section of the kernel must be <1.44 MB.
I haven't a floppy drive in my laptop so I don't care about vmlinuz dimension and I tend to put almost all as static inside the kernel. but I'm just a desktop user with no special needs.

M
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling in any folder will install in current or correct folder ? anjanesh Fedora 4 05-10-2006 09:44 AM
Folder Max Size and Limiting SSH access to home folder. Mefistofeles Linux - General 4 11-26-2005 03:09 PM
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 06:23 PM
Where to put mysql-connector-java folder dukehazord Linux - General 1 09-10-2004 12:30 PM
how can i default the max folder file size when it create inside a folder antony_csf Linux - Software 1 06-17-2004 03:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:56 AM.

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