Re: Applying kernel patches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Di, den 07.09.2004 schrieb Steve Blackwell um 1:17:

> I downloaded the kernel-sourcecode-2.6.8-1.521 rpm and then the  
> voluntary preemption patch voluntary-preempt-2.6.8.1-P9 from  
> http://people.redhat.com/mingo/voluntary-preempt/older and placed this  
> in the kernel source directory. Then using the instructions from the  
> low latency wiki, http://wiki.philkern.de/5.html, I ran this command:
> 
> patch -p1 --dry-run < ./voluntary-preempt-2.6.8.1-P9
> 
> I get a bunch of errors. Here is the beginning of the output:

That is "normal" because the Fedora kernel is no vanilla kernel from
kernel.org which is the target for the patch. It is a 2.6.8-rc4-bk3
kernel version with lots of other patches.

> patching file arch/i386/kernel/entry.S
> Hunk #1 succeeded at 314 (offset 104 lines). --> these cases are ok
> patching file arch/i386/kernel/i386_ksyms.c
> Hunk #2 succeeded at 146 (offset 3 lines).
> patching file arch/i386/kernel/i8259.c
> patching file arch/i386/kernel/io_apic.c
> patching file arch/i386/kernel/irq.c
> Hunk #2 FAILED at 196. --> here you have to adjust the patch to match your kernel source code
> Hunk #3 succeeded at 215 (offset -4 lines).
> Hunk #5 succeeded at 298 (offset -5 lines).
> Hunk #6 succeeded at 318 (offset 2 lines).
> Hunk #7 succeeded at 322 (offset -5 lines).
> Hunk #8 FAILED at 337. --> here handwork necessary too
> Hunk #9 succeeded at 345 (offset -15 lines).
> Hunk #10 succeeded at 448 (offset -5 lines).
> Hunk #11 succeeded at 446 (offset -15 lines).
> Hunk #12 FAILED at 641. --> again
> 3 out of 12 hunks FAILED -- saving rejects to file arch/i386/kernel/ 
> irq.c.rej

3 failed hunks - that is ok and should be quickly fixable

> Reversed (or previously applied) patch detected!  Assume -R? [n]

That is not good. You will need to compare the patch code and the
existing kernel code. Maybe parts of your preempt patch code is already
in the Fedora kernel source.

> I answered 'n' to all these.

You did a --dry-run, so nothing really happened so far.

> So my questions are:
> 
> 1) Am I using the correct patch for this kernel?

Depends - depends on whether you can get the patch matching with the
Fedora kernel code.

> 2) Do I need to apply all patches in order, P0 - P9?

No.

> 3) Has anyone else successfully done this?

Can not comment this. Certainly people using a vanilla kernel (vanilla
means "clean", the code which Linus is giving public).

> rpm -q --whatprovides patch
> patch-2.5.4-19

The patch version does not matter for this case.

> Steve

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 2 (Tettnang) kernel 2.6.8-1.521smp 
Serendipity 01:56:00 up 7 days, 23:12, load average: 0.19, 0.20, 0.18 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux