Xilinx / qemu

Xilinx's fork of Quick EMUlator (QEMU) with improved support and modelling for the Xilinx platforms.
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/821395464/QEMU+User+Documentation
Other
238 stars 152 forks source link

Co-simulate QEMU with SystemC #60

Open asifsid-32 opened 3 years ago

asifsid-32 commented 3 years ago

Hello,

Please find attached the build file used for generating the QNX kernel. minimal-build.txt

Problem Statement: Not able to connect Co-simulation sample application with QNX OS on QEMU.

From the github repo: https://github.com/xilinx/systemctlm-cosim-demo. we have compiled and used the sample SystemC application.

Command used for executing Systemc co-simulation application - LD_LIBRARY_PATH=/path/to/systemc-2.3.1/lib-linux64/ ./demo-app unix:/tmp 10000

Following command is used to boot QNX on qemu -

./qemu-system-aarch64 -M xlnx-zcu102 -m 8G -serial mon:stdio -display none \ -device loader,file=QNX-IFS.bin,cpu-num=0 \ -machine-path /tmp -icount 1 -sync-quantum 10000

When the above command is executed with -icount 1 the QNX kernel hangs while booting. If -icount 1 is not used the kernel does not wait for connection with Co-simulation application (SystemC application) and directly boots without waiting for connection.

Can you please help us in this issue ?

Regards Asif

edgarigl commented 3 years ago

Hi,

You are using the wrong machine -M xlnx-zcu102. Look at the example command-lines here: https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/862421112/Co-simulation

Best regards, Edgar