Skip to contentSkip to conversation

install xenomai for beagleboard

Xenomai-help Everett Wang 2 participants 4 messages May 5, 2010

lore
Share & tools
lore
#0 lore raw

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:

[email protected]$ 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

[email protected]#  make ARCH=arm
CROSS_COMPILE=arm-none-linux-gnueabi- O=$build_root
omap3_beagle_defconfig

then compile kernel and modules

[email protected]#  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

#1 lore raw
Quoted 4 lines · Everett Wang

(...)
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

Quoted 5 lines

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.

Quoted 8 lines

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/

Signature · 1 line
					    Gilles.
#2 lore raw

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

Quoted 58 lines · Gilles Chanteperdrix
Quoted 4 lines · Everett Wang

(...)
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

Quoted 5 lines

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.

Quoted 8 lines

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.

#3 lore raw
Quoted 5 lines · Everett Wang

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.

Signature · 1 line
					    Gilles.