All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] RTnet
@ 2018-02-28 14:13 Шевченко Тарас Григорьевич
  2018-02-28 15:01 ` Greg Gallagher
  0 siblings, 1 reply; 13+ messages in thread
From: Шевченко Тарас Григорьевич @ 2018-02-28 14:13 UTC (permalink / raw)
  To: xenomai


Hi! 

I do it first time and followed http://rtt-lwr.readthedocs.io/en/latest/rtpc/rtnet.html 

I tried to install rtnet and get some error 
taras@prog-pc12:~/RTnet$ sudo make menuconfig 
make[1]: Entering directory '/home/taras/RTnet/scripts/kconfig' 
# 
# using defaults found in ../../.rtnet_config 
# 


*** End of RTnet configuration. 
*** Execute 'make' to build RTnet or try 'make help'. 

make[1]: Leaving directory '/home/taras/RTnet/scripts/kconfig' 
/bin/sh: 3: /home/taras/RTnet/configure: not found 
makefile:51: recipe for target 'config.status' failed 
make: *** [config.status] Error 1 



or if i do  ./configure    a get 
checking for main in -lncurses... yes 
checking for RTnet Kconfig file... ./defconfig (default) 

checking for RT-extension... /usr/xenomai (Xenomai 2.0.x) 
checking for Xenomai version... configure: error: *** Unsupported Xenomai version 3.0.5 in /usr/xenomai 
taras@prog-pc12:~/RTnet$ 

What s wrong ? Please help/ 

some outputs 

taras@prog-pc12:/usr/xenomai/bin$ ./xeno-config --info|grep -i build 
Build args: --with-pic --with-core=cobalt --enable-smp --disable-tls --enable-dlopen-libs --disable-clock-monotonic-raw 

taras@prog-pc12:/usr/xenomai/bin$ cd /usr/xenomai/sbin/ 
taras@prog-pc12:/usr/xenomai/sbin$ ./version 
Xenomai/cobalt v3.0.5 

taras@prog-pc12:/usr/xenomai/sbin$ uname -r 
4.9.38-xenomai-3.0.5 



С уважением и надеждой на сотрудничество, 
Шевченко Т.Г. 

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

* Re: [Xenomai] RTnet
  2018-02-28 14:13 [Xenomai] RTnet Шевченко Тарас Григорьевич
@ 2018-02-28 15:01 ` Greg Gallagher
       [not found]   ` <429130936.8886425.1519831182179.JavaMail.zimbra@triolcorp.com.ua>
  0 siblings, 1 reply; 13+ messages in thread
From: Greg Gallagher @ 2018-02-28 15:01 UTC (permalink / raw)
  To: Шевченко
	Тарас
	Григорьевич
  Cc: Xenomai@xenomai.org

It looks like Xenomai 3.05 is not supported with the instructions you
are following.

-Greg

On Wed, Feb 28, 2018 at 9:13 AM, Шевченко Тарас Григорьевич
<shevchenko.taras@triolcorp.com.ua> wrote:
>
> Hi!
>
> I do it first time and followed http://rtt-lwr.readthedocs.io/en/latest/rtpc/rtnet.html
>
> I tried to install rtnet and get some error
> taras@prog-pc12:~/RTnet$ sudo make menuconfig
> make[1]: Entering directory '/home/taras/RTnet/scripts/kconfig'
> #
> # using defaults found in ../../.rtnet_config
> #
>
>
> *** End of RTnet configuration.
> *** Execute 'make' to build RTnet or try 'make help'.
>
> make[1]: Leaving directory '/home/taras/RTnet/scripts/kconfig'
> /bin/sh: 3: /home/taras/RTnet/configure: not found
> makefile:51: recipe for target 'config.status' failed
> make: *** [config.status] Error 1
>
>
>
> or if i do  ./configure    a get
> checking for main in -lncurses... yes
> checking for RTnet Kconfig file... ./defconfig (default)
>
> checking for RT-extension... /usr/xenomai (Xenomai 2.0.x)
> checking for Xenomai version... configure: error: *** Unsupported Xenomai version 3.0.5 in /usr/xenomai
> taras@prog-pc12:~/RTnet$
>
> What s wrong ? Please help/
>
> some outputs
>
> taras@prog-pc12:/usr/xenomai/bin$ ./xeno-config --info|grep -i build
> Build args: --with-pic --with-core=cobalt --enable-smp --disable-tls --enable-dlopen-libs --disable-clock-monotonic-raw
>
> taras@prog-pc12:/usr/xenomai/bin$ cd /usr/xenomai/sbin/
> taras@prog-pc12:/usr/xenomai/sbin$ ./version
> Xenomai/cobalt v3.0.5
>
> taras@prog-pc12:/usr/xenomai/sbin$ uname -r
> 4.9.38-xenomai-3.0.5
>
>
>
> С уважением и надеждой на сотрудничество,
> Шевченко Т.Г.
> _______________________________________________
> Xenomai mailing list
> Xenomai@xenomai.org
> https://xenomai.org/mailman/listinfo/xenomai


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

* Re: [Xenomai] RTnet
       [not found]   ` <429130936.8886425.1519831182179.JavaMail.zimbra@triolcorp.com.ua>
@ 2018-02-28 15:33     ` Greg Gallagher
       [not found]       ` <1139048827.8910394.1519833759993.JavaMail.zimbra@triolcorp.com.ua>
  0 siblings, 1 reply; 13+ messages in thread
From: Greg Gallagher @ 2018-02-28 15:33 UTC (permalink / raw)
  To: Шевченко
	Тарас
	Григорьевич,
	Xenomai@xenomai.org

Posting back to the list.  RtNet can be used with Xenomai-3, there's
been some recent discussion on how to do this.  You should look back
through the archive and see if those messages help and then if they
don't post back with a specific question.

