All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] RTDM: Ethernet driver
@ 2014-04-22  9:45 yogesh garg
  2014-04-22 11:16 ` Anders Blomdell
  2014-04-23  7:36 ` Jeroen Van den Keybus
  0 siblings, 2 replies; 7+ messages in thread
From: yogesh garg @ 2014-04-22  9:45 UTC (permalink / raw)
  To: xenomai

 I want to write Ethernet (NIC) driver on Xenomai using RTDM. I don't want
to use RTnet. Can someone suggest me any example code or useful links/docs
which can help me to do so.

-- 
Regards,
Yogesh Garg

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

* Re: [Xenomai] RTDM: Ethernet driver
  2014-04-22  9:45 [Xenomai] RTDM: Ethernet driver yogesh garg
@ 2014-04-22 11:16 ` Anders Blomdell
  2014-04-22 11:53   ` Michael Haberler
  2014-04-23  7:36 ` Jeroen Van den Keybus
  1 sibling, 1 reply; 7+ messages in thread
From: Anders Blomdell @ 2014-04-22 11:16 UTC (permalink / raw)
  To: yogesh garg, xenomai

On 04/22/2014 11:45 AM, yogesh garg wrote:
>   I want to write Ethernet (NIC) driver on Xenomai using RTDM. I don't want
> to use RTnet.
Why not?

RTnet does not imply that you have to use the RTnet protocol, it's
perfectly fine to use just the Ethernet drivers as you see fit
(that's what I do all the time).

By going your own way, realtime ethernet for Xenomai will be fragmented,
which will benefit nobody (except possibly WindRiver/Microsoft/...)
> Can someone suggest me any example code or useful links/docs
> which can help me to do so.
>

/Anders

--
Anders Blomdell                  Email: anders.blomdell@control.lth.se
Department of Automatic Control
Lund University                  Phone:    +46 46 222 4625
P.O. Box 118
SE-221 00 Lund, Sweden






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

* Re: [Xenomai] RTDM: Ethernet driver
  2014-04-22 11:16 ` Anders Blomdell
@ 2014-04-22 11:53   ` Michael Haberler
  2014-04-22 11:59     ` Gilles Chanteperdrix
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Haberler @ 2014-04-22 11:53 UTC (permalink / raw)
  To: xenomai


Am 22.04.2014 um 13:16 schrieb Anders Blomdell <anders.blomdell@control.lth.se>:

> On 04/22/2014 11:45 AM, yogesh garg wrote:
>>  I want to write Ethernet (NIC) driver on Xenomai using RTDM. I don't want
>> to use RTnet.
> Why not?
> 
> RTnet does not imply that you have to use the RTnet protocol, it's
> perfectly fine to use just the Ethernet drivers as you see fit
> (that's what I do all the time).
> 
> By going your own way, realtime ethernet for Xenomai will be fragmented,
> which will benefit nobody (except possibly WindRiver/Microsoft/...)

well there are valid reasons

One we have is: since the application runs across RTAI, Xenomai and RT_PREEMPT a single method would be beneficial, even at the cost of lower performance. Not everyone is fond of networking silos.

- Michael


>> Can someone suggest me any example code or useful links/docs
>> which can help me to do so.
>> 
> 
> /Anders
> 
> --
> Anders Blomdell                  Email: anders.blomdell@control.lth.se
> Department of Automatic Control
> Lund University                  Phone:    +46 46 222 4625
> P.O. Box 118
> SE-221 00 Lund, Sweden
> 
> 
> 
> 
> 
> _______________________________________________
> Xenomai mailing list
> Xenomai@xenomai.org
> http://www.xenomai.org/mailman/listinfo/xenomai



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

* Re: [Xenomai] RTDM: Ethernet driver
  2014-04-22 11:53   ` Michael Haberler
@ 2014-04-22 11:59     ` Gilles Chanteperdrix
  2014-04-23  5:40       ` yogesh garg
  0 siblings, 1 reply; 7+ messages in thread
From: Gilles Chanteperdrix @ 2014-04-22 11:59 UTC (permalink / raw)
  To: Michael Haberler; +Cc: xenomai

On 04/22/2014 01:53 PM, Michael Haberler wrote:
>
> Am 22.04.2014 um 13:16 schrieb Anders Blomdell
> <anders.blomdell@control.lth.se>:
>
>> On 04/22/2014 11:45 AM, yogesh garg wrote:
>>> I want to write Ethernet (NIC) driver on Xenomai using RTDM. I
>>> don't want to use RTnet.
>> Why not?
>>
>> RTnet does not imply that you have to use the RTnet protocol, it's
>> perfectly fine to use just the Ethernet drivers as you see fit
>> (that's what I do all the time).
>>
>> By going your own way, realtime ethernet for Xenomai will be
>> fragmented, which will benefit nobody (except possibly
>> WindRiver/Microsoft/...)
>
> well there are valid reasons
>
> One we have is: since the application runs across RTAI, Xenomai and
> RT_PREEMPT a single method would be beneficial, even at the cost of
> lower performance. Not everyone is fond of networking silos.

RTnet already works with RTAI and Xenomai, the API exposed by RTnet is 
the standard socket interface and drivers in RTnet are copycats of Linux 
drivers.

So, I do not see what prevents you from using Linux drivers with Linux 
and preempt_rt and RTnet drivers with Xenomai and RTAI.

-- 
					    Gilles.


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

* Re: [Xenomai] RTDM: Ethernet driver
  2014-04-22 11:59     ` Gilles Chanteperdrix
@ 2014-04-23  5:40       ` yogesh garg
  2014-04-23  7:39         ` Jeroen Van den Keybus
  0 siblings, 1 reply; 7+ messages in thread
From: yogesh garg @ 2014-04-23  5:40 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

What about license part. I think RTnet is GNU GPL, so I can't use it for
commercial products.
Otherwise I need to expose complete source code.


On Tue, Apr 22, 2014 at 5:29 PM, Gilles Chanteperdrix <
gilles.chanteperdrix@xenomai.org> wrote:

> On 04/22/2014 01:53 PM, Michael Haberler wrote:
>
>>
>> Am 22.04.2014 um 13:16 schrieb Anders Blomdell
>> <anders.blomdell@control.lth.se>:
>>
>>  On 04/22/2014 11:45 AM, yogesh garg wrote:
>>>
>>>> I want to write Ethernet (NIC) driver on Xenomai using RTDM. I
>>>> don't want to use RTnet.
>>>>
>>> Why not?
>>>
>>> RTnet does not imply that you have to use the RTnet protocol, it's
>>> perfectly fine to use just the Ethernet drivers as you see fit
>>> (that's what I do all the time).
>>>
>>> By going your own way, realtime ethernet for Xenomai will be
>>> fragmented, which will benefit nobody (except possibly
>>> WindRiver/Microsoft/...)
>>>
>>
>> well there are valid reasons
>>
>> One we have is: since the application runs across RTAI, Xenomai and
>> RT_PREEMPT a single method would be beneficial, even at the cost of
>> lower performance. Not everyone is fond of networking silos.
>>
>
> RTnet already works with RTAI and Xenomai, the API exposed by RTnet is the
> standard socket interface and drivers in RTnet are copycats of Linux
> drivers.
>
> So, I do not see what prevents you from using Linux drivers with Linux and
> preempt_rt and RTnet drivers with Xenomai and RTAI.
>
> --
>                                             Gilles.
>
>
> _______________________________________________
> Xenomai mailing list
> Xenomai@xenomai.org
> http://www.xenomai.org/mailman/listinfo/xenomai
>



-- 
Regards,
Yogesh Garg

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

* Re: [Xenomai] RTDM: Ethernet driver
  2014-04-22  9:45 [Xenomai] RTDM: Ethernet driver yogesh garg
  2014-04-22 11:16 ` Anders Blomdell
@ 2014-04-23  7:36 ` Jeroen Van den Keybus
  1 sibling, 0 replies; 7+ messages in thread
From: Jeroen Van den Keybus @ 2014-04-23  7:36 UTC (permalink / raw)
  To: yogesh garg; +Cc: xenomai@xenomai.org

> Can someone suggest me any example code or useful links/docs
> which can help me to do so.

Have a good look at Linux drivers/net/ethernet/intel/e1000e and think
again about writing a network driver yourself. Note that the larger
part of a NIC driver is needed just to get a link reliably across the
large number of MAC/PHY combinations and revisions that are out there.

Also grep for 'workaround'...

Jeroen.

>
> --
> Regards,
> Yogesh Garg
> _______________________________________________
> Xenomai mailing list
> Xenomai@xenomai.org
> http://www.xenomai.org/mailman/listinfo/xenomai


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

* Re: [Xenomai] RTDM: Ethernet driver
  2014-04-23  5:40       ` yogesh garg
@ 2014-04-23  7:39         ` Jeroen Van den Keybus
  0 siblings, 0 replies; 7+ messages in thread
From: Jeroen Van den Keybus @ 2014-04-23  7:39 UTC (permalink / raw)
  To: yogesh garg; +Cc: xenomai@xenomai.org

2014-04-23 7:40 GMT+02:00 yogesh garg <yogesh.garg1983@gmail.com>:
> What about license part. I think RTnet is GNU GPL, so I can't use it for
> commercial products.
> Otherwise I need to expose complete source code.

Since you will be basing your driver largely on existing GPL drivers
(quite inevitably), your driver is going to end up being GPL'ed
anyway.

Don't forget that you don't need to expose your application, only
whatever you modified/added to GPL'ed parts. That's not so bad for
getting a working driver framework in return, is it ?

Jeroen.


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

end of thread, other threads:[~2014-04-23  7:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-22  9:45 [Xenomai] RTDM: Ethernet driver yogesh garg
2014-04-22 11:16 ` Anders Blomdell
2014-04-22 11:53   ` Michael Haberler
2014-04-22 11:59     ` Gilles Chanteperdrix
2014-04-23  5:40       ` yogesh garg
2014-04-23  7:39         ` Jeroen Van den Keybus
2014-04-23  7:36 ` Jeroen Van den Keybus

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.