cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
safweneful
Visitor
Visitor
541 Views
Registered: ‎03-31-2018

QEMU segfault when creating the node axi dma

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"

Safwene Software engineer
0 Kudos
1 Reply
shabbirk
Moderator
Moderator
503 Views
Registered: ‎12-04-2016

Hi

 

Try adding this to the DMA node of your device tree:

sg = <&memory>;
mm2s = <&memory>;
s2mm = <&memory>;

 

 

Best Regards

Shabbir