From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?St=C3=A9phane_Reichert?= References: <004e01d43564$4970d4c0$dc527e40$@sepro-group.com> In-Reply-To: Date: Fri, 17 Aug 2018 13:39:37 +0200 (CEST) Message-ID: <006e01d4361e$f9f3cbd0$eddb6370$@sepro-group.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Language: fr Content-Transfer-Encoding: quoted-printable Subject: [Xenomai] TR: RTNet - how to setup rt_fec on IMX6Q (Xenomai 3.0.7) List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org Thanks Philippe, I tried this patch and now I can see the rteth0 RUNNING (in rtifconfig). Unfortunately, it doesn't change the rtping behavior (I still get the=20 =E2=80=9Cioctl: Resource temporarily unavailable=E2=80=9D message). Best regards St=C3=A9phane -----Message d'origine----- De : Philippe Gerum [mailto:rpm@xenomai.org] Envoy=C3=A9 : vendredi 17 ao= =C3=BBt 2018=20 10:28 =C3=80 : St=C3=A9phane Reichert; xenomai@xenomai.org Objet : Re: [X= enomai]=20 RTNet - how to setup rt_fec on IMX6Q (Xenomai 3.0.7) On 08/16/2018 03:23 PM, St=C3=A9phane Reichert wrote: > 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 =E2=80=9C= rtping=E2=80=9D > the loopback, > > but it doesn=E2=80=99t work if I try to ping an external board). The fec driver does not seem to tell the stack about the carrier enable=20 state. If so, you may want to try the following patch: diff --git a/kernel/drivers/net/drivers/fec.c b/kernel/drivers/net/drivers/fec.c index 36870ba16..d94ec690f 100644 --- a/kernel/drivers/net/drivers/fec.c +++ b/kernel/drivers/net/drivers/fec.c @@ -1323,6 +1323,7 @@ fec_enet_open(struct rtnet_device *ndev) return ret; } phy_start(fep->phy_dev); + rtnetif_carrier_on(ndev); rtnetif_start_queue(ndev); fep->opened =3D 1; return 0; -- Philippe.