LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-04-2007, 06:22 PM   #1
b3n
LQ Newbie
 
Registered: Apr 2007
Posts: 20

Rep: Reputation: 0
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


thanks in advance
 
Old 04-04-2007, 06:54 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
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
 
Old 04-04-2007, 07:07 PM   #3
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
'make oldconfig' won't work, kernel config tree has been changed since 2.6.9.
 
Old 04-04-2007, 07:22 PM   #4
b3n
LQ Newbie
 
Registered: Apr 2007
Posts: 20

Original Poster
Rep: Reputation: 0
we did use the 'make oldconfig'. i have no idea about what im supposed to do.

do you know what's wrong with the kernel that is giving these errors?
 
Old 04-04-2007, 07:31 PM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
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.

Last edited by Emerson; 04-04-2007 at 07:33 PM.
 
Old 04-04-2007, 07:55 PM   #6
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
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.
 
Old 04-04-2007, 09:08 PM   #7
b3n
LQ Newbie
 
Registered: Apr 2007
Posts: 20

Original Poster
Rep: Reputation: 0
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
 
Old 04-05-2007, 03:47 AM   #8
b3n
LQ Newbie
 
Registered: Apr 2007
Posts: 20

Original Poster
Rep: Reputation: 0
any other options? i did all the steps said on my last post but still 2.6.9
 
Old 04-05-2007, 03:50 AM   #9
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by b3n
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


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.
 
Old 04-05-2007, 04:29 AM   #10
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
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.

Please read: http://www.kernel.org/pub/linux/kern...kn_pdf.tar.bz2
Please see: http://wiki.centos.org/HowTos/Custom_Kernel
 
Old 04-05-2007, 02:40 PM   #11
b3n
LQ Newbie
 
Registered: Apr 2007
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Lenard
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.

Please read: http://www.kernel.org/pub/linux/kern...kn_pdf.tar.bz2
Please see: http://wiki.centos.org/HowTos/Custom_Kernel


how we can make lilo as the default boot loader ?
 
Old 04-05-2007, 02:58 PM   #12
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Hope it doesn't seem like I deserted you! Unfortunately, I use grub and debian, so I can't help you with adding a new kernel to lilo.
 
Old 04-05-2007, 03:02 PM   #13
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
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.
 
Old 04-05-2007, 03:32 PM   #14
b3n
LQ Newbie
 
Registered: Apr 2007
Posts: 20

Original Poster
Rep: Reputation: 0
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.
 
Old 04-05-2007, 03:43 PM   #15
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
So what's the problem? Is it just that the 2.6.20.4 kernel isn't the default kernel, and since you're booting remotely you can't get it to run?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
server's where...... Dark_Sniper* Linux - Hardware 10 06-17-2005 11:07 PM
problems occured after upgrading kernel and kernel-utils parv Fedora 0 05-02-2005 06:21 PM
I think my server's been compromized karlovac Linux - Security 17 04-02-2005 10:18 AM
Upgrading kernel on Debian from 2.4 to 2.6.8, Kernel Panic omlette Linux - General 3 03-07-2005 07:00 AM
Learning Server's emailssent Linux - Newbie 2 09-28-2004 12:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration