LinuxQuestions.org
Latest LQ Deal: Linux Power User 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-01-2003, 02:29 PM   #1
watashiwaotaku7
Member
 
Registered: Oct 2002
Location: wisconsin -- The Badger state
Distribution: gentoo
Posts: 654

Rep: Reputation: 30
kernel compilation


i am trying to patch my kernel (2.4.19-9mdk) to 2.4.20 (and farther) i am following the guide found at www.digitalhermit.com/linux/kernel.html and get to the point where i cd to /usr/src/ and use the command patch -p1 < patch01 (patch-2.4.20)

[root@localhost src]# patch -p1 < patch-2.4.20
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.19/CREDITS linux-2.4.20/CREDITS
|--- linux-2.4.19/CREDITS Fri Aug 2 17:39:42 2002
|+++ linux-2.4.20/CREDITS Thu Nov 28 15:53:08 2002
--------------------------

thats what i get in the command line....what am i doing wrong?

-thanks
 
Old 01-01-2003, 04:33 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Do you have a patch for *mdk kernel? Mandrake kernel isn't a pure 2.4.19 one, there are some patches applied, so it may not work with a patch designed for 2.4.19. Try with a full 2.4.20 source: http://www.kernel.org/pub/linux/kern...2.4.20.tar.bz2 (26MB).
 
Old 01-01-2003, 07:14 PM   #3
AxeZ
Member
 
Registered: Sep 2002
Location: Novi Sad, Vojvodina
Distribution: Slackware, FreeBSD
Posts: 386

Rep: Reputation: 32
Speaking of that.
Is there any info of what patches are used for stock kernels for RH, Mandy, SuSE maybe......?
I know kernel with Slackware comes as is on kernel.org
 
Old 01-03-2003, 02:44 AM   #4
watashiwaotaku7
Member
 
Registered: Oct 2002
Location: wisconsin -- The Badger state
Distribution: gentoo
Posts: 654

Original Poster
Rep: Reputation: 30
okay so the guide only talks about adding patches how is it different with replacing the entire kernel? or can you point me to a guide for doing that
 
Old 01-04-2003, 05:13 AM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Not very different. You just download the full source, save it in /usr/losal/src/linux-2.4.20, for example and you just leave out the '2.4 Install the Kernel Sources' section from your guide. The rest is the same.
 
Old 01-04-2003, 04:26 PM   #6
watashiwaotaku7
Member
 
Registered: Oct 2002
Location: wisconsin -- The Badger state
Distribution: gentoo
Posts: 654

Original Poster
Rep: Reputation: 30
thanks a lot
 
  


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 compilation-From where it should be started for already compiled kernel b0nd Linux - Newbie 11 08-17-2005 02:08 PM
kernel compilation : to remove a kernel which files should be deleted b0nd Linux - Newbie 2 08-17-2005 12:35 PM
Kernel compilation problems, distorted video and kernel panic shamrock_uk Linux - Laptop and Netbook 5 08-12-2005 11:53 PM
does kernel-source installs with the compilation cum installtion of a new kernel? luqman Linux - General 18 03-04-2005 08:33 AM
Kernel Compilation radhapriya Programming 1 05-17-2003 07:32 AM


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