LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-24-2011, 02:26 PM   #1
RaptorX
Member
 
Registered: Jun 2009
Location: Emden, Germany
Distribution: Slackware 12.2, Slax 6.1
Posts: 254

Rep: Reputation: 37
adding modules to slackware's kernel


Hi guys.

I would like to recompile my kernel to add few modules to it but I would like to keep my current configuration so as not to have troubles with missing drivers for my hardware and stuff.

How do I do that?

(I did follow a kernel compile tutorial once but i am not sure if when i do that it deletes the current config)

Any help would be appreciated.
 
Old 03-24-2011, 02:27 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Quote:
keep my current configuration
Your current configuration (compressed) should be found at /proc/config.gz. Copy that to your kernel source tree, uncompress it, rename it to .config - and there's your base config file. Then you can "make menuconfig" to make changes.
 
Old 03-24-2011, 02:31 PM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Copy the old .config file to the top level of your source and use make oldconfig instead of menuconfig.

Kind regards
 
Old 03-24-2011, 02:41 PM   #4
RaptorX
Member
 
Registered: Jun 2009
Location: Emden, Germany
Distribution: Slackware 12.2, Slax 6.1
Posts: 254

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by repo View Post
Copy the old .config file to the top level of your source and use make oldconfig instead of menuconfig.

Kind regards
I think what i needed was what AlukardZero mentioned. That should be the *current* configuration.

@AlukardZero
thanks a ton.
 
Old 03-24-2011, 02:54 PM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Moved: This thread is more suitable in <Slackware> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 03-24-2011, 05:20 PM   #6
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
As I understand it, "make oldconfig" is for when you have a .config from a kernel older than the one you are building. I assumed when OP said "recompile my kernel" that he would be staying at the same kernel version. Correct me if menuconfig (first) isn't appropriate here.
 
Old 03-24-2011, 06:40 PM   #7
wargus
Member
 
Registered: Mar 2010
Location: Switzerland
Distribution: Slackware
Posts: 98

Rep: Reputation: 23
Quote:
As I understand it, "make oldconfig" is for when you have a .config from a kernel older than the one you are building
Correct.

Code:
make oldconfig
sends out the new items added to a newer kernel than your currently running one (starting from the currently running config) to the console, asking what option you would like to set, while recompiling the same kernel version should get no output after this (anyway doing it does not harm).
Code:
make menuconfig
should be right here to go on reconfiguring your current setup.

Another tip:
Code:
zcat /proc/config.gz > .config
saves the current running kernel config in one step


Last edited by wargus; 03-24-2011 at 07:25 PM. Reason: clarify
 
Old 03-26-2011, 04:00 PM   #8
RaptorX
Member
 
Registered: Jun 2009
Location: Emden, Germany
Distribution: Slackware 12.2, Slax 6.1
Posts: 254

Original Poster
Rep: Reputation: 37
Thanks for all the answers I was able to recompile without issues.
 
  


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
Adding modules to avoid rebuilding the kernel awp2513 Linux - Kernel 1 10-16-2009 11:35 AM
adding modules to the kernel kanelin Mandriva 1 10-26-2006 04:27 AM
problem adding kernel modules on bootup irmark Linux - Hardware 1 02-10-2006 12:44 AM
Adding kernel modules dustin_wielenga Slackware 5 02-15-2005 11:10 PM
kernel modules in slackware e1000 Slackware 8 12-15-2003 11:12 PM

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

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

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