ttcp seems to have some problems on zynqmp_qemu with lwip stack
Summary
ttcp
seems to have some problems on zynqmp_qemu
BSP with lwip
stack.
tcp: ttcp cannot print report.
udp: ttcp printed the report, but a large number of udp packets were lost.
Steps to reproduce
- build
zynqmp_qemu
BSP.
cd ~/RTEMS_devel/src/rtems
./waf distclean
./waf configure --prefix=$HOME/RTEMS_devel/rtems/6 --rtems-config=$HOME/RTEMS_devel/config.ini
./waf
./waf install
config.ini:
[aarch64/zynqmp_qemu]
RTEMS_POSIX_API = True
- build
rtems-lwip
cd ~/RTEMS_devel/src/rtems-lwip
./waf configure --prefix=$HOME/RTEMS_devel/rtems/6 --rtems-bsps aarch64/zynqmp_qemu
./waf
./waf install
- build
rtems-net-services
cd ~/RTEMS_devel/src/rtems-net-services
./waf configure --prefix=$HOME/RTEMS_devel/rtems/6 --rtems-bsps aarch64/zynqmp_qemu
./waf
./waf install
- run in qemu.
qemu-system-aarch64 -no-reboot -nographic -serial mon:stdio -machine xlnx-zcu102 -m 4096 -nic user,model=cadence_gem,id=u1,hostfwd=tcp::5001-:5001,hostfwd=udp::5001-:5001 -kernel build/aarch64-rtems6-zynqmp_qemu/ttcpshell01.exe
- build ttcp on host.
cd src/rtems-net-services/ttcp
gcc ttcp.c
- Enter the command line in qemu RTEMS shell.
ttcp -s -r
or
ttcp -s -r -u
- Enter the command line in host shell.
cd src/rtems-net-services/ttcp
./a.out -s -t -u 127.0.0.1
or
./a.out -s -t 127.0.0.1
Edited by Ning Yang