In "mesures 1" I've used a set_periodic_timer to toggle a gpio with a 2000 uS task as another process was doing : ping -f localhost -s 65000 >/dev/null
Dans mesures 2 I did the same + latency_test -p 100 -T 240.
As I was a bit wondering I did a latency test during 1 h but did before echo 0 > /proc/xenoami/latency (instead of 4999 ) :
lat min|—-lat avg|—-lat max|-overrun|—msw|—lat best|–lat worst
11.083| 13.874 | 24.416 | 0 | 0 | 6.374 | 32.791
As I m somewhat surprised by these results -even if they are in user space- I'd like to get more familiar with the build, and being able to put the Machinekit or Xenomai image directly in eMMC to avoid SD accesses , hoping to have better latency results.
David
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/HqwuSu2tLe8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
first run (to setup baseline tree): ./build_kernel.sh
then modify files under KERNEL directory
then run (to rebuild with your changes): ./tools/rebuild.sh
just grab one of RCN's eMMC flasher images
That and swapping out the kernel gets you a working Xenomai system.
Charles,My tries didn't succeeded, but I'm sure I've missed the good kernel :I've flashed the http://rcn-ee.net/deb/testing/2014-02-05/BBB-eMMC-flasher-debian-7.3-2014-02-05-2gb.img.xzwhich could boot and run.It use currently : 3.8.13-bone36I then build the linux-dev where /deploy/3.11.0-rc1-armv7-d1.zimage to overwrite the bbb /boot/ubootwhich lead me to a wrong boot : 4 leds fixed.Therefore, please where to get the correct kernel to swap from ?
For the MachineKit Xenomai kernels it's very easy, and identical to
working with Robert Nelson's kernels. You just work from my github
repository instead of his (I've added the Xenomai patches to the
laundry-list of BeagleBone patches his scripts apply):
https://github.com/cdsteinkuehler/linux-dev
You run the ./build_kernel.sh script, so the BeagleBone and Xenomai
patches will be applied. You can then edit the configuration as desired
and rebuild the kernel using tools/rebuild.sh
--
Is it possible to get a same instructions list for the official one ?
---- Beaglebone 1- Checkout the "am33x-v3.8" branch in the Robert Nelson repository [3], the patch has been tested with commit 3fc8a73d782231ab2750ff29793a760e8fa076bb 2- apply beaglebone/ipipe-core-3.8.13-beaglebone-pre.patch 3- apply ipipe-core-3.8.13-arm-1.patch 4- apply beaglebone/ipipe-core-3.8.13-beaglebone-post.patch 5- you can resume to generic installation instructions.
I 200% agree : that's why I was refering to it :Is it possible to get a same instructions list for the official one ?anyway with a checkout from any branch, I'm not sure that xenomai will be compiled as from docs, blog, forums, bookit's clearly precise that not all kernel version accept xenomai patches. Therefore, from my understanding only 1 commit is currenlty guaranteed to work :---- Beaglebone 1- Checkout the "am33x-v3.8" branch in the Robert Nelson repository [3], the patch has been tested with commit 3fc8a73d782231ab2750ff29793a760e8fa076bb 2- apply beaglebone/ipipe-core-3.8.13-beaglebone-pre.patch 3- apply ipipe-core-3.8.13-arm-1.patch 4- apply beaglebone/ipipe-core-3.8.13-beaglebone-post.patch 5- you can resume to generic installation instructions.John: until now I've been just compiled vanilla kernels, -ie no xenomai worked- could you please indicate what are these steps you have followed to compile it ?
patch -p1 < cds_xenomai.patch
@@ -866,12 +866,40 @@ saucy () {
John,from the KERNEL dir :patch -p1 < cds_xenomai.patchoutputs error on :Can't find file at@@ -866,12 +866,40 @@ saucy () {
david@debian:~/BBB/linux-dev$ patch –p1 < ../cds_xenomai.patch
patching file –p1
Hunk #1 FAILED at 866.
Hunk #2 FAILED at 885.
2 out of 2 hunks FAILED -- saving rejects to file –p1.rej
patching file –p1
Hunk #1 FAILED at 158.
Hunk #2 FAILED at 187.
2 out of 2 hunks FAILED -- saving rejects to file –p1.rej
This doens't work neither :git status :
- git clone https://github.com/cdsteinkuehler/linux-dev
- git checkout --track -b 3.8.13-bone39-xenomai
# On branch 3.8.13-bone39-xenomai
nothing to commit (working directory clean)
- ./build_kernel.sh :
generates a 3.11.0-rc1-armv7-d1.zImage
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/HqwuSu2tLe8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
In other words : what zImage version should I use that would correspond to a specific Debian version ?
scp ../xenomai/cdsteinkuehler/linux-dev/deploy/3.8.13xenomai-bone39.zImage ro...@192.168.7.2:/boot/uboot/zImage
the deploy/lib/modules/3.8.13xenomai-bone39
/lib/modules/3.8.13-bone37
--
Thanks for this answer, anyway you may have missed my previous threads when I've said that I'm not looking for this. My goal is to be able to do tests and programmation with Xenomai, not spending time trying to have it running. Hence my question for how to to compile with the correct environment set ( libs + includes) as it's not complete
I compile & install xenomai using the BBB build environment in BBB, so have working gcc inside.
The only thing cross-compiled is xenomai kernel & kernel drivers, the rest is "from the inside".
OK, but please explain me, what kind of "programming with Xenomai" You think about?
Xenomai tests are a great example, how to use the API, because use examples are pretty encapsulated: one part of API - one test. The tests IMHO are better than at least 50% of tutorials I've learnt in my life and the build environment of tests (make + makefiles) shows You how to get everything linked & running.
Ok, I understand it would be better to have Xenomai on BBB running with direct installation from packages or at least to have comfortable build environment for everything for DIY cross-compilation. I can only say, that when I will finish my BBB+Xenomai/IPIPE work for myself (and have the motivation still) I'll try to prepare the git repo BBB+Xenomai+Kernel 3.13 layer for Yocto/Angstrom 1.5 ( the platform I use) ,
make :
gcc -I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -D__XENO__ -g gpio-utils.c -lnative -L/usr/xenomai/lib -lxenomai -lpthread -lrt -lnative toggle_gpio.c -lnative -lxenomai -o toggle_gpio
In file included from /usr/xenomai/include/nucleus/thread.h:25:0,
from /usr/xenomai/include/nucleus/sched.h:31,
from /usr/xenomai/include/native/task.h:25,
from toggle_gpio.c:14:
/usr/xenomai/include/nucleus/types.h:36:32: fatal error: asm/xenomai/system.h: No such file or directory
compilation terminated.
make: *** [toggle_gpio] Error 1
root@arm:/home/experiences#
GNU C Library (Debian EGLIBC 2.18-1) stable release version 2.18, by Roland McGrath et al.
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.8.2.
Compiled on a Linux 3.11.10 system on 2014-02-21.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
libc ABIs: UNIQUE
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/HqwuSu2tLe8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
|
Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce que la protection Antivirus avast! est active. |
Hi,
not as I wanted, ie: using the eMMC to have the best timing as possible.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/HqwuSu2tLe8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.