How to view imx6 card is Fast or Gigabit

In fact, view the number of megabytes of card method is very simple, just use the ethtool command on it. First, we need to understand that Linux ethtool is used to query and set NIC parameters of command, begin now to test it.

Input command as follows:

root@imx6qdlsolo:~# ethtool eth0

Settings for eth0:

   Supported ports: [ TP MII ]

   Supported link modes:  10baseT/Half 10baseT/Full

                            100baseT/Half100baseT/Full

                            1000baseT/Full

   Supported pause frame use: Symmetric

   Supports auto-negotiation: Yes

   Advertised link modes: 10baseT/Half 10baseT/Full

                           100baseT/Half100baseT/Full

                            1000baseT/Full

   Advertised pause frame use: Symmetric

   Advertised auto-negotiation: Yes

   Link partner advertised link modes: 10baseT/Half 10baseT/Full

                                        100baseT/Half 100baseT/Full

                                        1000baseT/Full

   Link partner advertised pause frame use: Symmetric

   Link partner advertised auto-negotiation: Yes

   Speed: 1000Mb/s

   Duplex: Full

   Port: MII

   PHYAD: 1

   Transceiver: external

   Auto-negotiation: on

   Supports Wake-on: g

   Wake-on: d

   Link detected: yes

root@imx6qdlsolo:~#

Detailed parameters Reference: (// followed by the comment, is the original translation)

ethtool ethX /

ethtool ethtool -h // display the command help (help)

ethtool -i ethX // relevant information ethX network port

ethtool -d ethX // query ethX network port registration information

ethtool -r ethX // reset the network port to the adaptive mode ethX

ethtool -S ethX // query ethX network interface transceiver package statistics

ethtool -s ethX [speed 10 | 100 | 1000] \ // set the network interface rate 10/100 / 1000M

[Duplex half | full] \ // Set the network port and a half / full duplex

[Autoneg on | off] \ // set whether auto-negotiation Ethernet port

[Port tp | aui | bnc | mii] \ // Set the type of network port

So by this directive, we managed to get the required parameters, take a try.

Guess you like

Origin blog.51cto.com/14586215/2446978