移植ethtool到arm平台

转载地址: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/
 

猜你喜欢

转载自blog.csdn.net/kunkliu/article/details/84336647