LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-05-2003, 07:56 PM   #1
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Rep: Reputation: 30
How do I update my kernel?


I got the patch, and I want to run it before I install the nvidia 3d-accellerated drivers ... but how do I install the patch? It's called "patch-2.4.20", the latest patch for the kernel.
 
Old 03-05-2003, 08:18 PM   #2
Q*Bert
Member
 
Registered: Feb 2003
Location: Birmingham, UK
Distribution: Redhat 8.0, Immunix 7.0 a few others
Posts: 222

Rep: Reputation: 30
cd /usr/src/linux
patch -np1 patch-2.4.20.patch

Try that.
 
Old 03-07-2003, 01:46 AM   #3
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Original Poster
Rep: Reputation: 30
Thanks for the command! But how can I test to see that it's the updated version? 'Cause it looks the same to me. I remember using a version command, but I don't remember the command. Thanks guys.
 
Old 03-07-2003, 02:19 AM   #4
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Original Poster
Rep: Reputation: 30
Oh, btw, there isn't a linux directory on my computer, just a redhat directory instead, so I put the patch there. It contains the directories

BUILD RPMS SOURCES SPECS SRPMS

Was that on ok thing to do?
 
Old 03-07-2003, 03:40 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
well if you've not got that directory then you haven't even got the source installed, so install that rpm
 
Old 03-07-2003, 03:56 AM   #6
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Original Poster
Rep: Reputation: 30
lol ok. Damn this forum's great. I post someting, finish a HW assignment, and there's already an answer posted!
 
Old 03-07-2003, 05:27 AM   #7
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Original Poster
Rep: Reputation: 30
I extracted the kernel stuff with a tgz file under /usr/src/linux and followed the instructions ... so far so good ... but it said to replace the old bzImage file with the compiled one that I created. ... But I can't find the old one anywhere, and my "Search for Files ..." prog can't even find the one I am looking at right now, kinda weird.
 
Old 03-07-2003, 05:39 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
the bzImage will normally be under arch/i386/boot/ when you have compiled your kernel, but it won't exist until you have already compiled the kernel
 
Old 03-08-2003, 11:29 PM   #9
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Original Poster
Rep: Reputation: 30
I did compile the kernel and it's there ... but it said that the new kernel will not load unless you replace the compiled one with the old one. Where's the old kernel?
 
Old 03-09-2003, 07:52 PM   #10
yngwin
Member
 
Registered: Dec 2002
Location: China
Distribution: Arch
Posts: 359

Rep: Reputation: 33
Kernels should be in /boot. But maybe it's called something else (vmlinuz, kernel, linux...). I'd recommend to leave that one in place and just copy your newly compiled one to that directory, than add it to lilo or grub (whichever you're using).
 
Old 03-13-2003, 08:55 PM   #11
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Original Poster
Rep: Reputation: 30
Oh nice! It's right there ...

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd1,0)
# kernel /vmlinuz-version ro root=/dev/hdb2
# initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd1,0)/grub/splash.xpm.gz
title Red Hat Linux
root (hd1,0)
kernel /vmlinuz-2.4.18-14 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.18-14.img
title Windows XP
rootnoverify (hd0,0)
chainloader +1

I'm going to follow your advice ... here goes nuttin ...
 
Old 03-13-2003, 09:02 PM   #12
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Original Poster
Rep: Reputation: 30
Wait ... the file initrd-2.4.18-14.img is listed in the configuration file, and the file exists. I can't just change the bold line above to the updated kernel with that line below it, can I?
 
Old 03-13-2003, 09:02 PM   #13
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Original Poster
Rep: Reputation: 30
This seems to be such a hassle, should I just skip this whole thing or am I almost there?
 
Old 03-14-2003, 04:29 PM   #14
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Original Poster
Rep: Reputation: 30
ttt

Has anybody else upgraded their kernel? This seems to be a lot of junk to go through. Although I did spot the USB MIDI support in the new kernel install, and I own a USB MIDI keyboard for I'm an electronic artist. And if I could get my kb to work with Linux, that would be uber.
 
Old 03-14-2003, 08:35 PM   #15
AxeZ
Member
 
Registered: Sep 2002
Location: Novi Sad, Vojvodina
Distribution: Slackware, FreeBSD
Posts: 386

Rep: Reputation: 32
Quote:
Originally posted by orange400
ttt

Has anybody else upgraded their kernel? This seems to be a lot of junk to go through. Although I did spot the USB MIDI support in the new kernel install, and I own a USB MIDI keyboard for I'm an electronic artist. And if I could get my kb to work with Linux, that would be uber.
Really dude, I am upgrading Linux Kernel four years now. It really isnt that much of a hassle. You should read Kernel HOWTO.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problems with NVIDIA drivers after kernel update with yast online update Sheytan Linux - Software 4 05-06-2007 11:27 AM
YaST Online Update(YOU) Kernel Update? batorma Linux - Newbie 9 10-30-2005 04:17 AM
Problems with NVIDIA drivers after kernel update with yast online update Sheytan Linux - Distributions 0 10-13-2004 12:01 PM
KDE update and RH 9.0 Kernel update massacre Linux - Newbie 1 02-02-2004 07:13 PM
YaST Online Update + AMD kernel patch = kernel panic THX1138 Linux - General 3 10-26-2003 05:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration