lwIP | ttcp seems to have some problems on zynqmp_qemu with lwip stack (#3)
Ning Yang (@yangn0)
gitlab at rtems.org
Mon Nov 18 09:54:21 UTC 2024
Ning Yang created an issue: https://gitlab.rtems.org/rtems/pkg/rtems-lwip/-/issues/3
## Summary
`ttcp` seems to have some problems on `zynqmp_qemu` BSP with `lwip` stack.
tcp:
![image](/uploads/4b2ab750eb2021ca1052ec7a1aed19e1/image.png)
ttcp cannot print report.
udp:
![image](/uploads/5ea473ea6922c7882865835b1bf25d1a/image.png)
ttcp printed the report, but a large number of udp packets were lost.
## Steps to reproduce
1. build `zynqmp_qemu` BSP.
```shell
cd ~/RTEMS_devel/src/$rtems_src
./waf distclean
./waf configure --prefix=$HOME/RTEMS_devel/rtems/6 --rtems-config=$HOME/RTEMS_devel/config.ini
./waf
./waf install
```
2. build `rtems-lwip`
```shell
./waf configure --prefix=$HOME/RTEMS_devel/rtems/6 --rtems-bsps aarch64/zynqmp_qemu
./waf
./waf install
```
3. build `rtems-net-services`
```shell
./waf configure --prefix=$HOME/RTEMS_devel/rtems/6 --rtems-bsps aarch64/zynqmp_qemu
./waf
./waf install
```
4. run in qemu.
```shell
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 $app
```
5. build ttcp on host.
```shell
cd src/rtems-net-services/ttcp
gcc ttcp.c
```
6. Enter the command line in qemu RTEMS shell.
```
ttcp -s -r
```
or
```
ttcp -s -r -u
```
7. 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
```
--
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-lwip/-/issues/3
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20241118/2b556ad4/attachment-0001.htm>
More information about the bugs
mailing list