* [Xenomai-help] Cross-Compile Xenomai
@ 2008-05-13 8:53 Joachim Meyer
2008-05-13 8:59 ` Gilles Chanteperdrix
0 siblings, 1 reply; 8+ messages in thread
From: Joachim Meyer @ 2008-05-13 8:53 UTC (permalink / raw)
To: xenomai
Hi
I try to cross compile Xenomai for an embedded PPC405.
I already patched the Linux Kernel and now I try to crosscompile Xenomai like I read in the README:
2.2 Building for the PowerPC architecture
-----------------------------------------
A typical cross-compilation setup, in order to build Xenomai for a
PowerPC-405-based system:
$ $xenomai_root/scripts/prepare-kernel.sh --arch=powerpc \
--adeos=$xenomai_root/ksrc/arch/powerpc/patches/adeos-ipipe-2.6.14-ppc-X.Y-ZZ.patch \
--linux=$linux_tree
$ cd $linux_tree
$ mkdir ../build-powerpc-405-2.6.14
$ make ARCH=ppc CROSS_COMPILE=powerpc-405-linux-gnu- O=../build-powerpc-405-2.6.14 xconfig/gconfig/menuconfig
# select the kernel and Xenomai options
$ make ARCH=ppc CROSS_COMPILE=powerpc-405-linux-gnu- O=../build-powerpc-405-2.6.14 bzImage modules
# then install as needed
$ mkdir $build_root && cd $build_root
$ $xenomai_root/configure --build=i686-linux --host=powerpc-405-linux-gnu
$ make install
Now, everything seems to be fine but when I try make install, I get errors because I have now root privileges and so I can't create a folder:
make[4]: Entering directory `/home/meyer/xenomai/xenroot2/src/skins/native'
test -z "/usr/xenomai/lib" || mkdir -p -- "/usr/xenomai/lib"
mkdir: cannot create directory `/usr/xenomai': Permission denied
make[4]: *** [install-libLTLIBRARIES] Error 1
make[4]: Leaving directory `/home/meyer/xenomai/xenroot2/src/skins/native'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/home/meyer/xenomai/xenroot2/src/skins/native'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/meyer/xenomai/xenroot2/src/skins'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/meyer/xenomai/xenroot2/src'
make: *** [install-recursive] Error 1
Can I crosscompile Xenomai without root privileges?
Greez
Joachim
_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] Cross-Compile Xenomai
2008-05-13 8:53 [Xenomai-help] Cross-Compile Xenomai Joachim Meyer
@ 2008-05-13 8:59 ` Gilles Chanteperdrix
0 siblings, 0 replies; 8+ messages in thread
From: Gilles Chanteperdrix @ 2008-05-13 8:59 UTC (permalink / raw)
To: Joachim Meyer; +Cc: xenomai
On Tue, May 13, 2008 at 10:53 AM, Joachim Meyer <Jogi95@domain.hid> wrote:
> Can I crosscompile Xenomai without root privileges?
make DESTDIR=`pwd`/inst install
Will create a local inst directory and install everything there.
--
Gilles
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] Cross-Compile Xenomai
@ 2008-05-14 8:07 Joachim Meyer
2008-05-14 8:32 ` Gilles Chanteperdrix
0 siblings, 1 reply; 8+ messages in thread
From: Joachim Meyer @ 2008-05-14 8:07 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
Hi
Thanks for the hint but I just run into another "have nor root privileges" problem:
.....
make[2]: Entering directory `/home/meyer/xenomai/xenroot2'
sudo found (sudo is sudo), testing it...
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
Password:
I don't have the passwort for the sudo command.....
Greez
Joachim
_______________________________________________________________
Schon gehört? Der neue WEB.DE MultiMessenger kann`s mit allen:
http://www.produkte.web.de/messenger/?did=3016
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] Cross-Compile Xenomai
2008-05-14 8:07 Joachim Meyer
@ 2008-05-14 8:32 ` Gilles Chanteperdrix
0 siblings, 0 replies; 8+ messages in thread
From: Gilles Chanteperdrix @ 2008-05-14 8:32 UTC (permalink / raw)
To: Joachim Meyer; +Cc: xenomai
Joachim Meyer wrote:
> Hi
>
> Thanks for the hint but I just run into another "have nor root privileges" problem:
>
> .....
> make[2]: Entering directory `/home/meyer/xenomai/xenroot2'
> sudo found (sudo is sudo), testing it...
>
> We trust you have received the usual lecture from the local System
> Administrator. It usually boils down to these three things:
>
> #1) Respect the privacy of others.
> #2) Think before you type.
> #3) With great power comes great responsibility.
>
> Password:
>
>
>
> I don't have the passwort for the sudo command.....
Run "make install-user" then.
--
Gilles.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] Cross-Compile Xenomai
@ 2008-05-14 9:15 Fillod Stephane
0 siblings, 0 replies; 8+ messages in thread
From: Fillod Stephane @ 2008-05-14 9:15 UTC (permalink / raw)
To: Joachim Meyer; +Cc: xenomai
Joachim Meyer wrote:
>Thanks for the hint but I just run into another "have nor root
privileges" >problem:
>
>.....
>make[2]: Entering directory `/home/meyer/xenomai/xenroot2'
>sudo found (sudo is sudo), testing it...
make install-user
--
Stephane
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] Cross-Compile Xenomai
@ 2008-05-14 12:32 Joachim Meyer
2008-05-14 18:45 ` Gilles Chanteperdrix
0 siblings, 1 reply; 8+ messages in thread
From: Joachim Meyer @ 2008-05-14 12:32 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] Cross-Compile Xenomai
2008-05-14 12:32 Joachim Meyer
@ 2008-05-14 18:45 ` Gilles Chanteperdrix
0 siblings, 0 replies; 8+ messages in thread
From: Gilles Chanteperdrix @ 2008-05-14 18:45 UTC (permalink / raw)
To: Joachim Meyer; +Cc: xenomai
Joachim Meyer wrote:
> 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.
>
> 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.
>
> 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).
>
> the result of the cycletest is, that the system freezes.
Well, maybe you run it with a too tight period ?
>
> 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.
>
> 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.
> 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.
>
>
> 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
>
> Thx
> Joachim
> _____________________________________________________________________
> Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> http://smartsurfer.web.de/?mc=100071&distributionid=000000000066
>
--
Gilles.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] Cross-Compile Xenomai
@ 2008-05-27 16:11 Joachim Meyer
0 siblings, 0 replies; 8+ messages in thread
From: Joachim Meyer @ 2008-05-27 16:11 UTC (permalink / raw)
To: xenomai
Hi
I finally found time to go on with my xenomai installation.
I managed to build the drivers for the testsuite as modules and installed them. But some things still doesn't work, I think. What should i do now?
irqloop sometimes says:
------------------------------------------------------------------------
irqloop: error starting test: Inappropriate ioctl for device
------------------------------------------------------------------------
sometimes it runs but nothing happens:
------------------------------------------------------
bash-3.00# irqbench/irqloop
Test mode: user-space task
Port type: serial
Port address: 0x3f8
Port IRQ: 4
Received IRQs: 0
Acknowledged IRQs: 0
bash-3.00#
------------------------------------------------------
I tried different Port IRQs but it has no effect.
switchtest
-----------------------------------------------------
bash-3.00# switchtest/switchtest -n
== Threads: sleeper-0 rtk-1 rtk-2 rtup-3 rtup-4 rtus-5 rtus-6 rtuo-7 rtuo-8
RTT| 00:00:01
RTH|ctx switches|-------total
RTD| 1791| 1791
RTD| 1785| 3576
RTD| 1800| 5376
RTD| 1797| 7173
RTD| 1800| 8973
RTD| 1803| 10776
RTD| 1788| 12564
RTD| 1809| 14373
RTD| 1530| 15903
bash-3.00#
-------------------------------------------------------------
I stopped it with ctrl+c because it never stops, does it?
switchbench
----------------------------------------------------
bash-3.00# switchbench/switchbench
== Sampling period: 100 us
== Do not interrupt this program
RTH| lat min| lat avg| lat max| lost
RTD| -31150| 2833| 51573| 93825
bash-3.00#
---------------------------------------------------
latency
------------------------------------------------------------
bash-3.00# latency/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| 15.390| 19.706| 54.080| 0| 15.390| 54.080
RTD| 12.130| 20.150| 81.790| 0| 12.130| 81.790
RTD| 15.350| 19.943| 70.800| 0| 12.130| 81.790
RTD| 15.390| 20.760| 85.400| 0| 12.130| 85.400
RTD| 15.390| 19.886| 68.830| 0| 12.130| 85.400
RTD| 15.390| 19.906| 70.750| 0| 12.130| 85.400
RTD| 15.390| 19.890| 68.960| 0| 12.130| 85.400
RTD| 15.350| 19.986| 71.450| 0| 12.130| 85.400
RTD| 15.390| 19.890| 75.100| 0| 12.130| 85.400
RTD| 15.350| 19.913| 72.440| 0| 12.130| 85.400
RTD| 15.390| 19.893| 70.720| 0| 12.130| 85.400
---|------------|------------|------------|--------|-------------------------
RTS| 12.130| 19.993| 85.400| 0| 00:00:12/00:00:12
bash-3.00#
---------------------------------------------------------------------------------------
also stopped with ctrl+c
latency -t1
------------------------------------------------------------------------------------
bash-3.00# latency/latency -t1
== Sampling period: 100 us
== Test mode: in-kernel periodic task
== All results in microseconds
latency: failed to start in-kernel timer benchmark, code -25
---|------------|------------|------------|--------|-------------------------
RTS| 267928.028| 805352.732| 32.768| 0| 00:00:40/00:00:40
bash-3.00#
------------------------------------------------------------------------------------
Doesn't it work as module?
cyclictest
-------------------------------------------------------------------------
bash-3.00# cyclic/cyclictest -l 50000
0.00 0.06 0.07 2/19 551
T: 0 ( 551) P: 0 I: 1000 C: 50000 Min:-50463972 Act:-50463972 Max: -993974
bash-3.00#
--------------------------------------------------------------------------
Greez & Thanks
Joachim
_________________________________________________________________________
In 5 Schritten zur eigenen Homepage. Jetzt Domain sichern und gestalten!
Nur 3,99 EUR/Monat! http://www.maildomain.web.de/?mc=021114
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-05-27 16:11 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-13 8:53 [Xenomai-help] Cross-Compile Xenomai Joachim Meyer
2008-05-13 8:59 ` Gilles Chanteperdrix
-- strict thread matches above, loose matches on Subject: below --
2008-05-14 8:07 Joachim Meyer
2008-05-14 8:32 ` Gilles Chanteperdrix
2008-05-14 9:15 Fillod Stephane
2008-05-14 12:32 Joachim Meyer
2008-05-14 18:45 ` Gilles Chanteperdrix
2008-05-27 16:11 Joachim Meyer
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.