From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-lb0-x236.google.com ([2a00:1450:4010:c04::236]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vosuu-0001am-BE for barebox@lists.infradead.org; Fri, 06 Dec 2013 10:45:53 +0000 Received: by mail-lb0-f182.google.com with SMTP id u14so201064lbd.13 for ; Fri, 06 Dec 2013 02:45:29 -0800 (PST) Date: Fri, 6 Dec 2013 14:52:50 +0400 From: Antony Pavlov Message-Id: <20131206145250.ea5fc95adf61aca114babf5b@gmail.com> In-Reply-To: References: Mime-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: How to debug Ethernet connectivity To: Atilla Filiz Cc: barebox@lists.infradead.org On Fri, 6 Dec 2013 11:21:25 +0100 Atilla Filiz wrote: > Hello > = > I have been tasked to debug a port of Barebox to our custom board. It > has one Ethernet interface. All network related(dhcp, ping ...) tasks > fail with "Network is down" error, although the link lights on my > switch are on. So I did this on 2013.06: > = > --- barebox-2013.06.0.orig/net/ > eth.c 2013-06-02 12:24:06.000000000 +0200 > +++ barebox-2013.06.0/net/eth.c 2013-12-03 16:52:40.428089000 +0100 > @@ -142,12 +142,16 @@ > = > if (force || is_timeout(last_link_check, 5 * SECOND) || > !eth_current->phydev->link) { > ret =3D phy_update_status(eth_current->phydev); > if (ret) > return ret; > last_link_check =3D get_time_ns(); > } > = > + return 0; > return eth_current->phydev->link ? 0 : -ENETDOWN; > } > = > This bypasses link detection and assumes the link is always up. This > way, I got dhcp, ping and tftp working. > = > How can I debug this further to hunt down the Ethernet problem? > Something seems wrong with my PHY settings. This is an iMX27 based > board. Which files/functions/structures do I need to check? There is miitool command to view MII status / registers. > -- > Atilla Filiz > = > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox -- = --=A0 Best regards, =A0 Antony Pavlov _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox