All of lore.kernel.org
 help / color / mirror / Atom feed
* [Adeos-main] building user space xenomai 2.5.6 for ARM
@ 2011-05-11  6:44 AKS
  2011-05-11  8:16 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 5+ messages in thread
From: AKS @ 2011-05-11  6:44 UTC (permalink / raw)
  To: Adeos

Hi Gilles and other mates

Good day! I would like to ask your help in building user space xenomai.

I have patched Adeos-ipipe-2.6.35.9-arm-1.18-01.patch to omap 2.6.35
so that it will work with Xenomai 2.5.6. I have managed to compile the
I-piped patched Linux kernel and let the Xenomai running - I have tested
on the Linux by dmesg | grep -i I-pipe and dmesg | grep -i Xenomai. And
I can ./configure the Xenomai by

./configure --enable-arm-mach=omap3 --enable-arm-arch=armv7l as the
kernel returns armv7l when uname -i. But I cannot sudo make install it
by native compiling on my target machine. On my host machine which
is running Ubuntu 10.10, I can make (after ./configure as stated above)
and make install.

But on my target box running omap3 processor with armv7l core - I am
using Gumstix - I cannot make or make install.

It exits with error 1, giving me the message as follows

{standard input}: Assembler messages:
{standard input}:47: Error: invalid swi expression
{standard input}:47: Error: value of 10420290 too large

xxxxx

Then return with Error 1. I am using Ubuntu/Linaro gcc compiler for ARM
gcc 4.5.2 and I will be glad if anyone can share experience to fix this issue.
Cheers!


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Adeos-main] building user space xenomai 2.5.6 for ARM
  2011-05-11  6:44 [Adeos-main] building user space xenomai 2.5.6 for ARM AKS
@ 2011-05-11  8:16 ` Gilles Chanteperdrix
  2011-05-12  0:37   ` AKS
  0 siblings, 1 reply; 5+ messages in thread
From: Gilles Chanteperdrix @ 2011-05-11  8:16 UTC (permalink / raw)
  To: aungkyas; +Cc: Adeos

On 05/11/2011 08:44 AM, AKS wrote:
> Hi Gilles and other mates
> 
> Good day! I would like to ask your help in building user space xenomai.
> 
> I have patched Adeos-ipipe-2.6.35.9-arm-1.18-01.patch to omap 2.6.35
> so that it will work with Xenomai 2.5.6. I have managed to compile the
> I-piped patched Linux kernel and let the Xenomai running - I have tested
> on the Linux by dmesg | grep -i I-pipe and dmesg | grep -i Xenomai. And
> I can ./configure the Xenomai by
> 
> ./configure --enable-arm-mach=omap3 --enable-arm-arch=armv7l as the

You do not need enable-arm-arch, all omap3 have the same architecture,
so configure takes care of this.

> kernel returns armv7l when uname -i. But I cannot sudo make install it
> by native compiling on my target machine. On my host machine which
> is running Ubuntu 10.10, I can make (after ./configure as stated above)
> and make install.
> 
> But on my target box running omap3 processor with armv7l core - I am
> using Gumstix - I cannot make or make install.
> 
> It exits with error 1, giving me the message as follows
> 
> {standard input}: Assembler messages:
> {standard input}:47: Error: invalid swi expression
> {standard input}:47: Error: value of 10420290 too large
> 
> xxxxx
> 
> Then return with Error 1. I am using Ubuntu/Linaro gcc compiler for ARM
> gcc 4.5.2 and I will be glad if anyone can share experience to fix this issue.
> Cheers!

You are probably compiling for the thumb or thumb2 instruction set. We
do not support thumb. Compile for ARM. You should also enable EABI.

