iperf3交叉编译
1、搭建对应版本的编译工具链
2、解压iperf-3.1.3-source.tar
3、修改src/Makefile
|
-iperf3_profile_CFLAGS = -pg -g iperf3_profile_CFLAGS = -g
-iperf3_profile_LDFLAGS = -pg -g 改为 iperf3_profile_LDFLAGS = -g
4、./configure --target=arm-linux --host=arm-hisiv500-linux(对应编译工具链版本) --prefix=/home/ema/iperf3(iperf3存放路径) CFLAGS=-static(链接静态库编译,生成可执行文件可以直接拷贝使用) --enable-static LDFLAGS=-static --disable-shared
5、make
6、把src/目录下生成的可执行文件拷贝到NFS文件系统,或者直接拷贝到开发板上运行
7、iperf3 使用方法 自行寻找
测试丢包率
服务器:ipef3 -i -s -u 1
客户端:iperf3 -c 172.16.107.37 -u -b 200M(数据量) -i 2 -t 60(时间)