DownLoad Iperf:

Windows:

    从https://iperf.fr/iperf-download.php下载对应的执行文件即可直接使用:

arm开发板:

   从https://iperf.fr/iperf-download.php下载对应的iperf c++ source code

 

How To Build Iperf For arm board:

    1.从https://iperf.fr/iperf-download.php 下载iperf c++ source code后,解压iperf-3.1.3-source.tar.gz;

    2. 因为默认lib和执行档是生成在/usr/lib和/usr/bin目录,所以最好找一个有root权限的服务器编译

    3. sudo ./configure --host=arm-linux-gnueabihf CC=/opt/gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux/bin/arm-linux-gnueabihf-gcc CXX=/opt/gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux/bin/arm-linux-gnueabihf-g++

    4. sudo make;sudo make install

    5. get bin and lib from /usr/bin,/usr/lib

How To Use Iperf:

Window:

    打开windows CMD命令行,切换到iperf执行档所在目录,执行iperf:

嵌入式arm板安装测试iperf

 

ARM开发板:

    client:

        1. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib:/iperflib_path

        2.

         嵌入式arm板安装测试iperf

    server:

        1. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib:/iperflib_path

        2. ./iperf3 -s

    测试前先运行server,再运行client,不然client会连接失败

相关文章:

  • 2021-06-03
  • 2021-10-05
  • 2022-12-23
  • 2021-04-01
  • 2021-06-19
  • 2022-12-23
  • 2021-06-26
  • 2021-12-27
猜你喜欢
  • 2021-12-29
  • 2021-08-13
  • 2021-09-22
  • 2021-08-17
  • 2021-10-04
  • 2021-12-06
  • 2021-12-22
相关资源
相似解决方案