All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: "Charlton, John" <john.charlton@domain.hid>
Cc: "openembedded-devel@domain.hid" <openembedded-devel@domain.hid>,
	Xenomai help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Xenomai OpenEmbedded cross compile test applications
Date: Fri, 19 Dec 2008 16:34:28 +0100	[thread overview]
Message-ID: <494BBF04.7090405@domain.hid> (raw)
In-Reply-To: <CF7FB0793253794F9F45991443E5FE2003C951B97F@us194mx002.tycoelectronics.net>

Charlton, John wrote:
> Using the cross compile environment for OpenEmbedded i686 angstrom of xenomai-2.4.4 described below I built the xenomai test application trivial-periodic in xenomai-2.4.4/examples/native.  I copied the executable to the target system.  Since there is no /etc/ld.so.conf.d directory in the OE root file system, I made one and put the xenomai library path in the xenomai.conf file.  The xenomai.conf file just has the one directory: /usr/local/lib which does not even exist in the target file system.  I modified xenomai.conf to: /usr/xenomai/lib where the xenomai library files are actually located.  I also copied xenomai.conf to /etc and set LD_LIBRARY_PATH=/usr/xenomai/lib.
> 
> When I execute the trivail-periodic application on the target (NANO-7240) the console hangs and nothing happens.  I also ran trivial-periodic on a non cross compiled laptop build of xenomai and it runs as expected displaying the times on the console output. I login to the target using ssh and it is alive.  The trivial-periodic process shows up in the ps list as:
>  3077 root            Z   [trivial-periodi]
> So it is a zombie.  I can kill it with kill -9 3077 and that releases the console.
> Any help on this issue is welcome.
> 
> Also, how do I run the xenomai/src/testsuite applications in a target (non build) environment?
> 
> Background:
> I have applied the xenomai 2.4.4 patch to kernel 2.6.25.11.  I built the kernel and installed it on a ext2 flash partition and it boots on the target system. The /proc/xenomai directory shows up so xenomai seems to be running.  I built the xenomai user mode with the following commands:
> 
> Set the following:
> export XENOMAI_ROOT=/home/us075929/projects/oe/xenomai-2.4.4
> export XENOMAI_BUILD=/home/us075929/projects/oe/build-xenomai-2.4.4
> 
> cd $XENOMAI_BUILD
> $XENOMAI_ROOT/configure --disable-x86-tsc --host=i686-angstrom-linux
> 
> I am not sure what tsc refers to.  The only two parameters in my kernal configuration that come up are 'time stamp counter' and 'touch screen device support' both of which are disabled.  Since TSC is enabled by default and strong binding I disabled it in the xenomai configuration.

So you are most probably using a suboptimal, maybe even incorrect
.config for your target. It will surely support TSC (time stamp counter,
see also the Xenomai installation readme), you just have to adopt the
CPU type settings according to your target's CPU. What CPU type is it?
If unsure, select at least CONFIG_M586_TSC.

> 
> The xenomai configure goes smoothly.  I then install xenomai user support to a staging directory as follows:
> 
> export DESTDIR=/home/us075929/projects/oe/staging-linux-2.6.25.11
> 
> cd $XENOMAI_BUILD
> make install
> 
> The $DESTDIR/dev and $DESDIR/usr/xenomai are installed as expected.  I copy those directories to the target root file system, boot the target and run the trivial-periodic application as described above.
> 
> --John

If problems persist, please post your .config.

BTW, the stable Xenomai release is 2.4.6.1...

Jan

PS: Please don't start new threads by replying to old ones.

-- 
Siemens AG, Corporate Technology, CT SE 26
Corporate Competence Center Embedded Linux


  reply	other threads:[~2008-12-19 15:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <8b216e9e0812180831n6ebf4ff1gcb990864ba112eab@mail.gmail.com>
     [not found] ` <494A7ED0.8090008@xenomai.org>
     [not found]   ` <8b216e9e0812180943v1ecc3fcasb45732cd9a58cde2@mail.gmail.com>
     [not found]     ` <494A8F3E.9090906@xenomai.org>
2008-12-19 15:16       ` Xenomai OpenEmbedded cross compile test applications Charlton, John
2008-12-19 15:16         ` [Xenomai-help] " Charlton, John
2008-12-19 15:34         ` Jan Kiszka [this message]
2008-12-18 16:31 [Xenomai-help] Xenomai on Gumstix (ARM XScale PXA270) Felipe Brandão Cavalcanti
2008-12-18 16:48 ` Gilles Chanteperdrix
     [not found]   ` <8b216e9e0812180943v1ecc3fcasb45732cd9a58cde2@domain.hid>
2008-12-18 17:58     ` Gilles Chanteperdrix

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=494BBF04.7090405@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=john.charlton@domain.hid \
    --cc=openembedded-devel@domain.hid \
    --cc=xenomai@xenomai.org \
    /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.