Novice - help needed
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=yCONFIG_XENO_GENERIC_STACKPOOL=yCONFIG_XENO_FASTSYNCH=yCONFIG_XENO_OPT_NUCLEUS=yCONFIG_XENO_OPT_PERVASIVE=yCONFIG_XENO_OPT_PRIOCPL=yCONFIG_XENO_OPT_PIPELINE_HEAD=yCONFIG_XENO_OPT_PIPE=yCONFIG_XENO_OPT_VFILE=yCONFIG_XENO_OPT_STATS=yCONFIG_XENO_OPT_DEBUG=yCONFIG_XENO_OPT_DEBUG_XNLOCK=yCONFIG_XENO_OPT_WATCHDOG=yCONFIG_XENO_OPT_SHIRQ=yCONFIG_XENO_OPT_SELECT=yCONFIG_XENO_OPT_HOSTRT=yCONFIG_XENO_OPT_TIMING_PERIODIC=yCONFIG_XENO_OPT_TIMER_LIST=yCONFIG_XENO_HW_FPU=yCONFIG_XENO_HW_SMI_DETECT=yCONFIG_XENO_HW_SMI_WORKAROUND=yCONFIG_XENO_HW_SMI_ALL=yCONFIG_XENO_SKIN_NATIVE=yCONFIG_XENO_OPT_NATIVE_PIPE=yCONFIG_XENO_OPT_NATIVE_SEM=yCONFIG_XENO_OPT_NATIVE_EVENT=yCONFIG_XENO_OPT_NATIVE_MUTEX=yCONFIG_XENO_OPT_NATIVE_COND=yCONFIG_XENO_OPT_NATIVE_QUEUE=yCONFIG_XENO_OPT_NATIVE_BUFFER=yCONFIG_XENO_OPT_NATIVE_HEAP=yCONFIG_XENO_OPT_NATIVE_ALARM=yCONFIG_XENO_OPT_NATIVE_MPS=yCONFIG_XENO_OPT_DEBUG_NATIVE=yCONFIG_XENO_SKIN_POSIX=yCONFIG_XENO_OPT_POSIX_SELECT=yCONFIG_XENO_OPT_DEBUG_POSIX=yCONFIG_XENO_SKIN_VXWORKS=yCONFIG_XENO_OPT_DEBUG_VXWORKS=yCONFIG_XENO_SKIN_RTDM=yCONFIG_XENO_OPT_RTDM_SELECT=yCONFIG_XENO_OPT_DEBUG_RTDM_APPL=yCONFIG_XENO_DRIVERS_TIMERBENCH=yCONFIG_XENO_DRIVERS_IRQBENCH=yCONFIG_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/binsudo ./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
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.
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/buildARCH=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 *.oQuoted 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.