All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: yi zheng <yizheng23@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Fwd: building xenomai for AT91SAM9263
Date: Mon, 22 Aug 2011 14:36:05 +0200	[thread overview]
Message-ID: <4E524D35.2090002@domain.hid> (raw)
In-Reply-To: <CAHoMn5q4gk+FMjWDx75c8rsRa7dxUvLM5OxqkBJVgSFr3pQRHA@mail.gmail.com>

On 08/22/2011 02:09 PM, yi zheng wrote:
>>
>>
>>>>>
>>>>>
>>>>>>>>>> Hi,all
>>>>>>>>>>       i am a newer to xenomai.Now i want to build xenomai for my
>>>>> target
>>>>>>>>>> platform with AT91SAM9263 ARM and linux kernel vision 2.6.25.I use
>>>>>>>>>> arm-linux-gcc 3.4.1 for compiler,
>>>>>>>>>> is it suitable for build
>>>>>>>>>> xenomai?which xenomai vision is better for me?
>>>>>>>>>
>>>>>>>>>> Xenomai 2.5.6 is the latest stable release, it should work. But
>> I-pipe
>>>>>>>>>> patches for later linux kernel releases have support for FCSE,
>> which
>>>>>>>>>> greatly improves latencies. As for the version of gcc, I have only
>>>>> been
>>>>>>>>> using gcc 4 for a long time.
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>                                             Gilles.
>>>>>>>>
>>>>>>>      Hi Gilles
>>>>>>>            thank you for your kindly replying.I have used
>> linux-2.6.25
>>>>>>> and Xenomai 2.4.4 today.I compiled both linux kernel and Xenomai
>>>>>
>>>>>> If you have no special reason for using such old versions, you should
>>>>>> probably use the latest releases.
>>>>
>>>>      Actually,I want to use RTnet-0.9.12 for my target platform.The
>> network
>>>> card driver contained in RTnet-0.9.12 comes from linux kernel
>> vision2.6.25.I
>>>> prepare to use the same kernel vision as the author who ported standard
>>>> linux network card driver to RTnet.
>>
>>> As I already told you, you can use Xenomai 2.5.6 with linux 2.6.25, so,
>>> that is not a good reason.
>>
>    I have used  Xenomai 2.5.6 with linux 2.6.25,but i got errors when
> compiled linux kernel. compilation process is described  as follows.
>    1)patch linux kernel with 2.6.25-at91.patch.
>    2)[root@domain.hid xenomai-2.5.6]# pwd
> /usr/src/xenomai/xenomai-2.5.6
> [root@domain.hid xenomai-2.5.6]# scripts/prepare-kernel.sh --arch=arm
> --adeos=ksrc/arch/arm/patches/adeos-ipipe-2.6.25-arm-1.9-02.patch
> --linux=/usr/src/xenomai/linux-2.6.25
>    3)configure linux kernel.
>    4)[root@domain.hid linux-2.6.25]# make uImage
>  and  I got:
>  In file included from include/asm/xenomai/system.h:29,
>                  from include/xenomai/nucleus/types.h:41,
>                  from include/xenomai/nucleus/queue.h:24,
>                  from include/xenomai/nucleus/heap.h:25,
>                  from kernel/xenomai/nucleus/bufd.c:144:
> include/asm-generic/xenomai/system.h:452: error: parse error before
> "phys_addr_t"

Ok. That is because phys_addr_t is only defined by linux 2.6.27 and
later. You just have to add a typedef for phys_addr_t, but you are
right, we have not tested with old linux releases for some time, and it
finally broke.

>>> Now, the natural question is: do you get the same problems with xenomai
>>> 2.5.6? Because if you do not get them with xenomai 2.5.6, it means that
>>> you hit a bug that was already solved. As long as you persist in using
>>> outdated versions, nobody will lift a finger to try and debug issues
>>> that may have already been fixed in later releases.
>>
>    As previously mentioned I have tried Xenomai 2.5.6 with failure,so I
> thought linux kernel vision and Xenomai vision must match wrong.I
> have neither used Xenomai and RTnet before.Now i only want to insure Xenomai
> and RTnet can  run smoothly with the minimum effort.

If you want to run xenomai and rtnet with the minimum effort, you should
use the latest releases. xenomai 2.5.6, with the latest patch for ARM it
contains, with rtnet 0.9.12. If that does not work, you can ask
questions here, you will get support.

There should not be any reason why an rtnet driver would be written for
a specific linux kernel version.

-- 
					    Gilles.



      reply	other threads:[~2011-08-22 12:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-19  5:29 [Xenomai-help] building xenomai for AT91SAM9263 yi zheng
2011-08-19  9:16 ` Gilles Chanteperdrix
     [not found]   ` <CAHoMn5pdOi_CZUXj_57b2X3HGZKTux5b-_NMxJQ2b9pVbfwNYg@domain.hid>
2011-08-20  2:20     ` [Xenomai-help] Fwd: " yi zheng
2011-08-20 18:29       ` Gilles Chanteperdrix
2011-08-22  8:55         ` yi zheng
2011-08-22 10:45           ` Gilles Chanteperdrix
2011-08-22 12:09             ` yi zheng
2011-08-22 12:36               ` 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=4E524D35.2090002@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=xenomai@xenomai.org \
    --cc=yizheng23@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.