LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-02-2004, 02:42 AM   #1
sirpelidor
Member
 
Registered: Oct 2003
Location: Madison
Distribution: mdk 8.2, 9.0, 9.2, slack 9.1
Posts: 403

Rep: Reputation: 30
patching kernel "must" be patch from x.x.xx - 1 ?


hi, i've been trying patch kernel and kept failing. current kernel i'm using is 2.4.19
and i wanna patch 2.4.24

please correct me if i'm wrong here, does the patch needs to be kernel version - 1 (meaning if i want 2.4.24, i must patch from 2.4.23, not 2.4.19)???

it seems like to me that patching is only for clean kernel source tree. that's why those docs on google suggest i have to do patch -R first right? (they suggest remove the patch first before apply for new one)

if that's the case, does it mean i cannot patch from 19 to 24, i need to download the whole kernel, and compile from there?

i'm very confuse, would anyone please direct me to the correct place (or walk me through) how to patch a kernel?

here's the msg i've been getting:

[root@localhost linux]# patch -p0 < patch-2.4.24
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urN linux-2.4.23/Makefile linux-2.4.24/Makefile
|--- linux-2.4.23/Makefile 2003-11-28 10:26:21.000000000 -0800
|+++ linux-2.4.24/Makefile 2004-01-05 05:53:56.000000000 -0800
--------------------------
File to patch:


i stuck there, because i don't know where to go from there.

thank you
 
Old 02-02-2004, 02:57 AM   #2
snacky
Member
 
Registered: Feb 2004
Distribution: Debian
Posts: 286

Rep: Reputation: 30
You need all the diffs. But that's still about half the download size of getting the whole kernel tree.

Go here: http://www.kernel.org/pub/linux/kernel/v2.4/

All the patches you need are there: patch-2.4.20, patch-2.4.21,...
 
Old 02-03-2004, 04:51 PM   #3
sirpelidor
Member
 
Registered: Oct 2003
Location: Madison
Distribution: mdk 8.2, 9.0, 9.2, slack 9.1
Posts: 403

Original Poster
Rep: Reputation: 30
thanks snacky

while apply 2.4.20 patch, i ran into a little problem...

it seems like those patches from kernel.org carry quite alot of stuff (including a lot of files that i don't have in my mdk kernel),

for example, stuff in /arch/ , patch from kernel.org has few more folders such as mimps, and amd, pp64, and sgi etc (my orginal kernel don't have any of that).

i was force to skip those "hunk", because my mdk kernel doesn't have it, so hum... am i "not" gonna able to update my patch because the kernel i'm using is customized for mdk?

p.s: few week ago, i compiled 2.4.24 (downloaded from kernel.org), compiled went fine, but after compile, i lost my supermount ability, as well as my sound system. now i'm being convice that mdk kernel is really for mdk only
 
  


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
Applying a debian patch to a "pure" kernel gerald45 Debian 2 10-23-2005 10:05 AM
What "kernel opts" allow PC to power down with "turning energy off"? kornerr Linux - General 1 03-10-2005 01:07 PM
Kernel question: difference between Patch and "regular" kernel source kopikat Linux - Software 1 01-26-2005 06:24 PM
Can someone email me "madwifi-2.6.8_and_-mm-040821.patch.bz2"? (madwifi 2.6.8 patch) 95se Linux - Wireless Networking 0 09-01-2004 11:34 AM
Configuring kernel: Impact of "Y" or "N" vs. "M" Mark_E_Wallace Linux - Newbie 2 02-22-2004 07:02 PM


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