-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Netowrking in QEMU with xilinx-zcu102 machine #61
Comments
The ZynqMP SOC has 4 Ethernet MAC's. On the ZCU102 board, GEM3 is the one to use. eg.: -net nic,model=cadence_gem -net nic,model=cadence_gem -net nic,model=cadence_gem,netdev=net0 Best regards, |
Hii Edgar, Thanks for the input. The above command options Worked. I am executing the qemu command as follows - qemu-system-aarch64 -M xlnx-zcu102 -m 8G -serial mon:stdio -display none After booting the guest OS following is the output of ifconfig - lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33136 xzynq0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 I am able to transfer files successfully between host os linux and guest using SCP when ssh is launched. But i am not able to ping from guest to host or host to guest. Also if i want to debug a qnx application using gdb remote debug it does not work. I tried following the steps given in the "Enabling ping in the guest, on Linux hosts" section from the link https://wiki.qemu.org/Documentation/Networking#User_Networking_.28SLIRP.29 Can you please suggest what changes are required in qemu command line so that i can ping from guest to host or host to guest as this is required for remote debug. Regards |
Hi everyone,
looking for further information thanks :) |
Hello All,
I am working on the networking between my host OS linux and guest OS QNX(Running on top of qemu). I have an interface xzynq0 in my guest OS with a static/dynamic IP address.
I am executing the qemu command as follows -
qemu-system-aarch64 -M xlnx-zcu102 -m 8G -serial mon:stdio -display none -device loader,file=QNX_IFS.bin,cpu-num=0 -netdev bridge,br=virbr0,id=net0,helper=/usr/lib/qemu/qemu-bridge-helper -nographic -global xlnx,zynqmp-boot.cpu-num=0 -global xlnx,zynqmp-boot.use-pmufw=true
But the observation is when i try to ping the guest OS with some IP from my host OS, it is showing destination unreachable or when i try to ping from my guest to host it shows host is down.
I do have a virbr0 bridge in my host os -
virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
And in my guest OS the interface is -
xzynq0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:0a:35:02:78:10
media: Ethernet 100baseTX full-duplex
status: active
inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255
inet6 fe80::20a:35ff:fe02:7810%xzynq0 prefixlen 64 scopeid 0x11
The same xzynq0 interface works in the actual target hardware.
Can you please help me out here what am i missing to enable the networking. Is it the case that bridge is not getting set correctly ? Or what can be the possible reasons for the same ?
Regards
Asif
The text was updated successfully, but these errors were encountered: