On Monday 11 April 2005 03:49, Martin wrote:
Hi experts,
may I ask someone to take a look at the steps below I did to compile new kernel and let me know whether it looks ok before I reboot my PC? I've done this first time so I'm not very certain I did not miss anything and be able to boot old kernel in case new one does not work.
Thx, Martin
Martin I have done this quite a lot and the SuSE kernel make process is not quite standard. The following works for SuSe 9.2 but not 9.1. My steps are : 1 install kernel sources 2 do an update from a SuSe update server (make sure that kernel sources match installed kernel which may have already been updated.) 3 cd /usr/src/linux 4 make cloneconfig (copies the .config file from /proc/config.gz which is the config file that is guaranteed to correspond to the currently booted kernel) 5 make menuconfig ( Use the menus to set the processor type. Change the localversion name in the General setup options menu to 'local') Some may tell you to change the configuration name in the build setup submenu from 'default' to 'local'. I used to do this on previous versions of SuSe and RedHat but on 9.2 it seems to confuse the rest of the make process. 6 make 7 make modules_install must be before 'make install' 8 make install (This also builds the initrd file correctly which is why it has to be *after* the 'make modules_install' step) 9 you now should have 3 files in /boot initrd-.....defaultlocal vmlinuz-....defaultlocal System.map.....defaultlocal 10 Execute cd /boot ln -s vmlinuz....defaultlocal vmlinuz.local ln -s initrd....defaultlocal initrd.local rm vmlinuz;ln -s vmlinuz....default vmlinuz rm initrd; ln -s initrd.....default initrd where .... is the version of the kernel. 11 Edit /boot/grub/menu.lst and add a stanza identical to the default stanza but referring to vmlinuz.local and initrd.local. You can now still boot the original kernel if things have gone awry but the new kernel can be booted by selecting the correct boot menu option. PaulH -- _____________________________________________________________________ / Painting, n.: The art of protecting flat surfaces from the weather, \ \ and exposing them to the critic. -- Ambrose Bierce / --------------------------------------------------------------------- \ ^__^ \ (==)\_______ (__)\ )\/\ ||----w | || || -- Paul Hewlett (Linux #359543) Tel: +27 21 852 8812 Cel: +27 72 719 2725 Fax: +27 86 672 0563 --