LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-03-2002, 04:43 AM   #1
grebbs
LQ Newbie
 
Registered: Jan 2002
Location: Sweden
Posts: 1

Rep: Reputation: 0
Question Load present kernel-config when building a new?


Hi!

Im new into linux and recently installed RedHat 7.2. With the kernel produced when installing, the system sems to work pretty well, but I also want to add ntfs-support so that I can mount my ntfs-partions which I also have on my system.

I read and followed the HOWTO-kernel, how to config and build a kernel. It went good, and I got my ntfs-support, BUT the network/ip-something didn't work with the kernel I configed. I suppose I must have missed some option?

* So, my first question is: How can I when I want to build a kernel, "load" the present kernel-config, and just change the options that I want to be changed? (for me just tick "Y" on ntfs-support)

* The kernel-source is in /usr/src/linux-2.4.7.10. If I want to install a newer kernel (ei 2.4.7.17). How do I do to use the present kernel-config and then being able to change all features , including new features for the new kernel?

//Regards Andreas
 
Old 01-03-2002, 05:49 AM   #2
bluecadet
Member
 
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555

Rep: Reputation: 30
you *should* have the original config file in /boot/config-2.4.7-10 or such like, run 'make xconfig' in the kernel source and load it from there. it might also be the case that the source rpm you installed contains it as teh default .config file as well
 
Old 01-25-2002, 01:55 PM   #3
mdobbs
LQ Newbie
 
Registered: Jan 2002
Posts: 3

Rep: Reputation: 0
.config file on redhat 7.2

Hi - I have the same question... I'm also new to building kernels, so bear with me here.

I want to do exactly what "grebbs" is asking above. However, the reply doesn't help me, because there is no .config file in the
/usr/src/linux-2.4.7-10 directory in my installation of redhat 7.2. (I've searched my whole disk for one (find . -name ".config"), and found nothing).

There is, however, a directory called:
/usr/src/linux-2.4.7-10/configs
which I *think* contains all the default configuration files for redhat 7.2. So I guess one of those files is the one that was used to build my kernel... but which one?? The files are:
kernel-2.4.7-athlon.config kernel-2.4.7-i586-smp.config
kernel-2.4.7-athlon-smp.config kernel-2.4.7-i686.config
kernel-2.4.7-i386-BOOT.config kernel-2.4.7-i686-debug.config
kernel-2.4.7-i386.config kernel-2.4.7-i686-enterprise.config
kernel-2.4.7-i386-smp.config kernel-2.4.7-i686-smp.config
kernel-2.4.7-i586.config


and I (embarrassingly) don't even know whether I should use i386 or i686, nor what smp means. (my processor is a PIII 1GHz).

Should I use one of these files as my .config? If I choose to upgrade to a newer kernel, can I still use one of these files (which I guess is intended ofr 2.4.7)?

Is there someway to ask my kernel to spit out a .config file ??

Thanks in advance if you have any solutions/suggestions!
 
Old 01-25-2002, 03:19 PM   #4
ryanstrayer
Member
 
Registered: Jan 2002
Location: Kansas City
Distribution: RedHat 7.2 Kernel 2.4.17
Posts: 250

Rep: Reputation: 30
Okay - here's what you guys need to do. You are correct in assumping that the /usr/src/linux-2.4.7-10/configs directory are the config files. Those config files contain the same options that shipped with the RH 7.2 built kernel.

When building a new kernel, either 2.4.7-10 or a completely new kernel, like 2.4.17, load one of those config files by selecting 'Load Stored Configuration" after typing 'make menuconfig' or 'make xconfig'. From there, you can then experment and find out what works with your system and what doesn't.

Note: It normally takes dozens of compiles to learn what works with your system and what doesn't. Assuming you know it all from the beginning is usually a bad assumption, even when you using the help inside the kernel config. Things are not as they appear.

Now to answer the question of WHICH file to use... i386 will work on almost all systems now-a-days (386 and higher), but if you have a fairly new system (Pentium II and higher) i686 is what I recommend. I have a IBM Laptop PII366mhz which I run the i686 kernel on. Again, you can run i586, or even i386, but it will not be optimized for your machine.

If this is your first experience with kernels, give it time. Like I said, it will take dozens of compiles and errors before you learn what works and what doesn't with your specific system. Every system is different.

When compiling, be sure you have a symbolic link of /usr/src/linux pointing to your version directory such as 2.4.7-10 or something else. If you are not familiair with symbolic links type 'man ln' and start reading .

Hope this helps you guys, I had to learn it all on my own..

BTW, SMP is for multi-processor support. You don't want that.

Last edited by ryanstrayer; 01-25-2002 at 03:22 PM.
 
Old 01-25-2002, 06:03 PM   #5
mdobbs
LQ Newbie
 
Registered: Jan 2002
Posts: 3

Rep: Reputation: 0
thanks ryanstrayer,

that's helpful. I'll try the recompile with the
/usr/src/linux-2.4.7-10/configs/kernel-2.4.7-i686.config
file.

I'm discouraged that you say it may take many tries to figure out the correct options. My kernel works perfectly now, I just want to change one option.... if its really true that linux does not know how to tell me its current configuration (so as to allow me to change one option while leaving everything else untouched), ... then that's sad! But that's life, I guess-

I'll give it a whirl.
 
Old 01-26-2002, 03:47 AM   #6
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
once you play around with the xconfig - it's not nearly as scary. generally the help button will let you know if a particular part is vital or not.

plus, you can always just save your new config to a different file, and work off the ones that red hat put there to make things easier for you. those will work probably without any real problem.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ndiswrapper - driver present:harware present but no connection esteeven Linux - Wireless Networking 2 12-26-2004 04:06 PM
Building kernel module from multiple source file in 2.6 kernel yogeshwar_s Programming 1 12-20-2004 09:31 AM
Problems building a simple kernel module for kernel 2.6.7 atticman Linux - Software 2 12-13-2004 03:35 PM
Kernel source code not present cdot Linux - Wireless Networking 7 08-29-2004 12:27 AM
how do I Load the kernel config? Ricio Red Hat 1 10-11-2003 07:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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