一 、获取iperf3的源码

1.打开链接:https://gitee.com/organizations/openharmony-sig/projects

2.搜索:iperf

3.clone代码:代码放置在 工程跟目录 下面的developtools/iperf ---切记!

 

二、iperf加入编译系统

修改文件:productdefine\common\inherit\rich.json

然后整体编译即可:./build.sh --product-name rk3568 --ccache

 

三、编译产物和使用方法

1.编译生成的可执行程序名称为:iperf3  路径为:out\rk3568\developtools\iperf3

2.将iperf3 推送到设备上:

    hdc shell mount -o rw,remount /

   hdc file send iperf3 /bin/

   hdc shell chmod +x /bin/iperf3

  Pause

3.运行iperf3即可进行打流

 

Logo

社区规范:仅讨论OpenHarmony相关问题。

更多推荐