Upgrading the server's Kernel from 2.6.9 to 2.6.20.4
Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Upgrading the server's Kernel from 2.6.9 to 2.6.20.4
hello
i was trying to upgrade the kernel from 2.6.9 to 2.6.20.4 but when we go through menuconfig it gives me error like these:
/boot/config-2.6.9-42.ELsmp:590:warning: trying to assign nonexistent symbol SCSI_SATA_ULI
/boot/config-2.6.9-42.ELsmp:591:warning: trying to assign nonexistent symbol SCSI_SATA_VIA
/boot/config-2.6.9-42.ELsmp:592:warning: trying to assign nonexistent symbol SCSI_SATA_VITESSE
/boot/config-2.6.9-42.ELsmp:593:warning: trying to assign nonexistent symbol SCSI_SATA_INTEL_COMBINED
/boot/config-2.6.9-42.ELsmp:607:warning: trying to assign nonexistent symbol SCSI_ISCSI_SFNET
/boot/config-2.6.9-42.ELsmp:617:warning: trying to assign nonexistent symbol SCSI_SYM53C8XX_IOMAPPED
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
You forgot to mention the steps leading up to this point, it does look like you made a mistake or forgot to do something.
1. It is not possible to use such an old kernel config file (from the 2.6.9 kernel) and apply it to the current 2.6.20.4 kernel source.
2. It sounds like you did not use 'make oldconfig' first.
3. Yes you will get errors like your posting, simply because this SATA/PATA SCSI fairly new and the differences between the kernel layout changes from 2.6.9 to 2.6.20
Since this is for a server I'd recommend removing your .config file, starting with 'make allnoconfig' and enabling only things you need. This is the cleanest way to build a stable kernel. At least this is what I'd do.
Edit: And read the README file in your kernel source directory.
Another option might be to run make oldconfig, hold the enter key down to accept all the defaults (sometimes the defaults are right), ignore the errors, and then run make menuconfig to tidy it up for your installation. I believe that the config that comes with an installation has everything enabled that might likely be on *someone's* computer. For the most part, configuring is turning stuff off that you don't want - though not always.
Added:
"silentoldconfig" and "defconfig" are also options. See the README file like Emerson suggests.
Last edited by Quakeboy02; 04-04-2007 at 07:58 PM.
1 - make distclean
2 - make clean
3 - make mrproper
4 - make oldconfig -> then keep pressing Enter
5 - make
6 - make modules
7 - make modules_install
8 - make install
9 - lilo -R 2.6.20.4
10 - shutdown -r now
these are what i did. but after uname -a it's still 2.6.9-42.0.10.ELsmp
i was trying to upgrade the kernel from 2.6.9 to 2.6.20.4 but when we go through menuconfig it gives me error like these:
/boot/config-2.6.9-42.ELsmp:590:warning: trying to assign nonexistent symbol SCSI_SATA_ULI
/boot/config-2.6.9-42.ELsmp:591:warning: trying to assign nonexistent symbol SCSI_SATA_VIA
/boot/config-2.6.9-42.ELsmp:592:warning: trying to assign nonexistent symbol SCSI_SATA_VITESSE
/boot/config-2.6.9-42.ELsmp:593:warning: trying to assign nonexistent symbol SCSI_SATA_INTEL_COMBINED
/boot/config-2.6.9-42.ELsmp:607:warning: trying to assign nonexistent symbol SCSI_ISCSI_SFNET
/boot/config-2.6.9-42.ELsmp:617:warning: trying to assign nonexistent symbol SCSI_SYM53C8XX_IOMAPPED
thanks in advance
I don't see any errors, I only see warnings here. They should not be fatal. This is normal, options have been removed.
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
Quote:
Originally Posted by b3n
1 - make distclean
2 - make clean
3 - make mrproper
4 - make oldconfig -> then keep pressing Enter
5 - make
6 - make modules
7 - make modules_install
8 - make install
9 - lilo -R 2.6.20.4
10 - shutdown -r now
these are what i did. but after uname -a it's still 2.6.9-42.0.10.ELsmp
You only need to run 'make clean' or 'make mrproper' not both.
Red Hat (and the clones) use grub as the default bootloader not lilo, but in either case one needs to select the new kernel to boot with.
Why do you think you need the vanilla 2.6.20.4 kernel?? Red Hat typically backports many security and other important fixes into the kernels they supply from the upstream source.
You only need to run 'make clean' or 'make mrproper' not both.
Red Hat (and the clones) use grub as the default bootloader not lilo, but in either case one needs to select the new kernel to boot with.
Why do you think you need the vanilla 2.6.20.4 kernel?? Red Hat typically backports many security and other important fixes into the kernels they supply from the upstream source.
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
If it is not already install then first install the lilo rpm package, then read: man lilo
Usually it something like typing; lilo -v
FYI: The last command {make install) when building a new kernel automatically places the files needed to boot the new kernel and updates either grub or lilo whichever is the default bootloader.
sorry, i didn't understand u at my previous post !
I've installed lilo on the server and the new kernel has been added to lilo.conf !
here's my lilo information :
Reading boot sector from /dev/sda
Merging with /boot/boot.b
Mapping message file /boot/message
Boot image: /boot/vmlinuz-2.6.20.4
Mapping RAM disk /boot/initrd-2.6.20.4.img
Added 2.6.20.4
Boot image: /boot/vmlinuz-2.6.9-42.0.10.ELsmp
Mapping RAM disk /boot/initrd-2.6.9-42.0.10.ELsmp.img
Added 2.6.9-42.0.10.E *
as you see 2.6.20.4 is installed !
meanwhile i've set panic_timeout on 5 seconds in kernel/panic.c, so if it got in trouble lilo should run the default kernel !
since i'm working on a remote server i can't see what's going on and kernel panic status !
it was necessary to say these at my first post, pardon.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.