cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
bartokon
Explorer
Explorer
968 Views
Registered: ‎09-17-2018

Qemu hangs on TCF-agent

Jump to solution

Hi, I'm trying to run SW-emu with OpenCL hello word example, but Vitis 2020.2 hangs on launching.

Screenshot from 2020-11-27 17-15-05.png

Any Ideas how could I fix this?

Qemu_args.txt

 

########################################################################
# This is file which used to generate QEMU(which emulates A9 core) 
# commandline(start_qemu.sh script) which used in Zynq HW-EMU. 
# This is a template file which is packaged in platform and it gets 
# processed by Vitis tool to generate meaningful file.
#
# This file contains flag and value pairs and they must be seperated 
# into two lines value followed by flag. Below are the common/mandated 
# flag and value pairs used for emulating Zynq. User can add more 
# commandline args to this file depends on requirements.
# 
# For more details on the QEMU commandline, please refer to 
# the QEMU user guide UG1169.
########################################################################
#
#
# selects emulated machine
-M
arm-generic-fdt-7series
#
#
# redirect the serial port to specified char dev (i.e stdio, tcp port, file etc)
-serial
/dev/null
-serial
mon:stdio
#
#
# Register writes to SLCR block, to set PLL and CLK_CTRL regs (required for linux)
-device
loader,addr=0xf8000008,data=0xDF0D,data-len=4
-device
loader,addr=0xf8000140,data=0x00500801,data-len=4
-device
loader,addr=0xf800012c,data=0x1ed044d,data-len=4
-device
loader,addr=0xf8000108,data=0x0001e008,data-len=4
-device
loader,addr=0xF800025C,data=0x00000005,data-len=4
-device
loader,addr=0xF8000240,data=0x00000000,data-len=4
#
#
# Boot device selection
-boot
mode=5
#
#
# Guest software to load during boot up
-kernel
/home/bartek/test/images/linux/boot/u-boot.elf
#
#
# linux=on, make qemu itself a loader of linux image
-machine
linux=on

 

PS. petalinux-boot --qemu --kernel is working fine.

0 Kudos
1 Solution

Accepted Solutions
ViratAgarwal
Xilinx Employee
Xilinx Employee
779 Views
Registered: ‎06-24-2020

Hi @bartokon ,

I ran the hello world OpenCL example for zc706 for sw_emu and the same passed for me. I am attaching the screenshots for your reference -

ViratAgarwal_0-1606972592681.png

Following were the contents of my qemu_args.txt -

-M
arm-generic-fdt-7series
-serial
/dev/null
-serial
mon:stdio
-device
loader,addr=0xf8000008,data=0xDF0D,data-len=4
-device
loader,addr=0xf8000140,data=0x00500801,data-len=4
-device
loader,addr=0xf800012c,data=0x1ed044d,data-len=4
-device
loader,addr=0xf8000108,data=0x0001e008,data-len=4
-device
loader,addr=0xF800025C,data=0x00000005,data-len=4
-device
loader,addr=0xF8000240,data=0x00000000,data-len=4
-boot
mode=5
-kernel
/proj/xbuilds/XRT_EMBEDDED/2020.2/xilinx_zc706_base_202020_1/2020.2_1122_0430/packages/output/internal_platforms/xilinx_zc706_base_202020_1/sw/xilinx_zc706_base_202020_1/qemu/u-boot.elf
-machine
linux=on

View solution in original post

6 Replies
ViratAgarwal
Xilinx Employee
Xilinx Employee
958 Views
Registered: ‎06-24-2020

Hi @bartokon ,

Can you please mention which device you tried to run the example for and the steps you followed. I will locally try to reproduce the error. Also did the C++ example run for you?

0 Kudos
bartokon
Explorer
Explorer
913 Views
Registered: ‎09-17-2018

Ok, I think I have included everything....

This is Eclypse-Z7, Zynq-7000, xc7z020clg484-1

https://drive.google.com/drive/folders/1F4_tc8sbUI-gU1us5w_llTCXlk3FYHli?usp=sharing

If you need more files just tell me

PS. I have run OpenCL hello word successfully on hardware -> see cutecom.log

0 Kudos
bartokon
Explorer
Explorer
818 Views
Registered: ‎09-17-2018
Hello @ViratAgrawal,

Did you check it on your side?
I don't know If you are looking into it...

Thanks!
0 Kudos
ViratAgarwal
Xilinx Employee
Xilinx Employee
805 Views
Registered: ‎06-24-2020

Hi @bartokon ,

I initially thought the issue was seen on Vitis GUI for some zynq board like zcu102 or zc706. I am not familiar with Eclypse-Z7, Zynq-7000, xc7z020clg484-1.

bartokon
Explorer
Explorer
794 Views
Registered: ‎09-17-2018

Thanks for reply,

I don't know what does QEMU have to some particular Zynq board. The emulation runs independent of the development board and processor pinout shouldn't matter in emulation. I just want to know how can I force QEMU to run this simulation... If petalinux runs normally then why Vitis can't load sd-card/gets stuck?

Did you run emulation on zc706? If yes how does the qemu_argument.txt looks like? 

0 Kudos
ViratAgarwal
Xilinx Employee
Xilinx Employee
780 Views
Registered: ‎06-24-2020

Hi @bartokon ,

I ran the hello world OpenCL example for zc706 for sw_emu and the same passed for me. I am attaching the screenshots for your reference -

ViratAgarwal_0-1606972592681.png

Following were the contents of my qemu_args.txt -

-M
arm-generic-fdt-7series
-serial
/dev/null
-serial
mon:stdio
-device
loader,addr=0xf8000008,data=0xDF0D,data-len=4
-device
loader,addr=0xf8000140,data=0x00500801,data-len=4
-device
loader,addr=0xf800012c,data=0x1ed044d,data-len=4
-device
loader,addr=0xf8000108,data=0x0001e008,data-len=4
-device
loader,addr=0xF800025C,data=0x00000005,data-len=4
-device
loader,addr=0xF8000240,data=0x00000000,data-len=4
-boot
mode=5
-kernel
/proj/xbuilds/XRT_EMBEDDED/2020.2/xilinx_zc706_base_202020_1/2020.2_1122_0430/packages/output/internal_platforms/xilinx_zc706_base_202020_1/sw/xilinx_zc706_base_202020_1/qemu/u-boot.elf
-machine
linux=on

View solution in original post