-- 
					    Gilles.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Adeos-main] building user space xenomai 2.5.6 for ARM
  2011-05-11  8:16 ` Gilles Chanteperdrix
@ 2011-05-12  0:37   ` AKS
  2011-05-12  6:59     ` Gilles Chanteperdrix
  0 siblings, 1 reply; 5+ messages in thread
From: AKS @ 2011-05-12  0:37 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: Adeos

Hi Gilles

Thanks and how to configure so that thumb will not be included.

I checked ./configure --help | grep -i thumb

But I did not see any hint how to omit thum2.

I can native compile kernel, drivers and user space applications on
target. But xenomai client is an issue. Please advise. Thanks!

On 5/11/11, Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> wrote:
> On 05/11/2011 08:44 AM, AKS wrote:
>> Hi Gilles and other mates
>>
>> Good day! I would like to ask your help in building user space xenomai.
>>
>> I have patched Adeos-ipipe-2.6.35.9-arm-1.18-01.patch to omap 2.6.35
>> so that it will work with Xenomai 2.5.6. I have managed to compile the
>> I-piped patched Linux kernel and let the Xenomai running - I have tested
>> on the Linux by dmesg | grep -i I-pipe and dmesg | grep -i Xenomai. And
>> I can ./configure the Xenomai by
>>
>> ./configure --enable-arm-mach=omap3 --enable-arm-arch=armv7l as the
>
> You do not need enable-arm-arch, all omap3 have the same architecture,
> so configure takes care of this.
>
>> kernel returns armv7l when uname -i. But I cannot sudo make install it
>> by native compiling on my target machine. On my host machine which
>> is running Ubuntu 10.10, I can make (after ./configure as stated above)
>> and make install.
>>
>> But on my target box running omap3 processor with armv7l core - I am
>> using Gumstix - I cannot make or make install.
>>
>> It exits with error 1, giving me the message as follows
>>
>> {standard input}: Assembler messages:
>> {standard input}:47: Error: invalid swi expression
>> {standard input}:47: Error: value of 10420290 too large
>>
>> xxxxx
>>
>> Then return with Error 1. I am using Ubuntu/Linaro gcc compiler for ARM
>> gcc 4.5.2 and I will be glad if anyone can share experience to fix this
>> issue.
>> Cheers!
>
> You are probably compiling for the thumb or thumb2 instruction set. We
> do not support thumb. Compile for ARM. You should also enable EABI.
>
> --
> 					    Gilles.
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Adeos-main] building user space xenomai 2.5.6 for ARM
  2011-05-12  0:37   ` AKS
@ 2011-05-12  6:59     ` Gilles Chanteperdrix
  2011-05-12 10:22       ` AKS
  0 siblings, 1 reply; 5+ messages in thread
From: Gilles Chanteperdrix @ 2011-05-12  6:59 UTC (permalink / raw)
  To: aungkyas; +Cc: Adeos

On 05/12/2011 02:37 AM, AKS wrote:
> Hi Gilles
> 
> Thanks and how to configure so that thumb will not be included.
> 
> I checked ./configure --help | grep -i thumb
> 
> But I did not see any hint how to omit thum2.
> 
> I can native compile kernel, drivers and user space applications on
> target. But xenomai client is an issue. Please advise. Thanks!

I never had this issue, so, I do not know how to get a toolchain
compiling for thumb by default to compile for the arm instruction set.
What you can do, however, is to use a different toolchain.

See crosstool-ng is you want to build your own. Or use one which does
not compile for thumb. Codesourcery for instance, or a linux distribution.

In any case, the Xenomai or Adeos mailing lists are not the best place
to get an answer to such question.

-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Adeos-main] building user space xenomai 2.5.6 for ARM
  2011-05-12  6:59     ` Gilles Chanteperdrix
@ 2011-05-12 10:22       ` AKS
  0 siblings, 0 replies; 5+ messages in thread
From: AKS @ 2011-05-12 10:22 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: Adeos

Hi

Thanks for the tips and cheers.

On 5/12/11, Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> wrote:
> On 05/12/2011 02:37 AM, AKS wrote:
>> Hi Gilles
>>
>> Thanks and how to configure so that thumb will not be included.
>>
>> I checked ./configure --help | grep -i thumb
>>
>> But I did not see any hint how to omit thum2.
>>
>> I can native compile kernel, drivers and user space applications on
>> target. But xenomai client is an issue. Please advise. Thanks!
>
> I never had this issue, so, I do not know how to get a toolchain
> compiling for thumb by default to compile for the arm instruction set.
> What you can do, however, is to use a different toolchain.
>
> See crosstool-ng is you want to build your own. Or use one which does
> not compile for thumb. Codesourcery for instance, or a linux distribution.
>
> In any case, the Xenomai or Adeos mailing lists are not the best place
> to get an answer to such question.
>
> --
>                                                                 Gilles.
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-05-12 10:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-11  6:44 [Adeos-main] building user space xenomai 2.5.6 for ARM AKS
2011-05-11  8:16 ` Gilles Chanteperdrix
2011-05-12  0:37   ` AKS
2011-05-12  6:59     ` Gilles Chanteperdrix
2011-05-12 10:22       ` AKS

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.