On Wed, Feb 28, 2018 at 10:19 AM, Шевченко Тарас Григорьевич
<shevchenko.taras@triolcorp.com.ua> wrote:
> But  is it possible to use  Xenomai 3  with RTnet ?
> Could you point me right way to do it ?
>
> С уважением и надеждой на сотрудничество,
> Шевченко Т.Г.
>
> ----- Original Message -----
> From: "Greg Gallagher" <greg@embeddedgreg.com>
> To: "Шевченко Тарас Григорьевич" <shevchenko.taras@triolcorp.com.ua>
> Cc: "xenomai" <xenomai@xenomai.org>
> Sent: Wednesday, February 28, 2018 5:01:23 PM
> Subject: Re: [Xenomai] RTnet
>
> It looks like Xenomai 3.05 is not supported with the instructions you
> are following.
>
> -Greg
>
> On Wed, Feb 28, 2018 at 9:13 AM, Шевченко Тарас Григорьевич
> <shevchenko.taras@triolcorp.com.ua> wrote:
>>
>> Hi!
>>
>> I do it first time and followed http://rtt-lwr.readthedocs.io/en/latest/rtpc/rtnet.html
>>
>> I tried to install rtnet and get some error
>> taras@prog-pc12:~/RTnet$ sudo make menuconfig
>> make[1]: Entering directory '/home/taras/RTnet/scripts/kconfig'
>> #
>> # using defaults found in ../../.rtnet_config
>> #
>>
>>
>> *** End of RTnet configuration.
>> *** Execute 'make' to build RTnet or try 'make help'.
>>
>> make[1]: Leaving directory '/home/taras/RTnet/scripts/kconfig'
>> /bin/sh: 3: /home/taras/RTnet/configure: not found
>> makefile:51: recipe for target 'config.status' failed
>> make: *** [config.status] Error 1
>>
>>
>>
>> or if i do  ./configure    a get
>> checking for main in -lncurses... yes
>> checking for RTnet Kconfig file... ./defconfig (default)
>>
>> checking for RT-extension... /usr/xenomai (Xenomai 2.0.x)
>> checking for Xenomai version... configure: error: *** Unsupported Xenomai version 3.0.5 in /usr/xenomai
>> taras@prog-pc12:~/RTnet$
>>
>> What s wrong ? Please help/
>>
>> some outputs
>>
>> taras@prog-pc12:/usr/xenomai/bin$ ./xeno-config --info|grep -i build
>> Build args: --with-pic --with-core=cobalt --enable-smp --disable-tls --enable-dlopen-libs --disable-clock-monotonic-raw
>>
>> taras@prog-pc12:/usr/xenomai/bin$ cd /usr/xenomai/sbin/
>> taras@prog-pc12:/usr/xenomai/sbin$ ./version
>> Xenomai/cobalt v3.0.5
>>
>> taras@prog-pc12:/usr/xenomai/sbin$ uname -r
>> 4.9.38-xenomai-3.0.5
>>
>>
>>
>> С уважением и надеждой на сотрудничество,
>> Шевченко Т.Г.
>> _______________________________________________
>> Xenomai mailing list
>> Xenomai@xenomai.org
>> https://xenomai.org/mailman/listinfo/xenomai


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

* Re: [Xenomai] RTnet
       [not found]       ` <1139048827.8910394.1519833759993.JavaMail.zimbra@triolcorp.com.ua>
@ 2018-02-28 16:37         ` Greg Gallagher
  2018-02-28 16:46           ` Шевченко Тарас Григорьевич
  0 siblings, 1 reply; 13+ messages in thread
From: Greg Gallagher @ 2018-02-28 16:37 UTC (permalink / raw)
  To: Шевченко
	Тарас
	Григорьевич,
	Xenomai@xenomai.org

Please use reply all when responding or the rest of the list won't get
the benefit of the question or have the chance to help answer.

Have you built Xenomai from source?  It looks like you are pointing to
the modules only, I believe it needs the patched kernel source.

-Greg

On Wed, Feb 28, 2018 at 11:02 AM, Шевченко Тарас Григорьевич
<shevchenko.taras@triolcorp.com.ua> wrote:
> Thank for your reply
>
> I try  follow instruction  https://xenomai.org//rtnet-installation/
>
>
> after make menuconfig and set options
>
>     Variant→Xenomai 2.1
>     Add-ons→Real-time Capturing Support→ON
>     Examples→RTnet Application Examples→ON
> I  get
>
> .....
>
> checking for RTnet Kconfig file... .rtnet_config (supplied)
> checking for RT-extension... configure: error: *** RT-extended kernel not found in /lib/modules/4.9.38-xenomai-3.0.5/build
> makefile:51: recipe for target 'config.status' failed
> make: *** [config.status] Error 1
>
>
> this folder and path exist
>
> [*] RTnet Application Examples       │ │
>   │ │()    Real-time Extension Config-Tool Path (NEW)    which path  should I write here ?
>
>
>
>
>
>
>
>
>
> С уважением и надеждой на сотрудничество,
> Шевченко Т.Г.
>
> ----- Original Message -----
> From: "Greg Gallagher" <greg@embeddedgreg.com>
> To: "Шевченко Тарас Григорьевич" <shevchenko.taras@triolcorp.com.ua>, "xenomai" <xenomai@xenomai.org>
> Sent: Wednesday, February 28, 2018 5:33:25 PM
> Subject: Re: [Xenomai] RTnet
>
> Posting back to the list.  RtNet can be used with Xenomai-3, there's
> been some recent discussion on how to do this.  You should look back
> through the archive and see if those messages help and then if they
> don't post back with a specific question.
>
> On Wed, Feb 28, 2018 at 10:19 AM, Шевченко Тарас Григорьевич
> <shevchenko.taras@triolcorp.com.ua> wrote:
>> But  is it possible to use  Xenomai 3  with RTnet ?
>> Could you point me right way to do it ?
>>
>> С уважением и надеждой на сотрудничество,
>> Шевченко Т.Г.
>>
>> ----- Original Message -----
>> From: "Greg Gallagher" <greg@embeddedgreg.com>
>> To: "Шевченко Тарас Григорьевич" <shevchenko.taras@triolcorp.com.ua>
>> Cc: "xenomai" <xenomai@xenomai.org>
>> Sent: Wednesday, February 28, 2018 5:01:23 PM
>> Subject: Re: [Xenomai] RTnet
>>
>> It looks like Xenomai 3.05 is not supported with the instructions you
>> are following.
>>
>> -Greg
>>
>> On Wed, Feb 28, 2018 at 9:13 AM, Шевченко Тарас Григорьевич
>> <shevchenko.taras@triolcorp.com.ua> wrote:
>>>
>>> Hi!
>>>
>>> I do it first time and followed http://rtt-lwr.readthedocs.io/en/latest/rtpc/rtnet.html
>>>
>>> I tried to install rtnet and get some error
>>> taras@prog-pc12:~/RTnet$ sudo make menuconfig
>>> make[1]: Entering directory '/home/taras/RTnet/scripts/kconfig'
>>> #
>>> # using defaults found in ../../.rtnet_config
>>> #
>>>
>>>
>>> *** End of RTnet configuration.
>>> *** Execute 'make' to build RTnet or try 'make help'.
>>>
>>> make[1]: Leaving directory '/home/taras/RTnet/scripts/kconfig'
>>> /bin/sh: 3: /home/taras/RTnet/configure: not found
>>> makefile:51: recipe for target 'config.status' failed
>>> make: *** [config.status] Error 1
>>>
>>>
>>>
>>> or if i do  ./configure    a get
>>> checking for main in -lncurses... yes
>>> checking for RTnet Kconfig file... ./defconfig (default)
>>>
>>> checking for RT-extension... /usr/xenomai (Xenomai 2.0.x)
>>> checking for Xenomai version... configure: error: *** Unsupported Xenomai version 3.0.5 in /usr/xenomai
>>> taras@prog-pc12:~/RTnet$
>>>
>>> What s wrong ? Please help/
>>>
>>> some outputs
>>>
>>> taras@prog-pc12:/usr/xenomai/bin$ ./xeno-config --info|grep -i build
>>> Build args: --with-pic --with-core=cobalt --enable-smp --disable-tls --enable-dlopen-libs --disable-clock-monotonic-raw
>>>
>>> taras@prog-pc12:/usr/xenomai/bin$ cd /usr/xenomai/sbin/
>>> taras@prog-pc12:/usr/xenomai/sbin$ ./version
>>> Xenomai/cobalt v3.0.5
>>>
>>> taras@prog-pc12:/usr/xenomai/sbin$ uname -r
>>> 4.9.38-xenomai-3.0.5
>>>
>>>
>>>
>>> С уважением и надеждой на сотрудничество,
>>> Шевченко Т.Г.
>>> _______________________________________________
>>> Xenomai mailing list
>>> Xenomai@xenomai.org
>>> https://xenomai.org/mailman/listinfo/xenomai


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

* Re: [Xenomai] RTnet
  2018-02-28 16:37         ` Greg Gallagher
