From: "Gregory Gosse" References: <000101ccc4b8$74856eb0$5d904c10$@soterem.fr> <4EF9F949.5000708@domain.hid> <000001ccc541$7fa8d960$7efa8c20$@soterem.fr> <4EFAE1BF.4090203@domain.hid> <000301ccc556$168472e0$438d58a0$@soterem.fr> <4EFB0456.9010409@domain.hid> <000d01ccc55c$3cc52d40$b64f87c0$@soterem.fr> <4EFB0D66.8060306@domain.hid> In-Reply-To: <4EFB0D66.8060306@domain.hid> Date: Wed, 28 Dec 2011 17:50:46 +0100 Message-ID: <000801ccc580$d9117ef0$8b347cd0$@soterem.fr> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0009_01CCC589.3ADEC090" Content-Language: fr Subject: Re: [Xenomai-help] problem following 'xenomai quick build guide' List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: 'Gilles Chanteperdrix' Cc: Christophe@domain.hid, 'xenomai-help' This is a multipart message in MIME format. ------=_NextPart_000_0009_01CCC589.3ADEC090 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Thanks Gilles, =20 Well with =E2=80=9C/=E2=80=9D I found CONFIG_CC_STACKPROTECTOR that is = in : Processor type and features > Enable -fstack-protector buffer overflow = detection (EXPERIMENTAL) =20 I have disabled it =20 Then switching between different tutorials , I tried the following = commands : =20 > make ok ( take a moment ) >make modules >make modules_install >make install >make bzImage =20 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) =20 >addgroup xenomai >usermod -a -G xenomai gg >usermod -a -G xenomai root =20 Then I reboot . Choose 'Older Linux Versions > 2.6.38.8 ' =20 > cd /usr/src/xenomai-2.6.0 > ./configure > make > make install > cp /etc/ld.so.conf /etc/ld.so.conf.d/xenomai.conf =20 Add the following lines in /etc/ld.so.conf.d/xenomai.conf : # xenomai libs /usr/local/lib =20 > set = PATH=3D/usr/xenomai/bin:/usr/xenomai/lib:/usr/xenomai/include:$PATH > ldconfig =20 Then tried=20 >cd /usr/src/xenomai-2.6.0/examples/native >make That Failed : --xeno-cflags is deprecated, use --skin=3Dname --cflags instead --xeno-ldflags is deprecated, use --skin=3Dname --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 =E2=80=98main=E2=80=99: trivial-periodic.c:72:1: attention : contr=C3=B4le 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=C3=A9 1 code d'=C3=A9tat d'ex=C3=A9cution make: *** [trivial-periodic] Erreur 1 =20 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 =20 ( it goes without saying that I don=E2=80=99t know what I=E2=80=99ve = done until there ) =20 Gregory=20 =20 =20 =20 -----Message d'origine----- De : Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org Envoy=C3=A9 : mercredi 28 d=C3=A9cembre 2011 13:37 =C3=80 : Gregory Gosse Cc : 'Philippe Gerum'; 'xenomai-help' Objet : Re: [Xenomai-help] problem following 'xenomai quick build guide' =20 On 12/28/2011 01:28 PM, Gregory Gosse wrote: > For the moment I use an Intel Core I5 as host and target . >=20 > Since I think I have to compile a 64bits kernel . =20 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. =20 >=20 > Do you know where is located CONFIG_CC_STACKPROTECTOR in the = configuration menu ? =20 Use ctrl-F to search if using "make xconfig" or "/" if using "make = menuconfig". =20 --=20 Gilles. ------=_NextPart_000_0009_01CCC589.3ADEC090 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Thanks Gilles,

 

