problem following 'xenomai quick build guide'
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
Quoted 5 lines
/usr/src/linux-2.6.25amd64
/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
Quoted 1 line · Gregory Gosse
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.
Signature · 1 line
Gilles.
OK ,i will try this .
Thanks for such a rapid help
Gregory
-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:[email protected] Envoyé : mardi 27 décembre 2011 17:59
À : Gregory Gosse
Cc : [email protected]
Objet : Re: [Xenomai-help] problem following 'xenomai quick build guide'
Quoted 1 line · Gregory Gosse
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.
Signature · 1 line
Gilles.
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:[email protected] Envoyé : mardi 27 décembre 2011 17:59
À : Gregory Gosse
Cc : [email protected]
Objet : Re: [Xenomai-help] problem following 'xenomai quick build guide'
Quoted 1 line · Gregory Gosse
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.
Signature · 1 line
Gilles.
Quoted 8 lines · Gregory Gosse
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 :
Quoted 7 lines
- 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.
Quoted 35 lines
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:[email protected]] Envoyé : mardi 27 décembre 2011 17:59
À : Gregory Gosse
Cc : [email protected]
Objet : Re: [Xenomai-help] problem following 'xenomai quick build guide'Quoted 1 line · Gregory Gosse
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
[email protected]
https://mail.gna.org/listinfo/xenomai-help
Signature · 1 line
Philippe.
Thanks , i try this at once
-----Message d'origine-----
De : Philippe Gerum [mailto:[email protected]
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'
Quoted 8 lines · Gregory Gosse
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 :
Quoted 8 lines
- 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.
Quoted 28 lines
And get
Unable to patch kernel 2.6.39 with
adeos-ipipe-2.6.23-x86_64-1.4-03.patchwith many Hunk #xx FAILED at xx
Gregory
-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:[email protected]] Envoyé : mardi 27 décembre 2011 17:59
À : Gregory Gosse
Cc : [email protected]
Objet : Re: [Xenomai-help] problem following 'xenomai quick build guide'Quoted 1 line · Gregory Gosse
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.
--
Quoted 8 lines
Gilles.
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help
--
Philippe.
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:[email protected]
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'
Quoted 24 lines · Gregory Gosse
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
Quoted 7 lines
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.
Quoted 64 lines
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:[email protected]]> [mailto:[email protected]]
Envoyé : mardi 27 décembre 2011 17:59
À : Gregory Gosse
Cc <mailto:[email protected]> [email protected]Objet : Re: [Xenomai-help] problem following 'xenomai quick build guide'
Quoted 1 line · Gregory Gosse
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.
Quoted 7 lines
_______________________________________________
Xenomai-help mailing list
<mailto:[email protected]> [email protected]
<https://mail.gna.org/listinfo/xenomai-help> https://mail.gna.org/listinfo/xenomai-help
--
Philippe.
Quoted 33 lines · Gregory Gosse
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=x86Then 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:
Quoted 6 lines
/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 "DisableCONFIG_CC_STACKPROTECTORin 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?
Signature · 1 line
Gilles.
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:[email protected] 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'
Quoted 35 lines · Gregory Gosse
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=x86Then 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:
Quoted 8 lines
/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 "DisableCONFIG_CC_STACKPROTECTORin 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?
Signature · 1 line
Gilles.
Quoted 3 lines · Gregory Gosse
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.
Quoted 2 lines
Do you know where is located
CONFIG_CC_STACKPROTECTORin the configuration menu ?
Use ctrl-F to search if using "make xconfig" or "/" if using "make menuconfig".
Signature · 1 line
Gilles.
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 :
Quoted 1 line
make
ok ( take a moment )
Quoted 7 lines
make modules
make
modules_installmake 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)
Quoted 5 lines
addgroup xenomai
usermod -a -G xenomai gg
usermod -a -G xenomai root
Then I reboot . Choose 'Older Linux Versions > 2.6.38.8 '
Quoted 9 lines
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
Quoted 3 lines
set PATH=/usr/xenomai/bin:/usr/xenomai/lib:/usr/xenomai/include:$PATH
ldconfig
Then tried
Quoted 3 lines
cd
/usr/src/xenomai-2.6.0/examples/nativemake
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
Quoted 5 lines
cd
/usr/xenomai/binapt-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:[email protected] 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'
Quoted 5 lines · Gregory Gosse
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.
Quoted 3 lines
Do you know where is located
CONFIG_CC_STACKPROTECTORin the configuration menu ?
Use ctrl-F to search if using "make xconfig" or "/" if using "make menuconfig".
Signature · 1 line
Gilles.
Quoted 3 lines · Gregory Gosse
Quoted 3 lines
cd
/usr/src/xenomai-2.6.0/examples/nativemake
Examples are broken in 2.6.0, will be fixed in 2.6.1.
Quoted 5 lines
And
Quoted 3 lines
cd
/usr/xenomai/binapt-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.
Signature · 1 line
Gilles.
Hi,
Quoted 1 line
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:[email protected] Envoyé : mercredi 28 décembre 2011 18:03
À : Gregory Gosse
Cc : 'Philippe Gerum'; 'xenomai-help'; [email protected] Objet : Re: [Xenomai-help] problem following 'xenomai quick build guide'
Quoted 3 lines · Gregory Gosse
Quoted 3 lines
cd
/usr/src/xenomai-2.6.0/examples/nativemake
Examples are broken in 2.6.0, will be fixed in 2.6.1.
Quoted 5 lines
And
Quoted 3 lines
cd
/usr/xenomai/binapt-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.
Signature · 1 line
Gilles.
Quoted 5 lines · Gregory Gosse
Hi,
Quoted 1 line
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?
Signature · 1 line
Gilles.
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:[email protected] 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'
Quoted 5 lines · Gregory Gosse
Hi,
Quoted 1 line
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?
Signature · 1 line
Gilles.
Quoted 3 lines · Gregory Gosse
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.
Signature · 1 line
Gilles.
Ok I try that . Thanks
-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:[email protected] 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'
Quoted 3 lines · Gregory Gosse
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.
Signature · 1 line
Gilles.
ERRATUM :
It’s > cyclictest -t 10 -p 80 -n -i 5000 -l 5000
That gave the results bellow
De : Gregory Gosse [mailto:[email protected]
Envoyé : mercredi 28 décembre 2011 17:51
À : 'Gilles Chanteperdrix'
Cc : 'Philippe Gerum'; 'xenomai-help'; '[email protected]' 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 :
Quoted 1 line
make
ok ( take a moment )
Quoted 7 lines
make modules
make
modules_installmake 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)
Quoted 5 lines
addgroup xenomai
usermod -a -G xenomai gg
usermod -a -G xenomai root
Then I reboot . Choose 'Older Linux Versions > 2.6.38.8 '
Quoted 9 lines
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
Quoted 3 lines
set PATH=/usr/xenomai/bin:/usr/xenomai/lib:/usr/xenomai/include:$PATH
ldconfig
Then tried
Quoted 3 lines
cd
/usr/src/xenomai-2.6.0/examples/nativemake
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
Quoted 5 lines
cd
/usr/xenomai/binapt-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:[email protected] 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'
Quoted 5 lines · Gregory Gosse
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.
Quoted 3 lines
Do you know where is located
CONFIG_CC_STACKPROTECTORin the configuration menu ?
Use ctrl-F to search if using "make xconfig" or "/" if using "make menuconfig".
Signature · 1 line
Gilles.