Mike, Charles is correct on this. As installed there is no ".config"
file in /usr/src/linux. After a "make --oldconfig" you'll have a copy
of the one that was used to build the installed kernel.
Depending on what you change, you may need to type "make --oldconfig"
again, as I recall. What I generally do is the following:
make --oldconfig
-- this gives me the copy of the original .config file. I believe it's
-- copied from /usr/src/linux/configs if there's no existing .config.
-- now I edit and set raid to "n", Frame Buffering, if necessary, etc.
make --oldconfig
-- since there is an existing .config file in /usr/src/linux, it runs
-- through that. What this does is to clean out any inconsistencies
-- in the .config file. As an example, if you turn off Frame Buffering
-- it would still build a number of modules if you didn't rerun make
-- with the "--oldconfig" option. Check afterwards in your new .config
-- and you'll find that the dependent modules on what you have switched
-- off will no longer be there.
then just complete the process with
make dep
make clean
make bzImage
make modules
make modules_install
and then install the new kernel, which is in a ./arch subdirectory.
rickf
[EMAIL PROTECTED] said:
> If this is a fresh install of Red Hat 6.2, and I've never recompiled
> the kernel, shouldn;t it be configured to the default that Red Hat
> installed it? Or do I need to type make oldconfig to get it that way?
> Sorry if I wasn't clear in my previous email.
> - Mike
> On Tue, 4 Apr 2000, Charles Galpin wrote:
> no. run 'make oldconfig' first. this will give you the settings your
> installed kernel used.
>
> then, make whatever changes you want (like turing off raid).
>
> hth
> charles
>
> On Tue, 4 Apr 2000, Michael J. McGillick wrote:
>
> > Morning All:
> >
> > On the topic of rebuilding the kernel, is my assumption correct that
> if I
> > were to go into the /usr/src/linux directory, and follow the steps
> to
> > recompile the kernel, without making any changes to the
> configuration, I
> > should get back the same kernel that Red Hat installs by default,
> and all
> > of the same modules set up?
> >
> > The reason I ask this, is I've had mixed results in the past when
> > recompiling. As the kernels keep changing, it's tough to determine
> what
> > needs to be left in, what should be compiled as a module, and what
> should
> > be removed. If the above statement is true, I would go into make
> config,
> > and remove the RAID stuff only, leaving everything else as is and
> then
> > recompile.
--
Rick Forrister <[EMAIL PROTECTED]>
"To get something done a committee should consist of no more than
three people, two of whom are absent." Robert Copeland
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.