Kernel Recompile Woes (any version), please help !

Kernel Recompile Woes (any version), please help !

Post by Neil Marjora » Sat, 15 Dec 2001 23:48:58



Hi,

I guess I should know this, but in all the years of using Linux I have
never found the answer.

I always have trouble recompliling the Kernel, as when I have finished
something on my system no longer works so I have to start again, and
when I fix that problem I usually get another. To fix these problems I
usually end up reinstalling the OS, which of course detects my system
and builds the correct Kernel with all the modules.

My question is can I some how view the current Kernel setup before I
recompile so that I know what I should be choosing as options from the
config menu? Or better still can I load the current config into the
configuration options so that I only need to change the ones directly
related to my problem.

Currently I am have trouble getting the USB to work with SCSI, with SCSI
emulation on for my IDE CDRW, and with Firewire activated, only  USB is
autodetected on install so please help!

Thanks,

Neil.

 
 
 

Kernel Recompile Woes (any version), please help !

Post by Philip Jone » Sat, 15 Dec 2001 21:26:36




> Hi,

> I guess I should know this, but in all the years of using Linux I have
> never found the answer.

> I always have trouble recompliling the Kernel, as when I have finished
> something on my system no longer works so I have to start again, and
> when I fix that problem I usually get another. To fix these problems I
> usually end up reinstalling the OS, which of course detects my system
> and builds the correct Kernel with all the modules.

> My question is can I some how view the current Kernel setup before I
> recompile so that I know what I should be choosing as options from the
> config menu? Or better still can I load the current config into the
> configuration options so that I only need to change the ones directly
> related to my problem.

> Currently I am have trouble getting the USB to work with SCSI, with SCSI
> emulation on for my IDE CDRW, and with Firewire activated, only  USB is
> autodetected on install so please help!

> Thanks,

> Neil.

  Neil
          Try make oldconfig  which will use the old .config   file which
contains the previous complie config information.

                                                     Phil Jones

 
 
 

Kernel Recompile Woes (any version), please help !

Post by Kosh Vade » Sun, 16 Dec 2001 00:19:09


On Fri, 14 Dec 2001 09:48:58 -0500, Neil Marjoram


>Hi,

>I guess I should know this, but in all the years of using Linux I have
>never found the answer.

>I always have trouble recompliling the Kernel, as when I have finished
>something on my system no longer works so I have to start again, and
>when I fix that problem I usually get another. To fix these problems I
>usually end up reinstalling the OS, which of course detects my system
>and builds the correct Kernel with all the modules.
>My question is can I some how view the current Kernel setup before I
>recompile so that I know what I should be choosing as options from the
>config menu? Or better still can I load the current config into the
>configuration options so that I only need to change the ones directly
>related to my problem.

I'm curious... what process have you normally gone through to rebuild
your kernels?  What I've always done (since I could) was during a
"make menuconfig" or "make xconfig", load in my system's kernel
options using "Load Configuration from File", but that's after I saved
a previous configuration file using "Save Configuration to File".
That way, whenever I got a updated kernel within the same family (i.e.
2.2, 2.4), I simply load up the last configuration from a saved file,
and make any tweaks I needed to, then save those changes back to the
same file, or to a new file whose name shortly describes the
modifications made--for versioning purposes.

Chris

- Show quoted text -

Quote:>Currently I am have trouble getting the USB to work with SCSI, with SCSI
>emulation on for my IDE CDRW, and with Firewire activated, only  USB is
>autodetected on install so please help!

>Thanks,

>Neil.

 
 
 

Kernel Recompile Woes (any version), please help !

Post by Neil Marjora » Sun, 16 Dec 2001 21:41:04



> On Fri, 14 Dec 2001 09:48:58 -0500, Neil Marjoram

>>Hi,

>>I guess I should know this, but in all the years of using Linux I have
>>never found the answer.

>>I always have trouble recompliling the Kernel, as when I have finished
>>something on my system no longer works so I have to start again, and
>>when I fix that problem I usually get another. To fix these problems I
>>usually end up reinstalling the OS, which of course detects my system
>>and builds the correct Kernel with all the modules.

>>My question is can I some how view the current Kernel setup before I
>>recompile so that I know what I should be choosing as options from the
>>config menu? Or better still can I load the current config into the
>>configuration options so that I only need to change the ones directly
>>related to my problem.

> I'm curious... what process have you normally gone through to rebuild
> your kernels?  What I've always done (since I could) was during a
> "make menuconfig" or "make xconfig", load in my system's kernel
> options using "Load Configuration from File", but that's after I saved
> a previous configuration file using "Save Configuration to File".
> That way, whenever I got a updated kernel within the same family (i.e.
> 2.2, 2.4), I simply load up the last configuration from a saved file,
> and make any tweaks I needed to, then save those changes back to the
> same file, or to a new file whose name shortly describes the
> modifications made--for versioning purposes.

> Chris

>>Currently I am have trouble getting the USB to work with SCSI, with SCSI
>>emulation on for my IDE CDRW, and with Firewire activated, only  USB is
>>autodetected on install so please help!

>>Thanks,

>>Neil.

Chris,

I have gone through all the normal config instructions, and tried all
the documentation I can, my problem is not building the kernel, but
loading the configuration to start with. I need to know how to display
or load into make xconfig the current working configuration, the
configuration that loads when you start xconfig is not that of the
running kernel - I've tried compiling without changing anything, the
system fails on reboot, mainly because it fails to detect my dual PII. I
am missing something fundamental (a brain), or perhaps my 6/7 years in
commercial Unix admin has been a total waste of time!
I know of the .config file, but initially this does not contain the
kernel setup of my system.
I think it's chicken or egg - to get it to work I need a working config
for my system - to do that I need to get it to work!!

Any thoughts?

Thanks,

Neil.

 
 
 

Kernel Recompile Woes (any version), please help !

Post by Ian MacPherso » Sun, 16 Dec 2001 20:39:44


For what its worth ... do you do your recompiles in a separate directory
away from the /usr/src ?  If you do then the .config file for your original
setup will still be intact in /usr/src/linux.  It may pay to review the
.config as it is just a series of options in a text file and relates
directly to the options you get in make menuconfig (which I find more useful
than the gui's).  I got a similar but different problem which you may have
come across:

where does the module-info file come from in the /boot directory?  I am
using two alternate kernels and since upgrading from 2.4.2 there are a
number of changes I haven't worked out yet ... good luck !

 
 
 

Kernel Recompile Woes (any version), please help !

Post by Kosh Vade » Mon, 17 Dec 2001 01:00:16


On Sat, 15 Dec 2001 07:41:04 -0500, Neil Marjoram

<snipped out>

Quote:

>Chris,

>I have gone through all the normal config instructions, and tried all
>the documentation I can, my problem is not building the kernel, but
>loading the configuration to start with. I need to know how to display
>or load into make xconfig the current working configuration, the
>configuration that loads when you start xconfig is not that of the
>running kernel - I've tried compiling without changing anything, the
>system fails on reboot, mainly because it fails to detect my dual PII. I
>am missing something fundamental (a brain), or perhaps my 6/7 years in
>commercial Unix admin has been a total waste of time!
>I know of the .config file, but initially this does not contain the
>kernel setup of my system.
>I think it's chicken or egg - to get it to work I need a working config
>for my system - to do that I need to get it to work!!

Part of this depends on whether or not you are using:  1) the
distribution's supplied kernel source; 2) a updated kernel source from
the distribution makers; or 3) just a plain Linus kernel source, as
gotten from kernel.org.

Assuming (1) or (2) for the moment, if you are wanted to build the
kernel from this source for the first time, the ".config" file is a
base working configuration that you can start from.  And yes, you
probably don't want to just use this file as your initial kernel
configuration, especially if you have particular requirements like SMP
support.  So the first thing you do is to make a copy of this file,
like "cp .config /usr/src/<hostname>-kernel.conf", then do a "make
mrproper".  This make statement will erase ".config".  Then when you
do "make xconfig", you load up the alternate configuration file
"<hostname>-kernel.conf" using the button "Load Configuration from
File", and then make your initial changes to the configuration, either
to include and exclude certain kernel features (see below).  When you
are done, save the changes either to the same file, using the button
"Save Configuration to File", or to a different file--probably a
better method use--like "<hostname>-kernel.conf-<yyyymmddvv>", where
<yyyymmddvv> is similar to zone file versioning, if you're familiar
with DNS administration.

