diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2012-10-18 12:54:33 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-10-30 10:24:12 +0100 |
commit | de053ed91c2b2ac05527f87acd0cfee0270a23a3 (patch) | |
tree | 200a320eb62d0a38b667ffe1092162c71513800c /commands/Makefile | |
parent | 735775a7c425525bda130fa3db6287735e0b1843 (diff) | |
download | barebox-de053ed91c2b2ac05527f87acd0cfee0270a23a3.tar.gz barebox-de053ed91c2b2ac05527f87acd0cfee0270a23a3.tar.xz |
add 'miitool' command to view media-independent interface status
This command is based on the 'mii-diag' and 'mii-tool'
Unix utilities, but it lacks routines to manipulate
MII state (e.g. reset MII, restart autonegotiation
or force MII mode).
This version of the 'miitool' command has no GbE support,
but we can upgrade it in the future. The GbE support
patch for generic 'mii-tool' is here
http://ftp.debian.org/debian/pool/main/n/net-tools/net-tools_1.60-24.2.diff.gz
EXAMPLE:
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 <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/Makefile')
-rw-r--r-- | commands/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/Makefile b/commands/Makefile index 610be55c6a..c6416ca84b 100644 --- a/commands/Makefile +++ b/commands/Makefile @@ -76,3 +76,4 @@ obj-$(CONFIG_CMD_READLINK) += readlink.o obj-$(CONFIG_CMD_LN) += ln.o obj-$(CONFIG_CMD_CLK) += clk.o obj-$(CONFIG_CMD_TFTP) += tftp.o +obj-$(CONFIG_CMD_MIITOOL) += miitool.o |