0

I would like to test Xenomai features with the latency test under a specified load but when I try to execute the command the follwing error shows up.

# ./latency -p 100
sh: ./latency command not found

The system has been built with Buildroot. In the /proc/xenomai folder, the version file contains:

$ cat /proc/xenomai/version
2.6.4

Here is the relevant part of the configuration file I have used to build the system:

-- Target Packages  
   -- Real Time 
      -- Xenomai Userspace
        (2.6.4) Custom Xenomai version
          [*]   Install testsuite
          [ ]   RtCan utilities
          [*]   Analogy libs and utils    
          [*]   Native skin library  
          [*]   POSIX skin library  
          [ ]   VX-Works skin library 
          [ ]   PSOS skin library                
          [ ]   RTAI skin library  
          [ ]   uiTron skin library   
          [ ]   VRTX skin library 

Is this configuration file correct? Where can I find all the test programs provided by Xenomai?

EDIT

there is no xenomai folder in usr/. I've noticed in /usr/bin the following programs:

# ls /usr/bin | grep xeno
xeno-regression-test
xeno-test-run
xeno-test-run-wrapper

How can I use this files?

The only folder called xenomai is the one in the /proc

# ls /proc/xenomai
acct apc faults heap interfaces/ irq latency registry/
rtdm/ sched schedclasses/ stat timebases timer timerstat/
version
# cd /proc/xenomai
# ./latency -p 100
sh: /latency: Permission denied
# sudo ./latency -p 100
sudo: ./latency: command not found

EDIT2

The content of output/target/usr/bin does not contain the latency program:

userk@dopamine:~/Development/Linux/RaspberryPi/buildroot-2013.11-Copy2015/output/target/usr/bin$ l | grep latency   
userk@dopamine:~/Development/Linux/RaspberryPi/buildroot-2013.11-Copy2015/output/target/usr/bin$
4

2 回答 2

3

出色地,

# ./latency -p 100
sh: ./latency command not found

在这里,您尝试运行延迟,位于您所在的目录中。(我猜你站在 /root 中)。

尝试运行

# latency -p 100

看看是否有帮助。

为了帮助您,我使用如下所示的 Xenomai 配置进行了测试构建:

    [*] Xenomai Userspace                                                                                        │ │  
  │ │     ()    Custom Xenomai version                                                                                 │ │  
  │ │     [*]   Install testsuite                                                                                      │ │  
  │ │     [ ]   RTCan utilities                                                                                        │ │  
  │ │     [ ]   Analogy libs and utils                                                                                 │ │  
  │ │     [*]   Native skin library                                                                                    │ │  
  │ │     [*]   POSIX skin library                                                                                     │ │  
  │ │     [ ]   VX-Works skin library                                                                                  │ │  
  │ │     [ ]   PSOS skin library                                                                                      │ │  
  │ │     [ ]   RTAI skin library                                                                                      │ │  
  │ │     [ ]   uiTron skin library                                                                                    │ │  
  │ │     [ ]   VRTX skin library      

这会将延迟置于 output/target/usr/bin/latency 中。(即它位于目标的 /usr/bin/latency 中)。

于 2015-01-27T08:28:07.430 回答
0

这是 raspberry pi 的一种可能的解决方法。资源

wget http://download.gna.org/xenomai/stable/xenomai-2.6.4.tar.bz2
tar xjf xenomai-2.6.4.tar.bz2
cd xenomai-2.6.4
## Here you should invoke the script to prepare the kernel with the adeos patch but since I'm using Buildroot we can jump this step
mkdir raspPI
PATH=$PATH:insert_the_cross_compiler_path_here
./configure --host=arm-linux CFLAGS='-march=armv6' LDFLAGS='-march=armv6'
make
make DESTDIR=$(pwd)/raspPI install
cd raspPI/
raspPI$ tar cjf xenomai-rpi.tar.bz2 usr/xenomai/bin/ usr/xenomai/sbin/ usr/xenomai/lib/
  • 最后使用 ssh 将压缩存档复制到您的树莓派并解压缩。

    scp xenomai-rpi.tar.bz2 root@IP_Address_of_the_RPi:/

存档将被复制到根目录中。从树莓派,解压 xenomai-rpi.tar.bz2 到文件系统的根目录

tar -xvjf xenomai-rpi.tar.bz2
ls usr/xenomai/bin/
arith       cmd_write            insn_bits   latency               rtcansend    wf_generate           xeno-test
check-vdso  cond-torture-native  insn_read   mutex-torture-native  rtdm         wrap-link.sh          xeno-test-run
clocktest   cond-torture-posix   insn_write  mutex-torture-posix   sched-tp     xeno                  xeno-test-run-wrapper
cmd_bits    cyclictest           irqloop     regression            switchtest   xeno-config
cmd_read    dohell               klatency    rtcanrecv             wakeup-time  xeno-regression-test
  • 或者您可以手动执行此操作:

    cd /usr/xenomai raspPI/usr/xenomai$ scp bin/* root@ip_address:/usr/bin raspPI/usr/xenomai$ scp sbin/* root@ip_address:/usr/sbin raspPI/usr/xenomai$ scp lib/ * root@ip_address:/usr/lib

您现在拥有测试 Xenomai 实时功能的所有模块!

于 2015-01-27T15:14:59.970 回答