Skip to contentSkip to conversation

Cross-Compile Xenomai

Xenomai-help Joachim Meyer 2 participants 2 messages May 14, 2008

lore
Share & tools
lore
#0 lore raw

Hi

First I'd like to thank everybody who helped.
I think it works now (more or less).
I found someone who had the root passwort, so I could "make devices" for testing. The tests in the testsuite also give out some things.

Can anyone give me hints where to find documents for the following two things:

1. Something about what should be the result of the tests in the testsuite or some documents about the testsuite at all.

I get things like that:

bash-3.00# ./switchbench
== Sampling period: 100 us
== Do not interrupt this program

RTH|     lat min|     lat avg|     lat max|        lost
RTD|      -25970|       30476|       49003|       12491

bash-3.00# ./latency
== Sampling period: 100 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...

RTT|  00:00:01  (periodic user-mode task, 100 us period, priority 99)
RTH|-----lat min|-----lat avg|-----lat max|-overrun|----lat best|---lat worst
RTD|      18.000|      19.643|      61.780|       0|      18.000|      61.780
RTD|      14.780|      20.090|      86.570|       0|      14.780|      86.570
RTD|      17.890|      19.836|      74.070|       0|      14.780|      86.570
RTD|      17.870|      21.056|      80.750|       0|      14.780|      86.570
RTD|      17.870|      19.826|      69.910|       0|      14.780|      86.570
RTD|      18.000|      19.806|      69.380|       0|      14.780|      86.570
RTD|      17.870|      19.870|     108.270|       0|      14.780|     108.270
RTD|      16.580|      19.810|      86.050|       0|      14.780|     108.270
RTD|      17.870|      19.826|      75.160|       0|      14.780|     108.270
RTD|      17.870|      19.800|      70.520|       0|      14.780|     108.270
RTD|      17.870|      19.826|      86.640|       0|      14.780|     108.270
RTD|      17.870|      19.850|      73.890|       0|      14.780|     108.270
RTD|      17.870|      19.826|      81.730|       0|      14.780|     108.270
RTD|      17.870|      19.810|      68.730|       0|      14.780|     108.270
RTD|      17.870|      19.820|      72.030|       0|      14.780|     108.270
RTD|      17.870|      19.816|      73.430|       0|      14.780|     108.270
RTD|      17.870|      21.073|      76.690|       0|      14.780|     108.270
RTD|      15.430|      19.813|      85.030|       0|      14.780|     108.270
RTD|      17.870|      19.826|      76.680|       0|      14.780|     108.270
RTD|      17.870|      19.806|      72.320|       0|      14.780|     108.270
RTD|      17.870|      19.823|      81.160|       0|      14.780|     108.270
RTT|  00:00:22  (periodic user-mode task, 100 us period, priority 99)

the result of the cycletest is, that the system freezes.

bash-3.00# modprobe xeno_irqbench
FATAL: Could not load /lib/modules/2.6.23xlnx/modules.dep: No such file or directory

bash-3.00# ./switchtest
XSysAce: Queue is plugged
== Testing FPU check routines...
Illegal instruction

My PPC405 (on an Virtex 2 pro) has no FPU, I believe.
I haven't installed any modules yet, but I need modules for xenomai, do I?

2. Some Beginners Howto for programming with Xenomai

Thx
Joachim
_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066

#1 lore raw
Quoted 10 lines · Joachim Meyer

Hi

First I'd like to thank everybody who helped.
I think it works now (more or less).
I found someone who had the root passwort, so I could "make devices" for testing. The tests in the testsuite also give out some things.

Can anyone give me hints where to find documents for the following two things:

1. Something about what should be the result of the tests in the testsuite or some documents about the testsuite at all.

Since the integration of Xenomai in the Debian distribution, Xenomai testsuite programs have manual pages (but I do not think stable releases have them yet). Anyway, we try to give tests names which suggest what they do.

Quoted 8 lines

I get things like that:

bash-3.00# ./switchbench
== Sampling period: 100 us
== Do not interrupt this program

RTH|     lat min|     lat avg|     lat max|        lost
RTD|      -25970|       30476|       49003|       12491

switchbench measures (user-space) context switches time.

Quoted 6 lines

bash-3.00# ./latency
== Sampling period: 100 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...

latency measures latencies (user-space dispatch latency, kernel-space dispatch latency, kernel-space interrupt latency, depending on the argument passed to the -t option). Note that to run latency -t 1 or latency -t 2, you will need to select the timerbench driver in kernel configuration (Menu real-time subsystem/drivers/testing).

Quoted 2 lines

the result of the cycletest is, that the system freezes.

Well, maybe you run it with a too tight period ?

Quoted 3 lines

bash-3.00# modprobe xeno_irqbench
FATAL: Could not load /lib/modules/2.6.23xlnx/modules.dep: No such file or directory

Not Xenomai fault. You likely installed kernel modules incorrectly.

Quoted 7 lines

bash-3.00# ./switchtest
XSysAce: Queue is plugged
== Testing FPU check routines...
Illegal instruction

My PPC405 (on an Virtex 2 pro) has no FPU, I believe.

Well, then run switchtest with the -n flag. switchtest tries many kind of context switches. It is probably only of some interest when debugging context switch (and FPU switch) routines.

Quoted 1 line

I haven't installed any modules yet, but I need modules for xenomai, do I?

This explains the failed modprobe xeno_irqbench. Whether or not you need modules depends on what you decided to build inside the kernel and to build as a module in the kernel configuration.

Quoted 3 lines

2. Some Beginners Howto for programming with Xenomai

See the native API tour:
http://www.xenomai.org/documentation/branches/v2.3.x/pdf/Native-API-Tour-rev-C.pdf
or other articles at:
http://www.xenomai.org/index.php/Publications

Quoted 7 lines

Thx
Joachim
_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066

Signature · 1 line
					    Gilles.