All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] install xenomai for beagleboard
@ 2010-05-05  2:38 Everett Wang
  2010-05-05  6:07 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 4+ messages in thread
From: Everett Wang @ 2010-05-05  2:38 UTC (permalink / raw)
  To: xenomai

Hi All,

I am new to xenomai and trying to install xenomai for my beagleboard,
using a Ubuntu 10.04 laptop computer. I have
downloaded xenomai 2.5.2 and plain linux kernel 2.6.30.5 from
www.kernal.org, installed cross compiler
arm-2009q1-203-arm-none-linux-gnueabi. Following the instruction in
REAM.INSTALL, I linked my linux-2.6.30.5 to /usr/src/linux and
xenomai-2.5.2 to /usr/xenomai.

I managed to patch my linux kernel fine:
everett@domain.hid$ scripts/prepare-kernel.sh
--arch=arm --adeos=/usr/xenomai/ksrc/arch/arm/patches/adeos-ipipe-2.6.30-arm-*
--linux=/usr/src/linux

and configured my kernel
cd /rtos/linux-2.6.30.5
root@domain.hid#  make ARCH=arm
CROSS_COMPILE=arm-none-linux-gnueabi- O=$build_root
omap3_beagle_defconfig

then compile kernel and modules
root@domain.hid#  make ARCH=arm
CROSS_COMPILE=arm-none-linux-gnueabi- O=$build_root bzImage modules

It runs fine. But I have some random questions.

where is the bzImage it made and modules I just made? Should I use a
newer version of Code Sourcery's cross compiler? I am using
arm-2009q1-203-arm-none-linux-gnueabi and there is an
arm-2010q1-202-arm-none-linux-gnueabi. I have difficult to follow
in compiling xenomai. The instruction reads:

"cd $build_root
$ $xenomai_root/configure --build=i686-pc-linux-gnu --host=arm-linux
--enable-arm-mach=at91rm9200 --enable-arm-tsc"

I have not defined a $build_root directory and what is the right name
to replace at91rm9200 and tsc?


Thanks in advance,

Everett


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

* Re: [Xenomai-help] install xenomai for beagleboard
  2010-05-05  2:38 [Xenomai-help] install xenomai for beagleboard Everett Wang
@ 2010-05-05  6:07 ` Gilles Chanteperdrix
  2010-05-05 12:36   ` Everett Wang
  0 siblings, 1 reply; 4+ messages in thread
From: Gilles Chanteperdrix @ 2010-05-05  6:07 UTC (permalink / raw)
  To: Everett Wang; +Cc: xenomai

Everett Wang wrote:
> (...)
> It runs fine. But I have some random questions.
> 
> where is the bzImage it made and modules I just made? 

bzImage is an x86 thing. Your questions is not really specific to
Xenomai, it is about compiling a Linux kernel for ARM. There are a lot
of resources on internet which will answer this question. For instance,
this is answered by Linux arm kernel FAQ #1:
http://www.arm.linux.org.uk/mailinglists/faq.php#f1
Or, Beagle specific instructions on Beagle wiki:
http://elinux.org/BeagleBoard#Linux_kernel

> Should I use a
> newer version of Code Sourcery's cross compiler? I am using
> arm-2009q1-203-arm-none-linux-gnueabi and there is an
> arm-2010q1-202-arm-none-linux-gnueabi. I have difficult to follow
> in compiling xenomai. 

Any version should be almost Ok. Except one of the 2008 version if you
want to enable stack unwinding.


> The instruction reads:
> 
> "cd $build_root
> $ $xenomai_root/configure --build=i686-pc-linux-gnu --host=arm-linux
> --enable-arm-mach=at91rm9200 --enable-arm-tsc"
> 
> I have not defined a $build_root directory and what is the right name
> to replace at91rm9200 and tsc?

the instructions also read:
--enable-arm-mach   Select ARM machine for the       none
                    current build tree, check
                    configure --help for a list
                    of valid values.
                    Passing this option is
                    mandatory when compiling
                    Xenomai for ARM

and:
# $linux_tree = path to the target kernel sources
# $xenomai_root = path to the Xenomai sources
# $build_root = path to a clean build directory
# $staging_dir = path to a directory that will hold the installed file

