LinuxQuestions.org
Help answer threads with 0 replies.
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 01-21-2004, 11:20 AM   #1
Machiaveli
Member
 
Registered: Jan 2004
Posts: 47

Rep: Reputation: 15
.config and kernel questions


Please help me understand this.

Slackware 9.1 - 2.4.22

What does the config-ide-2.4.22 file in /boot do exactly?

If I do a make menuconfig there are less options installed as to if I would replace the .config file in /usr/src/linux/.config from /boot and do a make menuconfig?

Why is this?

Is the .config file from /boot the configuration for the kernel that was installed when I installed Slackware? The other one is just a basic kernel, with no options installed? Is this correct?

I saw this when I had trouble with my Frame-buffer feature. It seems that there are more options one can choose if the config file is copied to /urs/src/linux/.config from /boot, rather than just doing a make menuconfig without copying the file.

Forgive my ignorance, I'm new to Linux and kernel compiling in particular.
 
Old 01-21-2004, 12:03 PM   #2
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
are you compiling a 2.6 kernel now? the 2.4.xx series uses a different layout that just looks like there's more. The new kernel is setup different but still has all the same options - well, it may have more, actually. When you use the 2.4.xx config it uses the old menu. Is that what you're asking?

Last edited by Vincent_Vega; 01-21-2004 at 12:04 PM.
 
Old 01-21-2004, 12:54 PM   #3
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
I think this may be because the old config file has kernel development features turned on (I think that is what it is called). If you're in a terminal in x try doing make xconfig, and the first option at the top should say something like 'turn kernel development features on'. If it's on, you get more (expiremental) options for the kernel. If it's off, the list is shorter. That would be my guess.

Personally, I would ditch the kernel config from the slackware 2.4.22 kernel, and just start from scratch on your own. Kernel compiling seems like rocket science at first, until you do it a couple times. After a while it will seem like old hat. Make sure you are VERY familiar with all of your hardware, and decide ahead of time if you want to compile thing into the kernel, or do everything as a module. Also, try to plan for changes in hardware, like compiling all of the joystick drivers as modules in case you buy a new gamepad or something. There is a sticky thread at the top of this forum for 2.6.0 kernel compiles. Let us know if you have any problems/questions.

slight
 
Old 01-21-2004, 03:37 PM   #4
Machiaveli
Member
 
Registered: Jan 2004
Posts: 47

Original Poster
Rep: Reputation: 15
Thanks for responding!

It's actually the 2.4.22 kernel I'm trying to improve. I'll try to explain a little better.

I just installed Slackware for the first time, I'm a newbie when it comes to Linux in general. So before I went any further with my router project I decided to learn a little more about compiling the kernel.

So I follow these steps
[cd /usr/src/linux]
[make mrproper]
[make menuconfig]

When I do this the kernel has nearly nothing installed, no NIC modules, not IPTables/Netfilter, no frame-buffer support, no nothing really.

BUT..

If I run this first
[cp /boot/config-ide-2.4.22 /usr/src/linux/.config]

and then

[cd /usr/src/linux]
[make mrproper]
[make menuconfig]

Then the menuconfig shows a totally different setup/configuration.
Why is this?

What kernel was I about to compile before since the configuration on these two separate kernels are not the same? That is the question.
These two kernels/configurations are not the same and I wonder why?

*EDIT* Spelling

Last edited by Machiaveli; 01-21-2004 at 03:56 PM.
 
Old 01-21-2004, 06:15 PM   #5
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
Ahhhh!
I understand now. The config-ide-2.4.22 is the old configuration file that was used to make the bare.i kernel that came with slack 9.1.

Everytime you compile the kernel you have 2 options. You can use an old config file that has all of the options saved in it from the last time you compiled the kernel, or you can start from scratch and build a config file on your own. By copying the old config file from config-ide-2.4.22 to /usr/src/linux/.config you are telling make to use the options in that file. If you don't need to change anything, then you would simply do 'make oldconfig'..... make would read the .config file, and use all of the options in there. If you do make menuconfig, or make xconfig, then make will read the .config file, pre-fill the menu with the options listed in it, and then offer you the ability to make any changes you need. If you don't copy config-ide-2.4.22 to /usr/src/linux/.config, then running make menuconfig or make xconfig will start you off with the kernel defaults, and you will have to fill in the rest of the options on your own. When you are done with make menuconfig or make xconfig, a .config file is created in /usr/src/linux that has all the options you chose saved in it. You can copy that file somewhere safe, and then reuse it if you ever need to when you compile the kernel again.

Cool? Cool.

slight
 
Old 01-22-2004, 07:55 AM   #6
Machiaveli
Member
 
Registered: Jan 2004
Posts: 47

Original Poster
Rep: Reputation: 15
Oh that's very cool

Thanks for helping me understand!
 
  


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
Kernel Config File Questions Eklipz Linux - Newbie 2 12-12-2004 03:10 PM
firewall config questions robhargreaves Linux - Security 2 05-30-2004 06:46 AM
2 Questions About Config inescapeableus Linux - Newbie 2 04-26-2004 02:09 PM
newbie config questions aerodave Linux - Newbie 3 06-10-2002 06:26 AM
Network Config Questions vdi_nenna Linux - Networking 4 06-07-2002 11:03 PM

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

All times are GMT -5. The time now is 09:29 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