From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <494BBF04.7090405@domain.hid> Date: Fri, 19 Dec 2008 16:34:28 +0100 From: Jan Kiszka MIME-Version: 1.0 References: <8b216e9e0812180831n6ebf4ff1gcb990864ba112eab@domain.hid> <494A7ED0.8090008@domain.hid> <8b216e9e0812180943v1ecc3fcasb45732cd9a58cde2@domain.hid> <494A8F3E.9090906@domain.hid> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] Xenomai OpenEmbedded cross compile test applications List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Charlton, John" Cc: "openembedded-devel@domain.hid" , Xenomai help 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