Xilinx / qemu

Xilinx's fork of Quick EMUlator (QEMU) with improved support and modelling for the Xilinx platforms.
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/821395464/QEMU+User+Documentation
Other
246 stars 154 forks source link

Cannot recreate QEMU Petalinux commands #78

Open AaronHW opened 1 year ago

AaronHW commented 1 year ago

Hello all,

I have followed the steps in the wiki: https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/822312999/Building+and+Running+QEMU+from+Source+Code

../configure --target-list="aarch64-softmmu,microblazeel-softmmu" --enable-fdt --disable-kvm --disable-xen --enable-gcrypt

However when I try to run the commands given by PetaLinux:

qemu-system-aarch64 -M arm-generic-fdt -serial mon:stdio -serial /dev/null -display none -device loader,file=/home/akelly/verilog/zcu104/vCosim/pre-built/linux/images/bl31.elf,cpu-num=0 -device loader,file=/home/akelly/verilog/zcu104/vCosim/pre-built/linux/images/ramdisk.cpio.gz.u-boot,addr=0x04000000,force-raw -device loader,file=/home/akelly/verilog/zcu104/vCosim/pre-built/linux/images/u-boot.elf -device loader,file=/home/akelly/verilog/zcu104/vCosim/pre-built/linux/images/Image,addr=0x00200000,force-raw -device loader,file=/home/akelly/verilog/zcu104/vCosim/pre-built/linux/images/system.dtb,addr=0x00100000,force-raw -device loader,file=/home/akelly/verilog/zcu104/vCosim/pre-built/linux/images/boot.scr,addr=0x20000000,force-raw -gdb tcp::9009 -net nic -net nic -net nic -net nic,netdev=eth0 -netdev user,id=eth0,tftp=/tftpboot -hw-dtb /home/akelly/verilog/zcu104/vCosim/pre-built/linux/images/zynqmp-qemu-multiarch-arm.dtb -machine-path /tmp/tmp.0TAuziGDlM -global xlnx,zynqmp-boot.cpu-num=0 -global xlnx,zynqmp-boot.use-pmufw=true -drive if=sd,format=raw,index=1,file=/home/akelly/verilog/zcu104/vCosim/pre-built/linux/images/rootfs.ext4 -m 4G

I get the error: qemu-system-aarch64: Parameter 'type' expects a netdev backend type

I am currently using the 2021.2 tag of the Github repository. Trying to follow the TFTP development flow as outlined here: https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/821985356/Example+Development+Flow#ExampleDevelopmentFlow-TFTP

Am I missing some compile option or configuration?

saipava commented 1 year ago

Hi Aaron,

Your build and command line looks good. Didn’t see this issue anytime. You can use this instead. -net nic -net nic -net nic -net user,tftp=<>

Regards, Sai Pavan

From: Aaron @.> Sent: Wednesday, March 8, 2023 8:12 AM To: Xilinx/qemu @.> Cc: Subscribed @.***> Subject: [Xilinx/qemu] Cannot recreate QEMU Petalinux commands (Issue #78)

CAUTION: This message has originated from an External Source. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email.

Hello all,

I have followed the steps in the wiki: https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/822312999/Building+and+Running+QEMU+from+Source+Code

../configure --target-list="aarch64-softmmu,microblazeel-softmmu" --enable-fdt --disable-kvm --disable-xen --enable-gcrypt

However when I try to run the commands given by PetaLinux:

qemu-system-aarch64 -M arm-generic-fdt -serial mon:stdio -serial /dev/null -display none -device loader,file=/home/akelly/verilog/zcu104/vCosim/pre-built/linux/images/bl31.elf,cpu-num=0 -device loader,file=/home/akelly/verilog/zcu104/vCosim/pre-built/linux/images/ramdisk.cpio.gz.u-boot,addr=0x04000000,force-raw -device loader,file=/home/akelly/verilog/zcu104/vCosim/pre-built/linux/images/u-boot.elf -device loader,file=/home/akelly/verilog/zcu104/vCosim/pre-built/linux/images/Image,addr=0x00200000,force-raw -device loader,file=/home/akelly/verilog/zcu104/vCosim/pre-built/linux/images/system.dtb,addr=0x00100000,force-raw -device loader,file=/home/akelly/verilog/zcu104/vCosim/pre-built/linux/images/boot.scr,addr=0x20000000,force-raw -gdb tcp::9009 -net nic -net nic -net nic -net nic,netdev=eth0 -netdev user,id=eth0,tftp=/tftpboot -hw-dtb /home/akelly/verilog/zcu104/vCosim/pre-built/linux/images/zynqmp-qemu-multiarch-arm.dtb -machine-path /tmp/tmp.0TAuziGDlM -global xlnx,zynqmp-boot.cpu-num=0 -global xlnx,zynqmp-boot.use-pmufw=true -drive if=sd,format=raw,index=1,file=/home/akelly/verilog/zcu104/vCosim/pre-built/linux/images/rootfs.ext4 -m 4G

I get the error: qemu-system-aarch64: Parameter 'type' expects a netdev backend type

I am currently using the 2021.2 tag of the Github repository. Trying to follow the TFTP development flow as outlined here: https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/821985356/Example+Development+Flow#ExampleDevelopmentFlow-TFTP

Am I missing some compile option or configuration?

— Reply to this email directly, view it on GitHubhttps://github.com/Xilinx/qemu/issues/78, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AD73MGIERN6BFK67F7OXJVTW27WWNANCNFSM6AAAAAAVTHOXF4. You are receiving this because you are subscribed to this thread.Message ID: @.**@.>>