UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor yourand
Visitor
201 Views
Registered: ‎06-27-2013

qemu multicore - different elf on each core

Hello,

I am successfully running standalone elf application for the ZynqMP on the Xilinx QEMU with below command:

 

qemu-system-aarch64 -M arm-generic-fdt \
-display none \
-serial /dev/null \
-serial mon:stdio \
-device loader,file=example.elf,cpu-num=0 \
-device loader,addr=0xfd1a0104,data=0x80000000,data-len=4 \
-hw-dtb ../linux/zcu102-arm.cosim.dtb \
-machine-path $QEMU/qemu-tmp \
-global xlnx,zynqmp-boot.cpu-num=0 \
-global xlnx,zynqmp-boot.use-pmufw=true 

 It is working but what if I would like to run different elf file for each A53 core? Is it possible? I've tried to run it with the command below:

 

qemu-system-aarch64 -M arm-generic-fdt \
-display none \
-serial /dev/null \
-serial mon:stdio \
-device loader,file=./example.elf,cpu-num=0 \
-device loader,file=./example2.elf,cpu-num=1 \
-device loader,file=./example3.elf,cpu-num=2 \
-device loader,addr=0xfd1a0104,data=0x80000000,data-len=4 \
-hw-dtb ../linux/zcu102-arm.cosim.dtb \
-machine-path $QEMU/qemu-tmp \
-global xlnx,zynqmp-boot.cpu-num=0 \
-global xlnx,zynqmp-boot.use-pmufw=true 

but I always have the result of the last loaded elf file (in this case example3.elf). My question is - If this is supported? If yes, how to do it correctly? Should every elf file have to have different linker script to load it into different memory addresses, or this is done by the cpu-num argument?

 

 

Regards,

Yourand

 

0 Kudos