All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrice Kadionik <kadionik@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Problem to cross-compile Xenomai	user-space	support
Date: Tue, 30 Mar 2010 17:00:32 +0200	[thread overview]
Message-ID: <4BB21210.8050508@domain.hid> (raw)
In-Reply-To: <4BB1D673.2050600@domain.hid>

Le 30/03/2010 12:46, Gilles Chanteperdrix a écrit :
> diff --git a/src/testsuite/unit/cond-torture.c
> b/src/testsuite/unit/cond-torture.c
> index a20e12f..2d40a29 100644
> --- a/src/testsuite/unit/cond-torture.c
> +++ b/src/testsuite/unit/cond-torture.c
> @@ -47,13 +47,13 @@ int mutex_init(mutex_t *mutex, int type, int pi)
>
>          pthread_mutexattr_init(&mattr);
>          pthread_mutexattr_settype(&mattr, type);
> -       if (pi != 0)
>   #ifdef HAVE_PTHREAD_MUTEXATTR_SETPROTOCOL
> +       if (pi != 0)
>                  pthread_mutexattr_setprotocol(&mattr, PTHREAD_PRIO_INHERIT);
>
>          err = pthread_mutex_init(mutex,&mattr);
>   #else
> -       else {
> +       if (pi != 0) {
>                  err = ENOSYS;
>                  goto out;
>          }
>    
The patch is OK. Everything compiles now. It runs on my NIOS II board.
Thanks Gilles.

Please find a patch for updating the Xenomai README file concerning NIOS II.

Cheers;
Patrice


-- 
--
Patrice Kadionik. F6KQH / F4CUQ
-----------

+----------------------------------------------------------------------+
+"Tout doit etre aussi simple que possible, pas seulement plus simple" +
+----------------------------------------------------------------------+
+ Patrice Kadionik             http://www.enseirb-matmeca.fr/~kadionik +
+ IMS Laboratory               http://www.ims-bordeaux.fr/             +
+ ENSEIRB-MATMECA              http://www.enseirb-matmeca.fr           +
+ PO BOX 99                    fax   : +33 5.56.37.20.23               +
+ 33402 TALENCE Cedex          voice : +33 5.56.84.23.47               +
+ FRANCE                       mailto:patrice.kadionik@domain.hid +
+----------------------------------------------------------------------+

=============================================================================
--- xenomai-2.5.2/README.INSTALL	2010-01-16 01:09:31.000000000 +0100
+++ xenomai-2.5.2.new/README.INSTALL	2010-03-30 16:48:54.000000000 +0200
@@ -451,8 +451,8 @@
  Note in Linux, IRQ 0 means auto-detected, so you must not use IRQ 0 for ANY devices.

  The Xenomai port for NIOS II uses extra hardware that you have to add in SOPC builder:
-- A  full featured 32-bit Timer named hrtimer with a 1 µs period.
-- A  full featured High Resolution 64-bit Timer named hrclock used for time stamping (1 µs period for example).
+- A full featured 32-bit Timer named hrtimer with a 1 us period.
+- A full featured High Resolution 64-bit Timer named hrclock used for time stamping (1 us period for example).

  PLEASE RESPECT hrtimer, hrclock names because the Xenomai port is based on them!

@@ -465,9 +465,10 @@

  You should first verify that uClinux without Xenomai can run on the target board.
  The typical actions for building the uClinux kernel for NIOS II (available here: http://www.nioswiki.com/) are:
-If $uClinux-dist is the path of NIOS II uClinux release, for example: /home/test/nios2-linux/uClinux-dist
+- If $linux_tree is the path of the NIOS II uClinux kernel source directory, for example: /home/test/nios2-linux/linux-2.6
+- If $uclinux is the path of the NIOS II uClinux distribution, for example: /home/test/nios2-linux/uClinux-dist

-$ cd $uClinux-dist
+$ cd $uclinux
  $ make menuconfig
  $ make vendor_hwselect SYSPTF=<path to your system ptf>
  $ make
@@ -475,11 +476,12 @@
  If the NIOS II cross-compiler is called nios2-linux-gcc, a typical compilation will look like:

  $ $xenomai_root/scripts/prepare-kernel.sh --arch=nios2 \
-  --adeos=$xenomai_root/ksrc/arch/nios2/patches/adeos-ipipe-2.6.26-rc6-nios2-* \
+  --adeos=$xenomai_root/ksrc/arch/nios2/patches/adeos-ipipe-2.6.30-nios2-* \
    --linux=$linux_tree
+
  $ $xenomai_root/configure --host=nios2-linux
-$ make install DESTDIR=$uClinux-dist/romf
-$ cd $uClinux-dist
+$ make install DESTDIR=$uclinux/romf
+$ cd $uclinux
  $ make

  2.6 Building with the --enable-linux-build option



  reply	other threads:[~2010-03-30 15:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-25 20:24 [Xenomai-help] Problem to cross-compile Xenomai user-space support Chtourou Sonda
2010-03-28 13:26 ` Patrice Kadionik
2010-03-29 22:20   ` Huan Fang
2010-03-29 22:23     ` Gilles Chanteperdrix
2010-03-30  9:05       ` Patrice Kadionik
2010-03-30  9:14         ` Gilles Chanteperdrix
2010-03-30  9:40           ` Patrice Kadionik
2010-03-30  9:40         ` Gilles Chanteperdrix
2010-03-30  9:46           ` Patrice Kadionik
2010-03-30 10:46             ` Gilles Chanteperdrix
2010-03-30 15:00               ` Patrice Kadionik [this message]
2010-03-30  8:37     ` Patrice Kadionik
2010-03-30 17:37       ` Huan Fang
2010-03-30 17:48         ` Patrice Kadionik
  -- strict thread matches above, loose matches on Subject: below --
2010-03-30 15:40 Chtourou Sonda
2010-03-30 16:45 ` Patrice Kadionik
2010-03-31 10:55 Chtourou Sonda
2010-04-01 10:49 ` Patrice Kadionik

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=4BB21210.8050508@domain.hid \
    --to=kadionik@domain.hid \
    --cc=gilles.chanteperdrix@xenomai.org \
    --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.