Can I somehow use an old config to compile a new kernel? (with a few additions)
I have a nicely built kernel in my distro 2.6.18.5-i586, but I need to compile a 2.6.20 kernel with KVM support. I also want my kernel to be for AMD.
Can I somehow have the new kernel have the same configuration like the one that exists but with a few additions? |
Execute make mrproper in the new kernel source tree. Copy the .config file for the old kernel to the top of the source tree for the new kernel. When you execute make menuconfig, all the options from the old kernel will be selected. You can then add.subtract as you desire.
|
A note to others:
DO NOT run "make mrproper" in your old kernel directory. That will erase your precious .config file. |
many distributions give you a copy of the .config in the /boot directory for safe keeping
|
Quote:
... Um... I'm getting a strange error here for "make install" Code:
root:# make install All my partitions are on hdb, my linux partition is hdb2 (there was a windows hdb1 partition which was later removed) How do I change the install path? |
uhm... isn't the right command here:
'make oldconfig' ? |
i think just install by hand
** danger danger warning warning ** *** check paths and junk and use the version dfferent from anything else ** don't overwrite anything cp arch/i386/boot/bzImage /boot/bzImage-KERNEL_VERSION cp System.map /boot/System.map-KERNEL_VERSION then modify boot loader and DONT take out reference to the old kernel so you can boot the old one should the new one fail |
'make oldconfig' first looks at .config to set configuration options. If it can't find an option in .config, then it looks in arch/<architecture>/defconfig. If it can't find the option there, then it will prompt. There's a good chance you'd still need to 'make config' or 'make menuconfig' or 'make xconfig' or etc. to change options.
|
All times are GMT -5. The time now is 03:23 AM. |