12-16-2020 11:46 PM
im am currently in the process of familiarizing myself with Petalinux development for a ZynqMP device. As I don't have a physical board availible right now I started off by using QEMU. I was on a good track until I ran into two issues related to network and SD card usage in Linux running on QEMU.
In order to get to this point I have done the following:
I am unsure how to continue from here. As the network as well as the SD card seem to be correctly working in U-Boot it looks like a Petalinux problem.
There are some suspicious messages in the boot log which are maybe related:
Can somebody has advise how to proceed?
I currently have the following thoughts:
Thank you in advance and best regards!
08-23-2021 06:19 AM
I have the same problem and I didn't find a solution. Tried to use qemu-args but it didn't help.
I do have warning lines. And it seems that they are pointing to the problem:
qemu-system-aarch64: warning: hub 0 is not connected to host network qemu-system-aarch64: warning: netdev eth0 has no peer qemu-system-aarch64: warning: requested NIC (anonymous, model unspecified) was not created (not supported by this machine?)
But I didn't find a solution
$ petalinux-boot --qemu --kernel INFO: Sourcing build tools INFO: No DTB has been specified, use the default one "/home/USER/projects/PETALINUX_PROJECT/images/linux/system.dtb". INFO: No DTB has been specified, use the default one "/home/USER/projects/PETALINUX_PROJECT/images/linux/system.dtb". INFO: Starting microblaze QEMU INFO: Starting the above QEMU command in the background INFO: qemu-system-microblazeel -M microblaze-fdt -serial mon:stdio -serial /dev/null -display none -kernel /home/USER/projects/PETALINUX_PROJECT/pre-built/linux/images/pmu_rom_qemu_sha3.elf -device loader,file=/home/USER/projects/PETALINUX_PROJECT/images/linux/pmufw.elf -hw-dtb /home/USER/projects/PETALINUX_PROJECT/images/linux/zynqmp-qemu-multiarch-pmu.dtb -machine-path /tmp/tmp.JMXijTyF8U -device loader,addr=0xfd1a0074,data=0x1011003,data-len=4 -device loader,addr=0xfd1a007C,data=0x1010f03,data-len=4 qemu-system-microblazeel: Failed to connect socket /tmp/tmp.JMXijTyF8U/qemu-rport-_pmu@0: No such file or directory qemu-system-microblazeel: info: QEMU waiting for connection on: disconnected:unix:/tmp/tmp.JMXijTyF8U/qemu-rport-_pmu@0,server INFO: TCP PORT is free INFO: Starting aarch64 QEMU INFO: qemu-system-aarch64 -M arm-generic-fdt -serial mon:stdio -serial /dev/null -display none -device loader,file=/home/USER/projects/PETALINUX_PROJECT/images/linux/bl31.elf,cpu-num=0 -device loader,file=/home/USER/projects/PETALINUX_PROJECT/images/linux/rootfs.cpio.gz.u-boot,addr=0x04000000,force-raw -device loader,file=/home/USER/projects/PETALINUX_PROJECT/images/linux/u-boot.elf -device loader,file=/home/USER/projects/PETALINUX_PROJECT/images/linux/Image,addr=0x00200000,force-raw -device loader,file=/home/USER/projects/PETALINUX_PROJECT/images/linux/system.dtb,addr=0x00100000,force-raw -device loader,file=/home/USER/projects/PETALINUX_PROJECT/images/linux/boot.scr,addr=0x20000000,force-raw -gdb tcp::9000 -net nic -net nic -net nic -net nic -net nic,netdev=eth0 -netdev user,id=eth0,tftp=/tftpboot -hw-dtb /home/USER/projects/PETALINUX_PROJECT/images/linux/zynqmp-qemu-multiarch-arm.dtb -machine-path /tmp/tmp.JMXijTyF8U -global xlnx,zynqmp-boot.cpu-num=0 -global xlnx,zynqmp-boot.use-pmufw=true -m 4G QEMU 5.0.50 monitor - type 'help' for more information (qemu) qemu-system-aarch64: warning: hub 0 is not connected to host network qemu-system-aarch64: warning: netdev eth0 has no peer qemu-system-aarch64: warning: requested NIC (anonymous, model unspecified) was not created (not supported by this machine?) PMU Firmware 2020.2 Aug 11 2021 09:37:21 PMU_ROM Version: xpbr-v8.1.0-0 NOTICE: ATF running on XCZUUNKN/QEMU v4/RTL0.0 at 0xfffea000 NOTICE: BL31: v2.2(release):xlnx_rebase_v2.2_2020.3 NOTICE: BL31: Built : 09:35:29, Aug 11 2021
09-14-2021 08:02 PM
my spi have similary issue:
[ 5.448645] zynqmp_gpd_attach_dev() domain6 request failed for node 35: -13
[ 5.455602] cdns-spi ff040000.spi: failed to add to PM domain domain6: -13
[ 5.462480] cdns-spi: probe of ff040000.spi failed with error -13
I would appreciate your comments.