* [Xenomai-help] Xenomai patches
@ 2009-10-28 12:13 Leopold Palomo-Avellaneda
2009-10-28 13:45 ` Gilles Chanteperdrix
2009-10-28 15:10 ` Stefan Kisdaroczi
0 siblings, 2 replies; 14+ messages in thread
From: Leopold Palomo-Avellaneda @ 2009-10-28 12:13 UTC (permalink / raw)
To: xenomai
Hi,
I'm having a trouble installing xenomai in a debian machines. Actually the
official debian package is not useful. You cannot use it because there's no
kernel package that could be patched.
Anyway, I would like to ask about if, for example, a patch against a 2.6.30
could be used against 2.6.30.4 for example or reverse. I don't understand why
this four numbers instead of the classical 3. Or, how can I modify it to use
it.
Regards,
Leo
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Xenomai-help] Xenomai patches
2009-10-28 12:13 [Xenomai-help] Xenomai patches Leopold Palomo-Avellaneda
@ 2009-10-28 13:45 ` Gilles Chanteperdrix
2009-10-28 14:53 ` Leopold Palomo Avellaneda
2009-10-28 15:10 ` Stefan Kisdaroczi
1 sibling, 1 reply; 14+ messages in thread
From: Gilles Chanteperdrix @ 2009-10-28 13:45 UTC (permalink / raw)
To: Leopold Palomo-Avellaneda; +Cc: xenomai
Leopold Palomo-Avellaneda wrote:
> Hi,
>
> I'm having a trouble installing xenomai in a debian machines. Actually the
> official debian package is not useful. You cannot use it because there's no
> kernel package that could be patched.
The debian packages are not maintained by the Xenomai project. So, if
you are having problems with these, please contact Roland Stigge. You
will probably find his e-mail address in /usr/share/doc/*xenomai, but
the e-mail address he used the last time he posted on the xenomai
mailing lists is:
stigge@domain.hid
> Anyway, I would like to ask about if, for example, a patch against a 2.6.30
> could be used against 2.6.30.4 for example or reverse.
Usually, I-pipe patches are for the base release, but work with later
releases. When it happens that there is a conflict, and we find out
about it, we release another I-pipe patch e.g for 2.6.30.4. In that
case, you need to use the I-pipe patch for 2.6.30.4 for 2.6.30.4 and later.
> I don't understand why
> this four numbers instead of the classical 3. Or, how can I modify it to use
> it.
These are releases from the stable branch:
http://kernelnewbies.org/FAQ/VariousKernelTrees
--
Gilles
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Xenomai-help] Xenomai patches
2009-10-28 13:45 ` Gilles Chanteperdrix
@ 2009-10-28 14:53 ` Leopold Palomo Avellaneda
0 siblings, 0 replies; 14+ messages in thread
From: Leopold Palomo Avellaneda @ 2009-10-28 14:53 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
A Dimecres 28 Octubre 2009, Gilles Chanteperdrix va escriure:
> Leopold Palomo-Avellaneda wrote:
> > Hi,
> >
> > I'm having a trouble installing xenomai in a debian machines. Actually
> > the official debian package is not useful. You cannot use it because
> > there's no kernel package that could be patched.
>
> The debian packages are not maintained by the Xenomai project. So, if
> you are having problems with these, please contact Roland Stigge.
[...]
yes, I know. Sorry for the noise. My fingers were faster than my brain. This
comment have to go as bug to the package, not to the xenomai list.
>
> > Anyway, I would like to ask about if, for example, a patch against a
> > 2.6.30 could be used against 2.6.30.4 for example or reverse.
>
> Usually, I-pipe patches are for the base release, but work with later
> releases. When it happens that there is a conflict, and we find out
> about it, we release another I-pipe patch e.g for 2.6.30.4. In that
> case, you need to use the I-pipe patch for 2.6.30.4 for 2.6.30.4 and later.
well, as I understand if you release a I-pipe patch for a kernel 2.x.y
it "should work" for all the releases 2.x.y.z (z>0) in "theory", but if
there's a problem, then you release a patch for 2.x.y.z and this patch then
works for 2.x.y.z (where z is the version where the conflict occurred, no?
But this patch also works with the previous versions (0 < z < ...) ?
> > I don't understand why
> > this four numbers instead of the classical 3. Or, how can I modify it to
> > use it.
>
> These are releases from the stable branch:
> http://kernelnewbies.org/FAQ/VariousKernelTrees
Ok,
thanks for the link. Well explained.
Regards,
Leo
--
--
Linux User 152692 PGP: 0xF944807E
Catalonia
-------------------------------------
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Xenomai-help] Xenomai patches
2009-10-28 12:13 [Xenomai-help] Xenomai patches Leopold Palomo-Avellaneda
2009-10-28 13:45 ` Gilles Chanteperdrix
@ 2009-10-28 15:10 ` Stefan Kisdaroczi
2009-10-29 10:05 ` Leopold Palomo-Avellaneda
1 sibling, 1 reply; 14+ messages in thread
From: Stefan Kisdaroczi @ 2009-10-28 15:10 UTC (permalink / raw)
To: Leopold Palomo-Avellaneda; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 3210 bytes --]
Hi,
Leopold Palomo-Avellaneda schrieb:
> Hi,
>
> I'm having a trouble installing xenomai in a debian machines. Actually the
> official debian package is not useful. You cannot use it because there's no
> kernel package that could be patched.
>
> Anyway, I would like to ask about if, for example, a patch against a 2.6.30
> could be used against 2.6.30.4 for example or reverse. I don't understand why
> this four numbers instead of the classical 3. Or, how can I modify it to use
> it.
Try to modify the line starting with KVERSION=... in the file
/usr/src/kernel-patches/$ARCH/apply/xenomai
Replace the 4 digit version numbers with 3 digits.
However, if suggest to download the kernel source from kernel.org, this will work
without changing the above mentioned file.
Im using Debian Lenny and the following is working for me:
(replace the version numbers...)
First: build the xenomai deb packages:
--------------------------------------
1) install needed packages as root:
# apt-get install debhelper devscripts dh-kpatches findutils
2) create a new directory:
~$ mkdir -p src/xenomai && cd src/xenomai
3) download xenomai:
~/src/xenomai$ wget http://download.gna.org/xenomai/stable/xenomai-2.4.7.tar.bz2
4) repack the archive (*tar.bz2 -> *orig.tar.gz):
~/src/xenomai$ bzcat xenomai-2.4.7.tar.bz2 | gzip > xenomai_2.4.7.orig.tar.gz && rm xenomai-2.4.7.tar.bz2
5) extract the archive:
~/src/xenomai$ tar -zxf xenomai_2.4.7.orig.tar.gz
6) change dir:
~/src/xenomai$ cd xenomai-2.4.7/
7) update debian/changelog:
~/src/xenomai/xenomai-2.4.7$ debchange -v 2.4.7-0 Release 2.4.7
8) build:
~/src/xenomai/xenomai-2.4.7$ debuild
9) as root: install the deb's:
/..../src/xenomai# dpkg -i *.deb
Second: download, patch and build the kernel:
---------------------------------------------
1) install needed packages:
# apt-get install kernel-package libncurses-dev fakeroot zlib1g-dev
2) create a new directory:
~$ mkdir -p src/linux && cd src/linux
3) download kernel source:
~/src/linux$ wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.28.7.tar.bz2
4) extract it:
~/src/linux$ tar -jxf linux-2.6.28.7.tar.bz2
5) enter directory:
~/src/linux$ cd linux-2.6.28.7/
6) patch the kernel with xenomai:
~/src/linux/linux-2.6.28.7$ /usr/src/kernel-patches/i386/apply/xenomai
7) configure the kernel:
[optional] copy a kernel config to .config and run "make oldconfig" [/optional]
~/src/linux/linux-2.6.28.7$ make menuconfig
8) compile the kernel with make-kpkg:
~/src/linux/linux-2.6.28.7$ fakeroot make-kpkg --initrd --append-to-version -xenomai-2.4.7 --revision 1.0 binary-arch
if you have a multicore box, use CONCURRENCY_LEVEL= to speed up the build:
~/src/linux/linux-2.6.28.7$ CONCURRENCY_LEVEL=2 fakeroot make-kpkg --initrd --append-to-version -xenomai-2.4.7 --revision 1.0
binary-arch
9) as root: install the deb's:
/..../src/linux# dpkg -i *.deb
thats all folks...
regards, kisda
>
> Regards,
>
> Leo
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Xenomai-help] Xenomai patches
2009-10-28 15:10 ` Stefan Kisdaroczi
@ 2009-10-29 10:05 ` Leopold Palomo-Avellaneda
2009-10-29 10:13 ` Gilles Chanteperdrix
0 siblings, 1 reply; 14+ messages in thread
From: Leopold Palomo-Avellaneda @ 2009-10-29 10:05 UTC (permalink / raw)
To: Stefan Kisdaroczi; +Cc: xenomai
Hi Stefan,
first of all thanks for the guide. I knew more or less all the steps, but you
have helped me a lot.
[...]
> Try to modify the line starting with KVERSION=... in the file
> /usr/src/kernel-patches/$ARCH/apply/xenomai
> Replace the 4 digit version numbers with 3 digits.
Ok, good to know. This is in same line as Gilles Chanteperdrix mail.
[...]
>
> 4) repack the archive (*tar.bz2 -> *orig.tar.gz):
> ~/src/xenomai$ bzcat xenomai-2.4.7.tar.bz2 | gzip >
> xenomai_2.4.7.orig.tar.gz && rm xenomai-2.4.7.tar.bz2
I don't think that this is necessary. At last I didn't need it.
> 5) extract the archive:
> ~/src/xenomai$ tar -zxf xenomai_2.4.7.orig.tar.gz
>
> 6) change dir:
> ~/src/xenomai$ cd xenomai-2.4.7/
>
> 7) update debian/changelog:
> ~/src/xenomai/xenomai-2.4.7$ debchange -v 2.4.7-0 Release 2.4.7
I did it with dch -i . Both are valid.
>
> 8) build:
> ~/src/xenomai/xenomai-2.4.7$ debuild
it builds the tar.orig.gz
[...]
>
> 6) patch the kernel with xenomai:
> ~/src/linux/linux-2.6.28.7$ /usr/src/kernel-patches/i386/apply/xenomai
>
> 7) configure the kernel:
> [optional] copy a kernel config to .config and run "make oldconfig"
> [/optional] ~/src/linux/linux-2.6.28.7$ make menuconfig
>
> 8) compile the kernel with make-kpkg:
> ~/src/linux/linux-2.6.28.7$ fakeroot make-kpkg --initrd --append-to-version
> -xenomai-2.4.7 --revision 1.0 binary-arch
you can do it alltogether with:
fakeroot make-kpkg --initrd --added-patches xenomai --config
menuconfig --append-to-version "-xenomai-2.4.10" -revision 1.0 binary-arch
also, instead of binary-arch, with kernel_image kernel_headers it's ok.
> if you have a multicore box, use CONCURRENCY_LEVEL= to speed up the build:
> ~/src/linux/linux-2.6.28.7$ CONCURRENCY_LEVEL=2 fakeroot make-kpkg --initrd
> --append-to-version -xenomai-2.4.7 --revision 1.0 binary-arch
FANTASTIC!!!!
the CONCURRENCY_LEVEL it's great. I didn't know it!!! thanks a lot.
OTOH, the debian package has a bug. I cannot compile xenomai, using the debian
way on kernels 2.6.28, 2.6.29 and 2.6.30 because the package add something
that fails with make menuconfig. I should write a bug. Just for information,
it's not a xenomai upstream related question. ;-)
Thanks for all,
Best regards,
Leo
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Xenomai-help] Xenomai patches
2009-10-29 10:05 ` Leopold Palomo-Avellaneda
@ 2009-10-29 10:13 ` Gilles Chanteperdrix
2009-10-29 10:14 ` Gilles Chanteperdrix
0 siblings, 1 reply; 14+ messages in thread
From: Gilles Chanteperdrix @ 2009-10-29 10:13 UTC (permalink / raw)
To: Leopold Palomo-Avellaneda; +Cc: xenomai
Leopold Palomo-Avellaneda wrote:
> OTOH, the debian package has a bug. I cannot compile xenomai, using the debian
> way on kernels 2.6.28, 2.6.29 and 2.6.30 because the package add something
> that fails with make menuconfig. I should write a bug. Just for information,
> it's not a xenomai upstream related question. ;-)
Please check xenomai-2.4.9.1. It may happen that the bug has been
already solved.
--
Gilles
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Xenomai-help] Xenomai patches
2009-10-29 10:13 ` Gilles Chanteperdrix
@ 2009-10-29 10:14 ` Gilles Chanteperdrix
2009-10-29 10:21 ` Leopold Palomo-Avellaneda
2009-10-29 10:23 ` Leopold Palomo-Avellaneda
0 siblings, 2 replies; 14+ messages in thread
From: Gilles Chanteperdrix @ 2009-10-29 10:14 UTC (permalink / raw)
To: Leopold Palomo-Avellaneda; +Cc: xenomai
Gilles Chanteperdrix wrote:
> Leopold Palomo-Avellaneda wrote:
>> OTOH, the debian package has a bug. I cannot compile xenomai, using the debian
>> way on kernels 2.6.28, 2.6.29 and 2.6.30 because the package add something
>> that fails with make menuconfig. I should write a bug. Just for information,
>> it's not a xenomai upstream related question. ;-)
>
> Please check xenomai-2.4.9.1. It may happen that the bug has been
> already solved.
>
2.4.10
--
Gilles
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Xenomai-help] Xenomai patches
2009-10-29 10:14 ` Gilles Chanteperdrix
@ 2009-10-29 10:21 ` Leopold Palomo-Avellaneda
2009-10-29 10:23 ` Leopold Palomo-Avellaneda
1 sibling, 0 replies; 14+ messages in thread
From: Leopold Palomo-Avellaneda @ 2009-10-29 10:21 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
A Dijous 29 Octubre 2009, Gilles Chanteperdrix va escriure:
> Gilles Chanteperdrix wrote:
> > Leopold Palomo-Avellaneda wrote:
> >> OTOH, the debian package has a bug. I cannot compile xenomai, using the
> >> debian way on kernels 2.6.28, 2.6.29 and 2.6.30 because the package add
> >> something that fails with make menuconfig. I should write a bug. Just
> >> for information, it's not a xenomai upstream related question. ;-)
> >
> > Please check xenomai-2.4.9.1. It may happen that the bug has been
> > already solved.
>
> 2.4.10
nops
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Xenomai-help] Xenomai patches
2009-10-29 10:14 ` Gilles Chanteperdrix
2009-10-29 10:21 ` Leopold Palomo-Avellaneda
@ 2009-10-29 10:23 ` Leopold Palomo-Avellaneda
2009-10-29 10:55 ` Gilles Chanteperdrix
1 sibling, 1 reply; 14+ messages in thread
From: Leopold Palomo-Avellaneda @ 2009-10-29 10:23 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
A Dijous 29 Octubre 2009, Gilles Chanteperdrix va escriure:
> Gilles Chanteperdrix wrote:
> > Leopold Palomo-Avellaneda wrote:
> >> OTOH, the debian package has a bug. I cannot compile xenomai, using the
> >> debian way on kernels 2.6.28, 2.6.29 and 2.6.30 because the package add
> >> something that fails with make menuconfig. I should write a bug. Just
> >> for information, it's not a xenomai upstream related question. ;-)
> >
> > Please check xenomai-2.4.9.1. It may happen that the bug has been
> > already solved.
>
> 2.4.10
nops, sorry again my fingers were so fast ...
we are talking about the same? I got:
cripts/kconfig/conf -o arch/x86/Kconfig
arch/x86/Kconfig:74: unexpected option "select"
arch/x86/Kconfig:75: unexpected option "select"
make[3]: *** [oldconfig] Error 1
make[2]: *** [oldconfig] Error 2
Leo
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Xenomai-help] Xenomai patches
2009-10-29 10:23 ` Leopold Palomo-Avellaneda
@ 2009-10-29 10:55 ` Gilles Chanteperdrix
2009-10-29 11:25 ` Leopold Palomo-Avellaneda
0 siblings, 1 reply; 14+ messages in thread
From: Gilles Chanteperdrix @ 2009-10-29 10:55 UTC (permalink / raw)
To: Leopold Palomo-Avellaneda; +Cc: xenomai
Leopold Palomo-Avellaneda wrote:
> A Dijous 29 Octubre 2009, Gilles Chanteperdrix va escriure:
>> Gilles Chanteperdrix wrote:
>>> Leopold Palomo-Avellaneda wrote:
>>>> OTOH, the debian package has a bug. I cannot compile xenomai, using the
>>>> debian way on kernels 2.6.28, 2.6.29 and 2.6.30 because the package add
>>>> something that fails with make menuconfig. I should write a bug. Just
>>>> for information, it's not a xenomai upstream related question. ;-)
>>> Please check xenomai-2.4.9.1. It may happen that the bug has been
>>> already solved.
>> 2.4.10
>
> nops, sorry again my fingers were so fast ...
>
> we are talking about the same? I got:
>
> cripts/kconfig/conf -o arch/x86/Kconfig
> arch/x86/Kconfig:74: unexpected option "select"
> arch/x86/Kconfig:75: unexpected option "select"
> make[3]: *** [oldconfig] Error 1
> make[2]: *** [oldconfig] Error 2
I am not talking about any specific bug. It was just a general advice.
In any case, we are not responsible for the Xenomai packages made by the
Debian team, but if you find bugs in the debian directory which is part
of the Xenomai package, we are interested in fixing them, of course.
--
Gilles
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Xenomai-help] Xenomai patches
2009-10-29 10:55 ` Gilles Chanteperdrix
@ 2009-10-29 11:25 ` Leopold Palomo-Avellaneda
2009-10-29 11:40 ` Jan Kiszka
2009-10-29 12:17 ` Stefan Kisdaroczi
0 siblings, 2 replies; 14+ messages in thread
From: Leopold Palomo-Avellaneda @ 2009-10-29 11:25 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
A Dijous 29 Octubre 2009, Gilles Chanteperdrix va escriure:
> Leopold Palomo-Avellaneda wrote:
> > A Dijous 29 Octubre 2009, Gilles Chanteperdrix va escriure:
> >> Gilles Chanteperdrix wrote:
> >>> Leopold Palomo-Avellaneda wrote:
> >>>> OTOH, the debian package has a bug. I cannot compile xenomai, using
> >>>> the debian way on kernels 2.6.28, 2.6.29 and 2.6.30 because the
> >>>> package add something that fails with make menuconfig. I should write
> >>>> a bug. Just for information, it's not a xenomai upstream related
> >>>> question. ;-)
> >>>
> >>> Please check xenomai-2.4.9.1. It may happen that the bug has been
> >>> already solved.
> >>
> >> 2.4.10
> >
> > nops, sorry again my fingers were so fast ...
> >
> > we are talking about the same? I got:
> >
> > cripts/kconfig/conf -o arch/x86/Kconfig
> > arch/x86/Kconfig:74: unexpected option "select"
> > arch/x86/Kconfig:75: unexpected option "select"
> > make[3]: *** [oldconfig] Error 1
> > make[2]: *** [oldconfig] Error 2
>
> I am not talking about any specific bug. It was just a general advice.
> In any case, we are not responsible for the Xenomai packages made by the
> Debian team, but if you find bugs in the debian directory which is part
> of the Xenomai package, we are interested in fixing them, of course.
well, I have found two things:
1) the debian directory is very similar in both (upstream and debian
official). The method to create the package is described in the xenomai wiki
and have been working so well till now (at least in my case). The script or
the patch applied in the versions of the kernel 2.6.28>= introduces something
that make fail the make menuconfig step. If you apply the patch with the
script (scripts/prepare-kernel.sh) the make menuconfig works
2) after the step of preparing the kernel, (with xenomai 2.4.10) when I
compile the kernel (2.6.30., it fails in:
CC arch/x86/xenomai/hal-common.o
arch/x86/xenomai/hal_32.c: In function ‘rthal_latency_above_max’:
arch/x86/xenomai/hal_32.c:139: warning: passing argument 1 of ‘die_nmi’ from
incompatible pointer type
arch/x86/xenomai/hal_32.c:139: warning: passing argument 2 of ‘die_nmi’ from
incompatible pointer type
arch/x86/xenomai/hal_32.c:139: error: too few arguments to function ‘die_nmi’
make[2]: *** [arch/x86/xenomai/hal_32.o] Error 1
make[2]: *** Waiting for unfinished jobs....
LD arch/x86/oprofile/built-in.o
CC net/socket.o
Now, I'm compiling 2.6.29 with 2.4.10 ...
Leo
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Xenomai-help] Xenomai patches
2009-10-29 11:25 ` Leopold Palomo-Avellaneda
@ 2009-10-29 11:40 ` Jan Kiszka
2009-10-29 12:17 ` Stefan Kisdaroczi
1 sibling, 0 replies; 14+ messages in thread
From: Jan Kiszka @ 2009-10-29 11:40 UTC (permalink / raw)
To: Leopold Palomo-Avellaneda; +Cc: xenomai
Leopold Palomo-Avellaneda wrote:
> A Dijous 29 Octubre 2009, Gilles Chanteperdrix va escriure:
>> Leopold Palomo-Avellaneda wrote:
>>> A Dijous 29 Octubre 2009, Gilles Chanteperdrix va escriure:
>>>> Gilles Chanteperdrix wrote:
>>>>> Leopold Palomo-Avellaneda wrote:
>>>>>> OTOH, the debian package has a bug. I cannot compile xenomai, using
>>>>>> the debian way on kernels 2.6.28, 2.6.29 and 2.6.30 because the
>>>>>> package add something that fails with make menuconfig. I should write
>>>>>> a bug. Just for information, it's not a xenomai upstream related
>>>>>> question. ;-)
>>>>> Please check xenomai-2.4.9.1. It may happen that the bug has been
>>>>> already solved.
>>>> 2.4.10
>>> nops, sorry again my fingers were so fast ...
>>>
>>> we are talking about the same? I got:
>>>
>>> cripts/kconfig/conf -o arch/x86/Kconfig
>>> arch/x86/Kconfig:74: unexpected option "select"
>>> arch/x86/Kconfig:75: unexpected option "select"
>>> make[3]: *** [oldconfig] Error 1
>>> make[2]: *** [oldconfig] Error 2
>> I am not talking about any specific bug. It was just a general advice.
>> In any case, we are not responsible for the Xenomai packages made by the
>> Debian team, but if you find bugs in the debian directory which is part
>> of the Xenomai package, we are interested in fixing them, of course.
>
> well, I have found two things:
>
> 1) the debian directory is very similar in both (upstream and debian
> official). The method to create the package is described in the xenomai wiki
> and have been working so well till now (at least in my case). The script or
> the patch applied in the versions of the kernel 2.6.28>= introduces something
> that make fail the make menuconfig step. If you apply the patch with the
> script (scripts/prepare-kernel.sh) the make menuconfig works
>
> 2) after the step of preparing the kernel, (with xenomai 2.4.10) when I
> compile the kernel (2.6.30., it fails in:
>
> CC arch/x86/xenomai/hal-common.o
> arch/x86/xenomai/hal_32.c: In function ‘rthal_latency_above_max’:
> arch/x86/xenomai/hal_32.c:139: warning: passing argument 1 of ‘die_nmi’ from
> incompatible pointer type
> arch/x86/xenomai/hal_32.c:139: warning: passing argument 2 of ‘die_nmi’ from
> incompatible pointer type
> arch/x86/xenomai/hal_32.c:139: error: too few arguments to function ‘die_nmi’
> make[2]: *** [arch/x86/xenomai/hal_32.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> LD arch/x86/oprofile/built-in.o
> CC net/socket.o
Just disable CONFIG_XENO_HW_NMI_DEBUG_LATENCY (it's widely broken in 2.4
for recent kernels).
Jan
--
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Xenomai-help] Xenomai patches
2009-10-29 11:25 ` Leopold Palomo-Avellaneda
2009-10-29 11:40 ` Jan Kiszka
@ 2009-10-29 12:17 ` Stefan Kisdaroczi
2009-10-29 14:00 ` Leopold Palomo-Avellaneda
1 sibling, 1 reply; 14+ messages in thread
From: Stefan Kisdaroczi @ 2009-10-29 12:17 UTC (permalink / raw)
To: Leopold Palomo-Avellaneda; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 3704 bytes --]
Leopold Palomo-Avellaneda schrieb:
> A Dijous 29 Octubre 2009, Gilles Chanteperdrix va escriure:
>> Leopold Palomo-Avellaneda wrote:
>>> A Dijous 29 Octubre 2009, Gilles Chanteperdrix va escriure:
>>>> Gilles Chanteperdrix wrote:
>>>>> Leopold Palomo-Avellaneda wrote:
>>>>>> OTOH, the debian package has a bug. I cannot compile xenomai, using
>>>>>> the debian way on kernels 2.6.28, 2.6.29 and 2.6.30 because the
>>>>>> package add something that fails with make menuconfig. I should write
>>>>>> a bug. Just for information, it's not a xenomai upstream related
>>>>>> question. ;-)
>>>>> Please check xenomai-2.4.9.1. It may happen that the bug has been
>>>>> already solved.
>>>> 2.4.10
>>> nops, sorry again my fingers were so fast ...
>>>
>>> we are talking about the same? I got:
>>>
>>> cripts/kconfig/conf -o arch/x86/Kconfig
>>> arch/x86/Kconfig:74: unexpected option "select"
>>> arch/x86/Kconfig:75: unexpected option "select"
>>> make[3]: *** [oldconfig] Error 1
>>> make[2]: *** [oldconfig] Error 2
>> I am not talking about any specific bug. It was just a general advice.
>> In any case, we are not responsible for the Xenomai packages made by the
>> Debian team, but if you find bugs in the debian directory which is part
>> of the Xenomai package, we are interested in fixing them, of course.
>
> well, I have found two things:
>
> 1) the debian directory is very similar in both (upstream and debian
> official). The method to create the package is described in the xenomai wiki
I diffed the two debian directories 3 weeks ago. There are some changes in
the debian version which are not in the xenomai repository. And there are
some fixes in the xenomai debian directory which are not in the official
debian package.
The official debian version in testing is targeted for Debian 6.0 Squeeze
and as far as i remember there are small changes which will break the build
for Debian 5.0 Lenny. This changes shouldnt get merged IMHO to the xenomai
debian version. I will try to create patches to synchronize the two versions.
> and have been working so well till now (at least in my case). The script or
> the patch applied in the versions of the kernel 2.6.28>= introduces something
> that make fail the make menuconfig step. If you apply the patch with the
> script (scripts/prepare-kernel.sh) the make menuconfig works
The following commit fixed (at least for 2.6.28) the patching of init/Kconfig.
This fix is not in the official debian package, only in the xenomai repository.
debian: fix kernel patch preparation script not to truncate init/Kconfig
http://git.xenomai.org/?p=xenomai-2.4.git;a=commit;h=e35614ad0050e660a9784092e5a4062b5861659c
regards, StefaN
> 2) after the step of preparing the kernel, (with xenomai 2.4.10) when I
> compile the kernel (2.6.30., it fails in:
>
> CC arch/x86/xenomai/hal-common.o
> arch/x86/xenomai/hal_32.c: In function ‘rthal_latency_above_max’:
> arch/x86/xenomai/hal_32.c:139: warning: passing argument 1 of ‘die_nmi’ from
> incompatible pointer type
> arch/x86/xenomai/hal_32.c:139: warning: passing argument 2 of ‘die_nmi’ from
> incompatible pointer type
> arch/x86/xenomai/hal_32.c:139: error: too few arguments to function ‘die_nmi’
> make[2]: *** [arch/x86/xenomai/hal_32.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> LD arch/x86/oprofile/built-in.o
> CC net/socket.o
>
>
> Now, I'm compiling 2.6.29 with 2.4.10 ...
>
> Leo
>
>
>
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Xenomai-help] Xenomai patches
2009-10-29 12:17 ` Stefan Kisdaroczi
@ 2009-10-29 14:00 ` Leopold Palomo-Avellaneda
0 siblings, 0 replies; 14+ messages in thread
From: Leopold Palomo-Avellaneda @ 2009-10-29 14:00 UTC (permalink / raw)
To: Stefan Kisdaroczi; +Cc: xenomai
A Dijous 29 Octubre 2009, Stefan Kisdaroczi va escriure:
> Leopold Palomo-Avellaneda schrieb:
> > A Dijous 29 Octubre 2009, Gilles Chanteperdrix va escriure:
> >> Leopold Palomo-Avellaneda wrote:
> >>> A Dijous 29 Octubre 2009, Gilles Chanteperdrix va escriure:
> >>>> Gilles Chanteperdrix wrote:
> >>>>> Leopold Palomo-Avellaneda wrote:
> >>>>>> OTOH, the debian package has a bug. I cannot compile xenomai, using
> >>>>>> the debian way on kernels 2.6.28, 2.6.29 and 2.6.30 because the
> >>>>>> package add something that fails with make menuconfig. I should
> >>>>>> write a bug. Just for information, it's not a xenomai upstream
> >>>>>> related question. ;-)
> >>>>>
> >>>>> Please check xenomai-2.4.9.1. It may happen that the bug has been
> >>>>> already solved.
> >>>>
> >>>> 2.4.10
> >>>
> >>> nops, sorry again my fingers were so fast ...
> >>>
> >>> we are talking about the same? I got:
> >>>
> >>> cripts/kconfig/conf -o arch/x86/Kconfig
> >>> arch/x86/Kconfig:74: unexpected option "select"
> >>> arch/x86/Kconfig:75: unexpected option "select"
> >>> make[3]: *** [oldconfig] Error 1
> >>> make[2]: *** [oldconfig] Error 2
> >>
> >> I am not talking about any specific bug. It was just a general advice.
> >> In any case, we are not responsible for the Xenomai packages made by the
> >> Debian team, but if you find bugs in the debian directory which is part
> >> of the Xenomai package, we are interested in fixing them, of course.
> >
> > well, I have found two things:
> >
> > 1) the debian directory is very similar in both (upstream and debian
> > official). The method to create the package is described in the xenomai
> > wiki
>
> I diffed the two debian directories 3 weeks ago. There are some changes in
> the debian version which are not in the xenomai repository. And there are
> some fixes in the xenomai debian directory which are not in the official
> debian package.
ok. Good point. I didn't realize about it. I only checked the changelog,
> The official debian version in testing is targeted for Debian 6.0 Squeeze
> and as far as i remember there are small changes which will break the build
> for Debian 5.0 Lenny.
Well, I'm working with backports. The only appreciate difference is the change
applied in the scripts/prepare-kernel.sh, as you mentioned after. I don't
know if this change could originate problems in Lenny. I will investigate.
> This changes shouldnt get merged IMHO to the xenomai
> debian version. I will try to create patches to synchronize the two
> versions.
Why? what did you have seen to avoid it? :-)
> > and have been working so well till now (at least in my case). The script
> > or the patch applied in the versions of the kernel 2.6.28>= introduces
> > something that make fail the make menuconfig step. If you apply the patch
> > with the script (scripts/prepare-kernel.sh) the make menuconfig works
>
> The following commit fixed (at least for 2.6.28) the patching of
> init/Kconfig. This fix is not in the official debian package, only in the
> xenomai repository.
Ok, I see. Thanks. I will check it.
Regards,
Leo
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2009-10-29 14:00 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-28 12:13 [Xenomai-help] Xenomai patches Leopold Palomo-Avellaneda
2009-10-28 13:45 ` Gilles Chanteperdrix
2009-10-28 14:53 ` Leopold Palomo Avellaneda
2009-10-28 15:10 ` Stefan Kisdaroczi
2009-10-29 10:05 ` Leopold Palomo-Avellaneda
2009-10-29 10:13 ` Gilles Chanteperdrix
2009-10-29 10:14 ` Gilles Chanteperdrix
2009-10-29 10:21 ` Leopold Palomo-Avellaneda
2009-10-29 10:23 ` Leopold Palomo-Avellaneda
2009-10-29 10:55 ` Gilles Chanteperdrix
2009-10-29 11:25 ` Leopold Palomo-Avellaneda
2009-10-29 11:40 ` Jan Kiszka
2009-10-29 12:17 ` Stefan Kisdaroczi
2009-10-29 14:00 ` Leopold Palomo-Avellaneda
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.