Skip to contentSkip to conversation

Interpreting the ksrc/arch/arm/patches directory

Xenomai-help Bob Feretich 4 participants 7 messages Feb 24, 2010 – Feb 25, 2010

lore
Share & tools
lore
#0 lore raw

Lately I have been using the OpenEmbedded bitbake tool to build my Linux systems (Angstrom for BeagleBoard based). Has anyone created a recipe set to build Xenomai under OpenEmbedded?

What I really want to do is install Xenomai into the BeagleBoard Angstrom kernel.

Regards,
Bob

#1 lore raw
Quoted 6 lines · Bob Feretich

Lately I have been using the OpenEmbedded bitbake tool to build my Linux systems (Angstrom for BeagleBoard based). Has anyone created a recipe set to build Xenomai under OpenEmbedded?

What I really want to do is install Xenomai into the BeagleBoard Angstrom kernel.

Yes, recently someone reported using this method. However, he had issues with -Wl,--as-needed which we did not elucidate completely.

Quoted 11 lines

Regards,
Bob

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
					    Gilles.
#2 lore raw

[Xenomai-help] Xenomai built by OpenEmbedded

Sorry, I reused an old e-mail and forgot to change the subject line last time. The subject line is more accurate on this e-mail.

How can I locate this previous report? (identified below)
I am willing to spend some time pushing Xenomai forward on this front, but I will probably need some help. I have been involved with Linux system building just long enough to be dangerous. Installing a co-kernel is a new frontier for me.

Normally, when I need to attach a new module to the Angstrom kernel, I...

1. bitbake the Linux system. (Kernel source is deleted upon completion.)
2. bitbake the Angstrom kernel using the "-c compile" option, which leaves the kernel source and intermediate files in place.
3. Build my kernel modules within the context of the kernel.

My theory is that the below sequence may work for Xenomai...

1. bitbake the Linux system. (Kernel source is deleted upon completion.)
2. bitbake the Angstrom kernel using the bitbake "-c compile" option, which leaves the kernel source and intermediate files in place.
3. Apply the appropriate Adios kernel patches.
4. Rebuild the Angstrom kernel using the "-c compile" option, which should use the patched kernel source.
5. Add the Xenomai sub-tree to the root file system.
6. Build my modules as before.

Does this make sense?

Regards,
Bob Feretich

Quoted 18 lines · Gilles Chanteperdrix
Quoted 4 lines · Bob Feretich

Lately I have been using the OpenEmbedded bitbake tool to build my Linux systems (Angstrom for BeagleBoard based). Has anyone created a recipe set to build Xenomai under OpenEmbedded?

What I really want to do is install Xenomai into the BeagleBoard Angstrom kernel.

Yes, recently someone reported using this method. However, he had issues with -Wl,--as-needed which we did not elucidate completely.

Quoted 8 lines

Regards,
Bob
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

#3 lore raw

Re: [Xenomai-help] Xenomai built by OpenEmbedded

Hi Bob,

Quoted 4 lines · Bob Feretich

Sorry, I reused an old e-mail and forgot to change the subject line last time. The subject line is more accurate on this e-mail.

How can I locate this previous report? (identified below)

https://mail.gna.org/public/xenomai-help/2010-02/msg00069.html
https://mail.gna.org/public/xenomai-help/2009-08/msg00047.html

regards
kisda

Quoted 57 lines

I am willing to spend some time pushing Xenomai forward on this front, but I will probably need some help. I have been involved with Linux system building just long enough to be dangerous. Installing a co-kernel is a new frontier for me.

Normally, when I need to attach a new module to the Angstrom kernel, I...

1. bitbake the Linux system. (Kernel source is deleted upon completion.)
2. bitbake the Angstrom kernel using the "-c compile" option, which leaves the kernel source and intermediate files in place.
3. Build my kernel modules within the context of the kernel.

My theory is that the below sequence may work for Xenomai...

