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 :

 

> 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:[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'

 

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.

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to