Again, the issue here is about compiling a package using the autotools,
there is nothing specific about Xenomai. There is a lot of resources
about this on the web. For instance:
http://sources.redhat.com/autobook/autobook/autobook_13.html#SEC13
I even wrote a tutorial for the autotools some time ago:
http://sisyphus.hd.free.fr/~gilles/pub/autotools/

-- 
					    Gilles.


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

* Re: [Xenomai-help] install xenomai for beagleboard
  2010-05-05  6:07 ` Gilles Chanteperdrix
@ 2010-05-05 12:36   ` Everett Wang
  2010-05-05 13:48     ` Gilles Chanteperdrix
  0 siblings, 1 reply; 4+ messages in thread
From: Everett Wang @ 2010-05-05 12:36 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

Hi Gilles,

Thanks for your reply. It is very helpful for me and probably for many
who are just getting started in
beagleboard.

Best regards,

Everett

On Wed, May 5, 2010 at 2:07 PM, Gilles Chanteperdrix
<gilles.chanteperdrix@xenomai.org> wrote:
> Everett Wang wrote:
>> (...)
>> It runs fine. But I have some random questions.
>>
>> where is the bzImage it made and modules I just made?
>
> bzImage is an x86 thing. Your questions is not really specific to
> Xenomai, it is about compiling a Linux kernel for ARM. There are a lot
> of resources on internet which will answer this question. For instance,
> this is answered by Linux arm kernel FAQ #1:
> http://www.arm.linux.org.uk/mailinglists/faq.php#f1
> Or, Beagle specific instructions on Beagle wiki:
> http://elinux.org/BeagleBoard#Linux_kernel
>
>> Should I use a
>> newer version of Code Sourcery's cross compiler? I am using
>> arm-2009q1-203-arm-none-linux-gnueabi and there is an
>> arm-2010q1-202-arm-none-linux-gnueabi. I have difficult to follow
>> in compiling xenomai.
>
> Any version should be almost Ok. Except one of the 2008 version if you
> want to enable stack unwinding.
>
>
>> The instruction reads:
>>
>> "cd $build_root
>> $ $xenomai_root/configure --build=i686-pc-linux-gnu --host=arm-linux
>> --enable-arm-mach=at91rm9200 --enable-arm-tsc"
>>
>> I have not defined a $build_root directory and what is the right name
>> to replace at91rm9200 and tsc?
>
> the instructions also read:
> --enable-arm-mach   Select ARM machine for the       none
>                    current build tree, check
>                    configure --help for a list
>                    of valid values.
>                    Passing this option is
>                    mandatory when compiling
>                    Xenomai for ARM
>
> and:
> # $linux_tree = path to the target kernel sources
> # $xenomai_root = path to the Xenomai sources
> # $build_root = path to a clean build directory
> # $staging_dir = path to a directory that will hold the installed file
>
> Again, the issue here is about compiling a package using the autotools,
> there is nothing specific about Xenomai. There is a lot of resources
> about this on the web. For instance:
> http://sources.redhat.com/autobook/autobook/autobook_13.html#SEC13
> I even wrote a tutorial for the autotools some time ago:
> http://sisyphus.hd.free.fr/~gilles/pub/autotools/
>
> --
>                                            Gilles.
>


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

* Re: [Xenomai-help] install xenomai for beagleboard
  2010-05-05 12:36   ` Everett Wang
@ 2010-05-05 13:48     ` Gilles Chanteperdrix
  0 siblings, 0 replies; 4+ messages in thread
From: Gilles Chanteperdrix @ 2010-05-05 13:48 UTC (permalink / raw)
  To: Everett Wang; +Cc: xenomai

Everett Wang wrote:
> Hi Gilles,
> 
> Thanks for your reply. It is very helpful for me and probably for many
> who are just getting started in
> beagleboard.

I am not sure there are that many people getting started with a board
who do not bother to have a look at its wiki.


-- 
					    Gilles.


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

end of thread, other threads:[~2010-05-05 13:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-05  2:38 [Xenomai-help] install xenomai for beagleboard Everett Wang
2010-05-05  6:07 ` Gilles Chanteperdrix
2010-05-05 12:36   ` Everett Wang
2010-05-05 13:48     ` Gilles Chanteperdrix

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.