1. bitbake the Linux system. (Kernel source is deleted upon completion.)
2. bitbake the Angstrom kernel using the bitbake "-c compile" option, which leaves the kernel source and intermediate files in place.
3. Apply the appropriate Adios kernel patches.
4. Rebuild the Angstrom kernel using the "-c compile" option, which should use the patched kernel source.
5. Add the Xenomai sub-tree to the root file system.
6. Build my modules as before.

Does this make sense?

Regards,
Bob Feretich

Quoted 6 lines · Gilles Chanteperdrix
Quoted 4 lines · Bob Feretich

Lately I have been using the OpenEmbedded bitbake tool to build my Linux systems (Angstrom for BeagleBoard based). Has anyone created a recipe set to build Xenomai under OpenEmbedded?

Quoted 15 lines
Quoted 3 lines

What I really want to do is install Xenomai into the BeagleBoard Angstrom kernel.

Yes, recently someone reported using this method. However, he had issues with -Wl,--as-needed which we did not elucidate completely.

Quoted 8 lines

Regards,
Bob
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

------------------------------------------------------------------------

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

#4 lore raw

Re: [Xenomai-help] Xenomai built by OpenEmbedded

Quoted 10 lines · Stefan Kisdaroczi

Hi Bob,

Quoted 4 lines · Bob Feretich

Sorry, I reused an old e-mail and forgot to change the subject line last time. The subject line is more accurate on this e-mail.

How can I locate this previous report? (identified below)

https://mail.gna.org/public/xenomai-help/2010-02/msg00069.html
https://mail.gna.org/public/xenomai-help/2009-08/msg00047.html

Ah, thanks. The 2009 issue with Xenomai compiled with -O2 should be solved now.

A little note, the Xenomai mailing list has archives, which you can find here:
https://gna.org/mail/?group=xenomai

To search them, simply pass the proper arguments to your favorite search engine to restrict the search to a particular site. If you do not mind using google, the xenomai website provides a search page which does the work for you:
http://www.xenomai.org/index.php/Special:Google

Signature · 1 line
					    Gilles.
#5 lore raw

[Xenomai-help] OpenEmbedded (bitbake) recipes for Xenomai?

The xenomai-help archives show that some people are using OpenEmbedded to build Xenomai into various Linux distributions. (I am most interested in Angstrom, but other distributions would also be of interest.)

Does anyone know where the bitbake recipes for this can be found?

Thanks,
Bob Feretich

#6 lore raw

Re: [Xenomai-help] OpenEmbedded (bitbake) recipes for Xenomai?

I've actually made my recipes for Xenomai before - they are very straightforward. All I do is to patch the kernel (using the prepare-kernel.sh script included in Xenomai), build and configure it, and than build a separate .ipk for the Xenomai user-space.

Anyway, I've done this in the Gumstix Verdex and in the IGEPv2. For the Gumstix, I made a *very* unclean solution, which meant copying the compiled files from the temporary directory to the board once everything was compiled. Someone made a cleaner solution, and it is described in the Gusmtix wiki:
http://www.gumstix.net/wiki/index.php?title=Xenomai_-_Mini_Howto

I am attaching my bitbake file as well. I've also attached my Xenomai-exercises bitbake recipes/code, which compile cleanly on my machine because of some very weird links I've made.

As for the IGEP, I had to make some modifications in the configuration files, as described in a previous thread here in the mailing list (see
http://www.mail-archive.com/[email protected]). I am attaching it as well, but I also transferred the files and ran ldconfig manually.

If possible, I would like some feedback on how well Xenomai runs in the Beagleboard - we are trying it on the IGEPv2 here, but some Beagleboards and Gumstix Overos are on the way so we can evaluate their use in different embedded systems.

Hope this helps!
-Felipe Brandão Cavalcanti
LARA - Robotics and Automation Laboratory
Department of Electrical Engineering
UnB - University of Brasília, Brazil
http://www.lara.unb.br/~fbcavalcanti/

Quoted 14 lines · Bob Feretich

The xenomai-help archives show that some people are using OpenEmbedded to build Xenomai into various Linux distributions. (I am most interested in Angstrom, but other distributions would also be of interest.)

Does anyone know where the bitbake recipes for this can be found?

Thanks,
Bob Feretich

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help