Hi, So I have done some debugging.
there were 2 issues. First issue regarding the timer is the way the timeout is calculated. It requires at least 11 milliseconds of timeout to be able to handle it. Second issue that I faced is that flags were not passed correctly to the bpfopen function so the bpf was not opened in read/write mode. That's why packets were not received. Attaching a patch. Thanks for the help! Cheers, Niko On Fri, Jun 29, 2018 at 9:40 AM Nicolas Tsiogkas <lou.n...@gmail.com> wrote: > Thanks! > > Shouldn't net have some device though since I want to debug the networking > stack? > > For now I run it with -nographic -serial stdio -serial > mon:tcp:localhost:12456 -M xilinx-zynq-a9 -net > nic,model=cadence_gem,macaddr=0e:b0:ba:5e:ba:11 -net > tap,ifname=tap0,script=no,downscript=no -m 256M -kernel slaveinfo.exe > > I'll check soon and report back. Thanks again! > > Cheers, > Niko > > On Fri, Jun 29, 2018 at 9:32 AM Sebastian Huber < > sebastian.hu...@embedded-brains.de> wrote: > >> On 29/06/18 09:14, Nicolas Tsiogkas wrote: >> > I see thanks. >> > >> > Any idea or documentation on how to do that on qemu? I'm afraid that >> > my experience is rather limited. >> > >> > I'm running on qemu 2.10 using the xilinx_zynq_a9_qemu bsp. >> >> You can run the xilinx_zynq_a9_qemu with >> >> QEMU_AUDIO_DRV=none qemu-system-arm -serial null -serial mon:stdio -net >> none -nographic -M xilinx-zynq-a9 -m 256M -kernel app.exe -s -S >> >> It waits for a GDB client connection on localhost:1234. >> >> -- >> Sebastian Huber, embedded brains GmbH >> >> Address : Dornierstr. 4, D-82178 Puchheim, Germany >> Phone : +49 89 189 47 41-16 >> Fax : +49 89 189 47 41-09 >> E-Mail : sebastian.hu...@embedded-brains.de >> PGP : Public key available on request. >> >> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG. >> >>
diff --git a/freebsd/sys/net/bpf.c b/freebsd/sys/net/bpf.c index 259a253..520712b 100644 --- a/freebsd/sys/net/bpf.c +++ b/freebsd/sys/net/bpf.c @@ -2907,7 +2907,7 @@ bpf_imfs_open(rtems_libio_t *iop, const char *path, int oflag, mode_t mode) { struct bpf_d *d; - d = bpfopen(NULL, 0, 0, NULL); + d = bpfopen(NULL, oflag+1, 0, NULL); iop->data1 = d; if (d != NULL) {
_______________________________________________ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users