cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
kprabhu7
Visitor
Visitor
632 Views
Registered: ‎06-17-2020

Petalinux qemu boot crashes

I've exported an XSA file from Vivado.

Then, from the Petalinux side, I've run the following:

$ petalinux-create --type project --template zynq --name petalinux_project
$ cd petalinux_project
$ petalinux-config --get-hw-description=/path/to/xsa
$ petalinux-build
$ petalinux-boot --qemu --kernel

At this point, qemu starts up with:

INFO: sourcing build tools
INFO: The image provided is a zImage
INFO: Set QEMU tftp to /path/to/petalinux_project/images/linux 
INFO: TCP PORT is free 
INFO: Starting arm QEMU
INFO:  qemu-system-aarch64 -M arm-generic-fdt-7series -machine linux=on   -serial /dev/null -serial mon:stdio -display none -kernel /path/to/build.elf -gdb tcp::9000 -dtb /path/to/system.dtb  -net nic,netdev=eth0 -netdev user,id=eth0,tftp=/path/to/petalinux_project/images/linux -net nic -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=0xF8000910,data=0xF,data-len=0x4   
**
ERROR:/scratch/petalinux-yocto/yocto_downloads_2019.2_zynq-generic/build_zynq-generic/tmp/work/x86_64-nativesdk-petalinux-linux/nativesdk-qemu-xilinx/v2.11.1-xilinx-v2019.2+gitAUTOINC+6617fbc8be-r0/git/qom/object.c:1630:object_get_canonical_path_component: assertion failed: (obj)
petalinux-qemu-boot: line 837:  1034 Aborted                 (core dumped) $QEMU_DEBUG ${qemu_cmd} ${qemu_mach} ${nic_list} ${qemu_serial} ${qemu_display} ${qemu_img_opt} -gdb tcp::${start_port} ${dtb_option} ${slirp_option} ${zynq_fsbl_args} ${extra_args} ${aarch64_beta2_args} ${mem_option}

 

What could be going wrong and how can I debug this? Thanks in advance for any help! 

4 Replies
kustinj
Visitor
Visitor
611 Views
Registered: ‎06-17-2020

having same issue. would appreciate quick response! thanks

0 Kudos
faber
Visitor
Visitor
390 Views
Registered: ‎04-16-2008

Same problem here!
0 Kudos
jovitac
Moderator
Moderator
379 Views
Registered: ‎05-10-2017

There is something in your design which is causing it to fail to qemu. Which version is this on? Can you check your pl nodes and modify the dtb to check which of these could be causing an issue.

Not all peripherals are emulated in QEMU. Check the user guide Table 2-1 to get a list of Qemu supported features 

https://www.xilinx.com/support/documentation/sw_manuals/xilinx2019_2/ug1169-xilinx-qemu.pdf

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
faber
Visitor
Visitor
356 Views
Registered: ‎04-16-2008

Hi,

thank you for your prompt response!

I'm using the 2019.2 environment under Ubuntu 18.04 and the target is a Zynq7000 (7045, which is K7 based).

The design is quite simple: a DMA with TX-RX loopback is implemented and with TX and RX interrupts enabled.

Actually, I don't see a DMA PL peripheral listed in Table 2-1, so this could be the cause of the crash.

I will try to remove the DMA node from DT and use the newly generated DT to feed QEMU.

Ill let you know.

Thanks again

0 Kudos