From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Zany Super Chimp <zanychimp@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Problem building and running demos
Date: Mon, 25 Jun 2007 09:33:58 +0200 [thread overview]
Message-ID: <18047.28646.346636.399417@domain.hid> (raw)
In-Reply-To: <3f027d060706241451g70504604o6f4cfb7e1997398e@domain.hid>
Zany Super Chimp wrote:
> 2007/6/24, Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>:
> >
> > Bruno Rouchouse wrote:
> > > Hi Xeno users !
> > >
> > > just trying to play with Xenomai's demos but I'm having some problems
> > > compiling and running some of them.
> > >
> > > Satch for the native skin
> > > ==============
> > >
> > > I have some troubles here compiling satch.
> > >
> > > bruno@domain.hid$ make
> > > cc -o satch satch.c -I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT
> > > -D__XENO__ -L/usr/xenomai/lib -lpthread -lnative
> > > /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crt1.o: In function
> > > `_start':
> > > ../sysdeps/i386/elf/start.S:115: undefined reference to `main'
> > > collect2: ld returned 1 exit status
> > >
> > > Satch for the posix skin
> > > ==============
> > >
> > > Building process works fine but running satch fails :
> > > My .runinfo file looks like:
> > > satch:posix:!./satch_rt;popall:control_c
> > >
> > > bruno@domain.hid$ xeno-load ./:satch
> > > *
> > > *
> > > * Type ^C to stop this application.
> > > *
> > > *
> > > Satch: producer module not running, please launch producer module before
> > > launching consumer application.
> > > __xeno_user_init: 2
> > >
> > > I understand from xenomai/ksrc/skins/posix/demos/Kbuild and going
> > quickly
> > > through satch.c code that there should be a first module to insmod
> > before
> > > using the consumer module but how/when is the producer module supposed
> > to be
> > > built? I don't find any other module in my xenomai built tree or in my
> > > /lib/modules/*-ipipe kernel.
> >
> > You are supposed to run:
> > make -C /path/to/your/kernel/sources M=$PWD modules
> > because you know how to compile kernel modules outside of the kernel
> > tree. You then have a ksatch.ko kernel module. It does not even work
> > with 2.4 kernels.
>
>
> Well, shame on me then because I'm not too familiar with kernel module
> build process ;)
>
> I get some warnings though which prevent me from insmoding ksatch.koafterwards:
>
> bruno@domain.hid$ make -C /usr/src/linux-
> 2.6.20.14-ipipe M=$PWD modules
> make: Entering directory `/usr/src/linux-2.6.20.14-ipipe'
> CC [M] /home/bruno/xenomai/ksrc/skins/posix/demos/satch.o
> LD [M] /home/bruno/xenomai/ksrc/skins/posix/demos/ksatch.o
> Building modules, stage 2.
> MODPOST 1 modules
> WARNING: "shm_unlink" [/home/bruno/xenomai/ksrc/skins/posix/demos/ksatch.ko]
> undefined!
> WARNING: "mmap" [/home/bruno/xenomai/ksrc/skins/posix/demos/ksatch.ko]
> undefined!
> WARNING: "ftruncate" [/home/bruno/xenomai/ksrc/skins/posix/demos/ksatch.ko]
> undefined!
> WARNING: "pse51_shm_close"
> [/home/bruno/xenomai/ksrc/skins/posix/demos/ksatch.ko] undefined!
> WARNING: "shm_open" [/home/bruno/xenomai/ksrc/skins/posix/demos/ksatch.ko]
> undefined!
> WARNING: "munmap" [/home/bruno/xenomai/ksrc/skins/posix/demos/ksatch.ko]
> undefined!
> CC /home/bruno/xenomai/ksrc/skins/posix/demos/ksatch.mod.o
> LD [M] /home/bruno/xenomai/ksrc/skins/posix/demos/ksatch.ko
> make: Leaving directory `/usr/src/linux-2.6.20.14-ipipe'
>
> Something missing in the Kbuild file? How to reference symbols of the posix
> lib?
You have to select posix shared memory (CONFIG_XENO_OPT_POSIX_SHM) when
configuring the kernel.
--
Gilles Chanteperdrix.
prev parent reply other threads:[~2007-06-25 7:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-24 13:43 [Xenomai-help] Problem building and running demos Bruno Rouchouse
2007-06-24 17:25 ` Gilles Chanteperdrix
2007-06-24 21:51 ` Zany Super Chimp
2007-06-25 6:12 ` Jan Kiszka
2007-06-25 7:35 ` Gilles Chanteperdrix
2007-06-25 7:33 ` Gilles Chanteperdrix [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=18047.28646.346636.399417@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=xenomai@xenomai.org \
--cc=zanychimp@domain.hid \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.