@ 2018-02-28 16:46           ` Шевченко Тарас Григорьевич
  2018-02-28 16:55             ` Greg Gallagher
  0 siblings, 1 reply; 13+ messages in thread
From: Шевченко Тарас Григорьевич @ 2018-02-28 16:46 UTC (permalink / raw)
  To: Greg Gallagher; +Cc: xenomai


Yes, all from sources
I Download it
 
wget https://xenomai.org/downloads/xenomai/stable/xenomai-3.0.5.tar.bz2


wget https://xenomai.org/downloads/ipipe/v4.x/x86/ipipe-core-4.9.38-x86-4.patch


and apply
../xenomai-3.0.5/scripts/prepare-kernel.sh --arch=x86_64 --ipipe=ipipe-core-4.9.38-x86-4.patch

then   make menuconfig

then install
and so on.....

С уважением и надеждой на сотрудничество,
Шевченко Т.Г.

----- Original Message -----
From: "Greg Gallagher" <greg@embeddedgreg.com>
To: "Шевченко Тарас Григорьевич" <shevchenko.taras@triolcorp.com.ua>, "xenomai" <xenomai@xenomai.org>
Sent: Wednesday, February 28, 2018 6:37:49 PM
Subject: Re: [Xenomai] RTnet

Please use reply all when responding or the rest of the list won't get
the benefit of the question or have the chance to help answer.

Have you built Xenomai from source?  It looks like you are pointing to
the modules only, I believe it needs the patched kernel source.

-Greg

On Wed, Feb 28, 2018 at 11:02 AM, Шевченко Тарас Григорьевич
<shevchenko.taras@triolcorp.com.ua> wrote:
> Thank for your reply
>
> I try  follow instruction  https://xenomai.org//rtnet-installation/
>
>
> after make menuconfig and set options
>
>     Variant→Xenomai 2.1
>     Add-ons→Real-time Capturing Support→ON
>     Examples→RTnet Application Examples→ON
> I  get
>
> .....
>
> checking for RTnet Kconfig file... .rtnet_config (supplied)
> checking for RT-extension... configure: error: *** RT-extended kernel not found in /lib/modules/4.9.38-xenomai-3.0.5/build
> makefile:51: recipe for target 'config.status' failed
> make: *** [config.status] Error 1
>
>
> this folder and path exist
>
> [*] RTnet Application Examples       │ │
>   │ │()    Real-time Extension Config-Tool Path (NEW)    which path  should I write here ?
>
>
>
>
>
>
>
>
>
> С уважением и надеждой на сотрудничество,
> Шевченко Т.Г.
>
> ----- Original Message -----
> From: "Greg Gallagher" <greg@embeddedgreg.com>
> To: "Шевченко Тарас Григорьевич" <shevchenko.taras@triolcorp.com.ua>, "xenomai" <xenomai@xenomai.org>
> Sent: Wednesday, February 28, 2018 5:33:25 PM
> Subject: Re: [Xenomai] RTnet
>
> Posting back to the list.  RtNet can be used with Xenomai-3, there's
> been some recent discussion on how to do this.  You should look back
> through the archive and see if those messages help and then if they
> don't post back with a specific question.
>
> On Wed, Feb 28, 2018 at 10:19 AM, Шевченко Тарас Григорьевич
> <shevchenko.taras@triolcorp.com.ua> wrote:
>> But  is it possible to use  Xenomai 3  with RTnet ?
>> Could you point me right way to do it ?
>>
>> С уважением и надеждой на сотрудничество,
>> Шевченко Т.Г.
>>
>> ----- Original Message -----
>> From: "Greg Gallagher" <greg@embeddedgreg.com>
>> To: "Шевченко Тарас Григорьевич" <shevchenko.taras@triolcorp.com.ua>
>> Cc: "xenomai" <xenomai@xenomai.org>
>> Sent: Wednesday, February 28, 2018 5:01:23 PM
>> Subject: Re: [Xenomai] RTnet
>>
>> It looks like Xenomai 3.05 is not supported with the instructions you
>> are following.
>>
>> -Greg
>>
>> On Wed, Feb 28, 2018 at 9:13 AM, Шевченко Тарас Григорьевич
>> <shevchenko.taras@triolcorp.com.ua> wrote:
>>>
>>> Hi!
>>>
>>> I do it first time and followed http://rtt-lwr.readthedocs.io/en/latest/rtpc/rtnet.html
>>>
>>> I tried to install rtnet and get some error
>>> taras@prog-pc12:~/RTnet$ sudo make menuconfig
>>> make[1]: Entering directory '/home/taras/RTnet/scripts/kconfig'
>>> #
>>> # using defaults found in ../../.rtnet_config
>>> #
>>>
>>>
>>> *** End of RTnet configuration.
>>> *** Execute 'make' to build RTnet or try 'make help'.
>>>
>>> make[1]: Leaving directory '/home/taras/RTnet/scripts/kconfig'
>>> /bin/sh: 3: /home/taras/RTnet/configure: not found
>>> makefile:51: recipe for target 'config.status' failed
>>> make: *** [config.status] Error 1
>>>
>>>
>>>
>>> or if i do  ./configure    a get
>>> checking for main in -lncurses... yes
>>> checking for RTnet Kconfig file... ./defconfig (default)
>>>
>>> checking for RT-extension... /usr/xenomai (Xenomai 2.0.x)
>>> checking for Xenomai version... configure: error: *** Unsupported Xenomai version 3.0.5 in /usr/xenomai
>>> taras@prog-pc12:~/RTnet$
>>>
>>> What s wrong ? Please help/
>>>
>>> some outputs
>>>
>>> taras@prog-pc12:/usr/xenomai/bin$ ./xeno-config --info|grep -i build
>>> Build args: --with-pic --with-core=cobalt --enable-smp --disable-tls --enable-dlopen-libs --disable-clock-monotonic-raw
>>>
>>> taras@prog-pc12:/usr/xenomai/bin$ cd /usr/xenomai/sbin/
>>> taras@prog-pc12:/usr/xenomai/sbin$ ./version
>>> Xenomai/cobalt v3.0.5
>>>
>>> taras@prog-pc12:/usr/xenomai/sbin$ uname -r
>>> 4.9.38-xenomai-3.0.5
>>>
>>>
>>>
>>> С уважением и надеждой на сотрудничество,
>>> Шевченко Т.Г.
>>> _______________________________________________
>>> Xenomai mailing list
>>> Xenomai@xenomai.org
>>> https://xenomai.org/mailman/listinfo/xenomai


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

