ethercard - Linux Ethercard Status, Diagnostic and Setup Utilities ChangeLog


# These utils will give you info about your NIC.  Run all of them as root,
# but install and build them as whoever you like.

cd ~/src
mkdir -p ethercard
cd ethercard

# pci-config
# ==========
# PCI Configuration and Power Setting
# Run 'pci-config -u' (as root) for usage
wget -N
gcc -O -Wall -o pci-config pci-config.c

# libmii
# ======
# Grab libmii.c to link diagnostic programs against it
wget -N

# libflash
# ========
# Grab libflash.c to link diagnostic programs against it
wget -N

# mii-diag
# ========
# MII link status report and diagnostics
# Run 'mii-diag --help' for usage
wget -N
gcc -Wall -Wstrict-prototypes -O mii-diag.c -DLIBMII libmii.c -o mii-diag

# These next ones are NIC-specific programs.  For a list of others, go here:
# (the build command is in the file at the bottom)

# vortex-diag
# ===========
# 3Com 3c590 Vortex, and 3c900 Boomerang/Cyclone/Hurricane series:
wget -N
gcc -O -Wall -o vortex-diag vortex-diag.c \
-DLIBMII libmii.c -DLIBFLASH libflash.c

# tulip-diag
# ==========
# Intel/Digital Tulip (DC21040 series) and the many Tulip work-alikes:
# Lite-On PNIC, STMicro, ADMtek Comet, Macronix MXIC, Davicom DM9101
# (I have a LinkSys NIC that uses this chip)
wget -N
cc -O -Wall -Wstrict-prototypes -o tulip-diag tulip-diag.c \
-DLIBMII libmii.c -DLIBFLASH libflash.c

# ne2k-pci-diag
# =============
# Winbond W89c940 (I have a LinkSys NIC that uses this chip):
wget -N
cc -O -Wall -o ne2k-pci-diag ne2k-pci-diag.c

# Run them as root to get the full details
# Example:
# su -c "./mii-diag"
# su -c "./tulip-diag -aem | less"

# If you want to install them somewhere:
test -x pci-config && install -s pci-config /usr/local/bin/
test -x mii-diag && install -s mii-diag /usr/local/bin/
test -x vortex-diag && install -s vortex-diag /usr/local/bin/
test -x tulip-diag && install -s tulip-diag /usr/local/bin/
test -x ne2k-pci-diag && install -s ne2k-pci-diag /usr/local/bin/

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EDT -0400)
HOWTO last updated: 2005-11-10 12:15am
Copyright © 2001-2024 Jason Englander. All Rights reserved.