LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-12-2004, 04:28 PM   #1
Nichole_knc
Member
 
Registered: Mar 2004
Location: Georgia
Distribution: SlackWare 10.1+, FreeBSD 4.4-5.2, Amiga 1.3,2.1,3.1, Windors XP Pro (makes a fair answering machine)
Posts: 287

Rep: Reputation: 30
Building modules for the kernel...


I was wondering after I builted a driver for a usb hd today and then installed it to /lib/modules/kernel#, can you do the same if you want to add something as a module but not rebuild the entire kernel. Such as make menuconfg, set the (m)s you want, make dep, make clean, make modules, make modules_install....

Kinda seems like you could do that. Possible???
 
Old 04-12-2004, 06:07 PM   #2
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware-current
Posts: 1,244

Rep: Reputation: 47
It would seem the case that it is possible. As an example, one can add the nvidia driver to the kernel modules. I would think you would want to know what you are doing before doing something like that. You probably would want to know what depmod means and things like that
 
Old 04-12-2004, 07:39 PM   #3
Nichole_knc
Member
 
Registered: Mar 2004
Location: Georgia
Distribution: SlackWare 10.1+, FreeBSD 4.4-5.2, Amiga 1.3,2.1,3.1, Windors XP Pro (makes a fair answering machine)
Posts: 287

Original Poster
Rep: Reputation: 30
Well it works quite well actually. I was doing some firewall setups that required some kernel mods that I had not marked (y) or (m).. So what I did was this....
Copied my /lib/modules/2.4.22 to a safe location.. cded to my /usr/src/linux.. make menuconfig and (m)ed the desired mods, exited and saved... make dep.. make clean.. make modules.. make modules_install.. Then I cded back to /lib/modules/2.4.22 and compared it to my saved safe one. copied back the miss alsa sound driver directory and my usb hd drivers and a edited a couple of **.maps.. Crossed my fingers and rebooted.. Got a few misdirections that fixed themselves at first shot.. I would say that it is possible to do... My system is just fine now and my firewall is working really well... Which is what I desired as on at least a weekly bases some one manages to get through the first fw and wipe my son's box... Told him that was the cost of being wide open for PtP and on-line games. All other boxes on the net go off-line when the first alerts to intrusion attempts...
 
Old 04-13-2004, 08:28 AM   #4
OdieQ
Member
 
Registered: Jan 2004
Location: Stockholm, Sweden
Distribution: Debian, Slackware
Posts: 71

Rep: Reputation: 15
Making modules

Well, as you noticed it works perfectly. This is in fact (part of) the purpose of modules, to be able to (re)compile and replace drivers on the fly.
 
  


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
Building driver modules to work with Install kernels? Erik_FL Slackware 4 10-06-2005 09:05 PM
Problem building RH9 kernel modules dominicporter Red Hat 1 09-25-2005 12:53 PM
Building new kernel modules? raid517 Linux - Software 2 05-26-2005 03:07 AM
problem building modules david_deng Linux - Newbie 2 09-22-2004 01:12 AM
Strangeness (or pilot error) building network driver modules cacheout Fedora 0 07-27-2004 06:39 PM


All times are GMT -5. The time now is 07:27 PM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration