Skip to content
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

qemu connet problem #19

Open
heixi opened this issue Aug 6, 2021 · 1 comment
Open

qemu connet problem #19

heixi opened this issue Aug 6, 2021 · 1 comment

Comments

@heixi
Copy link

heixi commented Aug 6, 2021

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants