LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-17-2010, 04:31 AM   #1
sysslack
Member
 
Registered: Feb 2006
Posts: 69

Rep: Reputation: 15
patch a kernel script


Hi!
To all of you who does not succed in patching a kernel
I have made a script to make it easier to update to a new kernel
for example from linux-2.6.16.12 to linux-2.6.16.17


Code:
#patchscript for updating kernel in several steps.
#download sourcecode in this example linux-2.6.16.12 from kernel.org
#download suitable patches for your sorurce kernel from kernel.org and put in /usr/src
#bunzip or gunzip the patches
#run this script from /usr/src
#modify kernel_version to suite your needs!
cd linux-2.6.16.12
patch -p1 -R  < ../patch-2.6.16.12
patch -p1   < ../patch-2.6.16.13
patch -p1 -R  < ../patch-2.6.16.13
patch -p1   < ../patch-2.6.16.14
patch -p1 -R  < ../patch-2.6.16.14
patch -p1   < ../patch-2.6.16.15
patch -p1 -R  < ../patch-2.6.16.15
patch -p1   < ../patch-2.6.16.16
patch -p1 -R  < ../patch-2.6.16.16
patch -p1   < ../patch-2.6.16.17
cd /usr/src/
mv linux-2.6.16.12 linux-2.6.16.17

Last edited by sysslack; 04-17-2010 at 04:36 AM.
 
Old 05-18-2010, 02:12 AM   #2
mudangel
Member
 
Registered: May 2008
Location: Ohio
Distribution: Slackware
Posts: 267

Rep: Reputation: 56
In the interest of getting this out of the 0-replies list, I'll point out that, as a script, it's not all that useful- wouldn't it be easier to just do the necessary commands than to add them to the text file and then execute it? It might be more helpful to write it up as a how-to type of thing.
 
Old 05-24-2010, 05:59 PM   #3
sysslack
Member
 
Registered: Feb 2006
Posts: 69

Original Poster
Rep: Reputation: 15
Smile

Yes I agree. Thank you for your reply. My strength is not in programming
My intention was to show how to patch a kernel and perhaps skip the struggle I had to make it work.
But if someone wants to share a better script I am happy to take notes.
 
  


Reply



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
HowTo patch this patch on 2.6 kernel kushalkoolwal Linux - Kernel 3 08-24-2007 12:01 PM
How do i patch 2.4.21-37 kernel with antidote2 security patch suchi Linux - Kernel 4 09-05-2006 02:29 AM
Kernel Patch (Patch-2.6.13) ukez Linux - Hardware 4 08-30-2005 03:40 PM
Unable to patch 2.6.11.7 kernel with Reiser4 mm patch SlackwareInAZ Slackware 9 04-26-2005 06:33 AM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 01:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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