LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-18-2009, 04:45 PM   #1
stratotak
Member
 
Registered: Sep 2005
Distribution: Today Debian . Tomorrow ..??
Posts: 386

Rep: Reputation: 39
Realtime kernel patch applying??


Im trying to apply the realtime kernel patch.Foloowing hints from
http://rt.wiki.kernel.org/index.php/RT_PREEMPT_HOWTO
When I apply patch it gives me this option..
Code:
strat@frostbite:~/linux-2.6.28.1$ bzcat 2.6.28-rc2-mm1.bz2 | patch -p1 --dry-run
patching file Documentation/ABI/testing/debugfs-kmemtrace
The next patch would create the file Documentation/ABI/testing/sysfs-c2port,
which already exists!  Assume -R? [n]
I guess Im not sure what to choose..if i just enter..I get
Code:
Hunk #2 FAILED at 136.
Hunk #3 FAILED at 148.
2 out of 3 hunks FAILED -- saving rejects to file Documentation/DocBook/Makefile.rej
patching file Documentation/DocBook/deviceiobook.tmpl
If i choose -R and y for apply anyway I get same error

Code:
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file Documentation/ABI/testing/sysfs-c2port.rej
patching file Documentation/Changes
patching file Documentation/DocBook/Makefile
Hunk #2 FAILED at 136.
Hunk #3 FAILED at 148.
2 out of 3 hunks FAILED -- saving rejects to file Documentation/DocBook/Makefile.rej
patching file Documentation/DocBook/deviceiobook.tmpl
Am I missing something..am I applying the patch wrong??
 
Old 02-18-2009, 05:06 PM   #2
stratotak
Member
 
Registered: Sep 2005
Distribution: Today Debian . Tomorrow ..??
Posts: 386

Original Poster
Rep: Reputation: 39
I tried it another way..by extracting the patch first and then running patch like this
Code:
strat@frostbite:~/linux-2.6.28.1$ patch -p1 --dry-run <2.6.28-rc2-mm1
patching file Documentation/ABI/testing/debugfs-kmemtrace
The next patch would create the file Documentation/ABI/testing/sysfs-c2port,
which already exists!  Assume -R? [n]
But same errors
 
Old 02-18-2009, 05:55 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Why are you applying an -mm patch at all ?. That's a -rc2-mm1, and so isn't intended to fit against 2.6.28.1
Have a read of ../Documentation/applying-patches.txt

Seems to me you should be getting the kernel source tree and the -rt patch(s) to line up - as in the wiki entry.
 
Old 02-18-2009, 06:55 PM   #4
stratotak
Member
 
Registered: Sep 2005
Distribution: Today Debian . Tomorrow ..??
Posts: 386

Original Poster
Rep: Reputation: 39
I realized that now..I was using 64Studio and its realtime kernel is called multimedia..I thought thats what the mm stood for..I downloaded the RT patch ..but theres no RT patch for 2.6.28.
http://www.kernel.org/pub/linux/kernel/projects/rt/
.so im trying to patch 2.6.28.6 with the .2.6.29 patch so i can use the 2.6.29 RT patch..
So Ive got that part straight..but Im still runing into problems..
Code:
strat@frostbite:~/linux-2.6.28.6$ patch -p1 --dry-run < patch-2.6.29-rc5
But Im still running into some problems with it finding previous patches at giving me hunk failures..

Code:
patching file arch/alpha/include/asm/swab.h
patching file arch/alpha/include/asm/topology.h
patching file arch/alpha/kernel/.gitignore
patching file arch/alpha/kernel/Makefile
patching file arch/alpha/kernel/asm-offsets.c
patching file arch/alpha/kernel/binfmt_loader.c
patching file arch/alpha/kernel/core_marvel.c
patching file arch/alpha/kernel/entry.S
Hunk #3 FAILED at 896.
Hunk #4 FAILED at 916.
2 out of 5 hunks FAILED -- saving rejects to file arch/alpha/kernel/entry.S.rej
patching file arch/alpha/kernel/init_task.c
patching file arch/alpha/kernel/irq.c
patching file arch/alpha/kernel/irq_srm.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
Im applying the right patch to the right kernel source..Just not sure why Im getting hunk failures..
Ive tried googling linxu kernel patching..but nothing is ever mention about what Assume -R means or about hunk errors.

Last edited by stratotak; 02-18-2009 at 07:06 PM.
 
Old 02-18-2009, 07:10 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Did you read that file I pointed you to (it's in your kernel source tree) ?.
Kernel patches can't just be slapped on as you see fit - they are desgined to go against particualr levels.
patch-2.6.29-rc5 will (successfully) patch the 2.6.28 kernel source - the patch will be cumulative. You are either going to have to download (and reverse) the patch-2.6.28.6, or just get the base 2.6.28 source tree.
 
Old 02-18-2009, 08:24 PM   #6
stratotak
Member
 
Registered: Sep 2005
Distribution: Today Debian . Tomorrow ..??
Posts: 386

Original Poster
Rep: Reputation: 39
Ok..I got it worked out..was first time patching a kernel..Ive built 2-3 but never patched them.downloaded 2.6.28 then patched it with 2.6.29 rc 5..but after it patched fine I saw there was no realtime patch for 2.6.29.rc5..there was one for 2.6.29.rc4..so I reverted to older 2.6.26.8 as there is no Rt patch for 2.6.28 of any version and patched it with patch-2.6.26.8-rt16..patched fine..now Im building it..

Last edited by stratotak; 02-18-2009 at 08:45 PM.
 
  


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
Applying a kernel patch? posix_memalign Linux - Software 1 12-20-2008 05:08 AM
Applying Kernel Patch browser Linux - Software 2 08-31-2005 06:18 AM
Applying a kernel patch.. RoaCh Of DisCor Linux - Software 2 05-07-2005 07:41 PM
applying kernel patch pirozzi Debian 1 12-01-2004 07:47 AM
applying ck kernel patch Abe_the_Man Linux - General 1 01-29-2004 11:43 AM

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

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