Skip to contentSkip to conversation

Novice - help needed

Xenomai-help Damir Anicic 2 participants 3 messages Dec 9, 2011 – Dec 12, 2011 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi!

(Sorry for a long mail)

This is my first xenomai instalation.

Xenomai 2.6.0
linux kernel 2.6.38.8
on Ubuntu 11.10
on (normal) desktop intel PC ( Core(TM)2 Duo CPU )

All compiled and booted (it does boot xemonai-kernel):

xeno config:
$xenomai_root/configure --enable-x86-sep --enable-x86-tsc --enable-smp

kernel config(xeno):

Quoted 1 line
Quoted 1 line
Quoted 1 line

grep XENO .config | grep =y

CONFIG_XENOMAI=y
CONFIG_XENO_GENERIC_STACKPOOL=y
CONFIG_XENO_FASTSYNCH=y
CONFIG_XENO_OPT_NUCLEUS=y
CONFIG_XENO_OPT_PERVASIVE=y
CONFIG_XENO_OPT_PRIOCPL=y
CONFIG_XENO_OPT_PIPELINE_HEAD=y
CONFIG_XENO_OPT_PIPE=y
CONFIG_XENO_OPT_VFILE=y
CONFIG_XENO_OPT_STATS=y
CONFIG_XENO_OPT_DEBUG=y
CONFIG_XENO_OPT_DEBUG_XNLOCK=y
CONFIG_XENO_OPT_WATCHDOG=y
CONFIG_XENO_OPT_SHIRQ=y
CONFIG_XENO_OPT_SELECT=y
CONFIG_XENO_OPT_HOSTRT=y
CONFIG_XENO_OPT_TIMING_PERIODIC=y
CONFIG_XENO_OPT_TIMER_LIST=y
CONFIG_XENO_HW_FPU=y
CONFIG_XENO_HW_SMI_DETECT=y
CONFIG_XENO_HW_SMI_WORKAROUND=y
CONFIG_XENO_HW_SMI_ALL=y
CONFIG_XENO_SKIN_NATIVE=y
CONFIG_XENO_OPT_NATIVE_PIPE=y
CONFIG_XENO_OPT_NATIVE_SEM=y
CONFIG_XENO_OPT_NATIVE_EVENT=y
CONFIG_XENO_OPT_NATIVE_MUTEX=y
CONFIG_XENO_OPT_NATIVE_COND=y
CONFIG_XENO_OPT_NATIVE_QUEUE=y
CONFIG_XENO_OPT_NATIVE_BUFFER=y
CONFIG_XENO_OPT_NATIVE_HEAP=y
CONFIG_XENO_OPT_NATIVE_ALARM=y
CONFIG_XENO_OPT_NATIVE_MPS=y
CONFIG_XENO_OPT_DEBUG_NATIVE=y
CONFIG_XENO_SKIN_POSIX=y
CONFIG_XENO_OPT_POSIX_SELECT=y
CONFIG_XENO_OPT_DEBUG_POSIX=y
CONFIG_XENO_SKIN_VXWORKS=y
CONFIG_XENO_OPT_DEBUG_VXWORKS=y
CONFIG_XENO_SKIN_RTDM=y
CONFIG_XENO_OPT_RTDM_SELECT=y
CONFIG_XENO_OPT_DEBUG_RTDM_APPL=y
CONFIG_XENO_DRIVERS_TIMERBENCH=y
CONFIG_XENO_DRIVERS_IRQBENCH=y
CONFIG_XENO_DRIVERS_SWITCHTEST=y

Quoted 1 line
Quoted 1 line
Quoted 1 line

uname -a

Linux pc8084 2.6.38.8-xenomai #6 SMP PREEMPT Thu Dec 8 15:51:53 CET 2011 i686 i686 i386 GNU/Linux

Quoted 1 line
Quoted 1 line
Quoted 1 line

dmesg | grep -i i-pipe

[    0.000000] I-pipe 2.10-01: pipeline enabled.
[    0.321045] I-pipe: Domain Xenomai registered.
Quoted 1 line
Quoted 1 line
Quoted 1 line

dmesg | grep -i xeno

