LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 01-26-2004, 02:35 PM   #1
faderjet
LQ Newbie
 
Registered: Jan 2004
Posts: 8

Rep: Reputation: 0
kernel patching help?


I have: Red hat 9 w/ kernel 2.4.20-8 and im try to upgrade to kernel 2.6 because of wireless card problems.

I've downloaded the latest linux kernel patch 2.6.1 from kernel.org and thats about it.

I need to extract it, but where should i extract it to and how do i use it?

I've tried 'patch -p1 < /path/to/patch/file' command but have no idea what to do from there.

any help is appreciated - thanx
 
Old 01-26-2004, 02:47 PM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
I think the patch is for patching 2.6.0 source, just download the full 2.6.1:

http://www.kernel.org/pub/linux/kern...-2.6.1.tar.bz2
 
Old 01-26-2004, 02:51 PM   #3
frandalla
Member
 
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348
Blog Entries: 1

Rep: Reputation: 37
download the patch, drop it in /usr/src/linux
type:
cd /usr/src/linux
and then:
scripts/patch-kernel

it will do the job for you (ahn, that is, if you have the kernel's sources... and I've always asked myself if you can patch from one kernel to the other without problems... I mean, 2.4 to 2.6 or 2.0 to 2.4.... what about kernel's tree big changes? don't know... If anyone can answer that, I would be pleased )

JUST FORGOT TO TELL'YA! DON'T EXTRACT THE PATCH! I've always been in trouble patching the kernel extracting the patch file... the patch-kernel script will do the job for you

Last edited by frandalla; 01-26-2004 at 02:54 PM.
 
Old 01-26-2004, 02:55 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally posted by frandalla
download the patch, drop it in /usr/src/linux
type:
cd /usr/src/linux
and then:
scripts/patch-kernel

it will do the job for you (ahn, that is, if you have the kernel's sources... and I've always asked myself if you can patch from one kernel to the other without problems... I mean, 2.4 to 2.6 or 2.0 to 2.4.... what about kernel's tree big changes? don't know... If anyone can answer that, I would be pleased )

JUST FORGOT TO TELL'YA! DON'T EXTRACT THE PATCH! I've always been in trouble patching the kernel extracting the patch file... the patch-kernel script will do the job for you
If your using 2.4.20... he would have to download and patch each patch up to 2.6.1.

Its easier and seems more logical to just download the fulll 2.6.1 kernel and upgrade that way.

Regards.
 
Old 01-26-2004, 03:00 PM   #5
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Quote:
it will do the job for you (ahn, that is, if you have the kernel's sources... and I've always asked myself if you can patch from one kernel to the other without problems... I mean, 2.4 to 2.6 or 2.0 to 2.4.... what about kernel's tree big changes? don't know... If anyone can answer that, I would be pleased )
I don't think so, not with the patches from kernel.org anyway.
Here's what the kernel README says:
Quote:
- You can also upgrade between 2.6.xx releases by patching. Patches are
distributed in the traditional gzip and the new bzip2 format.

Last edited by Demonbane; 01-26-2004 at 03:01 PM.
 
Old 01-26-2004, 03:03 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally posted by Demonbane
I don't think so, not with the patches from kernel.org anyway.
Here's what the kernel README says:
Okay, let me explain this in another way:

You currently have 2.4.20

You need to apply patches:

2.4.21
2.4.22
2.4.23
2.4.24
2.6.0
2.6.1

In that order per se. So when skipping from 2.4.20 to 2.6.1, its usually easier to just download the full kernel and compile from there.

If he was going from 2.6.0 to 2.6.1, a patch is usually easier and quicker download than just downloading the whole thing once again.

Cheers.
 
Old 01-26-2004, 03:08 PM   #7
faderjet
LQ Newbie
 
Registered: Jan 2004
Posts: 8

Original Poster
Rep: Reputation: 0
i dont have /usr/src/linux exactly, but i do have /usr/src/linux-2.4.20-8

I suppose thats the folder i should copy the patch to, as well as run 'scripts/patch-kernel' in right?
 
Old 01-26-2004, 03:22 PM   #8
faderjet
LQ Newbie
 
Registered: Jan 2004
Posts: 8

Original Poster
Rep: Reputation: 0
ok, if im not using the patch and got the full kernel i.e. linux-2.6.1.tar.bz2 what do i with that
 
Old 01-26-2004, 03:26 PM   #9
frandalla
Member
 
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348
Blog Entries: 1

Rep: Reputation: 37
Actually, as trickykid said (thanks man, that was exactly how I thought it was ) You should just download the full kernel source for 2.6.1 and then uncompress it (on /usr/src),you'd better symlink it to the linux folder (that is, after uncompressing it - on the /usr/src folder just type ln -s linux-2.6.1 linux). Then, go inside it and follow the instructions from this link: http://www.linuxquestions.org/questi...hreadid=127095

hope you can manage it!
 
  


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
Kernel patching.. new.thing Linux - Hardware 3 07-13-2005 07:36 AM
Patching a 2.6 kernel with a 2.4 kernel keyboard driver..possible? dxx Linux - Laptop and Netbook 3 11-18-2004 05:18 AM
Patching the kernel grazie Fedora 4 11-09-2004 04:29 PM
Patching the Kernel LinuxBlackBox Linux - Software 2 06-16-2004 07:54 AM
Kernel Patching? wr3ck3d Linux - General 4 04-13-2003 04:17 PM

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

All times are GMT -5. The time now is 07:54 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