Hi Gabriel,

Thanks. Your post reminded me to have a look. This the set up I used a while ago ..

 qemu-system-arm \
  -M xilinx-zynq-a9 -m 256M -no-reboot -serial null \
  -serial mon:stdio -nographic -net nic,model=cadence_gem \
  -net vde,id=vde0,sock=/tmp/vde1 -kernel $*

This use the vdeswitch package. The RSB will build VDE support into qemu if it is installed and available.

On FreeBSD I have a bridge with a tap interface. The /etc/rc.conf has ...

 cloned_interfaces="bridge0 tap0"
 autobridge_interfaces="bridge0"
 ifconfig_bridge0="inet 10.1.1.2 netmask 255.255.255.0"
 autobridge_bridge0="re0 tap0"
 ifconfig_re0="up"
 ifconfig_tap0="up"
 defaultrouter="10.1.1.1"

Then run the VDE switch with ...

 #! /bin/sh
 #
 # vdeterm /tmp/mgmt1
 #

 sysctl net.link.tap.user_open=1
 sysctl net.link.tap.up_on_open=1

 chmod 660 /dev/tap0

 vde_switch -d -s /tmp/vde1 -M /tmp/mgmt1 -tap tap0 -m 660 \
    --mgmtmode 660

VDE lets me run a number of qemu sessions together and have them see each other without needing to add a bunch of tap interfaces.

Chris

On 25/6/20 4:12 pm, gabriel.moy...@dlr.de wrote:
Hi Joel,

Before running qemu, some qtabs should be created. How to do that it is described on file libbsd.txt (line 333). Then I usually run qemu as follows:

qemu-system-i386 -append --console=/dev/com1 -no-reboot -serial stdio -monitor none -nographic -netdev tap,ifname=qtap1,script=no,downscript=no,id=n1 –device e1000,netdev=n1,mac=52:55:00:d1:55:01 -kernel path/to/exe/file

Please note that if you are running two instances, the second one should have different MAC address and  ifname, e.g. mac=52:55:00:d1:55:0*2*and ifname=qtab*2*

**

If hope this helps.

Cheers,

Gabriel

*From:*devel [mailto:devel-boun...@rtems.org] *On Behalf Of *Joel Sherrill
*Sent:* Mittwoch, 24. Juni 2020 19:23
*To:* rtems-de...@rtems.org
*Subject:* Command line for Qemu and libbsd for pc386

Hi

Does someone have a qemu command line handy for running libbsd network applications on Qemu?

I have lots of notes and old examples but can't seem to trip the right combination today.

Thanks.

--joel


_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to