[Wylug-help] When upgrading linux kernel.

Mike Williams mike at gaima.co.uk
Mon Oct 13 11:13:55 BST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 13 October 2003 10:58, Thomas, Nicholas wrote:

> When I want to upgrade my linux kernel, for example I recently changed from
> 2.4.14 to 2.4.19, I have to to go through the "make menuconfig" or "make
> xconfig"
> step as usual.
> I find it difficult to remember all of the settings in my old kernel, and I
> invariably miss something out when configuring the new kernel, for example:
> which
> sound drivers I compile as a module, or how much ram disk size I use.
>
> I know that the settings are all in the .config file in the old kernel
> source directory, so is there a way (program, or bash script or something)
> which will automatically
> configure the new kernel to be the same as the old one, and leave any new
> stuff as "default" settings. This way I only need to concern myself with
> the new
> stuff provided in the newer kernel.
> Is it OK to simply copy the old .config file into the new source directory?
> and does this work between major kernel versions?
>
> I know this is only a trivial thing; I can eventually get everything setup
> as required, but it would be nice to know that I am starting from a known
> working configuration.

You can just copy the .config between versions.
If you wanted to see each new option, and be asked what to do (hitting enter
will select the default) then run 'make oldconfig'. If you don't want to see
then just run 'make menuconfig/xconfig' and it'll rejig the config accepting
the defaults for you.
The former works, albeit with a lot of changes, between 2.4.x and 2.6.x.

- --
Mike Williams
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/inrkInuLMrk7bIwRAmtDAKCgTF17tB2N6UtEhYzuvZD19Rj/owCfThlW
CZ6Qyx4MGawTLzfG8+RWdwQ=
=wqGU
-----END PGP SIGNATURE-----




More information about the Wylug-help mailing list