beautypg.com

3 diagnostic tools, 1 ethtool command syntax, 2 mii-tool command syntax – Maxim Integrated 78Q8430 ARM9(920T) Linux Driver Diagnostic Guide User Manual

Page 6: Diagnostic tools, Ethtool command syntax, Mii-tool command syntax

background image

78Q8430 ARM9(920T) Linux Driver Diagnostic Guide

UG_8430_003

6

Rev.

1.1

3 Diagnostic Tools

The 78Q8430 10/100 Ethernet MAC/PHY Linux device driver provides extensive configuration support
through its IOCTL interface. The 78Q8430 is a uniquely feature rich ethernet solution. As such, the
standard Linux ethernet configuration applications, ethtool and mii-tool, do not address the majority of the
available features. For this reason, a new configuration application, the 8430-tool, is provided with the
driver to support the chip's feature set. The 8430-tool application uses the Linux standard set of sixteen
user definable networking IOCTLs. The diagnostic procedures utilize the following utilities:

• 8430-tool: for the chip features that can not be addressed by the standard Linux ethernet command

interfaces.

• ethtool: for standard Linux ethernet control commands.
• mii-tool: for standard Linux ethernet MII control commands.

This section contains a summary of the 8430-tool, ethtool and mii-tool commands. Refer to the 78Q8430
Linux Driver ARM Platform User Guide
for a detailed description of the 8430-tool commands.

3.1 ethtool Command Syntax

The following syntax summary lists the ethtool version 4 command options supported by the 78Q8430
device driver. ethtool can be obtained from:

http://sourceforge.net/projects/gkernel/

.

The EEPROM modification command described below requires a code conveyed by the 'magic' operand.
The required code is 8430.

~# ethtool –h

Displays command syntax (as shown below)


ethtool version 4
Usage:
ethtool DEVNAME

Display standard information about device

ethtool -i|--driver DEVNAME

Show driver information

ethtool -e|--eeprom-dump DEVNAME Do an EEPROM dump
[ offset N ]
[ length N ]
ethtool -E|--change-eeprom DEVNAME Change bytes in device EEPROM
[ magic 8430]
[ offset N ]
[ value N ]

3.2 mii-tool Command Syntax

The following syntax summary lists the mii-tool version 4 command options supported by the 78Q8430
device driver. mii-tool can be obtained from:

http://www.metux.de/pub/mii-tool/mii-tool-1.9.1.1.tar.bz2

.


~# mii-tool
Usage: mii-tool [-VvRrwl] [-A media,... | -F media] [interface ...]
-R, --reset

reset MII to poweron state

-F, --force=media

force specified media technology

media: 100baseT4, 100baseTx-FD, 100baseTx-HD,
10baseT-FD,

10baseT-HD,

(to advertise both HD and FD) 100baseTx, 10baseT

~#