* [Xenomai-help] Error during applying a patch created with --outpatch option of prepare-kernel.sh
@ 2009-06-05 11:31 xoro
2009-06-20 12:19 ` Stefan Kisdaroczi
0 siblings, 1 reply; 3+ messages in thread
From: xoro @ 2009-06-05 11:31 UTC (permalink / raw)
To: xenomai
Hi,
I am creating a patch using the the --outpatch option of the prepare-kernel.sh script. During patching the created patch to the linux kernel I get the following messages:
patching file include/xenomai/psos+/queue.h
patching file include/xenomai/psos+/sem.h
patching file init/Kconfig
Hunk #1 FAILED at 1065.
1 out of 1 hunk FAILED -- saving rejects to file init/Kconfig.rej
patching file kernel/Makefile
Hunk #1 succeeded at 124 (offset -1 lines).
patching file kernel/xenomai/Makefile
patching file kernel/xenomai/nucleus/pod.c
This behaviour can be reproduced by executing the following commands:
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.29.4.tar.bz2
wget http://download.gna.org/xenomai/stable/xenomai-2.4.8.tar.bz2
tar xjf linux-2.6.29.4.tar.bz2
tar xjf xenomai-2.4.8.tar.bz2
mkdir tmp
./xenomai-2.4.8/scripts/prepare-kernel.sh --linux=./linux-2.6.29.4 --arch=i686 --adeos=./xenomai-2.4.8/ksrc/arch/x86/patches/adeos-ipipe-2.6.29.4-x86-2.4-01.patch --outpatch=./xenomai-2.4.8_linux-2.6.29.4.patch ./tmp --verbose
mv linux-2.6.29.4 linux-2.6.29.4.bak
tar xjf linux-2.6.29.4.tar.bz2
cd linux-2.6.29.4
patch -p1 < ../xenomai-2.4.8_linux-2.6.29.4.patch
If I patch the kernel directly without using the --outpatch option patching works fine.
Am I missing an option of the prepare-kernel.sh script, or is this a bug in the prepare-kernel.sh script?
PS: Executing "prepare-kernel.sh --help" gives the following output:
usage: prepare-kernel --linux=<linux-tree> --adeos=<adeos-patch> [--arch=<arch>] [--outpatch=<file> <tempdir> [--filterkvers=y|n] [--filterarch=y|n]] [--forcelink] [--default] [--verbose]
It looks as if the closing bracket "]" after "[--outpatch=<file> <tempdir>" is missing.
Thank you for your help!
Xoro
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] Error during applying a patch created with --outpatch option of prepare-kernel.sh
2009-06-05 11:31 [Xenomai-help] Error during applying a patch created with --outpatch option of prepare-kernel.sh xoro
@ 2009-06-20 12:19 ` Stefan Kisdaroczi
2009-06-20 14:59 ` Philippe Gerum
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Kisdaroczi @ 2009-06-20 12:19 UTC (permalink / raw)
To: xoro, xenomai
[-- Attachment #1: Type: text/plain, Size: 2189 bytes --]
Hi,
xoro@domain.hid schrieb:
> Hi,
>
> I am creating a patch using the the --outpatch option of the prepare-kernel.sh script. During patching the created patch to the linux kernel I get the following messages:
> patching file include/xenomai/psos+/queue.h
> patching file include/xenomai/psos+/sem.h
> patching file init/Kconfig
> Hunk #1 FAILED at 1065.
> 1 out of 1 hunk FAILED -- saving rejects to file init/Kconfig.rej
>
patch attached.
@philippe:
the problem is the same hunk as in my "debian specific" unpatch problem [1].
kisda
https://mail.gna.org/public/xenomai-help/2009-06/msg00091.html
> patching file kernel/Makefile
> Hunk #1 succeeded at 124 (offset -1 lines).
> patching file kernel/xenomai/Makefile
> patching file kernel/xenomai/nucleus/pod.c
>
> This behaviour can be reproduced by executing the following commands:
> wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.29.4.tar.bz2
> wget http://download.gna.org/xenomai/stable/xenomai-2.4.8.tar.bz2
> tar xjf linux-2.6.29.4.tar.bz2
> tar xjf xenomai-2.4.8.tar.bz2
> mkdir tmp
> ./xenomai-2.4.8/scripts/prepare-kernel.sh --linux=./linux-2.6.29.4 --arch=i686 --adeos=./xenomai-2.4.8/ksrc/arch/x86/patches/adeos-ipipe-2.6.29.4-x86-2.4-01.patch --outpatch=./xenomai-2.4.8_linux-2.6.29.4.patch ./tmp --verbose
> mv linux-2.6.29.4 linux-2.6.29.4.bak
> tar xjf linux-2.6.29.4.tar.bz2
> cd linux-2.6.29.4
> patch -p1 < ../xenomai-2.4.8_linux-2.6.29.4.patch
>
> If I patch the kernel directly without using the --outpatch option patching works fine.
>
> Am I missing an option of the prepare-kernel.sh script, or is this a bug in the prepare-kernel.sh script?
>
> PS: Executing "prepare-kernel.sh --help" gives the following output:
> usage: prepare-kernel --linux=<linux-tree> --adeos=<adeos-patch> [--arch=<arch>] [--outpatch=<file> <tempdir> [--filterkvers=y|n] [--filterarch=y|n]] [--forcelink] [--default] [--verbose]
> It looks as if the closing bracket "]" after "[--outpatch=<file> <tempdir>" is missing.
>
>
> Thank you for your help!
>
> Xoro
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
>
>
[-- Attachment #2: outpatch-2.6.29.4-x86.patch --]
[-- Type: text/x-diff, Size: 755 bytes --]
diff -uNrp xenomai-2.4.8.orig/ksrc/arch/x86/patches/adeos-ipipe-2.6.29.4-x86-2.4-01.patch xenomai-2.4.8/ksrc/arch/x86/patches/adeos-ipipe-2.6.29.4-x86-2.4-01.patch
--- xenomai-2.4.8.orig/ksrc/arch/x86/patches/adeos-ipipe-2.6.29.4-x86-2.4-01.patch 2009-05-27 23:55:00.000000000 +0200
+++ xenomai-2.4.8/ksrc/arch/x86/patches/adeos-ipipe-2.6.29.4-x86-2.4-01.patch 2009-06-20 13:58:28.000000000 +0200
@@ -6326,11 +6326,6 @@ index 6a5c5fe..759609e 100644
help
Append an extra string to the end of your kernel version.
This will show up when you type uname, for example.
-@@ -1064,4 +1065,3 @@ source "block/Kconfig"
-
- config PREEMPT_NOTIFIERS
- bool
--
diff --git a/init/main.c b/init/main.c
index 83697e1..cb17ff5 100644
--- a/init/main.c
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] Error during applying a patch created with --outpatch option of prepare-kernel.sh
2009-06-20 12:19 ` Stefan Kisdaroczi
@ 2009-06-20 14:59 ` Philippe Gerum
0 siblings, 0 replies; 3+ messages in thread
From: Philippe Gerum @ 2009-06-20 14:59 UTC (permalink / raw)
To: Stefan Kisdaroczi; +Cc: xenomai
On Sat, 2009-06-20 at 14:19 +0200, Stefan Kisdaroczi wrote:
> Hi,
>
> xoro@domain.hid schrieb:
> > Hi,
> >
> > I am creating a patch using the the --outpatch option of the prepare-kernel.sh script. During patching the created patch to the linux kernel I get the following messages:
> > patching file include/xenomai/psos+/queue.h
> > patching file include/xenomai/psos+/sem.h
> > patching file init/Kconfig
> > Hunk #1 FAILED at 1065.
> > 1 out of 1 hunk FAILED -- saving rejects to file init/Kconfig.rej
> >
> patch attached.
>
> @philippe:
> the problem is the same hunk as in my "debian specific" unpatch problem [1].
Thanks. Somehow this hunk made its way to the ipipe-2.6.29-noarch branch
from the Adeos tree; this is now fixed. x86-wise, I will push 2.4-02 to
the repos, that should fix the issue. Relevant powerpc and ARM patches
will be updated the same way. Blackfin patches are not maintained in the
ipipe-2.6 public GIT tree yet, so they don't suffer this bug.
http://download.gna.org/adeos/patches/v2.6/x86/adeos-ipipe-2.6.29.5-x86-2.4-02.patch
>
> kisda
>
> https://mail.gna.org/public/xenomai-help/2009-06/msg00091.html
>
> > patching file kernel/Makefile
> > Hunk #1 succeeded at 124 (offset -1 lines).
> > patching file kernel/xenomai/Makefile
> > patching file kernel/xenomai/nucleus/pod.c
> >
> > This behaviour can be reproduced by executing the following commands:
> > wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.29.4.tar.bz2
> > wget http://download.gna.org/xenomai/stable/xenomai-2.4.8.tar.bz2
> > tar xjf linux-2.6.29.4.tar.bz2
> > tar xjf xenomai-2.4.8.tar.bz2
> > mkdir tmp
> > ./xenomai-2.4.8/scripts/prepare-kernel.sh --linux=./linux-2.6.29.4 --arch=i686 --adeos=./xenomai-2.4.8/ksrc/arch/x86/patches/adeos-ipipe-2.6.29.4-x86-2.4-01.patch --outpatch=./xenomai-2.4.8_linux-2.6.29.4.patch ./tmp --verbose
> > mv linux-2.6.29.4 linux-2.6.29.4.bak
> > tar xjf linux-2.6.29.4.tar.bz2
> > cd linux-2.6.29.4
> > patch -p1 < ../xenomai-2.4.8_linux-2.6.29.4.patch
> >
> > If I patch the kernel directly without using the --outpatch option patching works fine.
> >
> > Am I missing an option of the prepare-kernel.sh script, or is this a bug in the prepare-kernel.sh script?
> >
> > PS: Executing "prepare-kernel.sh --help" gives the following output:
> > usage: prepare-kernel --linux=<linux-tree> --adeos=<adeos-patch> [--arch=<arch>] [--outpatch=<file> <tempdir> [--filterkvers=y|n] [--filterarch=y|n]] [--forcelink] [--default] [--verbose]
> > It looks as if the closing bracket "]" after "[--outpatch=<file> <tempdir>" is missing.
> >
> >
> > Thank you for your help!
> >
> > Xoro
> >
> > _______________________________________________
> > Xenomai-help mailing list
> > Xenomai-help@domain.hid
> > https://mail.gna.org/listinfo/xenomai-help
> >
> >
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
--
Philippe.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-06-20 14:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-05 11:31 [Xenomai-help] Error during applying a patch created with --outpatch option of prepare-kernel.sh xoro
2009-06-20 12:19 ` Stefan Kisdaroczi
2009-06-20 14:59 ` Philippe Gerum
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.