Xilinx / systemctlm-cosim-demo

QEMU libsystemctlm-soc co-simulation demos.
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/862421112/Co-simulation
Other
117 stars 46 forks source link

qemu connet problem #19

Open heixi opened 3 years ago

heixi commented 3 years ago

when i run a demo in systemctlm-cosim-demo and qemu, the problem is raise:

SystemC 2.3.2-Accellera --- Aug 4 2021 09:24:49 Copyright (c) 1996-2017 by all Contributors, ALL RIGHTS RESERVED

Info: (I702) default timescale unit used for tracing: 1 ps (trace.vcd) open socket connect to /tmp/cosim/qemu-rport-_amba@0_cosim@0 Failed to connect to /tmp/cosim/qemu-rport-_amba@0_cosim@0, attempt to list

and my run demo command is ./zynq_demo unix:/tmp/cosim/qemu-rport-_amba@0_cosim@0 1000000

and run qemu command is qemu-system-aarch64 \ -m 2G -smp 4 -accel tcg,tb-size=1280,thread=multi -M virt -cpu max \ -bios /usr/share/qemu-efi-aarch64/QEMU_EFI.fd \ -drive if=none,file=debian-10-openstack-arm64.qcow2,id=hd0 -device virtio-blk-device,drive=hd0 \ -device e1000,netdev=net0 -netdev user,id=net0,hostfwd=tcp:127.0.0.1:5556-:22 \ -nographic \ -dtb virt.dtb \ -hw-dtb ./zcu102-arm.cosim.dtb \ -device loader,addr=0xfd1a0104,data=0x8000000e,data-len=4 \ -machine-path /tmp/cosim \ -sync-quantum 1000000 \ -netdev user,id=net4 \ -device ioh3420,id=rootport,slot=0 \ -serial mon:stdio

how to solve the problem? thx

tianrui-wei commented 3 years ago

@heixi You've used -M virt in your qemu command, but you should be using -M arm-generic-fdt instead.