All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Xenomai-help] Xenomai-help Digest, Vol 60, Issue 2
@ 2010-09-03 12:56 C Robinson
  2010-09-03 14:32 ` Philippe Gerum
  0 siblings, 1 reply; 4+ messages in thread
From: C Robinson @ 2010-09-03 12:56 UTC (permalink / raw)
  To: xenomai


Hi,

So the position I am in is still not knowing how to run the examples.   Attempting the command "sudo make  /home/<user name>/xenomai-2.5.4" from the directory /usr/xenomai_egs/xenomai-head/examples/, results in the following error (as mentioned previously):

----------------------------------------------------------------------------------------------------------------------------
xddp-echo.c: In function ?realtime_thread?:
xddp-echo.c:115: error: ?SOL_XDDP? undeclared (first use in this function)
xddp-echo.c:115: error: (Each undeclared identifier is reported only once
xddp-echo.c:115: error: for each function it appears in.)
xddp-echo.c:115: error: ?XDDP_POOLSZ? undeclared (first use in this function)
make[1]: *** [xddp-echo] Error 1
---------------------------------------------------------------------------------------------------------------------------

and shortly afterwards ended with:

make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/xenomai_egs/xenomai-head/examples/posix'

How do I get around this error?  In addition, is it ok to use the default user account. (or should a specific xenomai account be set up)

Trying to get up the man pages results in:

---------------------------------------------------------------------------------------------------------------------------
clocktest man
The program 'clocktest' is currently not installed.  You can install it by typing:
sudo apt-get install xenomai-runtime
---------------------------------------------------------------------------------------------------------------------------
Is this because I installed the xenomai-runtime package manually via the Debian guideline ? (Synaptic shows this as being already installed, perhaps this is a result of the earlier problem?).


Thanks,
Charles


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

* Re: [Xenomai-help] Xenomai-help Digest, Vol 60, Issue 2
  2010-09-03 12:56 C Robinson
@ 2010-09-03 14:32 ` Philippe Gerum
  0 siblings, 0 replies; 4+ messages in thread
From: Philippe Gerum @ 2010-09-03 14:32 UTC (permalink / raw)
  To: C Robinson; +Cc: xenomai

On Fri, 2010-09-03 at 08:56 -0400, C Robinson wrote:
> Hi,
> 
> So the position I am in is still not knowing how to run the examples.   Attempting the command "sudo make  /home/<user name>/xenomai-2.5.4" from the directory /usr/xenomai_egs/xenomai-head/examples/, results in the following error (as mentioned previously):
> 
> ----------------------------------------------------------------------------------------------------------------------------
> xddp-echo.c: In function ?realtime_thread?:
> xddp-echo.c:115: error: ?SOL_XDDP? undeclared (first use in this function)
> xddp-echo.c:115: error: (Each undeclared identifier is reported only once
> xddp-echo.c:115: error: for each function it appears in.)
> xddp-echo.c:115: error: ?XDDP_POOLSZ? undeclared (first use in this function)
> make[1]: *** [xddp-echo] Error 1
> ---------------------------------------------------------------------------------------------------------------------------
> 
> and shortly afterwards ended with:
> 
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/usr/xenomai_egs/xenomai-head/examples/posix'
> 
> How do I get around this error?  In addition, is it ok to use the default user account. (or should a specific xenomai account be set up)
> 

The guidelines are misleading, in the sense that pulling xenomai-head
today will download the code for the upcoming 2.6.x release.
Unfortunately, changes were made to the rtipc support for 2.6.x, which
are not available to 2.5.x. So, building the xenomai-head (2.6.x)
examples against headers and libraries belonging to 2.5(.4) won't
neither build nor work.

Sorry for the time lost fiddling with this. The guidelines were written
at a time when -head was actually the development tree for the 2.5.x
release. We opened the 2.6.x branch recently, thus becoming the new
-head.

> 
> Trying to get up the man pages results in:
> 
> ---------------------------------------------------------------------------------------------------------------------------
> clocktest man
> The program 'clocktest' is currently not installed.  You can install it by typing:
> sudo apt-get install xenomai-runtime
> ---------------------------------------------------------------------------------------------------------------------------
> Is this because I installed the xenomai-runtime package manually via the Debian guideline ? (Synaptic shows this as being already installed, perhaps this is a result of the earlier problem?).
> 

I can't tell, but I can give you the steps to build any 2.5.x release
the way it should work for you, i.e. from the official tarball, assuming
x86 is your target system:

- unpack xenomai-2.5.4.tar.bz2 (yeah, ok, this one is no news)
- mkdir -p .../your/build/tree
- cd .../your/build/tree
- .../xenomai-2.5.4/configure [--enable-x86-sep]* [--prefix=/install-dir]
- make install

At this stage, you should have the userland bits properly compiled and
installed in /install-dir. This defaults to /usr/xenomai if
unspecified. 

Those userland bits should work with any Xenomai 2.5.x kernel support,
regardless of whether you got it from the ubuntu/debian repos via apt,
or rebuilt it manually, assuming that the distro package was built with
sane defaults.

If you plan to rebuild your own kernel with Xenomai support instead of
picking the one shipped with the distro, then README.INSTALL, §2.1
should help. Why this could be a good idea is explained here: 
http://www.xenomai.org/index.php/FAQs#Tips_and_tricks_setting_up_your_x86_kernel

If you go for manual install, I would suggest that you purge all
previous Xenomai packages from your system, to avoid hair pulling
conflicts.

(*) best for x86_32, unless if running pre-Pentium II+ antiques. Not
needed on x86_64.

> 
> Thanks,
> Charles
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help

-- 
Philippe.




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

* Re: [Xenomai-help] Xenomai-help Digest, Vol 60, Issue 2
@ 2010-09-06 12:03 C Robinson
  2010-09-06 13:18 ` Stefan Kisdaroczi
  0 siblings, 1 reply; 4+ messages in thread
From: C Robinson @ 2010-09-06 12:03 UTC (permalink / raw)
  To: rpm; +Cc: xenomai

Thanks Philippe for the detailed response, that clears up several things.   However, some things are a bit more confusing.   I've divided my reply into three section, my aim,  the current state of affairs and what I will try next. (Thanks for your patience with me).


===========Section 1 ----My goal

Can I say that I'm looking for the most straight-forward method of getting Xenomai up and running on my Ubuntu system.   I have software that requires the Xenomai OS.


>From Philippe's comment, "If you plan to rebuild your own kernel with Xenomai support instead of picking the one shipped with the distro" I get the impression that I have taken the long way?
Bear in mind that my first question to the mailing list was asking if the Xenomai packages available from the repository (i.e. installing xenomai-runtime, linux-patch-xenomai, libxenomai1 ) were sufficient to turn a Ubuntu installation into a Xenomai OS.   I was directed to the Debian installation guide.   This indicated to me that it was necessary to build and install the Debian packages, but in addition it was still necessary to compile a new kernel patched during the process (so I wonder what is the purpose of the linux-patch-xenomai).

The requirement to compile the kernel I took from the mentioned guide:
"for "production" systems, you should just need xenomai-runtime und libxenomai1 (together with the self built kernel as described in the next section)"



===========Section 2 ----My situation before Philippe's last email


I found another testsuite located in the install directory of /home/<user>/xenomai-2.5.4/src/testsuite, from which I was able to build the examples.   However, I still got the following:

> clocktest man
> The program 'clocktest' is currently not installed.  You can install it by typing:
> sudo apt-get install xenomai-runtime

 (despite synaptic showing it as installed and v2.5.4)


The following steps were done while following the guide:
-----------------------------------------------------------------------------------------------------------------------------
fakeroot make-kpkg --initrd --append-to-version -xenomai-2.5.4 --revision 1.0 binary-arch
dpkg -i linux-image*.deb
update-initramfs -c -k 2.6.32.15-xenomai-2.5.4 && update-grub
-----------------------------------------------------------------------------------------------------------------------------

and with xenomai-runtime still undetected, I found another guide with some additional steps (so I believed) :
-----------------------------------------------------------------------------------------------------------------------------
 User Part

cd /usr/xenomai
./configure
make
make install

Test Xenomai:

cd /usr/xenomai/bin
./latency -p0 -t1
-----------------------------------------------------------------------------------------------------------------------------

No success (the configure did work though),  I still received the instruction to install xenomai-runtime


===========Section 3 ----Philippe's last suggestion.

Right, so the following are the packages installed according to a cache search for xenomai:

linux-image-2.6.32.15-xenomai-2.5.4 - Linux kernel binary image for version 2.6.32.15-xenomai-2.5.4
linux-patch-xenomai - Linux kernel patches for Xenomai
xenomai-doc - Xenomai documentation
linux-image-2.6.32.15-xenomai-2.5.4-dbg - Linux kernel debug image for version 2.6.32.15-xenomai-2.5.4
libxenomai1 - Shared libraries for Xenomai
libxenomai-dev - Headers and static libs for Xenomai
xenomai-runtime - Xenomai runtime utilities


Before I follow the steps provided by Philippe, I'm going to try the packages provided in the Ubuntu repository.   I realise these are out of date, but if they allow me to finally ave a Xenomai OS on which I can install the software I will be working with, then I can perhaps have another go later when I have some of my project underway.

So I will uninstall the following packages and replace with the ubuntu ones after which, if not working,  I will try Philippe's steps

xenomai-doc - Xenomai documentation
libxenomai1 - Shared libraries for Xenomai
libxenomai-dev - Headers and static libs for Xenomai
xenomai-runtime - Xenomai runtime utilities


Cheers,
Charles


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

* Re: [Xenomai-help] Xenomai-help Digest, Vol 60, Issue 2
  2010-09-06 12:03 [Xenomai-help] Xenomai-help Digest, Vol 60, Issue 2 C Robinson
@ 2010-09-06 13:18 ` Stefan Kisdaroczi
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Kisdaroczi @ 2010-09-06 13:18 UTC (permalink / raw)
  To: starknight__; +Cc: xenomai

[-- Attachment #1: Type: text/plain, Size: 5318 bytes --]

Hi,

Am 06.09.2010 14:03, schrieb C Robinson:
> Thanks Philippe for the detailed response, that clears up several things.   However, some things are a bit more confusing.   I've divided my reply into three section, my aim,  the current state of affairs and what I will try next. (Thanks for your patience with me).
> 
> 
> ===========Section 1 ----My goal
> 
> Can I say that I'm looking for the most straight-forward method of getting Xenomai up and running on my Ubuntu system.   I have software that requires the Xenomai OS.
> 
> 
>>From Philippe's comment, "If you plan to rebuild your own kernel with Xenomai support instead of picking the one shipped with the distro" I get the impression that I have taken the long way?

Debian and Ubuntu don't ship a prebuilt xenomai/adeos enabled kernel. You have to patch and build the kernel yourself.

> Bear in mind that my first question to the mailing list was asking if the Xenomai packages available from the repository (i.e. installing xenomai-runtime, linux-patch-xenomai, libxenomai1 ) were sufficient to turn a Ubuntu installation into a Xenomai OS.   I was directed to the Debian installation guide.   This indicated to me that it was necessary to build and install the Debian packages, but in addition it was still necessary to compile a new kernel patched during the process (so I wonder what is the purpose of the linux-patch-xenomai).
> 
> The requirement to compile the kernel I took from the mentioned guide:
> "for "production" systems, you should just need xenomai-runtime und libxenomai1 (together with the self built kernel as described in the next section)"

Thats still true, you need to install the packages mentioned and a self built kernel.

> ===========Section 2 ----My situation before Philippe's last email
> 
> 
> I found another testsuite located in the install directory of /home/<user>/xenomai-2.5.4/src/testsuite, from which I was able to build the examples.   However, I still got the following:
> 
>> clocktest man
>> The program 'clocktest' is currently not installed.  You can install it by typing:
>> sudo apt-get install xenomai-runtime
> 
>  (despite synaptic showing it as installed and v2.5.4)

The testsuite is not installed in /usr/bin/ anymore using debian packages, try:
/usr/lib/xenomai/clocktest

/usr/lib/xenomai/ is not in the search path, you have to use absolute paths.

> The following steps were done while following the guide:
> -----------------------------------------------------------------------------------------------------------------------------
> fakeroot make-kpkg --initrd --append-to-version -xenomai-2.5.4 --revision 1.0 binary-arch
> dpkg -i linux-image*.deb
> update-initramfs -c -k 2.6.32.15-xenomai-2.5.4 && update-grub
> -----------------------------------------------------------------------------------------------------------------------------
> 
> and with xenomai-runtime still undetected, I found another guide with some additional steps (so I believed) :
> -----------------------------------------------------------------------------------------------------------------------------

This is the 'standard' way to install xenomai. Install the debian packages like you did, or use this standard way. But don't mix both.

>  User Part
> 
> cd /usr/xenomai
> ./configure
> make
> make install
> 
> Test Xenomai:
> 
> cd /usr/xenomai/bin
> ./latency -p0 -t1
> -----------------------------------------------------------------------------------------------------------------------------
> 
> No success (the configure did work though),  I still received the instruction to install xenomai-runtime
> 
> 
> ===========Section 3 ----Philippe's last suggestion.
> 
> Right, so the following are the packages installed according to a cache search for xenomai:
> 
> linux-image-2.6.32.15-xenomai-2.5.4 - Linux kernel binary image for version 2.6.32.15-xenomai-2.5.4
> linux-patch-xenomai - Linux kernel patches for Xenomai
> xenomai-doc - Xenomai documentation
> linux-image-2.6.32.15-xenomai-2.5.4-dbg - Linux kernel debug image for version 2.6.32.15-xenomai-2.5.4
> libxenomai1 - Shared libraries for Xenomai
> libxenomai-dev - Headers and static libs for Xenomai
> xenomai-runtime - Xenomai runtime utilities

Looks good.

> Before I follow the steps provided by Philippe, I'm going to try the packages provided in the Ubuntu repository.   I realise these are out of date, but if they allow me to finally ave a Xenomai OS on which I can install the software I will be working with, then I can perhaps have another go later when I have some of my project underway.
> So I will uninstall the following packages and replace with the ubuntu ones after which, if not working,  I will try Philippe's steps

Please don't do this, look first at the directory /usr/lib/xenomai/ and call the utils with absolute paths.


Regards Stefan

> xenomai-doc - Xenomai documentation
> libxenomai1 - Shared libraries for Xenomai
> libxenomai-dev - Headers and static libs for Xenomai
> xenomai-runtime - Xenomai runtime utilities
> 
> 
> Cheers,
> Charles
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
> 



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]

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

end of thread, other threads:[~2010-09-06 13:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-06 12:03 [Xenomai-help] Xenomai-help Digest, Vol 60, Issue 2 C Robinson
2010-09-06 13:18 ` Stefan Kisdaroczi
  -- strict thread matches above, loose matches on Subject: below --
2010-09-03 12:56 C Robinson
2010-09-03 14:32 ` Philippe Gerum

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.