[Rtai] Problem of patching kenel 2.6.20 with RTAI for ARM

付言华 yanhwa.fu at gmail.com
Thu Dec 3 14:16:27 CET 2009


Hi all,

    I have a similar problem to yestody's  Topic 3, but that topic could not
help me. There  were erros when I patched kernel linux-2.6.20 with
at91_adeos-ipipe-2.6.20-arm-AT91.patch.

    The below is what I have done:

    1, I download a kernel linux-2.6.20.tar.bz2 from
http://www.kernel.org/pub/linux/kernel/v2.6/.



    2, Upack the kernel and copy  at91_adeos-ipipe-2.6.20-arm-AT91.patch
from  *rtai-3.7.1/base/arch/arm/patches/*  to .../linux-2.6.20/  and run the
the patch command, then come the erro:



*# patch -p1 < at91_adeos-ipipe-2.6.20-arm-AT91.patch
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 -aurdpbB -X nodiff
linux-2.6.20.13-9263-clean/arch/arm/mach-at91rm9200/at91sam9263.c
linux-2.6.20.13-9263/arch/arm/mach-at91rm9200/at91sam9263.c
|--- linux-2.6.20.13-9263-clean/arch/arm/mach-at91rm9200/at91sam9263.c
2007-06-19 14:32:37.000000000 +0200
|+++ linux-2.6.20.13-9263/arch/arm/mach-at91rm9200/at91sam9263.c
2007-06-19 17:53:14.000000000 +0200
--------------------------
File to patch: :
  *

**

    3,  According to the error information, I checked the kernel and found
that there had no *at91sam9263.c *under */arch/arm/mach-at91rm9200/. *That
is, the kernel *linux-2.6.20 *can not support at91sam9263.

    To port the kernel to at91sam9263, I download  a patch
*2.6.20**-at91.patch.gz
*and patched the kernel with it. Further more, I make the kernel work well
on  at91sam9263.

    Then, I patched this kernel with *at91_adeos-ipipe-2.6.20-arm-AT91.patch
*again.But there were new errors:

 *
**[root at localhost linux-2.6.20]# patch -p1 <
at91_adeos-ipipe-2.6.20-arm-AT91.patch
patching file arch/arm/mach-at91rm9200/at91sam9263.c
patching file arch/arm/mach-at91rm9200/at91sam926x_time.c
Hunk #1 FAILED at 46.
Hunk #2 succeeded at 35 (offset -77 lines).
Hunk #4 FAILED at 363.
Hunk #5 FAILED at 374.
3 out of 5 hunks FAILED -- saving rejects to file
arch/arm/mach-at91rm9200/at91sam926x_time.c.rej
patching file arch/arm/mach-at91rm9200/Kconfig
Hunk #1 FAILED at 153.
1 out of 1 hunk FAILED -- saving rejects to file
arch/arm/mach-at91rm9200/Kconfig.rej
patching file include/asm-arm/arch-at91rm9200/hardware.h
Hunk #1 FAILED at 53.
1 out of 1 hunk FAILED -- saving rejects to file
include/asm-arm/arch-at91rm9200/hardware.h.rej
patching file include/asm-arm/arch-at91rm9200/irqs.h
Hunk #1 FAILED at 55.
1 out of 1 hunk FAILED -- saving rejects to file
include/asm-arm/arch-at91rm9200/irqs.h.rej
*

  From the above:

  I guess that,files such as *at91sam9263.c *and *at91sam926x_time.c*,patched
by me from 2.6.20-at91.patch.gz, can not match with
*at91_adeos-ipipe-2.6.20-arm-AT91.patch.
*So my questions are:



   1, If I am right, how can I get a patch to replace of *2.6.20**
-at91.patch.gz*, in order to both make the kernel support at91sam9263 and
match with *at91_adeos-ipipe-2.6.20-arm-AT91.patch?*

*   *2, If I am not right, how can I solve this problem or how can port RTAI

to linux for at91sam9263?



   Thank you very much!



Best wishes,

Yanhua Fu,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.rtai.org/pipermail/rtai/attachments/20091203/635bddf5/attachment.htm>


More information about the Rtai mailing list