* Re: [Xenomai] RTnet
  2018-02-28 16:46           ` Шевченко Тарас Григорьевич
@ 2018-02-28 16:55             ` Greg Gallagher
  2018-02-28 17:15               ` Шевченко Тарас Григорьевич
  0 siblings, 1 reply; 13+ messages in thread
From: Greg Gallagher @ 2018-02-28 16:55 UTC (permalink / raw)
  To: Шевченко
	Тарас
	Григорьевич
  Cc: xenomai

https://xenomai.org/documentation/xenomai-3/html/MIGRATION/#_rtnet_changes

I believe RTNet is built into Xenomai 3, so you just have to enable to
it in your menuconfig stage.  You don't have to build it separately.
I don't work with RTNet that much so my bad on longer answer.  You
should be able to enable the rtnet drivers you need from menuconfig
and then insert the drivers using modprobe.  You will have to unbind
the non-rt Ethernet drivers.  There was a recent thread that went into
detail about how to do this, please look at that thread.

On Wed, Feb 28, 2018 at 11:46 AM, Шевченко Тарас Григорьевич
<shevchenko.taras@triolcorp.com.ua> wrote:
>
> Yes, all from sources
> I Download it
>
> wget https://xenomai.org/downloads/xenomai/stable/xenomai-3.0.5.tar.bz2
>
>
> wget https://xenomai.org/downloads/ipipe/v4.x/x86/ipipe-core-4.9.38-x86-4.patch
>
>
> and apply
> ../xenomai-3.0.5/scripts/prepare-kernel.sh --arch=x86_64 --ipipe=ipipe-core-4.9.38-x86-4.patch
>
> then   make menuconfig
>
> then install
> and so on.....
>
> С уважением и надеждой на сотрудничество,
> Шевченко Т.Г.
>
> ----- Original Message -----
> From: "Greg Gallagher" <greg@embeddedgreg.com>
> To: "Шевченко Тарас Григорьевич" <shevchenko.taras@triolcorp.com.ua>, "xenomai" <xenomai@xenomai.org>
> Sent: Wednesday, February 28, 2018 6:37:49 PM
> Subject: Re: [Xenomai] RTnet
>
> Please use reply all when responding or the rest of the list won't get
> the benefit of the question or have the chance to help answer.
>
> Have you built Xenomai from source?  It looks like you are pointing to
> the modules only, I believe it needs the patched kernel source.
>
> -Greg
>
> On Wed, Feb 28, 2018 at 11:02 AM, Шевченко Тарас Григорьевич
> <shevchenko.taras@triolcorp.com.ua> wrote:
>> Thank for your reply
>>
>> I try  follow instruction  https://xenomai.org//rtnet-installation/
>>
>>
>> after make menuconfig and set options
>>
>>     Variant→Xenomai 2.1
>>     Add-ons→Real-time Capturing Support→ON
>>     Examples→RTnet Application Examples→ON
>> I  get
>>
>> .....
>>
>> checking for RTnet Kconfig file... .rtnet_config (supplied)
>> checking for RT-extension... configure: error: *** RT-extended kernel not found in /lib/modules/4.9.38-xenomai-3.0.5/build
>> makefile:51: recipe for target 'config.status' failed
>> make: *** [config.status] Error 1
>>
>>
>> this folder and path exist
>>
>> [*] RTnet Application Examples       │ │
>>   │ │()    Real-time Extension Config-Tool Path (NEW)    which path  should I write here ?
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> С уважением и надеждой на сотрудничество,
>> Шевченко Т.Г.
>>
>> ----- Original Message -----
>> From: "Greg Gallagher" <greg@embeddedgreg.com>
>> To: "Шевченко Тарас Григорьевич" <shevchenko.taras@triolcorp.com.ua>, "xenomai" <xenomai@xenomai.org>
>> Sent: Wednesday, February 28, 2018 5:33:25 PM
>> Subject: Re: [Xenomai] RTnet
>>
>> Posting back to the list.  RtNet can be used with Xenomai-3, there's
>> been some recent discussion on how to do this.  You should look back
>> through the archive and see if those messages help and then if they
>> don't post back with a specific question.
>>
>> On Wed, Feb 28, 2018 at 10:19 AM, Шевченко Тарас Григорьевич
>> <shevchenko.taras@triolcorp.com.ua> wrote:
>>> But  is it possible to use  Xenomai 3  with RTnet ?
>>> Could you point me right way to do it ?
>>>
>>> С уважением и надеждой на сотрудничество,
>>> Шевченко Т.Г.
>>>
>>> ----- Original Message -----
>>> From: "Greg Gallagher" <greg@embeddedgreg.com>
>>> To: "Шевченко Тарас Григорьевич" <shevchenko.taras@triolcorp.com.ua>
>>> Cc: "xenomai" <xenomai@xenomai.org>
>>> Sent: Wednesday, February 28, 2018 5:01:23 PM
>>> Subject: Re: [Xenomai] RTnet
>>>
>>> It looks like Xenomai 3.05 is not supported with the instructions you
>>> are following.
>>>
>>> -Greg
>>>
>>> On Wed, Feb 28, 2018 at 9:13 AM, Шевченко Тарас Григорьевич
>>> <shevchenko.taras@triolcorp.com.ua> wrote:
>>>>
>>>> Hi!
>>>>
>>>> I do it first time and followed http://rtt-lwr.readthedocs.io/en/latest/rtpc/rtnet.html
>>>>
>>>> I tried to install rtnet and get some error
>>>> taras@prog-pc12:~/RTnet$ sudo make menuconfig
>>>> make[1]: Entering directory '/home/taras/RTnet/scripts/kconfig'
>>>> #
>>>> # using defaults found in ../../.rtnet_config
>>>> #
>>>>
>>>>
>>>> *** End of RTnet configuration.
>>>> *** Execute 'make' to build RTnet or try 'make help'.
>>>>
>>>> make[1]: Leaving directory '/home/taras/RTnet/scripts/kconfig'
>>>> /bin/sh: 3: /home/taras/RTnet/configure: not found
>>>> makefile:51: recipe for target 'config.status' failed
>>>> make: *** [config.status] Error 1
>>>>
>>>>
>>>>
>>>> or if i do  ./configure    a get
>>>> checking for main in -lncurses... yes
>>>> checking for RTnet Kconfig file... ./defconfig (default)
>>>>
>>>> checking for RT-extension... /usr/xenomai (Xenomai 2.0.x)
>>>> checking for Xenomai version... configure: error: *** Unsupported Xenomai version 3.0.5 in /usr/xenomai
>>>> taras@prog-pc12:~/RTnet$
>>>>
>>>> What s wrong ? Please help/
>>>>
>>>> some outputs
>>>>
>>>> taras@prog-pc12:/usr/xenomai/bin$ ./xeno-config --info|grep -i build
>>>> Build args: --with-pic --with-core=cobalt --enable-smp --disable-tls --enable-dlopen-libs --disable-clock-monotonic-raw
>>>>
>>>> taras@prog-pc12:/usr/xenomai/bin$ cd /usr/xenomai/sbin/
>>>> taras@prog-pc12:/usr/xenomai/sbin$ ./version
>>>> Xenomai/cobalt v3.0.5
>>>>
>>>> taras@prog-pc12:/usr/xenomai/sbin$ uname -r
>>>> 4.9.38-xenomai-3.0.5
>>>>
>>>>
>>>>
>>>> С уважением и надеждой на сотрудничество,
>>>> Шевченко Т.Г.
>>>> _______________________________________________
>>>> Xenomai mailing list
>>>> Xenomai@xenomai.org
>>>> https://xenomai.org/mailman/listinfo/xenomai


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

* Re: [Xenomai] RTnet
  2018-02-28 16:55             ` Greg Gallagher
@ 2018-02-28 17:15               ` Шевченко Тарас Григорьевич
  2018-02-28 17:16                 ` Greg Gallagher
  0 siblings, 1 reply; 13+ messages in thread
From: Шевченко Тарас Григорьевич @ 2018-02-28 17:15 UTC (permalink / raw)
  To: Greg Gallagher; +Cc: xenomai

Thanks a lot )))))

may be should you remove this page https://xenomai.org//rtnet-installation/  or add a note abaut xenomai version for such installation

with best regards
Taras


С уважением и надеждой на сотрудничество,
Шевченко Т.Г.

----- Original Message -----
From: "Greg Gallagher" <greg@embeddedgreg.com>
To: "Шевченко Тарас Григорьевич" <shevchenko.taras@triolcorp.com.ua>
Cc: "xenomai" <xenomai@xenomai.org>
Sent: Wednesday, February 28, 2018 6:55:55 PM
Subject: Re: [Xenomai] RTnet

https://xenomai.org/documentation/xenomai-3/html/MIGRATION/#_rtnet_changes

I believe RTNet is built into Xenomai 3, so you just have to enable to
it in your menuconfig stage.  You don't have to build it separately.
I don't work with RTNet that much so my bad on longer answer.  You
should be able to enable the rtnet drivers you need from menuconfig
and then insert the drivers using modprobe.  You will have to unbind
the non-rt Ethernet drivers.  There was a recent thread that went into
detail about how to do this, please look at that thread.

On Wed, Feb 28, 2018 at 11:46 AM, Шевченко Тарас Григорьевич
<shevchenko.taras@triolcorp.com.ua> wrote:
>
> Yes, all from sources
> I Download it
>
> wget https://xenomai.org/downloads/xenomai/stable/xenomai-3.0.5.tar.bz2
>
>
> wget https://xenomai.org/downloads/ipipe/v4.x/x86/ipipe-core-4.9.38-x86-4.patch
>
>
> and apply
> ../xenomai-3.0.5/scripts/prepare-kernel.sh --arch=x86_64 --ipipe=ipipe-core-4.9.38-x86-4.patch
>
> then   make menuconfig
>
> then install
> and so on.....
>
> С уважением и надеждой на сотрудничество,
> Шевченко Т.Г.
>
> ----- Original Message -----
> From: "Greg Gallagher" <greg@embeddedgreg.com>
> To: "Шевченко Тарас Григорьевич" <shevchenko.taras@triolcorp.com.ua>, "xenomai" <xenomai@xenomai.org>
> Sent: Wednesday, February 28, 2018 6:37:49 PM
> Subject: Re: [Xenomai] RTnet
>
> Please use reply all when responding or the rest of the list won't get
> the benefit of the question or have the chance to help answer.
>
> Have you built Xenomai from source?  It looks like you are pointing to
> the modules only, I believe it needs the patched kernel source.
>
> -Greg
>
> On Wed, Feb 28, 2018 at 11:02 AM, Шевченко Тарас Григорьевич
> <shevchenko.taras@triolcorp.com.ua> wrote:
>> Thank for your reply
>>
>> I try  follow instruction  https://xenomai.org//rtnet-installation/
>>
>>
>> after make menuconfig and set options
>>
>>     Variant→Xenomai 2.1
>>     Add-ons→Real-time Capturing Support→ON
>>     Examples→RTnet Application Examples→ON
>> I  get
>>
>> .....
>>
>> checking for RTnet Kconfig file... .rtnet_config (supplied)
>> checking for RT-extension... configure: error: *** RT-extended kernel not found in /lib/modules/4.9.38-xenomai-3.0.5/build
>> makefile:51: recipe for target 'config.status' failed
>> make: *** [config.status] Error 1
>>
>>
>> this folder and path exist
>>
>> [*] RTnet Application Examples       │ │
>>   │ │()    Real-time Extension Config-Tool Path (NEW)    which path  should I write here ?
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> С уважением и надеждой на сотрудничество,
>> Шевченко Т.Г.
>>
>> ----- Original Message -----
>> From: "Greg Gallagher" <greg@embeddedgreg.com>
>> To: "Шевченко Тарас Григорьевич" <shevchenko.taras@triolcorp.com.ua>, "xenomai" <xenomai@xenomai.org>
>> Sent: Wednesday, February 28, 2018 5:33:25 PM
>> Subject: Re: [Xenomai] RTnet
>>
>> Posting back to the list.  RtNet can be used with Xenomai-3, there's
>> been some recent discussion on how to do this.  You should look back
>> through the archive and see if those messages help and then if they
>> don't post back with a specific question.
>>
>> On Wed, Feb 28, 2018 at 10:19 AM, Шевченко Тарас Григорьевич
>> <shevchenko.taras@triolcorp.com.ua> wrote:
>>> But  is it possible to use  Xenomai 3  with RTnet ?
>>> Could you point me right way to do it ?
>>>
>>> С уважением и надеждой на сотрудничество,
>>> Шевченко Т.Г.
>>>
>>> ----- Original Message -----
>>> From: "Greg Gallagher" <greg@embeddedgreg.com>
>>> To: "Шевченко Тарас Григорьевич" <shevchenko.taras@triolcorp.com.ua>
>>> Cc: "xenomai" <xenomai@xenomai.org>
>>> Sent: Wednesday, February 28, 2018 5:01:23 PM
>>> Subject: Re: [Xenomai] RTnet
>>>
>>> It looks like Xenomai 3.05 is not supported with the instructions you
>>> are following.
>>>
>>> -Greg
>>>
>>> On Wed, Feb 28, 2018 at 9:13 AM, Шевченко Тарас Григорьевич
>>> <shevchenko.taras@triolcorp.com.ua> wrote:
>>>>
>>>> Hi!
>>>>
>>>> I do it first time and followed http://rtt-lwr.readthedocs.io/en/latest/rtpc/rtnet.html
>>>>
>>>> I tried to install rtnet and get some error
>>>> taras@prog-pc12:~/RTnet$ sudo make menuconfig
>>>> make[1]: Entering directory '/home/taras/RTnet/scripts/kconfig'
>>>> #
>>>> # using defaults found in ../../.rtnet_config
>>>> #
>>>>
>>>>
>>>> *** End of RTnet configuration.
>>>> *** Execute 'make' to build RTnet or try 'make help'.
>>>>
>>>> make[1]: Leaving directory '/home/taras/RTnet/scripts/kconfig'
>>>> /bin/sh: 3: /home/taras/RTnet/configure: not found
>>>> makefile:51: recipe for target 'config.status' failed
>>>> make: *** [config.status] Error 1
>>>>
>>>>
>>>>
>>>> or if i do  ./configure    a get
>>>> checking for main in -lncurses... yes
>>>> checking for RTnet Kconfig file... ./defconfig (default)
>>>>
>>>> checking for RT-extension... /usr/xenomai (Xenomai 2.0.x)
>>>> checking for Xenomai version... configure: error: *** Unsupported Xenomai version 3.0.5 in /usr/xenomai
>>>> taras@prog-pc12:~/RTnet$
>>>>
>>>> What s wrong ? Please help/
>>>>
>>>> some outputs
>>>>
>>>> taras@prog-pc12:/usr/xenomai/bin$ ./xeno-config --info|grep -i build
>>>> Build args: --with-pic --with-core=cobalt --enable-smp --disable-tls --enable-dlopen-libs --disable-clock-monotonic-raw
>>>>
>>>> taras@prog-pc12:/usr/xenomai/bin$ cd /usr/xenomai/sbin/
>>>> taras@prog-pc12:/usr/xenomai/sbin$ ./version
>>>> Xenomai/cobalt v3.0.5
>>>>
>>>> taras@prog-pc12:/usr/xenomai/sbin$ uname -r
>>>> 4.9.38-xenomai-3.0.5
>>>>
>>>>
>>>>
>>>> С уважением и надеждой на сотрудничество,
>>>> Шевченко Т.Г.
>>>> _______________________________________________
>>>> Xenomai mailing list
>>>> Xenomai@xenomai.org
>>>> https://xenomai.org/mailman/listinfo/xenomai


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

* Re: [Xenomai] RTnet
  2018-02-28 17:15               ` Шевченко Тарас Григорьевич
@ 2018-02-28 17:16                 ` Greg Gallagher
  0 siblings, 0 replies; 13+ messages in thread
From: Greg Gallagher @ 2018-02-28 17:16 UTC (permalink / raw)
  To: Шевченко
	Тарас
	Григорьевич
  Cc: xenomai

On the TODO list :)

On Wed, Feb 28, 2018 at 12:15 PM, Шевченко Тарас Григорьевич
<shevchenko.taras@triolcorp.com.ua> wrote:
> Thanks a lot )))))
>
> may be should you remove this page https://xenomai.org//rtnet-installation/  or add a note abaut xenomai version for such installation
>
> with best regards
> Taras
>
>
> С уважением и надеждой на сотрудничество,
> Шевченко Т.Г.
>
> ----- Original Message -----
> From: "Greg Gallagher" <greg@embeddedgreg.com>
> To: "Шевченко Тарас Григорьевич" <shevchenko.taras@triolcorp.com.ua>
> Cc: "xenomai" <xenomai@xenomai.org>
> Sent: Wednesday, February 28, 2018 6:55:55 PM
> Subject: Re: [Xenomai] RTnet
>
> https://xenomai.org/documentation/xenomai-3/html/MIGRATION/#_rtnet_changes
>
> I believe RTNet is built into Xenomai 3, so you just have to enable to
> it in your menuconfig stage.  You don't have to build it separately.
> I don't work with RTNet that much so my bad on longer answer.  You
> should be able to enable the rtnet drivers you need from menuconfig
> and then insert the drivers using modprobe.  You will have to unbind
> the non-rt Ethernet drivers.  There was a recent thread that went into
> detail about how to do this, please look at that thread.
>
> On Wed, Feb 28, 2018 at 11:46 AM, Шевченко Тарас Григорьевич
> <shevchenko.taras@triolcorp.com.ua> wrote:
>>
>> Yes, all from sources
>> I Download it
>>
>> wget https://xenomai.org/downloads/xenomai/stable/xenomai-3.0.5.tar.bz2
>>
>>
>> wget https://xenomai.org/downloads/ipipe/v4.x/x86/ipipe-core-4.9.38-x86-4.patch
>>
>>
>> and apply
>> ../xenomai-3.0.5/scripts/prepare-kernel.sh --arch=x86_64 --ipipe=ipipe-core-4.9.38-x86-4.patch
>>
>> then   make menuconfig
>>
>> then install
>> and so on.....
>>
>> С уважением и надеждой на сотрудничество,
>> Шевченко Т.Г.
>>
>> ----- Original Message -----
>> From: "Greg Gallagher" <greg@embeddedgreg.com>
>> To: "Шевченко Тарас Григорьевич" <shevchenko.taras@triolcorp.com.ua>, "xenomai" <xenomai@xenomai.org>
>> Sent: Wednesday, February 28, 2018 6:37:49 PM
>> Subject: Re: [Xenomai] RTnet
>>
>> Please use reply all when responding or the rest of the list won't get
>> the benefit of the question or have the chance to help answer.
>>
>> Have you built Xenomai from source?  It looks like you are pointing to
>> the modules only, I believe it needs the patched kernel source.
>>
>> -Greg
>>
>> On Wed, Feb 28, 2018 at 11:02 AM, Шевченко Тарас Григорьевич
>> <shevchenko.taras@triolcorp.com.ua> wrote:
>>> Thank for your reply
>>>
>>> I try  follow instruction  https://xenomai.org//rtnet-installation/
>>>
>>>
>>> after make menuconfig and set options
>>>
>>>     Variant→Xenomai 2.1
>>>     Add-ons→Real-time Capturing Support→ON
>>>     Examples→RTnet Application Examples→ON
>>> I  get
>>>
>>> .....
>>>
>>> checking for RTnet Kconfig file... .rtnet_config (supplied)
>>> checking for RT-extension... configure: error: *** RT-extended kernel not found in /lib/modules/4.9.38-xenomai-3.0.5/build
>>> makefile:51: recipe for target 'config.status' failed
>>> make: *** [config.status] Error 1
>>>
>>>
>>> this folder and path exist
>>>
>>> [*] RTnet Application Examples       │ │
>>>   │ │()    Real-time Extension Config-Tool Path (NEW)    which path  should I write here ?
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> С уважением и надеждой на сотрудничество,
>>> Шевченко Т.Г.
>>>
>>> ----- Original Message -----
>>> From: "Greg Gallagher" <greg@embeddedgreg.com>
>>> To: "Шевченко Тарас Григорьевич" <shevchenko.taras@triolcorp.com.ua>, "xenomai" <xenomai@xenomai.org>
>>> Sent: Wednesday, February 28, 2018 5:33:25 PM
>>> Subject: Re: [Xenomai] RTnet
>>>
>>> Posting back to the list.  RtNet can be used with Xenomai-3, there's
>>> been some recent discussion on how to do this.  You should look back
>>> through the archive and see if those messages help and then if they
>>> don't post back with a specific question.
>>>
>>> On Wed, Feb 28, 2018 at 10:19 AM, Шевченко Тарас Григорьевич
>>> <shevchenko.taras@triolcorp.com.ua> wrote:
>>>> But  is it possible to use  Xenomai 3  with RTnet ?
>>>> Could you point me right way to do it ?
>>>>
>>>> С уважением и надеждой на сотрудничество,
>>>> Шевченко Т.Г.
>>>>
>>>> ----- Original Message -----
>>>> From: "Greg Gallagher" <greg@embeddedgreg.com>
>>>> To: "Шевченко Тарас Григорьевич" <shevchenko.taras@triolcorp.com.ua>
>>>> Cc: "xenomai" <xenomai@xenomai.org>
>>>> Sent: Wednesday, February 28, 2018 5:01:23 PM
>>>> Subject: Re: [Xenomai] RTnet
>>>>
>>>> It looks like Xenomai 3.05 is not supported with the instructions you
>>>> are following.
>>>>
>>>> -Greg
>>>>
>>>> On Wed, Feb 28, 2018 at 9:13 AM, Шевченко Тарас Григорьевич
>>>> <shevchenko.taras@triolcorp.com.ua> wrote:
>>>>>
>>>>> Hi!
>>>>>
>>>>> I do it first time and followed http://rtt-lwr.readthedocs.io/en/latest/rtpc/rtnet.html
>>>>>
>>>>> I tried to install rtnet and get some error
>>>>> taras@prog-pc12:~/RTnet$ sudo make menuconfig
>>>>> make[1]: Entering directory '/home/taras/RTnet/scripts/kconfig'
>>>>> #
>>>>> # using defaults found in ../../.rtnet_config
>>>>> #
>>>>>
>>>>>
>>>>> *** End of RTnet configuration.
>>>>> *** Execute 'make' to build RTnet or try 'make help'.
>>>>>
>>>>> make[1]: Leaving directory '/home/taras/RTnet/scripts/kconfig'
>>>>> /bin/sh: 3: /home/taras/RTnet/configure: not found
>>>>> makefile:51: recipe for target 'config.status' failed
>>>>> make: *** [config.status] Error 1
>>>>>
>>>>>
>>>>>
>>>>> or if i do  ./configure    a get
>>>>> checking for main in -lncurses... yes
>>>>> checking for RTnet Kconfig file... ./defconfig (default)
>>>>>
>>>>> checking for RT-extension... /usr/xenomai (Xenomai 2.0.x)
>>>>> checking for Xenomai version... configure: error: *** Unsupported Xenomai version 3.0.5 in /usr/xenomai
>>>>> taras@prog-pc12:~/RTnet$
>>>>>
>>>>> What s wrong ? Please help/
>>>>>
>>>>> some outputs
>>>>>
>>>>> taras@prog-pc12:/usr/xenomai/bin$ ./xeno-config --info|grep -i build
>>>>> Build args: --with-pic --with-core=cobalt --enable-smp --disable-tls --enable-dlopen-libs --disable-clock-monotonic-raw
>>>>>
>>>>> taras@prog-pc12:/usr/xenomai/bin$ cd /usr/xenomai/sbin/
>>>>> taras@prog-pc12:/usr/xenomai/sbin$ ./version
>>>>> Xenomai/cobalt v3.0.5
>>>>>
>>>>> taras@prog-pc12:/usr/xenomai/sbin$ uname -r
>>>>> 4.9.38-xenomai-3.0.5
>>>>>
>>>>>
>>>>>
>>>>> С уважением и надеждой на сотрудничество,
>>>>> Шевченко Т.Г.
>>>>> _______________________________________________
>>>>> Xenomai mailing list
>>>>> Xenomai@xenomai.org
>>>>> https://xenomai.org/mailman/listinfo/xenomai


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

