LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-12-2002, 07:32 AM   #1
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Rep: Reputation: 30
Updating kernel?


I downloaded the 2.5.9 kernel patch, and put it in /usr/src.
When I run
bzip2 -dc /usr/src/patchfilenamehere.bz2 | patch -p1 --dryrun
It asks for a file to patch, what do I do? I'm running 2.4.18-14 w/ RH 8. The directorys in /usr/src are linux2.4, linux2.4.18-14 and redhat.
Should I download a different patch, and if so where from?
I need at least 2.4.20, what should I do next?
 
Old 12-12-2002, 07:36 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
just download the full kernel, not the patch


2.4??

never mess with 2.5?? or any other odd number unless you are a kernel developer


Last edited by DavidPhillips; 12-12-2002 at 07:38 AM.
 
Old 12-12-2002, 07:49 AM   #3
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
Ok, where can I download the latest 2.4 full kernel, and how do I install it?
 
Old 12-12-2002, 07:56 AM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
the best thing for you to do on redhat 8 is run up2date

it will register your machine with redhat network, check for updates and let you install them

It's all pretty much automatic
 
Old 12-12-2002, 07:59 AM   #5
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
That won't work... I have to update the kernel so I can get the internet working. I'm using a Linksys Wireless USB v2.6 and it needs a kernel thats 2.4.19 or newer.
 
Old 12-12-2002, 08:02 AM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
well go over to kernel.org and get the latest stable
 
Old 12-12-2002, 08:06 AM   #7
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
I got 2.4.9 and 2.4.20. A file on kernel.org says 2.4.20 is the latest, but isn't 2.4.9 the latest?
What do I do next?

Last edited by pilot1; 12-12-2002 at 08:10 AM.
 
Old 12-12-2002, 08:14 AM   #8
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
2.4.20 is the latest


they increase the number each time so the biggest number is always the latest
 
Old 12-12-2002, 08:17 AM   #9
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
I see, I assumed 2.4.20 was the same as 2.4.2.
Where can I get instructions on how to install/compile the new kernel?
 
Old 12-12-2002, 08:35 AM   #10
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
start by making a working boot disk if you don't have one, make sure it works

what to do depends on the type of file you got

if it's a tarball you need to

man tar

tar zxvf filename


read the kernel howto

cd linux-2.4.20

make mrproper
make menuconfig

now configure the kernel like you want it

build the kernel

make dep
make clean
make

check for errors on the screen

make bzImage
cat arch/i386/boot/bzImage /boot/vmlinuz-2.4.20

make modules

check for error here too

make modules_install

cp System.map /boot/System.map-2.4.20
ln -sf /boot/System.map-2.4.20 /boot/System.map

You using lilo??

man lilo
man lilo.conf

echo "image = /boot/vmlinuz-2.4.20" >> /etc/lilo.conf

do you know where your / filesystem is? /dev/hda1?
echo " root = /dev/hda1" >> /etc/lilo.conf

echo " label = linux-2.4.20" >> /etc/lilo.conf
echo " read-only" >> /etc/lilo.conf

using initrd??

man mkinitrd

mkinitrd /boot/initrd-2.4.20.img 2.4.20
echo " initrd = /boot/initrd-2.4.20.img" >> /etc/lilo.conf

/sbin/lilo




Make sure you read enough to know what all this does before blindly doing it

Last edited by DavidPhillips; 12-12-2002 at 08:37 AM.
 
Old 12-12-2002, 08:48 AM   #11
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
My Linux filesystem is /dev/hdb1, I got a bz. I understand most of it, just not the Lilo stuff because i'm using Grub.
Do you know how I would configure Grub?
 
Old 12-12-2002, 08:56 AM   #12
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
it's basically the same just look in /etc/grub.conf

you need to add the new image into the file using all the options that the old one has

just editing the file will install the new kernel



the bz file may need to be done like this

bzip2 -d filename

then

tar xvf filename

Last edited by DavidPhillips; 12-12-2002 at 09:04 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
updating Kernel? Greenman Linux - Newbie 2 10-07-2004 09:26 AM
Kernel Updating. TuxToaster Linux - Distributions 0 07-15-2004 02:16 PM
updating kernel -- help! grapier Fedora 4 01-12-2004 11:26 AM
updating the kernel ipconfig Linux - Software 4 12-03-2003 10:11 AM
Updating the Kernel PionexUser Linux - Newbie 3 07-18-2003 08:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:57 PM.

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