-
Notifications
You must be signed in to change notification settings - Fork 150
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 can't realize the axi dma node #28
Comments
Hey Safwen, You are seeing the seg fault because your DMA node (dma@40400000) doesn't have the sg property set. You need to ensure that the sg property in the device tree points to a valid QEMU MemoryRegion (https://github.com/Xilinx/qemu/blob/master/hw/dma/xilinx_axidma.c#L609). Have a look at a Xilinx provided DTS and you can just copy it from there. |
Hi @alistair23, thank you for your answer, it no longer segfaults, but now I am stuck at
here err is 25, and so this function never returns because it could not set the voltage signal. Can you reproduce this problem??:
qemu-xlnx: xilinx-v2017.3
So far, I reproduced the same behavior on all zynq boards. |
Hey Safwen, I don't see anything obviously wrong with what you are doing, it all looks standard in which case QEMU should not take that long to boot or to run commands. Maybe try not an SD boot (JTAG boot) to just narrow down the issue? Unfortunately I can't help reproduce and fix the problem, you will need someone from Xilinx to help you there. |
@alistair23 ok thank you, I will reach out to someone from Xilinx. thanks. |
I am having an issue emulating my board, which is base on the zynq-700 board series. When I run qemu, it segfaults and dumps a core file, here is the backtrace.
I am using the 2017.3 tag for both the kernel and qemu. and here is my device tree.
The command I use to launch qemu:
/root/qemu/aarch64-softmmu/qemu-system-aarch64 -M arm-generic-fdt-7series -machine linux=on -serial /dev/null -serial mon:stdio -nographic -dtb dtree.dtb -kernel /root/linux-xlnx/arch/arm/boot/zImage -drive if=sd,format=raw,index=0,file=/root/rootfs/sd.img -append "root=/dev/mmcblk0 rw rootwait rootfstype=ext2"
The text was updated successfully, but these errors were encountered: