Click to See Complete Forum and Search --> : Installing A New Kernel!


kj6eo
09-22-2002, 07:40 PM
Hello -

The current kernel that I am using is the default kernel (2.4.7-10) that came with RH7.2. The default kernel does not have the Amateur Radio AX25 protocol enabled in it. All I want to do is to build a new kernel (2.4.19) that has this feature enabled in it. However the default configuration options in the (2.4.19) kernel do not match the (2.4.7-10) kernel. It is easy to figure out how the 2.4.7-10 kernel was configured by using the "make oldconfig" command in /usr/src/linux-2.4.7-10 directory. If I save the output of the "make oldconfig" command to a file it consists of 30 pages of zillions of options. It makes no sense to me at all to think that I will have to run "make config" at the location of the new kernel, and type everyone of these options in one by one.

There must be some way to get the configuration data from the original kernel into the new one without spending 6 hours typing it all in. I tried moving the original kernel "defconfig" file into the new one (it just ignored it). Can I some how migrate the configuration data from the original kernel into the new one? If this is possible then I can just run "make menuconfig" and enable the Amateur AX25 options then compile the new kernel.

I am sure that those of you who are really experienced in building new kernels don't sit around for days punching in all those options (<:

Any help you might have would be greatly appreciated!

Regards,

Bill KJ6EO

rapture
09-22-2002, 08:07 PM
I remember building my first kernels I would make xconfig and then load the old config from there, works all the time for me.

janet loves bill
09-22-2002, 08:08 PM
I think there is a NHF file to help you......here (http://www.linuxnewbie.org/nhf/Compiling_Kernels/Building_and_Installing_a_Linux_Kernel_in_Red_Hat. html)

cowanrl
09-22-2002, 08:15 PM
On Red Hat 7.2, if you look in /usr/src/linux-2.4.7-10/configs you'll see several config files.
When I recompile a kernel for the first time on RH 7.2, I always load one of those configs, usually kernel-2.4.7-i586.config or whatever it's named. I don't have a RH 7.2 machine here at home.
Whether you run make menuconfig or make xconfig, you have an option to load a config file. Select it and then type in the full path and name of the config file.
From my experience, these config files give you the settings the kernel comes configured with in Red Hat. You can then just make the changes you want.
After the first compile, then it loads your previous configuration.
There are also config files in the same location in Red Hat 7.3

bwkaz
09-22-2002, 10:28 PM
Or, before you make xconfig or menuconfig or whatnot, copy the .config file from the root of the old kernel tree to the root of the new kernel tree. Then xconfig or menuconfig will use the stuff stored in it as their defaults...

kj6eo
09-22-2002, 11:18 PM
Hello All -

I have a shiny new kernel running now because of your expert advise. I want to thank each and everyone of you for your help. Your time and consideration are greatly appreciated!

Regards,

Bill KJ6EO