|
Home > Archive > Red Hat Kernel > January 2004 > Upgrading Kernel on RHL9?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Upgrading Kernel on RHL9?
|
|
| Aviram Carmi 2004-01-23, 7:27 pm |
| Hi all,
I am attempting to recompile the kernel on RedHat Linux 9 (Red Hat),
but I might as well install the latest stable kernel...
RHL 9 comes with 2.4.20-9 as the latest available.
however, 2.4.22 is out, and been out for a while. it adds ACPI which,
as far as I understand is another way to monitor processor temp, seems
that i2c/lm_sensors will not work with IBM systems, something with
ThinkPad EPROM (my system is xSeries 220 type 8646)...
[any other ways to see/monitor Processor temperature?]
However...
I very much hesitate to mess with the system, since each time I tried
to do so, I managed to break the system, for example, I once tried to
install a later version of Mozilla into RHL 7.x and managed to break
lots of utils/programs/gui stuff, do not really recall, but I think
that the main thing broken was the help system, which I use a lot...
any way. is there a "safe" way to install a new kernel on RHL?
Does RedHat make any custom changes/patches/fixes to the kernel
source?
Where should I get the source from?
directly from the kernel.org:
ftp://ftp.kernel.org/pub/linux/kern...-2.4.22.tar.bz2
from redhat rawhide?
from redhat beta/severn?
I found two versions of the sources, once is
kernel-source-2.4.22...i386.rpm and the other is
kernel-2.4.22...src.rpm (one in the RPM tree, one in the SRPM tree)
I the following are the latest I could find, Which should I use?
kernel-source-2.4.22-1.2088.nptl.i386.rpm
or
kernel-2.4.22-1.2088.nptl.src.rpm
what does 1.2088.nptl means?
are there any other packages I'll need to update if I want to install
the new kernel?
Thanks,
-avi
| |
| emilio lazardo 2004-01-23, 7:27 pm |
| I just upgraded from this
[16:03] abit:~ > rpm -qa | grep kernel
kernel-utils-2.4-7.4
kernel-doc-2.4.20-20.7
kernel-2.4.20-20.7
kernel-source-2.4.20-20.7
to 2.4.22 from kernel.org. I am running on a RH 7.3+ base but the process
should be the same. The primary concern is to not damage the existing
kernel. I follow these steps:
1. Download linux-2.4.22.tar.bz2
2. There will be a link pointing to the current source tree:
linux-2.4 -> linux-2.4.20-9
OR
linux -> linux-2.4.20-9
Note these must be changed to the new source tree. Only the
linux -> link is actually required.
3. Check first to make sure no existing directories are overwritten:
tar tvjf linux-2.4.22.tar.bz2 | head
4. Untar the new kernel:
cd /usr/src
tar xjf linux-2.4.22.tar.bz2
5. Restore the current source link:
ln -svf linux-2.4.22 linux
6. Prep fresh kernel source (only first time after install):
make mrproper
7. Proceed with configuration and build. I would then use the following
but your needs may be different (such as initrd):
make {xconfig or menuconfig}
make dep > /dev/null
make clean > /dev/null
make bzImage > /dev/null
make modules > /dev/null
make modules_install
You may also want to copy over your old .config file and start from
there. check out 'make oldconfig'
8. After this, remember to move the new kernel, and System.map to /boot and
add the new kernel info to grub or lilo config files.
Regards,
Tim.
Aviram Carmi wrote:
quote:
> Hi all,
>
> I am attempting to recompile the kernel on RedHat Linux 9 (Red Hat),
> but I might as well install the latest stable kernel...
>
> RHL 9 comes with 2.4.20-9 as the latest available.
>
> however, 2.4.22 is out, and been out for a while. it adds ACPI which,
> as far as I understand is another way to monitor processor temp, seems
> that i2c/lm_sensors will not work with IBM systems, something with
> ThinkPad EPROM (my system is xSeries 220 type 8646)...
>
> [any other ways to see/monitor Processor temperature?]
>
> However...
>
> I very much hesitate to mess with the system, since each time I tried
> to do so, I managed to break the system, for example, I once tried to
> install a later version of Mozilla into RHL 7.x and managed to break
> lots of utils/programs/gui stuff, do not really recall, but I think
> that the main thing broken was the help system, which I use a lot...
>
> any way. is there a "safe" way to install a new kernel on RHL?
>
> Does RedHat make any custom changes/patches/fixes to the kernel
> source?
>
> Where should I get the source from?
>
> directly from the kernel.org:
> ftp://ftp.kernel.org/pub/linux/kern...-2.4.22.tar.bz2
>
> from redhat rawhide?
>
> from redhat beta/severn?
>
> I found two versions of the sources, once is
> kernel-source-2.4.22...i386.rpm and the other is
> kernel-2.4.22...src.rpm (one in the RPM tree, one in the SRPM tree)
>
> I the following are the latest I could find, Which should I use?
>
> kernel-source-2.4.22-1.2088.nptl.i386.rpm
>
> or
>
> kernel-2.4.22-1.2088.nptl.src.rpm
>
> what does 1.2088.nptl means?
>
> are there any other packages I'll need to update if I want to install
> the new kernel?
>
> Thanks,
>
> -avi
| |
| Keith Clark 2004-01-23, 7:27 pm |
|
emilio lazardo wrote:
quote:
> I just upgraded from this
>
> [16:03] abit:~ > rpm -qa | grep kernel
> kernel-utils-2.4-7.4
> kernel-doc-2.4.20-20.7
> kernel-2.4.20-20.7
> kernel-source-2.4.20-20.7
>
> to 2.4.22 from kernel.org. I am running on a RH 7.3+ base but the process
> should be the same. The primary concern is to not damage the existing
> kernel. I follow these steps:
>
> 1. Download linux-2.4.22.tar.bz2
> 2. There will be a link pointing to the current source tree:
> linux-2.4 -> linux-2.4.20-9
> OR
> linux -> linux-2.4.20-9
> Note these must be changed to the new source tree. Only the
> linux -> link is actually required.
> 3. Check first to make sure no existing directories are overwritten:
> tar tvjf linux-2.4.22.tar.bz2 | head
> 4. Untar the new kernel:
> cd /usr/src
> tar xjf linux-2.4.22.tar.bz2
> 5. Restore the current source link:
> ln -svf linux-2.4.22 linux
> 6. Prep fresh kernel source (only first time after install):
> make mrproper
> 7. Proceed with configuration and build. I would then use the following
> but your needs may be different (such as initrd):
> make {xconfig or menuconfig}
> make dep > /dev/null
> make clean > /dev/null
> make bzImage > /dev/null
> make modules > /dev/null
> make modules_install
>
> You may also want to copy over your old .config file and start from
> there. check out 'make oldconfig'
> 8. After this, remember to move the new kernel, and System.map to /boot and
> add the new kernel info to grub or lilo config files.
>
> Regards,
> Tim.
>
> Aviram Carmi wrote:
>
If you have any RedHat kernel-source RPM's installed, you can look in
/usr/src/linux-<version>/configs and there are several configuration files
there. Load one of them when you make xconfig or menuconfig and only change
what you need. It'll save a lot of potential headaches that way.
Also, after you do "make modules_install" as above, you need to do "make
install" as well.
Keith
[QUOTE][color=darkred]
>
| |
| emilio lazardo 2004-01-23, 7:27 pm |
| Never used 'make install' as I use my own build script. What does it do?
Rgds,
tim.
Keith Clark wrote:quote:
>
> emilio lazardo wrote:
>
>
>
> If you have any RedHat kernel-source RPM's installed, you can look in
> /usr/src/linux-<version>/configs and there are several configuration files
> there. Load one of them when you make xconfig or menuconfig and only change
> what you need. It'll save a lot of potential headaches that way.
>
> Also, after you do "make modules_install" as above, you need to do "make
> install" as well.
>
> Keith
| |
| Keith Clark 2004-01-23, 7:27 pm |
| On Sat, 25 Oct 2003 05:55:09 +0000, emilio lazardo wrote:
quote:
> Never used 'make install' as I use my own build script. What does it do?
>
> Rgds,
> tim.
>
Configures Grub (or Lilo), does the other housekeeping chores regarding
the /boot directory...
[QUOTE][color=darkred]
> Keith Clark wrote:
| |
| Rick10 2004-01-23, 7:27 pm |
| I upgraded my rh9 install to the latest stable 2.4.22 kernal and all was
fine until today when I downloaded the latest security patches.
Now when I boot the 2.4.22 kernal my xwindows will not come up?
I can boot he original 2.4.20-8 kernal and it works?
I have no idea what the security patches changed except that one was for
glibc. I completely rebuilt the kernal again thinking maybe I need to
compile and link with the new library but no luck.
The process I use to install and build an new kernal is:
untar the kernal distro in /usr/src
make mrproper
make xconfig setup all my options
make dep
make bzImage
make modules
make modules_install
mv the System.map to /boot and as System.map.2.4.x.x then link to System.map
mv the image from /usr/src/linux-2.4/arch/i386/boot to /boot
update /etc/grub.conf if needed or /etc/lilo.conf
reboot.
Aviram Carmi wrote:quote:
> Hi all,
>
> I am attempting to recompile the kernel on RedHat Linux 9 (Red Hat),
> but I might as well install the latest stable kernel...
>
> RHL 9 comes with 2.4.20-9 as the latest available.
>
> however, 2.4.22 is out, and been out for a while. it adds ACPI which,
> as far as I understand is another way to monitor processor temp, seems
> that i2c/lm_sensors will not work with IBM systems, something with
> ThinkPad EPROM (my system is xSeries 220 type 8646)...
>
> [any other ways to see/monitor Processor temperature?]
>
> However...
>
> I very much hesitate to mess with the system, since each time I tried
> to do so, I managed to break the system, for example, I once tried to
> install a later version of Mozilla into RHL 7.x and managed to break
> lots of utils/programs/gui stuff, do not really recall, but I think
> that the main thing broken was the help system, which I use a lot...
>
--
Rick Stanback
rstanback@starband.net
"Chance only favors the prepared mind" Louis Pasteur.
| |
| J.O. Aho 2004-01-23, 7:27 pm |
| Rick10 wrote:quote:
> I upgraded my rh9 install to the latest stable 2.4.22 kernal and all was
> fine until today when I downloaded the latest security patches.
>
> Now when I boot the 2.4.22 kernal my xwindows will not come up?
> I can boot he original 2.4.20-8 kernal and it works?
>
> I have no idea what the security patches changed except that one was for
> glibc. I completely rebuilt the kernal again thinking maybe I need to
> compile and link with the new library but no luck.
So what kind of graphics card do you have and what kind of error message does
xfree86 give?
//Aho
| |
| Rick10 2004-01-23, 7:27 pm |
| I have an IBM G40 thinkpad with the Intel 852 graphics chip set. The
output of dmesg shows that both kernels see the hardware the same.
The redhat-config-xfree86 after the security patch cannot find the video
hardware with the 2.4.22 kernal.
J.O. Aho wrote:quote:
> Rick10 wrote:
>
>
>
> So what kind of graphics card do you have and what kind of error message
> does xfree86 give?
>
>
> //Aho
>
--
Rick Stanback
rstanback@starband.net
"Chance only favors the prepared mind" Louis Pasteur.
|
|
|
|
|