All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Stéphane Reichert" <sreichert@sepro-group.com>
To: xenomai@xenomai.org
Subject: [Xenomai] RTNet - how to setup rt_fec on IMX6Q (Xenomai 3.0.7)
Date: Thu, 16 Aug 2018 15:23:15 +0200 (CEST)	[thread overview]
Message-ID: <004e01d43564$4970d4c0$dc527e40$@sepro-group.com> (raw)

Hello,



We are trying to use the rt_fec driver for RTNet on a iMX6Q board.



I have patched the KConfig to add this driver on buildroot and it compiles
perfectly.



But now, I am not able to use it on our board (it works when I “rtping”
the loopback,

but it doesn’t work if I try to ping an external board).



Each time I try to use the device, the rt_ping command returns

“ioctl: Resource temporarily unavailable”.



The same occurs if I try with or without tdma.



To reproduce the problem, here is the initialization sequence:

# modprobe rtnet

# modprobe rtipv4

# modprobe rt_fec

# echo 2188000.ethernet > /sys/bus/platform/drivers/fec/unbind

# echo 2188000.ethernet > /sys/bus/platform/drivers/rt_fec/bind

# modprobe rtudp

# modprobe rtpacket

# rtifconfig rteth0 up 192.168.214.30 netmask 255.255.0.0 hw ether
00:07:AC:81:0

# rtifconfig

rteth0    Medium: Ethernet  Hardware address: 00:07:AC:81:00:5D

          IP address: 192.168.214.30  Broadcast address: 192.168.255.255

          UP BROADCAST  MTU: 1500

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0

          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

# rtroute add 192.168.214.250 00:50:56:a2:d2:b6 dev rteth0

# rtroute

Host Routing Table

Hash    Destination     HW Address              Device

3A      192.168.214.250 00:50:56:A2:D2:B6       rteth0

3F      192.168.255.255 FF:FF:FF:FF:FF:FF       rteth0



Network Routing Table

Hash    Destination     Mask                    Gateway

# rtping 192.168.214.250

Real-time PING 192.168.214.250 56(84) bytes of data.

ioctl: Resource temporarily unavailable



Linux :   4.1.46

Xenomai : 3.0.7



Did anyone face this problem (I found some similary issues, but they
didn’t solve my problem on rt_fec) ?



Stéphane




Sepro

Stéphane REICHERT

  _____

 <http://www.sepro-group.com/fr> www.sepro-group.com |
<https://twitter.com/seprogroup> twitter@SeproGroup






-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 26078 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20180816/c9b84399/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 818 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20180816/c9b84399/attachment.png>

             reply	other threads:[~2018-08-16 13:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-16 13:23 Stéphane Reichert [this message]
2018-08-17  8:27 ` [Xenomai] RTNet - how to setup rt_fec on IMX6Q (Xenomai 3.0.7) Philippe Gerum
2018-08-17 11:39   ` [Xenomai] TR: " Stéphane Reichert
2018-08-17 11:39   ` Stéphane Reichert
2018-08-21 21:19     ` Edouard Tisserant
2018-08-22  8:24       ` Stéphane Reichert
2018-08-23 21:09         ` Edouard Tisserant
2018-08-24  7:07           ` Stéphane Reichert
2018-09-10 15:24             ` Edouard Tisserant

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='004e01d43564$4970d4c0$dc527e40$@sepro-group.com' \
    --to=sreichert@sepro-group.com \
    --cc=xenomai@xenomai.org \
    /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.