* Re: [Xenomai] RTNET
  2015-04-14  8:15   ` romain.perier
@ 2015-10-03 12:29     ` Gilles Chanteperdrix
  0 siblings, 0 replies; 13+ messages in thread
From: Gilles Chanteperdrix @ 2015-10-03 12:29 UTC (permalink / raw)
  To: romain.perier; +Cc: xenomai

On Tue, Apr 14, 2015 at 10:15:56AM +0200, romain.perier@scle.fr wrote:
> Le 14/04/2015 09:35, Gilles Chanteperdrix a écrit :
> >> I have two questions :
> >>
> >> 1. Have you any ideas about the problem described above ?
> > No, the macb driver has been tested on AT91, and was working. Have
> > you tried loading rtipv4 and passing an IP address to rtifconfig (in
> > that order)?
> 
> I have just tried, same behaviour, it freezes.
> $ modprobe rtipv4 (rtnet and macb are already loaded)
> $ /usr/xenomai/sbin/rtifconfig rteth0 up 192.168.0.1
>    # freeze

I finally tried the macb driver with the at91 sama5d3 GEM, and could
not reproduce any issue.

-- 
					    Gilles.
https://click-hack.org


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

* Re: [Xenomai] RTNET
  2015-04-14  7:34 ` Gilles Chanteperdrix
  2015-04-14  8:04   ` Gilles Chanteperdrix
@ 2015-04-14  8:15   ` romain.perier
  2015-10-03 12:29     ` Gilles Chanteperdrix
  1 sibling, 1 reply; 13+ messages in thread
From: romain.perier @ 2015-04-14  8:15 UTC (permalink / raw)
  To: gilles.chanteperdrix; +Cc: xenomai

Le 14/04/2015 09:35, Gilles Chanteperdrix a écrit :
>> I have two questions :
>>
>> 1. Have you any ideas about the problem described above ?
> No, the macb driver has been tested on AT91, and was working. Have
> you tried loading rtipv4 and passing an IP address to rtifconfig (in
> that order)?

I have just tried, same behaviour, it freezes.
$ modprobe rtipv4 (rtnet and macb are already loaded)
$ /usr/xenomai/sbin/rtifconfig rteth0 up 192.168.0.1
   # freeze



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

