From: "Gregory Gosse" References: <000101ccc4b8$74856eb0$5d904c10$@soterem.fr> <4EF9F949.5000708@domain.hid> <000001ccc541$7fa8d960$7efa8c20$@soterem.fr> <4EFAE1BF.4090203@domain.hid> In-Reply-To: <4EFAE1BF.4090203@domain.hid> Date: Wed, 28 Dec 2011 12:44:41 +0100 Message-ID: <000301ccc556$168472e0$438d58a0$@soterem.fr> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0004_01CCC55E.784ECE50" 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: 'Philippe Gerum' Cc: 'xenomai-help' This is a multipart message in MIME format. ------=_NextPart_000_0004_01CCC55E.784ECE50 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 =20 The following command works well: scripts/prepare-kernel.sh --linux=3D/usr/src/linux-2.6.38.8 = --adeos=3D/usr/src/xenomai-2.6.0/ksrc/arch/x86/patches/adeos-ipipe-2.6.38= .8-x86-2.10-01.patch --arch=3Dx86 Then I enter the configuration menu with Make menuconfig =20 I apply the changes suggested in 'hard real time linux using xenomai on = intel Multi-Core processors' Save and exit =20 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 =20 Gregory =20 -----Message d'origine----- De : Philippe Gerum [mailto:rpm@xenomai.org Envoy=C3=A9 : mercredi 28 d=C3=A9cembre 2011 10:31 =C3=80 : Gregory Gosse Cc : xenomai-help; Gilles Chanteperdrix Objet : Re: [Xenomai-help] problem following 'xenomai quick build guide' =20 On 12/28/2011 10:17 AM, Gregory Gosse wrote: > Now i use more recent xenomai and kernel versions : >=20 > - xenomai 2.6.0 2011-11-05 ( latest ) >=20 > - kernel 2.6.39 ( latest in 2.6 serie ) >=20 > With the same patch : >=20 > - adeos-ipipe-2.6.23-x86_64-1.4-03.patch >=20 > I launch the command >=20 > scripts/prepare-kernel.sh --linux=3D/usr/src/linux-2.6.39=20 > = --adeos=3D/usr/src/xenomai-2.6.0/ksrc/arch/x86/patches/adeos-ipipe-2.6.2 > 3-x86_64-1.4-03.patch > --arch=3Dx86_64 =20 - 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. =20 --arch=3Dx86, not x86_64 which is for legacy patches when 32 and 64bit = linux trees were not merged yet. =20 You need to unpack a vanilla linux 2.6.38.8 kernel tree, then =20 $ cd $ /scripts/prepare-kernel.sh --arch=3Dx86 =20 Nothing more. =20 >=20 > And get >=20 > Unable to patch kernel 2.6.39 with=20 > adeos-ipipe-2.6.23-x86_64-1.4-03.patch >=20 > with many Hunk #xx FAILED at xx >=20 > Gregory >=20 > -----Message d'origine----- > De : Gilles Chanteperdrix = = [mailto:gilles.chanteperdrix@xenomai.org] > Envoy=C3=A9 : mardi 27 d=C3=A9cembre 2011 17:59 > =C3=80 : Gregory Gosse > Cc : xenomai@xenomai.org > Objet : Re: [Xenomai-help] problem following 'xenomai quick build = guide' >=20 > On 12/27/2011 05:56 PM, Gregory Gosse wrote: >=20 > > What can I do to go further ? >=20 > There is no point in starting with such outdated versions. Please=20 > download the latest stable release of Xenomai (xenomai 2.6.0), and if=20 > the quick build guide does not work, follow the not quick build guide=20 > called "README.INSTALL" which ships with the sources. >=20 > -- >=20 > = Gilles. >=20 >=20 >=20 > _______________________________________________ > Xenomai-help mailing list > Xenomai-help@domain.hid > = https://mail.gna.org/listinfo/xenomai-help =20 =20 -- Philippe. ------=_NextPart_000_0004_01CCC55E.784ECE50 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Now I = use:

- xenomai 2.6.0=C2=A0=C2=A0 = 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=3D/usr/src/linux-2.6.38.8 = --adeos=3D/usr/src/xenomai-2.6.0/ksrc/arch/x86/patches/adeos-ipipe-2.6.38= .8-x86-2.10-01.patch --arch=3Dx86

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'=C2=A0 , the compilation finishes on:

CC=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = 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,
=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 from = /usr/src/linux-2.6.38.8/arch/x86/include/asm/xenomai/bits/pod_32.h:27,=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 from = /usr/src/linux-2.6.38.8/arch/x86/include/asm/xenomai/bits/pod.h:2,
=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=A0from = kernel/xenomai/nucleus/pod.c:47:
/usr/src/linux-2.6.38.8/arch/x86/incl= ude/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=C3=A9 : mercredi 28 d=C3=A9cembre 2011 = 10:31
=C3=80 : 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=C2=A0=C2=A0 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=3D/usr/src/linux-2.6.39

> = --adeos=3D/usr/src/xenomai-2.6.0/ksrc/arch/x86/patches/adeos-ipipe-2.6.2<= o:p>

> = 3-x86_64-1.4-03.patch

> = --arch=3Dx86_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=3Dx86, 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=3Dx86

 

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.chanteperd= rix@domain.hid]

> = Envoy=C3=A9 : mardi 27 d=C3=A9cembre 2011 17:59

> =C3=80 : 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:

> 

>=C2=A0 > 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.

> 

> --

> 

>=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=A0=C2=A0Gilles.

=

> 

> 

> 

> = _______________________________________________

> Xenomai-help mailing list

> Xenomai-help@domain.hid

> https://mail.gna.org/list= info/xenomai-help

 

 

--

Philippe.

------=_NextPart_000_0004_01CCC55E.784ECE50--