转载地址:https://blog.csdn.net/crazycoder8848/article/details/44278791
转载地址:https://blog.csdn.net/vc66vcc/article/details/52398864
首先下载ethtool的源码包。
下载ethtool源代码
git clone git://git.kernel.org/pub/scm/network/ethtool/ethtool.git
剩下的事情,几条命令搞定。
tar -xzf ethtool.tar.gz
cd ethtool
./configure --host=arm-linux CC=arm-none-linux-gnueabi-gcc LDFLAGS=-static
make
cp ethtool /path/to/rootfs/bin/