* Re: [Xenomai] RTNET
  2015-04-14  7:34 ` Gilles Chanteperdrix
@ 2015-04-14  8:04   ` Gilles Chanteperdrix
  2015-04-14  8:15   ` romain.perier
  1 sibling, 0 replies; 13+ messages in thread
From: Gilles Chanteperdrix @ 2015-04-14  8:04 UTC (permalink / raw)
  To: romain.perier; +Cc: xenomai

On Tue, Apr 14, 2015 at 09:34:54AM +0200, Gilles Chanteperdrix wrote:
> On Tue, Apr 14, 2015 at 09:17:59AM +0200, romain.perier@scle.fr wrote:
> > Hi all,
> > 
> > We're deploying Xenomai 3.0-rc4 (3.16.7 mainline kernel, in dual-kernel
> > mode) on a Zynq ZC702. Everything works fine except when we try to use
> > ethernet in the xenomai mode. The driver is called "macb" and it is
> > already ported to RTDM. macb is correctly loaded and initialized, the
> > mac controller is correctly connected to the phy, BUT, when I play a bit
> > with rtifconfig , the systems hangs.
> > 
> > # rtifconfig rteth0 up
> >  [  495.846877] macb e000b000.ethernet eth0: link up (1000/Full)
> >  # and now everything is freezed (only when the cable is plugged)
> > 
> > After some investigations, if I disable the call to rtdm_irq_request(),
> > the systems no longer freezes. So, It seems to be an issue caused by
> > interrupts handling.
> > I use the devicetree to tells to linux which driver I want to use for
> > the corresponding mac controller, I just change the "compatible" string.
> > I renamed xeno-macb compatible string to "cdns,rtgem" instead of
> > "cdns,gem" .In this way I can use the first mac controller in linux and
> > the second one in xenomai, each one with a different device driver. Both
> > interrupts are from Cortex-A9 GIC.
> > (I already tested to use only one mac controller at a time, same problem)
> 
> This is a bad way to use devicetree go, the devicetree is a
> description of the hardware, not of the software handling it, so the
> rtnet driver should use exactly the same compatible device as linux
> driver. If you need to bind a device to a driver, use the
> bind/unbind files in the /sys filesystem:
> https://lwn.net/Articles/143397/
> 
> 
> > 
> > I have two questions :
> > 
> > 1. Have you any ideas about the problem described above ?
> 
> No, the macb driver has been tested on AT91, and was working. Have
> you tried loading rtipv4 and passing an IP address to rtifconfig (in
> that order)?

Actually, I believe I only tested the macb driver, not the gem one.
The AT91 I have has both, but my ethernet cable is plugged on the
macb.

-- 
					    Gilles.


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

* Re: [Xenomai] RTNET
  2015-04-14  7:17 [Xenomai] RTNET romain.perier
@ 2015-04-14  7:34 ` Gilles Chanteperdrix
  2015-04-14  8:04   ` Gilles Chanteperdrix
  2015-04-14  8:15   ` romain.perier
  0 siblings, 2 replies; 13+ messages in thread
From: Gilles Chanteperdrix @ 2015-04-14  7:34 UTC (permalink / raw)
  To: romain.perier; +Cc: xenomai

On Tue, Apr 14, 2015 at 09:17:59AM +0200, romain.perier@scle.fr wrote:
> Hi all,
> 
> We're deploying Xenomai 3.0-rc4 (3.16.7 mainline kernel, in dual-kernel
> mode) on a Zynq ZC702. Everything works fine except when we try to use
> ethernet in the xenomai mode. The driver is called "macb" and it is
> already ported to RTDM. macb is correctly loaded and initialized, the
> mac controller is correctly connected to the phy, BUT, when I play a bit
> with rtifconfig , the systems hangs.
> 
> # rtifconfig rteth0 up
>  [  495.846877] macb e000b000.ethernet eth0: link up (1000/Full)
>  # and now everything is freezed (only when the cable is plugged)
> 
> After some investigations, if I disable the call to rtdm_irq_request(),
> the systems no longer freezes. So, It seems to be an issue caused by
> interrupts handling.
> I use the devicetree to tells to linux which driver I want to use for
> the corresponding mac controller, I just change the "compatible" string.
> I renamed xeno-macb compatible string to "cdns,rtgem" instead of
> "cdns,gem" .In this way I can use the first mac controller in linux and
> the second one in xenomai, each one with a different device driver. Both
> interrupts are from Cortex-A9 GIC.
> (I already tested to use only one mac controller at a time, same problem)

This is a bad way to use devicetree go, the devicetree is a
description of the hardware, not of the software handling it, so the
rtnet driver should use exactly the same compatible device as linux
driver. If you need to bind a device to a driver, use the
bind/unbind files in the /sys filesystem:
https://lwn.net/Articles/143397/


> 
> I have two questions :
> 
> 1. Have you any ideas about the problem described above ?

No, the macb driver has been tested on AT91, and was working. Have
you tried loading rtipv4 and passing an IP address to rtifconfig (in
that order)?

> 2. I was wondering, if it is possible to use ethernet from a xenomai
> application without rtdm and rtnet. in other words, it is possible to
> use linux device driver from xenomai mode ? (if it is possible,
> I guess that my application will switch from the primary mode to the
> secondary mode very often, no?)

Question contains a contradiction: if you want to use an ethernet
from xenomai (or primary) mode, then obviously, there is no way
around an RTDM driver. If you want to use Linux IP stack from
secondary mode, then obviously, yes, it should work.

-- 
					    Gilles.


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

* [Xenomai] RTNET
@ 2015-04-14  7:17 romain.perier
  2015-04-14  7:34 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 13+ messages in thread
From: romain.perier @ 2015-04-14  7:17 UTC (permalink / raw)
  To: xenomai

Hi all,

We're deploying Xenomai 3.0-rc4 (3.16.7 mainline kernel, in dual-kernel
mode) on a Zynq ZC702. Everything works fine except when we try to use
ethernet in the xenomai mode. The driver is called "macb" and it is
already ported to RTDM. macb is correctly loaded and initialized, the
mac controller is correctly connected to the phy, BUT, when I play a bit
with rtifconfig , the systems hangs.

# rtifconfig rteth0 up
 [  495.846877] macb e000b000.ethernet eth0: link up (1000/Full)
 # and now everything is freezed (only when the cable is plugged)

After some investigations, if I disable the call to rtdm_irq_request(),
the systems no longer freezes. So, It seems to be an issue caused by
interrupts handling.
I use the devicetree to tells to linux which driver I want to use for
the corresponding mac controller, I just change the "compatible" string.
I renamed xeno-macb compatible string to "cdns,rtgem" instead of
"cdns,gem" . In this way I can use the first mac controller in linux and
the second one in xenomai, each one with a different device driver. Both
interrupts are from Cortex-A9 GIC.
(I already tested to use only one mac controller at a time, same problem)

I have two questions :

1. Have you any ideas about the problem described above ?
2. I was wondering, if it is possible to use ethernet from a xenomai
application without rtdm and rtnet. in other words, it is possible to
use linux device driver from xenomai mode ? (if it is possible,
I guess that my application will switch from the primary mode to the
secondary mode very often, no?)

Regards,

Romain



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

end of thread, other threads:[~2018-02-28 17:16 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-28 14:13 [Xenomai] RTnet Шевченко Тарас Григорьевич
2018-02-28 15:01 ` Greg Gallagher
     [not found]   ` <429130936.8886425.1519831182179.JavaMail.zimbra@triolcorp.com.ua>
2018-02-28 15:33     ` Greg Gallagher
     [not found]       ` <1139048827.8910394.1519833759993.JavaMail.zimbra@triolcorp.com.ua>
2018-02-28 16:37         ` Greg Gallagher
2018-02-28 16:46           ` Шевченко Тарас Григорьевич
2018-02-28 16:55             ` Greg Gallagher
2018-02-28 17:15               ` Шевченко Тарас Григорьевич
2018-02-28 17:16                 ` Greg Gallagher
  -- strict thread matches above, loose matches on Subject: below --
2015-04-14  7:17 [Xenomai] RTNET romain.perier
2015-04-14  7:34 ` Gilles Chanteperdrix
2015-04-14  8:04   ` Gilles Chanteperdrix
2015-04-14  8:15   ` romain.perier
2015-10-03 12:29     ` Gilles Chanteperdrix

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.