Hans Witvliet wrote:
Hi all,
I was told, that when building a config for a new kernel, you could use the current kernel-configuration by specifying "make oldconfig"
probably i missed something cause it look much differently.
Situation: Old 9.0 release (for this i still have to use 2.4 kernel) Default SuSE kernel (still in /usr/src/linux) is linux-2.4.21-70 Its .config is about 47KB in size
In my home directory, i got the 2.4.30 tree. After "make mrproper clean", i do a make oldconfig Resulting .config file is just 21KB
When you run "make oldconfig" it will use the .config that's in the tree or if it's missing, the result is just what you are seeing. You should have done "cp /boot/config-2.4.21-70 /usr/src/linux-2.4.30/.config", then done the "make oldconfig" which tells you it's using the existing .config as a base.
And its not just the size.
From instalation, it uses, for instance, reiserfs. When browsing through the resulting .config, i noticed that reiserfs was not even set. Many others were also missing.
That's the result as explained above.
(just for the sheer curiosity, i did a make dep; make bzImage; make modules modules_install, copied the result to /boot, changed the grub-file and gave it a try. Just as i expected, no show!)
I was in the impression that make oldconfig should have been enough, and possibly use make menuconfig to tweak some extra parts....
Wrong?
Hans
Someone mentioned "make cloneconfig", that's only in a SuSE tree, if you are using a kernel.org tree that wouldn't work, you have to follow the procedure I first outlined above. After you've copied the stuff to /boot, you need to run mkinitrd. I like to preserve my previous setup as a fallback, so I do something like this from the linux-2.4.30 directory --- # cp arch/i386/boot/bzImage /boot/2.4.30 # cp System.map /boot/System.map-2.4.30 # cp .config /boot/config-2.4.30 # vi /boot/grub/menu.lst title 2.4.30 kernel (hd0,0)/boot/2.4.30 root=/dev/hda1 vga=0x317 splash=silent initrd (hd0,0)/boot/initrd-2.4.30 Add lines to menu.lst for 2.4.30 as shown. # cd /boot # mkinitrd -k 2.4.30 -i initrd-2.4.30 -d /dev/hda1 -s 1024x768 Not sure of the syntax for mkinitrd in 9.0, consult the manpage. Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Keen licensed Private Pilot Retired IBM Mainframes and Sun Servers Tech Support Specialist Microsoft Windows Free Zone - Linux for all Computing Tasks