cross compile ethtool
2012-11-06 14:48
2631 查看
http://www.kernel.org/pub/software/network/ethtool/
ethtool - utility for controlling network drivers and hardware
Introduction
ethtool is the standard Linux utility for controlling network drivers and hardware, particularly for wired Ethernet devices. It can be used to:
Get identification and diagnostic information
Get extended device statistics
Control speed, duplex, autonegotiation and flow control for Ethernet devices
Control checksum offload and other hardware offload features
Control DMA ring sizes and interrupt moderation
Control receive queue selection for multiqueue devices
Upgrade firmware in flash memory
Most features are dependent on support in the specific driver. See the manual page for full information.
cross compile ethtool
step 1: Download ethtool-3.6.tar.bz2 from http://www.kernel.org/pub/software/network/ethtool/
step 2: tar -jxvf ethtool-3.6.tar.bz2
step 3: cd ethtool-3.6, touch cross_configure.sh as follow:
MIPS_TOOLCHAIN_DIR=/opt/mips-4.4/bin
export CROSS_COMPILE="${MIPS_TOOLCHAIN_DIR}/mips-linux-gnu-"
export AR="${CROSS_COMPILE}ar"
export AS="${CROSS_COMPILE}as"
export LD="${CROSS_COMPILE}ld"
export NM="${CROSS_COMPILE}nm"
export CC="${CROSS_COMPILE}gcc -Os -pipe -O2 -mtune=mips32r2 -mabi=32 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -EL"
export FC="${CROSS_COMPILE}gfortran "
export RANLIB="${CROSS_COMPILE}ranlib"
export STRIP="${CROSS_COMPILE}strip"
export OBJCOPY="${CROSS_COMPILE}objcopy"
export CFLAGS="-Os -pipe -O2 -mtune=mips32r2 -mabi=32 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -EL"
export CXXFLAGS="-Os -pipe -O2 -mtune=mips32r2 -mabi=32 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -EL"
./configure --target=mipsel-linux --host=mipsel-linux
step 4: ./cross_configure.sh, make
step 5: cp ethtool-3.6/ethtool to target board.
step 6: use "./ethtool -S eth0" to watch network status.
ethtool - utility for controlling network drivers and hardware
Introduction
ethtool is the standard Linux utility for controlling network drivers and hardware, particularly for wired Ethernet devices. It can be used to:
Get identification and diagnostic information
Get extended device statistics
Control speed, duplex, autonegotiation and flow control for Ethernet devices
Control checksum offload and other hardware offload features
Control DMA ring sizes and interrupt moderation
Control receive queue selection for multiqueue devices
Upgrade firmware in flash memory
Most features are dependent on support in the specific driver. See the manual page for full information.
cross compile ethtool
step 1: Download ethtool-3.6.tar.bz2 from http://www.kernel.org/pub/software/network/ethtool/
step 2: tar -jxvf ethtool-3.6.tar.bz2
step 3: cd ethtool-3.6, touch cross_configure.sh as follow:
MIPS_TOOLCHAIN_DIR=/opt/mips-4.4/bin
export CROSS_COMPILE="${MIPS_TOOLCHAIN_DIR}/mips-linux-gnu-"
export AR="${CROSS_COMPILE}ar"
export AS="${CROSS_COMPILE}as"
export LD="${CROSS_COMPILE}ld"
export NM="${CROSS_COMPILE}nm"
export CC="${CROSS_COMPILE}gcc -Os -pipe -O2 -mtune=mips32r2 -mabi=32 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -EL"
export FC="${CROSS_COMPILE}gfortran "
export RANLIB="${CROSS_COMPILE}ranlib"
export STRIP="${CROSS_COMPILE}strip"
export OBJCOPY="${CROSS_COMPILE}objcopy"
export CFLAGS="-Os -pipe -O2 -mtune=mips32r2 -mabi=32 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -EL"
export CXXFLAGS="-Os -pipe -O2 -mtune=mips32r2 -mabi=32 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -EL"
./configure --target=mipsel-linux --host=mipsel-linux
step 4: ./cross_configure.sh, make
step 5: cp ethtool-3.6/ethtool to target board.
step 6: use "./ethtool -S eth0" to watch network status.
相关文章推荐
- cross compile tcpdump tool
- arm cross compile Q&A
- 补充:compile: version "" does not match go tool version ""
- CentOS 6.9 制作crosstool-ng交叉编译 错误日志
- Cross compile gdbserver and use it in ARM linux (在ARM uClinux下编译和使用gdbserver)
- mplayer cross compile MPlayer-1.0pre7try2 success
- crosstool 编译
- notes about crosstool,uboot,mysql and some tools in linux(ubuntu)
- Android关于buildToolVersion与CompileSdkVersion的区别
- AS关于buildToolVersion与CompileSdkVersion的区别
- Crosstool,gcc,uboot,linux,busybox下载地址(转)
- 产品中 configure/cross compile的一个bug
- Cross Compile libpng
- Linux内核源码目录下的 Makefile 文件,“CROSS_COMPILE”定义的说明
- android_kernel_cross_compile
- git cross-compile
- how to cross compile valgrind on android platform
- linux ethtool命令
- cross-compile-openssl-windows.sh,cross-compile-curl-windows.sh,cross-compile-zlib-windows.sh,build-zlib-visual-studio-2015-cli.bat
- Make ARCH=arm CROSS_COMPILE=arm-linux-gcc menuconfig 分析