var-mii is a Utility that provides the following features:
- Reading and writing ethernet phy mii registers in Linux
- Automated test to very Variscite ethernet PHY registers in Linux
- Automated test to verify Variscite ethernet PHY registers in U-Boot
Run the following commands on the target device:
Read Registers:
./var-mii <interface> <address> <register>
Write Registers:
./var-mii <interface> <address> <register> <value>
To run an automated test, run the following command on the target device:
./var-mii
To run an automated test in U-Boot:
- Connect your host computer to the target devices serial console
- Boot the target device and interrupt the boot process on U-Boot
- Quit minicom (or whichever program you use to connect to the serial console)
- Run on the host computer:
$ ./var-mii <console serial device>
Example:
$ ./var-mii /dev/ttyUSB0
Note: It is important to quit minicom so that it doesn't conflict with var-mii