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@ServerMing xenomai-2.5.6]# pwd
> /usr/src/xenomai/xenomai-2.5.6
> [root@ServerMing 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@ServerMing 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.
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help