Create Petalinux USB Speed Testing authored by Corbin Kems's avatar Corbin Kems
# Introduction
The transfer speed of the USB connection must be verified to handle
# iperf
## Install
Petalinux doesn't come with iperf3 built in, so it must be built from source once booted.
First, download the source code from https://github.com/esnet/iperf and transfer it to the SD card.
Next, move the SD card to the CyDAQ and boot petalinux.
Now transfer the source from the SD card to the home directory, unzip, and install
```
cp /mnt/sd-mmcblk0p1/iperf-master.zip /home/root/iperf-master.zip
```
```
unzip /home/root/iperf-master.zip
```
```
cd iperf-master
```
./configure && make && make install
```
Similar steps might need to be taken on for the client as well, as it requires iperf3 to be installed. You probably don't have to transfer the source over SD card, as your host PC most likely has internet connectivity.
## Test
On petalinux, start the iperf3 server
```
iperf3 -s
```
On a connected device (with iperf3 also installed), start the test
```
iperf3 -c 169.254.7.2 -f M
```
# scp
\ No newline at end of file