Well with =E2=80=9C/=E2=80=9D 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=C2=A0 = (#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=C2=A0 :

# xenomai = libs

/usr/local/lib

 

> set = PATH=3D/usr/xenomai/bin:/usr/xenomai/lib:/usr/xenomai/include:$PATH<= /o:p>

> = ldconfig

 

Then tried

>cd = =C2=A0/usr/src/xenomai-2.6.0/examples/native

>make

That Failed = :

--xeno-cflags is = deprecated, use --skin=3Dname --cflags instead

--xeno-ldflags is deprecated, use --skin=3Dname = --ldflags instead

gcc = -I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -Wall = -Werror-implicit-function-declaration -pipe -D__XENO__=C2=A0=C2=A0 = -L/usr/xenomai/lib -lxenomai -lpthread -lrt=C2=A0 -lnative -Xlinker = -rpath -Xlinker /usr/xenomai/lib=C2=A0 trivial-periodic.c=C2=A0=C2=A0 -o = trivial-periodic

trivial-periodic.c: In function = =E2=80=98main=E2=80=99:

trivial-periodic.c:72:1: attention : contr=C3=B4le 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=C3=A9 1 code d'=C3=A9tat = d'ex=C3=A9cution

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:=C2=A0=C2=A0 5000 Min:=C2=A0=C2=A0 2578 Act: 3600 Avg: 4097 = Max:=C2=A0=C2=A0=C2=A0 5625

T: 1 (17825) P:79 I:5500 C:=C2=A0=C2=A0 4547 = Min:=C2=A0=C2=A0 2085 Act: 3602 Avg: 3856 Max:=C2=A0=C2=A0=C2=A0 = 5631

T: 2 (17826) P:78 I:6000 = C:=C2=A0=C2=A0 4168 Min:=C2=A0=C2=A0 2587 Act: 4612 Avg: 3614 = Max:=C2=A0=C2=A0=C2=A0 4666

T: 3 (17827) P:77 I:6500 C:=C2=A0=C2=A0 3847 = Min:=C2=A0=C2=A0 2091 Act: 3618 Avg: 3871 Max:=C2=A0=C2=A0=C2=A0 = 5686

T: 4 (17828) P:76 I:7000 = C:=C2=A0=C2=A0 3573 Min:=C2=A0=C2=A0 2595 Act: 2624 Avg: 4127 = Max:=C2=A0=C2=A0=C2=A0 5691

T: 5 (17829) P:75 I:7500 C:=C2=A0=C2=A0 3334 = Min:=C2=A0=C2=A0 2101 Act: 5136 Avg: 3885 Max:=C2=A0=C2=A0=C2=A0 = 5700

T: 6 (17830) P:74 I:8000 = C:=C2=A0=C2=A0 3126 Min:=C2=A0=C2=A0 2616 Act: 2658 Avg: 2653 = Max:=C2=A0=C2=A0=C2=A0 2732

T: 7 (17831) P:73 I:8500 C:=C2=A0=C2=A0 2942 = Min:=C2=A0=C2=A0 2112 Act: 4158 Avg: 3901 Max:=C2=A0=C2=A0=C2=A0 = 5704

T: 8 (17832) P:72 I:9000 = C:=C2=A0=C2=A0 2779 Min:=C2=A0=C2=A0 2618 Act: 4640 Avg: 4151 = Max:=C2=A0=C2=A0=C2=A0 5708

T: 9 (17833) P:71 I:9500 C:=C2=A0=C2=A0 2633 = Min:=C2=A0=C2=A0 2113 Act: 2642 Avg: 3899 Max:=C2=A0=C2=A0=C2=A0 = 5712

 

( it goes = without saying that I don=E2=80=99t know what I=E2=80=99ve done until = there )

 

Gregory =

 

 

 

-----Message = d'origine-----
De : Gilles Chanteperdrix = [mailto:gilles.chanteperdrix@xenomai.org]
Envoy=C3=A9 : = mercredi 28 d=C3=A9cembre 2011 13:37
=C3=80 : 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=C2=A0 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".

 

-- =

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Gilles.

------=_NextPart_000_0009_01CCC589.3ADEC090--