Skip to contentSkip to conversation

Xenomai on PhyCore/Board

Xenomai Frede Florian 3 participants 8 messages Jul 3, 2014 – Jul 27, 2014 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hello,

We started a new real time project. For this project we decided to compare the PREEMPT_RT and Xenomai on our future hardware. For this we got two developer board from Phytec.

* Linux-phyCORE-AM335x-Kit
(https://www.osadl.org/Profile-of-system-in-rack-7-slot-5.qa-profile-r7s5.0.html)
* phyBOARD-Wega-AM335x
(https://www.osadl.org/Profile-of-system-in-rack-8-slot-8.qa-profile-r8s8.0.html)

Now I have the Problem that I can not compile a running Linux with Xenomai on this board. The supplier delivers patches for Kernel 3.2 for the board and on the linked page I get patches for the Kernel 3.12.19.

* Is there a possibility to run Xenomai on one on this kernel versions?
* I am really no expert in writing patches for a Kernel so I need some help or a HowTo. Where can I find that help?

Thanks for helping a Xenomai beginner.

Florian

#1 lore raw
Quoted 15 lines · Frede Florian

Hello,

We started a new real time project. For this project we decided to compare the PREEMPT_RT and Xenomai on our future hardware. For this we got two developer board from Phytec.

* Linux-phyCORE-AM335x-Kit

    (https://www.osadl.org/Profile-of-system-in-rack-7-slot-5.qa-profile-r7s5.0.html)
  * phyBOARD-Wega-AM335x
    (https://www.osadl.org/Profile-of-system-in-rack-8-slot-8.qa-profile-r8s8.0.html)

Now I have the Problem that I can not compile a running Linux with Xenomai on this board. The supplier delivers patches for Kernel 3.2 for the board and on the linked page I get patches for the Kernel 3.12.19.

Quoted 5 lines

* Is there a possibility to run Xenomai on one on this kernel versions?
* I am really no expert in writing patches for a Kernel so I need some help or a HowTo. Where can I find that help?

Thanks for helping a Xenomai beginner.

It is sometimes easier to port the board-specific patches (in your case, the ones provided by Phytec) to a kernel already supported by Xenomai, than to port the I-pipe patch (the patch used by Xenomai) to a kernel not already supported. What makes your situation even more complicated, is that the I-pipe patches for mainline Linux do not support the AM335x processor, people working with this processor seem to prefer working with kernel forks, so the patches for AM335x only exist for one of these forks (namely the Robert Nelson repository).

So, I would suggest:
- porting the Phytec patches to a recent kernel supported by Xenomai, like 3.10.32 or 3.14;
- merge with the I-pipe patch using git, there should not be conflicts, as the I-pipe patch and the board specific patches should not touch the same files;
- port Xenomai to this new kernel, using ideas from the AM335x patches in Xenomai repository.

For the last step, you can use the help found in the following document:
http://www.xenomai.org/index.php/I-pipe-core:ArmPorting

You will find AM335x specific patches (for the Robert Nelson fork) in the directory ksrc/arch/arm/patches/beaglebone in Xenomai sources, with instructions on how to apply them to this fork in ksrc/arch/arm/patches/README.

For general help about Xenomai, you can start here:
http://www.xenomai.org/index.php/Getting_Started

Signature · 1 line
                                                                Gilles.
#5 lore raw
In reply to a message not in the archive

Hi Florian,

we are also doing some latency tests on I-Pipe/Xenomai, pure Linux and Linux with Preempt RT.

Are you interested to share our's and your results?

We plan to publish the results when we have formatted them in a comprehensible way.

Regards,
Christoph

________________________________________
Von: Xenomai <[email protected]> im Auftrag von Frede Florian <[email protected]>
Gesendet: Donnerstag, 3. Juli 2014 10:22
An: [email protected]
Betreff: [Xenomai] Xenomai on PhyCore/Board

Hello,

We started a new real time project. For this project we decided to compare the PREEMPT_RT and Xenomai on our future hardware. For this we got two developer board from Phytec.

* Linux-phyCORE-AM335x-Kit

    (https://www.osadl.org/Profile-of-system-in-rack-7-slot-5.qa-profile-r7s5.0.html)
  * phyBOARD-Wega-AM335x
    (https://www.osadl.org/Profile-of-system-in-rack-8-slot-8.qa-profile-r8s8.0.html)

Now I have the Problem that I can not compile a running Linux with Xenomai on this board. The supplier delivers patches for Kernel 3.2 for the board and on the linked page I get patches for the Kernel 3.12.19.

* Is there a possibility to run Xenomai on one on this kernel versions?
* I am really no expert in writing patches for a Kernel so I need some help or a HowTo. Where can I find that help?

Thanks for helping a Xenomai beginner.

Florian
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

#6 lore raw
Quoted 7 lines · Christoph

Hi Florian,

we are also doing some latency tests on I-Pipe/Xenomai, pure Linux and Linux with Preempt RT.

Are you interested to share our's and your results?

We plan to publish the results when we have formatted them in a comprehensible way.

Note that the latency test has a -g option to output the histogram to a file, and that xenomai provides the xeno-test and dohell scripts to run a reproducible benchmark, and scripts/histo.gp to turn the histogram dumped with -g to a comprehensible graph.

Signature · 1 line
                                                                Gilles.
#7 lore raw
Quoted 5 lines · Gilles Chanteperdrix
Quoted 4 lines · Christoph

Hi Florian,

we are also doing some latency tests on I-Pipe/Xenomai, pure Linux and Linux with Preempt RT.

Quoted 8 lines
Quoted 3 lines

Are you interested to share our's and your results?

We plan to publish the results when we have formatted them in a comprehensible way.

Note that the latency test has a -g option to output the histogram to a file, and that xenomai provides the xeno-test and dohell scripts to run a reproducible benchmark, and scripts/histo.gp to turn the histogram dumped with -g to a comprehensible graph.

xeno-test is documented here:
http://www.xenomai.org/documentation/xenomai-2.6/html/xeno-test/index.html

dohell is documented here:
http://www.xenomai.org/documentation/xenomai-2.6/html/dohell/index.html

Signature · 1 line
                                                                Gilles.
#8 lore raw
In reply to Gilles Chanteperdrix
Quoted 5 lines · Gilles Chanteperdrix
Quoted 4 lines · Christoph

Hi Florian,

we are also doing some latency tests on I-Pipe/Xenomai, pure Linux and Linux with Preempt RT.

Quoted 8 lines
Quoted 3 lines

Are you interested to share our's and your results?

We plan to publish the results when we have formatted them in a comprehensible way.

Note that the latency test has a -g option to output the histogram to a file, and that xenomai provides the xeno-test and dohell scripts to run a reproducible benchmark, and scripts/histo.gp to turn the histogram dumped with -g to a comprehensible graph.

The following pages:

http://www.xenomai.org/~gch/core-3.10-latencies/
http://www.xenomai.org/~gch/core-3.8-latencies/
http://www.xenomai.org/~gch/core-3.5-latencies/
http://www.xenomai.org/~gch/core-3.4-latencies/
http://www.xenomai.org/~gch/core-3.2-latencies/

Are made using this method.

Signature · 1 line
                                                                Gilles.
#2 lore raw
In reply to Gilles Chanteperdrix

Hello,

now I have an Standard Kernel 3.14.13 on my Board.

* Where can I get the iPipe-Patch for the Kernel 3.14.13?
* How can I build the iPipe-Patch from git repository?

I didn't find a got how to or something else...

Thanks Florian

#3 lore raw
Quoted 5 lines · Frede Florian

Hello,

now I have an Standard Kernel 3.14.13 on my Board.

* Where can I get the iPipe-Patch for the Kernel 3.14.13?

The I-pipe patch for kernel 3.14 has not been released yet.

Quoted 1 line

* How can I build the iPipe-Patch from git repository?

As I already told you, given your situation, you probably do not want to work with the I-pipe patch, but directly with the I-pipe git.

Signature · 1 line
                                                                Gilles.