From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 4.mo2.mail-out.ovh.net ([87.98.172.75] helo=mo2.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TNOwf-00089K-Bo for barebox@lists.infradead.org; Sun, 14 Oct 2012 14:13:34 +0000 Received: from mail641.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo2.mail-out.ovh.net (Postfix) with SMTP id 7A050DC1280 for ; Sun, 14 Oct 2012 16:20:03 +0200 (CEST) Date: Sun, 14 Oct 2012 16:11:08 +0200 From: Jean-Christophe PLAGNIOL-VILLARD Message-ID: <20121014141108.GR13639@game.jcrosoft.org> References: <1349878154-7099-1-git-send-email-antonynpavlov@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1349878154-7099-1-git-send-email-antonynpavlov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [RFC v2] add 'miitool' command to view media-independent interface status To: Antony Pavlov Cc: barebox@lists.infradead.org On 18:09 Wed 10 Oct , Antony Pavlov wrote: > This command is based on "mii-diag" and "mii-tool" programs. > > TODO: > * add GbE support (see http://ftp.debian.org/debian/pool/main/n/net-tools/net-tools_1.60-24.2.diff.gz); > * add routines to manipulate media-independent interface state. > > EXAMPLES: > > barebox:/ miitool /dev/phy0 > negotiated 100baseTx-FD, link ok > > barebox:/ miitool -v /dev/phy0 > negotiated 100baseTx-FD, link ok > product info: Level One LXT971A rev 2 > basic mode: autonegotiation enabled > basic status: autonegotiation complete, link ok > capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD > advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD > link partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control > > barebox:/ miitool -vv /dev/phy0 > negotiated 100baseTx-FD, link ok > registers for MII PHY: > 3100 782d 0013 78e2 01e1 45e1 0007 2001 > 0000 ffff ffff ffff ffff ffff ffff ffff > 0084 4780 0000 0000 0422 0000 0000 0000 > 0000 0000 0080 0000 ffff 0000 0000 3660 > product info: Level One LXT971A rev 2 > basic mode: autonegotiation enabled > basic status: autonegotiation complete, link ok > capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD > advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD > link partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control > > Signed-off-by: Antony Pavlov > --- > commands/Kconfig | 11 +++ > commands/Makefile | 1 + > commands/miitool.c | 268 ++++++++++++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 280 insertions(+) > create mode 100644 commands/miitool.c > > diff --git a/commands/Kconfig b/commands/Kconfig > index e934f29..c8cdd54 100644 > --- a/commands/Kconfig > +++ b/commands/Kconfig > @@ -620,6 +620,17 @@ config CMD_USB > help > The usb command allows to rescan for USB devices. > > +config CMD_MIITOOL > + bool > + prompt "miitool command" > + depends on NET phylib Best Regards, J. _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox