Difference between revisions of "Xenomai RTNet"

From wiki.emacinc.com
Jump to: navigation, search
Line 24: Line 24:
 
As with the other real-time drivers, the Linux driver must be detached the interface before loading that real-time driver.
 
As with the other real-time drivers, the Linux driver must be detached the interface before loading that real-time driver.
  
For example on IMX6 target the fec Ethernet driver must be removed.
+
For example on IMX6 target the fec Ethernet must be unbund from the Linux driver and attached to the real-time driver.
 
<syntaxhighlight lang="console">
 
<syntaxhighlight lang="console">
root@somimx6-xenomai:~# rmmod fec
+
root@somimx6-xenomai:~# echo 2188000.ethernet > /sys/bus/platform/drivers/fec/unbind
 +
root@somimx6-xenomai:~# echo 2188000.ethernet > /sys/bus/platform/drivers/rt_fec/bind                                                                                                                                                      [  86.762295] libphy: fec_enet_mii_bus: probed[  86.766586] RTnet: registered rteth0
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
+
{{mbox | type= | text='''Note:''' The warning posted about the clock when unbind the fec driver can be ignored. }}
Once the standard Linux driver is out of the way the real-time driver can be loaded.
 
  
  

Revision as of 12:49, 7 March 2016

TODO: {{#todo: NotStarted (03.03.2016-13:06->MW+)|Michael Welling|OE 5.0,MW,NotStarted}}

General Information

Xenomai uses the RTNet stack to provide real-time Ethernet. RTNet provides deterministic versions of various protocols (UDP/IP, IMCP, ARP). Xenomai provides several real-time Ethernet drivers, the stack, and various tools. This document explains how to load a real-time Ethernet driver and perform basic tests. The links below will help augment this information as well as discuss programming using the RTnet stack.

Xenomai RTNet

As with the other real-time drivers, the Linux driver must be detached the interface before loading that real-time driver.

For example on IMX6 target the fec Ethernet must be unbund from the Linux driver and attached to the real-time driver.

root@somimx6-xenomai:~# echo 2188000.ethernet > /sys/bus/platform/drivers/fec/unbind 
root@somimx6-xenomai:~# echo 2188000.ethernet > /sys/bus/platform/drivers/rt_fec/bind                                                                                                                                                       [   86.762295] libphy: fec_enet_mii_bus: probed[   86.766586] RTnet: registered rteth0


Examples

External Links