If you are using (3), you can start by using a configuration file,
like ".config", obtained from either (1) or (2) if you have them on
your system, making a copy of it as "/usr/src/<hostname>-kernel.conf".
Note that this configuration file assumes many features that will be
missing from a Linus kernel, so when you load it up during "make
xconfig", only some of the original settings will be available and
selected accordingly.  But it get you at least a starting point.
However, if you do not have any prior configuration file on your
system, and you starting from scratch with a Linus kernel, then at the
point you can only try to ensure on building a kernel that will get
the system to at least boot up into single-user mode.  That's you're
target.  The extra features needed for the system to properly boot up
into run-level 3 or 5 can be dealt during another pass-through the
kernel configuration and building phrase.

In any case, when you do "make xconfig", and load up a configuration
file if you have one, you will need to go through all the options to
make sure you have the necessary features either built into the kernel
or as a module that you want.  Again, to be able to get the system to
boot up into at least single-user mode, pay particular attention to
including driver support for devices like SCSI adapters, ReiserFS, and
so on.  It's been my habit to have the all absolute necessities built
into the kernel, not as modules.  I don't like maintaining initial RAM
disks (initrd), as I feel it to be a clumsy requirement for proper
boot up.

Chris

- Show quoted text -

Quote:>Any thoughts?

>Thanks,

>Neil.

 
 
 

1. Set-up woes, please, please, please help :(

Hey everyone,
            here's my situation: yesterday i finally got all the parts
to my new computer. I built it, installed rh 6, and i've had nothing but
problems, in fact the only devices i have working properly are my ide
drives and cd burners. Here's what i bought:

Celeron 400 PPGA x 2 (and yes the label said single processor
systems...but they work just fine)
Abit BP-6 Motherboard
256 MB PC100 Ram  (2 x 128)
Western  Digital 13.0 and 8.4 gig Hardrives
Mitsumi 40 x IDE CDrom
Sound Blaster PCI 128
Diamon Viper V770
Advanys SCSI controller with Matsushista 7502 cdr drive (works great)
3com 3c509 isa network card (PnP mode)
.....i think that's it.

Now here are the problems.

1) First of all when i boot it (top) says i only have about 3 megs of
ram free. How is this             possible????

2) I can't seem to configure sound with any luck, sndconfig detects my
card immediatly but i don't head any sound.

3) When i reboot or shutdown using those commands, i don't think it
properly unmounts the drives becuase i get error messages when it boots
up and take about 20 minutes to fsck them.

4) I installed the nVidia patch for the V770 and X does work but the
graphics are real sh*tty (grainy, not sure what mode i'm running in but
i know it's 1024x768)

5) Sometimes when shutting down, the machine hangs when its shutting of
interface eth0. so i'm not sure if the network card is the problem.

    That's it on the problems so here are the questions:

    a) How do i fix the problems that i listed above? (i know it's
stupid and redundant to say
                that, but it's my primary question)

    b)  What version of linux should i run on this, i.e. what will
support the hardware best. I was         considering mandrake, but i'm
not sure.

    c) Is there a way to tell what cpu is doing what? i know in Irix
when you run top it tells you          about each cpu?

                    I truly thank everyone in advance for help with
this,

--jordan

2. uncompress problem

3. Colbalt Cube2 Internet connection

4. Help please- recompiled 1.3.18 kernel wont boot....

5. Process hung on removed lm_sensors /proc entry, caused kernel oops (2.2.6-ac1)

6. Recompiled my Kernel, but X won't start anymore..help please!!?

7. PHP 4.x standalone?

8. Please Help: Problems after recompiling kernel

9. Please help w/ problem after recompiling kernel 2.4.15

10. PLEASE HELP, Recompiled kernel now have error

11. error recompiling the kernel please help

12. Help please: Lost Iso9660 support after recompiling kernel