[    0.321045] Xenomai: hal/i386 started.
[    0.321045] Xenomai: scheduling class idle registered.
[    0.321045] Xenomai: scheduling class rt registered.
[    0.321045] Xenomai: real-time nucleus v2.6.0 (Movin' On) loaded.
[    0.321045] Xenomai: debug mode enabled.
[    0.321045] Xenomai: starting native API services.
[    0.321045] Xenomai: starting POSIX services.
[    0.321045] Xenomai: starting RTDM services.
[    0.321045] Xenomai: starting VxWorks services.
Quoted 1 line
Quoted 1 line
Quoted 1 line

ls -R /proc/xenomai

/proc/xenomai:
acct affinity apc faults heap interfaces irq latency lock registry rtdm sched schedclasses stat timebases timer timerstat version

/proc/xenomai/interfaces:
native posix rtdm sys vxworks

/proc/xenomai/registry:
usage

/proc/xenomai/rtdm:
fildes named_devices open_fildes protocol_devices rttest-irqbench0 rttest-switchtest0 rttest-timerbench0

/proc/xenomai/rtdm/rttest-irqbench0:
information

/proc/xenomai/rtdm/rttest-switchtest0:
information

/proc/xenomai/rtdm/rttest-timerbench0:
information

/proc/xenomai/schedclasses:
rt

/proc/xenomai/schedclasses/rt:
threads

/proc/xenomai/timerstat:
master vxworks

Quoted 1 line
Quoted 1 line
Quoted 1 line

ls /dev/rt*

/dev/rtc     /dev/rtp0   /dev/rtp11  /dev/rtp14  /dev/rtp17  /dev/rtp2   /dev/rtp22  /dev/rtp25  /dev/rtp28  /dev/rtp30  /dev/rtp5  /dev/rtp8
/dev/rtc0    /dev/rtp1   /dev/rtp12  /dev/rtp15  /dev/rtp18  /dev/rtp20  /dev/rtp23  /dev/rtp26  /dev/rtp29  /dev/rtp31  /dev/rtp6  /dev/rtp9
/dev/rtheap  /dev/rtp10  /dev/rtp13  /dev/rtp16  /dev/rtp19  /dev/rtp21  /dev/rtp24  /dev/rtp27  /dev/rtp3   /dev/rtp4   /dev/rtp7

But:

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

cd /usr/xenomai/bin

sudo ./mutex-torture-native

simple_wait
FAILURE: simple mutex_lock 1: 1 (Operation not permitted) instead of 0

Quoted 1 line
Quoted 1 line
Quoted 1 line

sudo ./mutex-torture-posix

Xenomai Posix skin init: pthread_setschedparam: Function not implemented

Quoted 1 line
Quoted 1 line
Quoted 1 line

sudo ./clocktest

Xenomai Posix skin init: pthread_setschedparam: Function not implemented

Quoted 1 line
Quoted 1 line
Quoted 1 line

sudo ./wakeup-time

== Sampling period: 100 us
== Do not interrupt this program

Please help,

Damir

#1 lore raw
Quoted 4 lines · Damir Anicic

Hi!

(Sorry for a long mail)

Quoted 8 lines

This is my first xenomai instalation.

Xenomai 2.6.0
linux kernel 2.6.38.8
on Ubuntu 11.10
on (normal) desktop intel PC ( Core(TM)2 Duo CPU )

All compiled and booted (it does boot xemonai-kernel):

If your compiler is gcc 4.6, please make sure to pass -fno-omit-frame-pointers
in the CFLAGS

Signature · 1 line
                                                                Gilles.
#3 lore raw
In reply to a message not in the archive
Quoted 31 lines · Damir Anicic

Thanx, that worked, except it is -fno-omit-frame-pointer (without s
at the end)

I have another problem now - trying examples/posix :

Quoted 1 line
Quoted 1 line
Quoted 1 line

make ARCH=x86 all

make -C /lib/modules/2.6.38.8-xenomai/build ARCH=x86 CROSS_COMPILE= SUBDIRS=/home/anicic/ttt/posix modules
make[1]: Entering directory `/home/anicic/Xenomai/linux-2.6.38.8'
CC [M] /home/anicic/ttt/posix/satch.o
/home/anicic/ttt/posix/satch.c: In function ‘__xeno_user_init’:
/home/anicic/ttt/posix/satch.c:296:5: warning: ‘pthread_create’ is deprecated (declared at /lib/modules/2.6.38.8-xenomai/build/include/xenomai/posix/pthread.h:270) [-Wdeprecated-declarations]
Building modules, stage 2.
MODPOST 1 modules
WARNING: "pse51_shm_close" [/home/anicic/ttt/posix/satch.ko] undefined!
WARNING: "mmap" [/home/anicic/ttt/posix/satch.ko] undefined!
WARNING: "ftruncate" [/home/anicic/ttt/posix/satch.ko] undefined!
WARNING: "shm_open" [/home/anicic/ttt/posix/satch.ko] undefined!
WARNING: "shm_unlink" [/home/anicic/ttt/posix/satch.ko] undefined!
WARNING: "munmap" [/home/anicic/ttt/posix/satch.ko] undefined!
CC /home/anicic/ttt/posix/satch.mod.o
LD [M] /home/anicic/ttt/posix/satch.ko
make[1]: Leaving directory `/home/anicic/Xenomai/linux-2.6.38.8' rm -f *.o

Quoted 1 line
Quoted 1 line
Quoted 1 line

sudo insmod satch.ko

insmod: error inserting 'satch.ko': -1 Unknown symbol in module

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

dmesg

[ 3988.840669] satch: Unknown symbol munmap (err 0)
[ 3988.840739] satch: Unknown symbol shm_open (err 0)
[ 3988.840990] satch: Unknown symbol pse51_shm_close (err 0)
[ 3988.841138] satch: Unknown symbol ftruncate (err 0)
[ 3988.841204] satch: Unknown symbol mmap (err 0)
[ 3988.841527] satch: Unknown symbol shm_unlink (err 0)

These are posix shared memory services. They are probably not enabled in your kernel configuration.

Please no private mails.

Signature · 1 line
                                                                Gilles.