* [Xenomai-help] problem following 'xenomai quick build guide'
@ 2011-12-27 16:56 Gregory Gosse
2011-12-27 16:58 ` Gilles Chanteperdrix
0 siblings, 1 reply; 18+ messages in thread
From: Gregory Gosse @ 2011-12-27 16:56 UTC (permalink / raw)
To: xenomai
[-- Attachment #1: Type: text/plain, Size: 1797 bytes --]
Hello all,
This is my first post . I'm from Toulouse France and absolute beginner in
Linux and Xenomai .
I try to install Xenomai on an Intel CORE i5 laptop.
I have installed Ubuntu 11.04 inside windows with wubi , and tried to follow
the 'Xenomai quick build guide'
http://www.xenomai.org/index.php/Xenomai_quick_build_quide
Starting from scratch , to follow the quick build guide , I had to :
- Log as root to paste files in /usr/tmp ( 'sudo passwd root' to
define the root password in my initial guest session )
- Install the 'patch' command with ' apt-get install patch'
- Install libncure with 'apt-get install libncurses5-dev'
- Get linux-2.6.25.tar.bz2 from www.kernell.org (
linux-2.6.25.11.tar.bz2 doesn't exist )
I have then get a x86_64 patch on adeos :
adeos-ipipe-2.6.23-x86_64-1.4-03.patch
and add it to /usr/src/xenomai-2.4.4/ksrc/arch/x86/patches/
I give the following informations in the 'prepare-kernel' script
> /usr/src/linux-2.6.25
> amd64
>
/usr/src/xenomai-2.4.4/ksrc/arch/x86/patches/adeos-ipipe-2.6.23-x86_64-1.4-0
3.patch
This step seems ok .
Then I enter 'menuconfig' and configure with the infos given on this
document "hard real time linux using xenomai on intel multi-core processors'
http://download.intel.com/design/intarch/papers/322386.pdf
Save and exit
My problem is in the step 'compile the kernel'
When I type 'Make' the compilation finishes with
gcc: erreur: elf_i386: Aucun fichier ou dossier de ce type (in
English should give 'gcc : error :elf_i386 : no such file or directory' )
make[1]: *** [arch/x86/vdso/vdso32-int80.so.dbg] Erreur 1
make: *** [arch/x86/vdso] Erreur 2
What can I do to go further ?
Thanks for any help
Gregory
[-- Attachment #2: Type: text/html, Size: 9737 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [Xenomai-help] problem following 'xenomai quick build guide'
2011-12-27 16:56 [Xenomai-help] problem following 'xenomai quick build guide' Gregory Gosse
@ 2011-12-27 16:58 ` Gilles Chanteperdrix
2011-12-27 17:15 ` Gregory Gosse
2011-12-28 9:17 ` Gregory Gosse
0 siblings, 2 replies; 18+ messages in thread
From: Gilles Chanteperdrix @ 2011-12-27 16:58 UTC (permalink / raw)
To: Gregory Gosse; +Cc: xenomai
On 12/27/2011 05:56 PM, Gregory Gosse wrote:
> What can I do to go further ?
There is no point in starting with such outdated versions. Please
download the latest stable release of Xenomai (xenomai 2.6.0), and if
the quick build guide does not work, follow the not quick build guide
called "README.INSTALL" which ships with the sources.
--
Gilles.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [Xenomai-help] problem following 'xenomai quick build guide'
2011-12-27 16:58 ` Gilles Chanteperdrix
@ 2011-12-27 17:15 ` Gregory Gosse
2011-12-28 9:17 ` Gregory Gosse
1 sibling, 0 replies; 18+ messages in thread
From: Gregory Gosse @ 2011-12-27 17:15 UTC (permalink / raw)
To: 'Gilles Chanteperdrix'; +Cc: xenomai
OK ,i will try this .
Thanks for such a rapid help
Gregory
-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org
Envoyé : mardi 27 décembre 2011 17:59
À : Gregory Gosse
Cc : xenomai@xenomai.org
Objet : Re: [Xenomai-help] problem following 'xenomai quick build guide'
On 12/27/2011 05:56 PM, Gregory Gosse wrote:
> What can I do to go further ?
There is no point in starting with such outdated versions. Please download the latest stable release of Xenomai (xenomai 2.6.0), and if the quick build guide does not work, follow the not quick build guide called "README.INSTALL" which ships with the sources.
--
Gilles.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [Xenomai-help] problem following 'xenomai quick build guide'
2011-12-27 16:58 ` Gilles Chanteperdrix
2011-12-27 17:15 ` Gregory Gosse
@ 2011-12-28 9:17 ` Gregory Gosse
2011-12-28 9:30 ` Philippe Gerum
1 sibling, 1 reply; 18+ messages in thread
From: Gregory Gosse @ 2011-12-28 9:17 UTC (permalink / raw)
To: 'Gilles Chanteperdrix'; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 1256 bytes --]
Now i use more recent xenomai and kernel versions :
- xenomai 2.6.0 2011-11-05 ( latest )
- kernel 2.6.39 ( latest in 2.6 serie )
With the same patch :
- adeos-ipipe-2.6.23-x86_64-1.4-03.patch
I launch the command
scripts/prepare-kernel.sh --linux=/usr/src/linux-2.6.39 --adeos=/usr/src/xenomai-2.6.0/ksrc/arch/x86/patches/adeos-ipipe-2.6.23-x86_64-1.4-03.patch --arch=x86_64
And get
Unable to patch kernel 2.6.39 with adeos-ipipe-2.6.23-x86_64-1.4-03.patch
with many Hunk #xx FAILED at xx
Gregory
-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org
Envoyé : mardi 27 décembre 2011 17:59
À : Gregory Gosse
Cc : xenomai@xenomai.org
Objet : Re: [Xenomai-help] problem following 'xenomai quick build guide'
On 12/27/2011 05:56 PM, Gregory Gosse wrote:
> What can I do to go further ?
There is no point in starting with such outdated versions. Please download the latest stable release of Xenomai (xenomai 2.6.0), and if the quick build guide does not work, follow the not quick build guide called "README.INSTALL" which ships with the sources.
--
Gilles.
[-- Attachment #2: Type: text/html, Size: 4593 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [Xenomai-help] problem following 'xenomai quick build guide'
2011-12-28 9:17 ` Gregory Gosse
@ 2011-12-28 9:30 ` Philippe Gerum
2011-12-28 9:47 ` Gregory Gosse
2011-12-28 11:44 ` Gregory Gosse
0 siblings, 2 replies; 18+ messages in thread
From: Philippe Gerum @ 2011-12-28 9:30 UTC (permalink / raw)
To: Gregory Gosse; +Cc: xenomai-help
On 12/28/2011 10:17 AM, Gregory Gosse wrote:
> Now i use more recent xenomai and kernel versions :
>
> - xenomai 2.6.0 2011-11-05 ( latest )
>
> - kernel 2.6.39 ( latest in 2.6 serie )
>
> With the same patch :
>
> - adeos-ipipe-2.6.23-x86_64-1.4-03.patch
>
> I launch the command
>
> scripts/prepare-kernel.sh --linux=/usr/src/linux-2.6.39
> --adeos=/usr/src/xenomai-2.6.0/ksrc/arch/x86/patches/adeos-ipipe-2.6.23-x86_64-1.4-03.patch
> --arch=x86_64
- there is no support for 2.6.39/x86. Looking at ksrc/arch/x86/patches
tells you so. Latest kernel release currently supported on this arch is
2.6.38.8.
--arch=x86, not x86_64 which is for legacy patches when 32 and 64bit
linux trees were not merged yet.
You need to unpack a vanilla linux 2.6.38.8 kernel tree, then
$ cd <linux-tree>
$ <xenomai-2.6.0>/scripts/prepare-kernel.sh --arch=x86
Nothing more.
>
> And get
>
> Unable to patch kernel 2.6.39 with adeos-ipipe-2.6.23-x86_64-1.4-03.patch
>
> with many Hunk #xx FAILED at xx
>
> Gregory
>
> -----Message d'origine-----
> De : Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org]
> Envoyé : mardi 27 décembre 2011 17:59
> À : Gregory Gosse
> Cc : xenomai@xenomai.org
> Objet : Re: [Xenomai-help] problem following 'xenomai quick build guide'
>
> On 12/27/2011 05:56 PM, Gregory Gosse wrote:
>
> > What can I do to go further ?
>
> There is no point in starting with such outdated versions. Please
> download the latest stable release of Xenomai (xenomai 2.6.0), and if
> the quick build guide does not work, follow the not quick build guide
> called "README.INSTALL" which ships with the sources.
>
> --
>
> Gilles.
>
>
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
--
Philippe.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [Xenomai-help] problem following 'xenomai quick build guide'
2011-12-28 9:30 ` Philippe Gerum
@ 2011-12-28 9:47 ` Gregory Gosse
2011-12-28 11:44 ` Gregory Gosse
1 sibling, 0 replies; 18+ messages in thread
From: Gregory Gosse @ 2011-12-28 9:47 UTC (permalink / raw)
To: 'Philippe Gerum'; +Cc: 'xenomai-help'
Thanks , i try this at once
-----Message d'origine-----
De : Philippe Gerum [mailto:rpm@xenomai.org
Envoyé : mercredi 28 décembre 2011 10:31
À : Gregory Gosse
Cc : xenomai-help; Gilles Chanteperdrix
Objet : Re: [Xenomai-help] problem following 'xenomai quick build guide'
On 12/28/2011 10:17 AM, Gregory Gosse wrote:
> Now i use more recent xenomai and kernel versions :
>
> - xenomai 2.6.0 2011-11-05 ( latest )
>
> - kernel 2.6.39 ( latest in 2.6 serie )
>
> With the same patch :
>
> - adeos-ipipe-2.6.23-x86_64-1.4-03.patch
>
> I launch the command
>
> scripts/prepare-kernel.sh --linux=/usr/src/linux-2.6.39
> --adeos=/usr/src/xenomai-2.6.0/ksrc/arch/x86/patches/adeos-ipipe-2.6.2
> 3-x86_64-1.4-03.patch
> --arch=x86_64
- there is no support for 2.6.39/x86. Looking at ksrc/arch/x86/patches tells you so. Latest kernel release currently supported on this arch is 2.6.38.8.
--arch=x86, not x86_64 which is for legacy patches when 32 and 64bit linux trees were not merged yet.
You need to unpack a vanilla linux 2.6.38.8 kernel tree, then
$ cd <linux-tree>
$ <xenomai-2.6.0>/scripts/prepare-kernel.sh --arch=x86
Nothing more.
>
> And get
>
> Unable to patch kernel 2.6.39 with
> adeos-ipipe-2.6.23-x86_64-1.4-03.patch
>
> with many Hunk #xx FAILED at xx
>
> Gregory
>
> -----Message d'origine-----
> De : Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org]
> Envoyé : mardi 27 décembre 2011 17:59
> À : Gregory Gosse
> Cc : xenomai@xenomai.org
> Objet : Re: [Xenomai-help] problem following 'xenomai quick build guide'
>
> On 12/27/2011 05:56 PM, Gregory Gosse wrote:
>
> > What can I do to go further ?
>
> There is no point in starting with such outdated versions. Please
> download the latest stable release of Xenomai (xenomai 2.6.0), and if
> the quick build guide does not work, follow the not quick build guide
> called "README.INSTALL" which ships with the sources.
>
> --
>
> Gilles.
>
>
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
--
Philippe.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [Xenomai-help] problem following 'xenomai quick build guide'
2011-12-28 9:30 ` Philippe Gerum
2011-12-28 9:47 ` Gregory Gosse
@ 2011-12-28 11:44 ` Gregory Gosse
2011-12-28 11:58 ` Gilles Chanteperdrix
1 sibling, 1 reply; 18+ messages in thread
From: Gregory Gosse @ 2011-12-28 11:44 UTC (permalink / raw)
To: 'Philippe Gerum'; +Cc: 'xenomai-help'
[-- Attachment #1: Type: text/plain, Size: 4011 bytes --]
Now I use:
- xenomai 2.6.0 2011-11-05
- kernel 2.6.38.8
- patch adeos-ipipe-2.6.38.8-x86-2.10-01.patch
The following command works well:
scripts/prepare-kernel.sh --linux=/usr/src/linux-2.6.38.8 --adeos=/usr/src/xenomai-2.6.0/ksrc/arch/x86/patches/adeos-ipipe-2.6.38.8-x86-2.10-01.patch --arch=x86
Then I enter the configuration menu with
Make menuconfig
I apply the changes suggested in 'hard real time linux using xenomai on intel Multi-Core processors'
Save and exit
When I try to compile the kernel with 'Make' , the compilation finishes on:
CC kernel/xenomai/nucleus/pod.o
In file included from /usr/src/linux-2.6.38.8/arch/x86/include/asm/xenomai/switch.h:2:0,
from /usr/src/linux-2.6.38.8/arch/x86/include/asm/xenomai/bits/pod_32.h:27,
from /usr/src/linux-2.6.38.8/arch/x86/include/asm/xenomai/bits/pod.h:2,
from kernel/xenomai/nucleus/pod.c:47:
/usr/src/linux-2.6.38.8/arch/x86/include/asm/xenomai/switch_32.h:30:2: attention : #warning "Buffer overflow detection not supported in 32bit mode" [-Wcpp]
/usr/src/linux-2.6.38.8/arch/x86/include/asm/xenomai/switch_32.h:31:2: erreur: #error "Disable CONFIG_CC_STACKPROTECTOR in your kernel configuration"
make[3]: *** [kernel/xenomai/nucleus/pod.o] Erreur 1
make[2]: *** [kernel/xenomai/nucleus] Erreur 2
make[1]: *** [kernel/xenomai] Erreur 2
make: *** [kernel] Erreur 2
Gregory
-----Message d'origine-----
De : Philippe Gerum [mailto:rpm@xenomai.org
Envoyé : mercredi 28 décembre 2011 10:31
À : Gregory Gosse
Cc : xenomai-help; Gilles Chanteperdrix
Objet : Re: [Xenomai-help] problem following 'xenomai quick build guide'
On 12/28/2011 10:17 AM, Gregory Gosse wrote:
> Now i use more recent xenomai and kernel versions :
>
> - xenomai 2.6.0 2011-11-05 ( latest )
>
> - kernel 2.6.39 ( latest in 2.6 serie )
>
> With the same patch :
>
> - adeos-ipipe-2.6.23-x86_64-1.4-03.patch
>
> I launch the command
>
> scripts/prepare-kernel.sh --linux=/usr/src/linux-2.6.39
> --adeos=/usr/src/xenomai-2.6.0/ksrc/arch/x86/patches/adeos-ipipe-2.6.2
> 3-x86_64-1.4-03.patch
> --arch=x86_64
- there is no support for 2.6.39/x86. Looking at ksrc/arch/x86/patches tells you so. Latest kernel release currently supported on this arch is 2.6.38.8.
--arch=x86, not x86_64 which is for legacy patches when 32 and 64bit linux trees were not merged yet.
You need to unpack a vanilla linux 2.6.38.8 kernel tree, then
$ cd <linux-tree>
$ <xenomai-2.6.0>/scripts/prepare-kernel.sh --arch=x86
Nothing more.
>
> And get
>
> Unable to patch kernel 2.6.39 with
> adeos-ipipe-2.6.23-x86_64-1.4-03.patch
>
> with many Hunk #xx FAILED at xx
>
> Gregory
>
> -----Message d'origine-----
> De : Gilles Chanteperdrix <mailto:[mailto:gilles.chanteperdrix@xenomai.org]> [mailto:gilles.chanteperdrix@xenomai.org]
> Envoyé : mardi 27 décembre 2011 17:59
> À : Gregory Gosse
> Cc : <mailto:xenomai@xenomai.org> xenomai@xenomai.org
> Objet : Re: [Xenomai-help] problem following 'xenomai quick build guide'
>
> On 12/27/2011 05:56 PM, Gregory Gosse wrote:
>
> > What can I do to go further ?
>
> There is no point in starting with such outdated versions. Please
> download the latest stable release of Xenomai (xenomai 2.6.0), and if
> the quick build guide does not work, follow the not quick build guide
> called "README.INSTALL" which ships with the sources.
>
> --
>
> Gilles.
>
>
>
> _______________________________________________
> Xenomai-help mailing list
> <mailto:Xenomai-help@domain.hid> Xenomai-help@domain.hid
> <https://mail.gna.org/listinfo/xenomai-help> https://mail.gna.org/listinfo/xenomai-help
--
Philippe.
[-- Attachment #2: Type: text/html, Size: 10668 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [Xenomai-help] problem following 'xenomai quick build guide'
2011-12-28 11:44 ` Gregory Gosse
@ 2011-12-28 11:58 ` Gilles Chanteperdrix
2011-12-28 12:28 ` Gregory Gosse
0 siblings, 1 reply; 18+ messages in thread
From: Gilles Chanteperdrix @ 2011-12-28 11:58 UTC (permalink / raw)
To: Gregory Gosse; +Cc: 'xenomai-help'
On 12/28/2011 12:44 PM, Gregory Gosse wrote:
> Now I use:
>
> - xenomai 2.6.0 2011-11-05
>
> - kernel 2.6.38.8
>
> - patch adeos-ipipe-2.6.38.8-x86-2.10-01.patch
>
>
>
> The following command works well:
>
> scripts/prepare-kernel.sh --linux=/usr/src/linux-2.6.38.8 --adeos=/usr/src/xenomai-2.6.0/ksrc/arch/x86/patches/adeos-ipipe-2.6.38.8-x86-2.10-01.patch --arch=x86
>
> Then I enter the configuration menu with
>
> Make menuconfig
>
>
>
> I apply the changes suggested in 'hard real time linux using xenomai on intel Multi-Core processors'
>
> Save and exit
>
>
>
> When I try to compile the kernel with 'Make' , the compilation finishes on:
>
> CC kernel/xenomai/nucleus/pod.o
> In file included from /usr/src/linux-2.6.38.8/arch/x86/include/asm/xenomai/switch.h:2:0,
> from /usr/src/linux-2.6.38.8/arch/x86/include/asm/xenomai/bits/pod_32.h:27,
> from /usr/src/linux-2.6.38.8/arch/x86/include/asm/xenomai/bits/pod.h:2,
> from kernel/xenomai/nucleus/pod.c:47:
> /usr/src/linux-2.6.38.8/arch/x86/include/asm/xenomai/switch_32.h:30:2: attention : #warning "Buffer overflow detection not supported in 32bit mode" [-Wcpp]
> /usr/src/linux-2.6.38.8/arch/x86/include/asm/xenomai/switch_32.h:31:2: erreur: #error "Disable CONFIG_CC_STACKPROTECTOR in your kernel configuration"
> make[3]: *** [kernel/xenomai/nucleus/pod.o] Erreur 1
> make[2]: *** [kernel/xenomai/nucleus] Erreur 2
> make[1]: *** [kernel/xenomai] Erreur 2
> make: *** [kernel] Erreur 2
Then do as the message says, disable "CONFIG_CC_STACKPROTECTOR" in the
kernel configuration. But are you sure you want to compile a 32 bits
kernel, not a 64 bits one?
--
Gilles.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [Xenomai-help] problem following 'xenomai quick build guide'
2011-12-28 11:58 ` Gilles Chanteperdrix
@ 2011-12-28 12:28 ` Gregory Gosse
2011-12-28 12:36 ` Gilles Chanteperdrix
0 siblings, 1 reply; 18+ messages in thread
From: Gregory Gosse @ 2011-12-28 12:28 UTC (permalink / raw)
To: 'Gilles Chanteperdrix'; +Cc: 'xenomai-help'
For the moment I use an Intel Core I5 as host and target .
Since I think I have to compile a 64bits kernel .
Do you know where is located CONFIG_CC_STACKPROTECTOR in the configuration menu ?
Gregory
-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org
Envoyé : mercredi 28 décembre 2011 12:58
À : Gregory Gosse
Cc : 'Philippe Gerum'; 'xenomai-help'
Objet : Re: [Xenomai-help] problem following 'xenomai quick build guide'
On 12/28/2011 12:44 PM, Gregory Gosse wrote:
> Now I use:
>
> - xenomai 2.6.0 2011-11-05
>
> - kernel 2.6.38.8
>
> - patch adeos-ipipe-2.6.38.8-x86-2.10-01.patch
>
>
>
> The following command works well:
>
> scripts/prepare-kernel.sh --linux=/usr/src/linux-2.6.38.8
> --adeos=/usr/src/xenomai-2.6.0/ksrc/arch/x86/patches/adeos-ipipe-2.6.3
> 8.8-x86-2.10-01.patch --arch=x86
>
> Then I enter the configuration menu with
>
> Make menuconfig
>
>
>
> I apply the changes suggested in 'hard real time linux using xenomai on intel Multi-Core processors'
>
> Save and exit
>
>
>
> When I try to compile the kernel with 'Make' , the compilation finishes on:
>
> CC kernel/xenomai/nucleus/pod.o
> In file included from /usr/src/linux-2.6.38.8/arch/x86/include/asm/xenomai/switch.h:2:0,
> from /usr/src/linux-2.6.38.8/arch/x86/include/asm/xenomai/bits/pod_32.h:27,
> from /usr/src/linux-2.6.38.8/arch/x86/include/asm/xenomai/bits/pod.h:2,
> from kernel/xenomai/nucleus/pod.c:47:
> /usr/src/linux-2.6.38.8/arch/x86/include/asm/xenomai/switch_32.h:30:2:
> attention : #warning "Buffer overflow detection not supported in 32bit
> mode" [-Wcpp]
> /usr/src/linux-2.6.38.8/arch/x86/include/asm/xenomai/switch_32.h:31:2: erreur: #error "Disable CONFIG_CC_STACKPROTECTOR in your kernel configuration"
> make[3]: *** [kernel/xenomai/nucleus/pod.o] Erreur 1
> make[2]: *** [kernel/xenomai/nucleus] Erreur 2
> make[1]: *** [kernel/xenomai] Erreur 2
> make: *** [kernel] Erreur 2
Then do as the message says, disable "CONFIG_CC_STACKPROTECTOR" in the kernel configuration. But are you sure you want to compile a 32 bits kernel, not a 64 bits one?
--
Gilles.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [Xenomai-help] problem following 'xenomai quick build guide'
2011-12-28 12:28 ` Gregory Gosse
@ 2011-12-28 12:36 ` Gilles Chanteperdrix
2011-12-28 16:50 ` Gregory Gosse
2011-12-28 17:03 ` [Xenomai-help] TR: " Gregory Gosse
0 siblings, 2 replies; 18+ messages in thread
From: Gilles Chanteperdrix @ 2011-12-28 12:36 UTC (permalink / raw)
To: Gregory Gosse; +Cc: 'xenomai-help'
On 12/28/2011 01:28 PM, Gregory Gosse wrote:
> For the moment I use an Intel Core I5 as host and target .
>
> Since I think I have to compile a 64bits kernel .
For x86_64 processors, you have the choice to compile a 32 bits or 64
bits kernels. If you have a 64 bits filesystem, you must compile a 64
bits kernel. If you have a 32 bits filesystem and want to compile a 64
bits kernel, you have to enable the 32 bits compatibility option.
>
> Do you know where is located CONFIG_CC_STACKPROTECTOR in the configuration menu ?
Use ctrl-F to search if using "make xconfig" or "/" if using "make
menuconfig".
--
Gilles.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [Xenomai-help] problem following 'xenomai quick build guide'
2011-12-28 12:36 ` Gilles Chanteperdrix
@ 2011-12-28 16:50 ` Gregory Gosse
2011-12-28 17:03 ` Gilles Chanteperdrix
2011-12-28 17:03 ` [Xenomai-help] TR: " Gregory Gosse
1 sibling, 1 reply; 18+ messages in thread
From: Gregory Gosse @ 2011-12-28 16:50 UTC (permalink / raw)
To: 'Gilles Chanteperdrix'; +Cc: Christophe, 'xenomai-help'
[-- Attachment #1: Type: text/plain, Size: 4524 bytes --]
Thanks Gilles,
Well with “/” I found CONFIG_CC_STACKPROTECTOR that is in :
Processor type and features > Enable -fstack-protector buffer overflow detection (EXPERIMENTAL)
I have disabled it
Then switching between different tutorials , I tried the following commands :
> make
ok ( take a moment )
>make modules
>make modules_install
>make install
>make bzImage
Here I get:
Root device is (7, 0)
Setup is 16220 bytes (padded to 16384 bytes).
System is 4238 kB
CRC 702aeac7
Kernel: arch/x86/boot/bzImage is ready (#2)
>addgroup xenomai
>usermod -a -G xenomai gg
>usermod -a -G xenomai root
Then I reboot . Choose 'Older Linux Versions > 2.6.38.8 '
> cd /usr/src/xenomai-2.6.0
> ./configure
> make
> make install
> cp /etc/ld.so.conf /etc/ld.so.conf.d/xenomai.conf
Add the following lines in /etc/ld.so.conf.d/xenomai.conf :
# xenomai libs
/usr/local/lib
> set PATH=/usr/xenomai/bin:/usr/xenomai/lib:/usr/xenomai/include:$PATH
> ldconfig
Then tried
>cd /usr/src/xenomai-2.6.0/examples/native
>make
That Failed :
--xeno-cflags is deprecated, use --skin=name --cflags instead
--xeno-ldflags is deprecated, use --skin=name --ldflags instead
gcc -I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -Wall -Werror-implicit-function-declaration -pipe -D__XENO__ -L/usr/xenomai/lib -lxenomai -lpthread -lrt -lnative -Xlinker -rpath -Xlinker /usr/xenomai/lib trivial-periodic.c -o trivial-periodic
trivial-periodic.c: In function ‘main’:
trivial-periodic.c:72:1: attention : contrôle a atteint la fin non void de la fonction [-Wreturn-type]
/tmp/ccqQeLZj.o: In function `demo':
trivial-periodic.c:(.text+0x2f): undefined reference to `rt_task_set_periodic'
trivial-periodic.c:(.text+0x34): undefined reference to `rt_timer_read'
trivial-periodic.c:(.text+0x46): undefined reference to `rt_task_wait_period'
trivial-periodic.c:(.text+0x4b): undefined reference to `rt_timer_read'
/tmp/ccqQeLZj.o: In function `main':
trivial-periodic.c:(.text+0x133): undefined reference to `rt_task_create'
trivial-periodic.c:(.text+0x14f): undefined reference to `rt_task_start'
trivial-periodic.c:(.text+0x160): undefined reference to `rt_task_delete'
collect2: ld a retourné 1 code d'état d'exécution
make: *** [trivial-periodic] Erreur 1
And
>cd /usr/xenomai/bin
>apt-get install rt-tests
>cyclictest -t 10 -p 80 -n -i 5000 -l 500
That gives:
T: 0 (17824) P:80 I:5000 C: 5000 Min: 2578 Act: 3600 Avg: 4097 Max: 5625
T: 1 (17825) P:79 I:5500 C: 4547 Min: 2085 Act: 3602 Avg: 3856 Max: 5631
T: 2 (17826) P:78 I:6000 C: 4168 Min: 2587 Act: 4612 Avg: 3614 Max: 4666
T: 3 (17827) P:77 I:6500 C: 3847 Min: 2091 Act: 3618 Avg: 3871 Max: 5686
T: 4 (17828) P:76 I:7000 C: 3573 Min: 2595 Act: 2624 Avg: 4127 Max: 5691
T: 5 (17829) P:75 I:7500 C: 3334 Min: 2101 Act: 5136 Avg: 3885 Max: 5700
T: 6 (17830) P:74 I:8000 C: 3126 Min: 2616 Act: 2658 Avg: 2653 Max: 2732
T: 7 (17831) P:73 I:8500 C: 2942 Min: 2112 Act: 4158 Avg: 3901 Max: 5704
T: 8 (17832) P:72 I:9000 C: 2779 Min: 2618 Act: 4640 Avg: 4151 Max: 5708
T: 9 (17833) P:71 I:9500 C: 2633 Min: 2113 Act: 2642 Avg: 3899 Max: 5712
( it goes without saying that I don’t know what I’ve done until there )
Gregory
-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org
Envoyé : mercredi 28 décembre 2011 13:37
À : Gregory Gosse
Cc : 'Philippe Gerum'; 'xenomai-help'
Objet : Re: [Xenomai-help] problem following 'xenomai quick build guide'
On 12/28/2011 01:28 PM, Gregory Gosse wrote:
> For the moment I use an Intel Core I5 as host and target .
>
> Since I think I have to compile a 64bits kernel .
For x86_64 processors, you have the choice to compile a 32 bits or 64 bits kernels. If you have a 64 bits filesystem, you must compile a 64 bits kernel. If you have a 32 bits filesystem and want to compile a 64 bits kernel, you have to enable the 32 bits compatibility option.
>
> Do you know where is located CONFIG_CC_STACKPROTECTOR in the configuration menu ?
Use ctrl-F to search if using "make xconfig" or "/" if using "make menuconfig".
--
Gilles.
[-- Attachment #2: Type: text/html, Size: 21481 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [Xenomai-help] problem following 'xenomai quick build guide'
2011-12-28 16:50 ` Gregory Gosse
@ 2011-12-28 17:03 ` Gilles Chanteperdrix
2011-12-29 14:04 ` Gregory Gosse
0 siblings, 1 reply; 18+ messages in thread
From: Gilles Chanteperdrix @ 2011-12-28 17:03 UTC (permalink / raw)
To: Gregory Gosse; +Cc: Christophe, 'xenomai-help'
On 12/28/2011 05:50 PM, Gregory Gosse wrote:
>> cd /usr/src/xenomai-2.6.0/examples/native
>
>> make
Examples are broken in 2.6.0, will be fixed in 2.6.1.
> And
>
>> cd /usr/xenomai/bin
>
>> apt-get install rt-tests
rt-tests are testing real-time capabilities of the linux kernel, not of
xenomai.
If you are interested in a test which measures latency, run the
"latency" test.
The intel paper you cited contains a list of the tests xenomai contains.
--
Gilles.
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Xenomai-help] TR: problem following 'xenomai quick build guide'
2011-12-28 12:36 ` Gilles Chanteperdrix
2011-12-28 16:50 ` Gregory Gosse
@ 2011-12-28 17:03 ` Gregory Gosse
1 sibling, 0 replies; 18+ messages in thread
From: Gregory Gosse @ 2011-12-28 17:03 UTC (permalink / raw)
To: gilles.chanteperdrix; +Cc: Christophe, 'xenomai-help'
[-- Attachment #1: Type: text/plain, Size: 4899 bytes --]
ERRATUM :
It’s > cyclictest -t 10 -p 80 -n -i 5000 -l 5000
That gave the results bellow
De : Gregory Gosse [mailto:gregory.gosse@domain.hid
Envoyé : mercredi 28 décembre 2011 17:51
À : 'Gilles Chanteperdrix'
Cc : 'Philippe Gerum'; 'xenomai-help'; 'Christophe@domain.hid'
Objet : RE: [Xenomai-help] problem following 'xenomai quick build guide'
Thanks Gilles,
Well with “/” I found CONFIG_CC_STACKPROTECTOR that is in :
Processor type and features > Enable -fstack-protector buffer overflow detection (EXPERIMENTAL)
I have disabled it
Then switching between different tutorials , I tried the following commands :
> make
ok ( take a moment )
>make modules
>make modules_install
>make install
>make bzImage
Here I get:
Root device is (7, 0)
Setup is 16220 bytes (padded to 16384 bytes).
System is 4238 kB
CRC 702aeac7
Kernel: arch/x86/boot/bzImage is ready (#2)
>addgroup xenomai
>usermod -a -G xenomai gg
>usermod -a -G xenomai root
Then I reboot . Choose 'Older Linux Versions > 2.6.38.8 '
> cd /usr/src/xenomai-2.6.0
> ./configure
> make
> make install
> cp /etc/ld.so.conf /etc/ld.so.conf.d/xenomai.conf
Add the following lines in /etc/ld.so.conf.d/xenomai.conf :
# xenomai libs
/usr/local/lib
> set PATH=/usr/xenomai/bin:/usr/xenomai/lib:/usr/xenomai/include:$PATH
> ldconfig
Then tried
>cd /usr/src/xenomai-2.6.0/examples/native
>make
That Failed :
--xeno-cflags is deprecated, use --skin=name --cflags instead
--xeno-ldflags is deprecated, use --skin=name --ldflags instead
gcc -I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -Wall -Werror-implicit-function-declaration -pipe -D__XENO__ -L/usr/xenomai/lib -lxenomai -lpthread -lrt -lnative -Xlinker -rpath -Xlinker /usr/xenomai/lib trivial-periodic.c -o trivial-periodic
trivial-periodic.c: In function ‘main’:
trivial-periodic.c:72:1: attention : contrôle a atteint la fin non void de la fonction [-Wreturn-type]
/tmp/ccqQeLZj.o: In function `demo':
trivial-periodic.c:(.text+0x2f): undefined reference to `rt_task_set_periodic'
trivial-periodic.c:(.text+0x34): undefined reference to `rt_timer_read'
trivial-periodic.c:(.text+0x46): undefined reference to `rt_task_wait_period'
trivial-periodic.c:(.text+0x4b): undefined reference to `rt_timer_read'
/tmp/ccqQeLZj.o: In function `main':
trivial-periodic.c:(.text+0x133): undefined reference to `rt_task_create'
trivial-periodic.c:(.text+0x14f): undefined reference to `rt_task_start'
trivial-periodic.c:(.text+0x160): undefined reference to `rt_task_delete'
collect2: ld a retourné 1 code d'état d'exécution
make: *** [trivial-periodic] Erreur 1
And
>cd /usr/xenomai/bin
>apt-get install rt-tests
>cyclictest -t 10 -p 80 -n -i 5000 -l 500
That gives:
T: 0 (17824) P:80 I:5000 C: 5000 Min: 2578 Act: 3600 Avg: 4097 Max: 5625
T: 1 (17825) P:79 I:5500 C: 4547 Min: 2085 Act: 3602 Avg: 3856 Max: 5631
T: 2 (17826) P:78 I:6000 C: 4168 Min: 2587 Act: 4612 Avg: 3614 Max: 4666
T: 3 (17827) P:77 I:6500 C: 3847 Min: 2091 Act: 3618 Avg: 3871 Max: 5686
T: 4 (17828) P:76 I:7000 C: 3573 Min: 2595 Act: 2624 Avg: 4127 Max: 5691
T: 5 (17829) P:75 I:7500 C: 3334 Min: 2101 Act: 5136 Avg: 3885 Max: 5700
T: 6 (17830) P:74 I:8000 C: 3126 Min: 2616 Act: 2658 Avg: 2653 Max: 2732
T: 7 (17831) P:73 I:8500 C: 2942 Min: 2112 Act: 4158 Avg: 3901 Max: 5704
T: 8 (17832) P:72 I:9000 C: 2779 Min: 2618 Act: 4640 Avg: 4151 Max: 5708
T: 9 (17833) P:71 I:9500 C: 2633 Min: 2113 Act: 2642 Avg: 3899 Max: 5712
( it goes without saying that I don’t know what I’ve done until there )
Gregory
-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org
Envoyé : mercredi 28 décembre 2011 13:37
À : Gregory Gosse
Cc : 'Philippe Gerum'; 'xenomai-help'
Objet : Re: [Xenomai-help] problem following 'xenomai quick build guide'
On 12/28/2011 01:28 PM, Gregory Gosse wrote:
> For the moment I use an Intel Core I5 as host and target .
>
> Since I think I have to compile a 64bits kernel .
For x86_64 processors, you have the choice to compile a 32 bits or 64 bits kernels. If you have a 64 bits filesystem, you must compile a 64 bits kernel. If you have a 32 bits filesystem and want to compile a 64 bits kernel, you have to enable the 32 bits compatibility option.
>
> Do you know where is located CONFIG_CC_STACKPROTECTOR in the configuration menu ?
Use ctrl-F to search if using "make xconfig" or "/" if using "make menuconfig".
--
Gilles.
[-- Attachment #2: Type: text/html, Size: 15815 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [Xenomai-help] problem following 'xenomai quick build guide'
2011-12-28 17:03 ` Gilles Chanteperdrix
@ 2011-12-29 14:04 ` Gregory Gosse
2011-12-29 14:12 ` Gilles Chanteperdrix
0 siblings, 1 reply; 18+ messages in thread
From: Gregory Gosse @ 2011-12-29 14:04 UTC (permalink / raw)
To: 'Gilles Chanteperdrix'; +Cc: 'xenomai-help'
Hi,
> Examples are broken in 2.6.0, will be fixed in 2.6.1.
Is there just a way to avoid these 'undefined reference' errors ?
Thanks , Gregory
-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org
Envoyé : mercredi 28 décembre 2011 18:03
À : Gregory Gosse
Cc : 'Philippe Gerum'; 'xenomai-help'; Christophe@domain.hid
Objet : Re: [Xenomai-help] problem following 'xenomai quick build guide'
On 12/28/2011 05:50 PM, Gregory Gosse wrote:
>> cd /usr/src/xenomai-2.6.0/examples/native
>
>> make
Examples are broken in 2.6.0, will be fixed in 2.6.1.
> And
>
>> cd /usr/xenomai/bin
>
>> apt-get install rt-tests
rt-tests are testing real-time capabilities of the linux kernel, not of xenomai.
If you are interested in a test which measures latency, run the "latency" test.
The intel paper you cited contains a list of the tests xenomai contains.
--
Gilles.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [Xenomai-help] problem following 'xenomai quick build guide'
2011-12-29 14:04 ` Gregory Gosse
@ 2011-12-29 14:12 ` Gilles Chanteperdrix
2011-12-29 14:45 ` Gregory Gosse
0 siblings, 1 reply; 18+ messages in thread
From: Gilles Chanteperdrix @ 2011-12-29 14:12 UTC (permalink / raw)
To: Gregory Gosse; +Cc: 'xenomai-help'
On 12/29/2011 03:04 PM, Gregory Gosse wrote:
> Hi,
>
>> Examples are broken in 2.6.0, will be fixed in 2.6.1.
>
> Is there just a way to avoid these 'undefined reference' errors ?
Before trying the examples, have you tried latency, switchtest,
switchbench, etc... or xeno-test?
--
Gilles.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [Xenomai-help] problem following 'xenomai quick build guide'
2011-12-29 14:12 ` Gilles Chanteperdrix
@ 2011-12-29 14:45 ` Gregory Gosse
2011-12-29 14:52 ` Gilles Chanteperdrix
0 siblings, 1 reply; 18+ messages in thread
From: Gregory Gosse @ 2011-12-29 14:45 UTC (permalink / raw)
To: 'Gilles Chanteperdrix'; +Cc: 'xenomai-help'
No . What i wanted to do , starting from the examples, is write rapidly a simple program that perform periodically a task like writing on the serial port . And verify physically what happens.
Gregory
-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org
Envoyé : jeudi 29 décembre 2011 15:12
À : Gregory Gosse
Cc : 'Philippe Gerum'; 'xenomai-help'
Objet : Re: [Xenomai-help] problem following 'xenomai quick build guide'
On 12/29/2011 03:04 PM, Gregory Gosse wrote:
> Hi,
>
>> Examples are broken in 2.6.0, will be fixed in 2.6.1.
>
> Is there just a way to avoid these 'undefined reference' errors ?
Before trying the examples, have you tried latency, switchtest, switchbench, etc... or xeno-test?
--
Gilles.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [Xenomai-help] problem following 'xenomai quick build guide'
2011-12-29 14:45 ` Gregory Gosse
@ 2011-12-29 14:52 ` Gilles Chanteperdrix
2011-12-29 15:13 ` Gregory Gosse
0 siblings, 1 reply; 18+ messages in thread
From: Gilles Chanteperdrix @ 2011-12-29 14:52 UTC (permalink / raw)
To: Gregory Gosse; +Cc: 'xenomai-help'
On 12/29/2011 03:45 PM, Gregory Gosse wrote:
> No . What i wanted to do , starting from the examples, is write
> rapidly a simple program that perform periodically a task like
> writing on the serial port . And verify physically what happens.
Running the latency test under load an hour or two is recommended, to
check if your platform has no issues.
Other than that, in order to compile the examples, you should read
this page:
http://www.xenomai.org/index.php/Examples
The following patch fixes some compilation issues, but even without
this patch some of the examples do compile. The "unresolved references"
you get are probably due to some missing arguments on make command line.
http://git.xenomai.org/?p=xenomai-2.6.git;a=commitdiff_plain;h=87ac1c1f32181b5bcf4961aea30b9df34ba8a7ce;hp=472c85b997a5ab72355dd831af3a61183d371a83
--
Gilles.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [Xenomai-help] problem following 'xenomai quick build guide'
2011-12-29 14:52 ` Gilles Chanteperdrix
@ 2011-12-29 15:13 ` Gregory Gosse
0 siblings, 0 replies; 18+ messages in thread
From: Gregory Gosse @ 2011-12-29 15:13 UTC (permalink / raw)
To: 'Gilles Chanteperdrix'; +Cc: 'xenomai-help'
Ok I try that . Thanks
-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org
Envoyé : jeudi 29 décembre 2011 15:53
À : Gregory Gosse
Cc : 'Philippe Gerum'; 'xenomai-help'
Objet : Re: [Xenomai-help] problem following 'xenomai quick build guide'
On 12/29/2011 03:45 PM, Gregory Gosse wrote:
> No . What i wanted to do , starting from the examples, is write
> rapidly a simple program that perform periodically a task like writing
> on the serial port . And verify physically what happens.
Running the latency test under load an hour or two is recommended, to check if your platform has no issues.
Other than that, in order to compile the examples, you should read this page:
http://www.xenomai.org/index.php/Examples
The following patch fixes some compilation issues, but even without this patch some of the examples do compile. The "unresolved references"
you get are probably due to some missing arguments on make command line.
http://git.xenomai.org/?p=xenomai-2.6.git;a=commitdiff_plain;h=87ac1c1f32181b5bcf4961aea30b9df34ba8a7ce;hp=472c85b997a5ab72355dd831af3a61183d371a83
--
Gilles.
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2011-12-29 15:13 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-27 16:56 [Xenomai-help] problem following 'xenomai quick build guide' Gregory Gosse
2011-12-27 16:58 ` Gilles Chanteperdrix
2011-12-27 17:15 ` Gregory Gosse
2011-12-28 9:17 ` Gregory Gosse
2011-12-28 9:30 ` Philippe Gerum
2011-12-28 9:47 ` Gregory Gosse
2011-12-28 11:44 ` Gregory Gosse
2011-12-28 11:58 ` Gilles Chanteperdrix
2011-12-28 12:28 ` Gregory Gosse
2011-12-28 12:36 ` Gilles Chanteperdrix
2011-12-28 16:50 ` Gregory Gosse
2011-12-28 17:03 ` Gilles Chanteperdrix
2011-12-29 14:04 ` Gregory Gosse
2011-12-29 14:12 ` Gilles Chanteperdrix
2011-12-29 14:45 ` Gregory Gosse
2011-12-29 14:52 ` Gilles Chanteperdrix
2011-12-29 15:13 ` Gregory Gosse
2011-12-28 17:03 ` [Xenomai-help] TR: " Gregory Gosse
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.