All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Novice - help needed
@ 2011-12-09  8:39 Damir Anicic
  2011-12-09 21:05 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 3+ messages in thread
From: Damir Anicic @ 2011-12-09  8:39 UTC (permalink / raw)
  To: xenomai

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):
 >>> 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

 >>> 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

 >>> dmesg | grep -i i-pipe
[    0.000000] I-pipe 2.10-01: pipeline enabled.
[    0.321045] I-pipe: Domain Xenomai registered.

 >>> 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.

 >>> 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

 >>> 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:

 >>> cd /usr/xenomai/bin

 >>> sudo ./mutex-torture-native
simple_wait
FAILURE: simple mutex_lock 1: 1 (Operation not permitted) instead of 0


 >>> sudo ./mutex-torture-posix
Xenomai Posix skin init: pthread_setschedparam: Function not implemented


 >>> sudo ./clocktest
Xenomai Posix skin init: pthread_setschedparam: Function not implemented


 >>> sudo ./wakeup-time
== Sampling period: 100 us
== Do not interrupt this program


Please help,

Damir





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai-help] Novice - help needed
  2011-12-09  8:39 [Xenomai-help] Novice - help needed Damir Anicic
@ 2011-12-09 21:05 ` Gilles Chanteperdrix
       [not found]   ` <4EE5BE9F.4060706@domain.hid>
  0 siblings, 1 reply; 3+ messages in thread
From: Gilles Chanteperdrix @ 2011-12-09 21:05 UTC (permalink / raw)
  To: Damir Anicic; +Cc: xenomai

On 12/09/2011 09:39 AM, Damir Anicic wrote:
> 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):

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


-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai-help] Novice - help needed
       [not found]   ` <4EE5BE9F.4060706@domain.hid>
@ 2011-12-12  8:53     ` Gilles Chanteperdrix
  0 siblings, 0 replies; 3+ messages in thread
From: Gilles Chanteperdrix @ 2011-12-12  8:53 UTC (permalink / raw)
  To: Damir Anicic; +Cc: Xenomai help

On 12/12/2011 09:43 AM, Damir Anicic wrote:
> Thanx, that worked, except it is  -fno-omit-frame-pointer   (without s 
> at the end)
> 
> I have another problem now - trying examples/posix :
> 
>  >>> 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
> 
>  >>> sudo insmod satch.ko
> insmod: error inserting 'satch.ko': -1 Unknown symbol in module
> 
>  >>> 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.

-- 
                                                                Gilles.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-12-12  8:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-09  8:39 [Xenomai-help] Novice - help needed Damir Anicic
2011-12-09 21:05 ` Gilles Chanteperdrix
     [not found]   ` <4EE5BE9F.4060706@domain.hid>
2011-12-12  8:53     ` Gilles Chanteperdrix

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.