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: 
Explorer
Explorer
3,472 Views
Registered: ‎10-08-2016

Booting to QEMU, 2016.4

I like to run a quick check on new apps to make sure they are present, they launch, and they display their --help messages.  Now with Petalinux 2016.4 that fails.  I run "petalinux-boot --qemu --kernel" as before, and now I get the message below.  Clearly something has changed.  It launches okay on the target device when I copy the boot.bin and image.ub to an SD card.  I can't find helpful documentaiton on the new version of petalinux-boot.

 

$ petalinux-boot --qemu --kernel
INFO: The image provided is a zImage
INFO: TCP PORT is free
INFO: Starting arm QEMU
INFO: qemu-system-aarch64 -M arm-generic-fdt-plnx -machine linux=on -serial /dev/null -serial mon:stdio -display none -kernel /home/daryl/Dropbox/zedboard/petalinux/proj_FFT3b/build/qemu_image.elf -gdb tcp::9000 -dtb /home/daryl/Dropbox/zedboard/petalinux/proj_FFT3b/images/linux/system.dtb -net nic,vlan=1 -net user,vlan=1 -net nic -tftp /tftpboot -device loader,addr=0xf8000008,data=0xDF0D,data-len=4 -device loader,addr=0xf8000140,data=0x00500801,data-len=4 -device loader,addr=0xf800012c,data=0x1ed044d,data-len=4 -device loader,addr=0xf8000108,data=0x0001e008,data-len=4
qemu-system-aarch64: -tftp /tftpboot: The -tftp option is deprecated. Please use '-netdev user,tftp=...' instead.
**
ERROR:/build/ssw/petalinux/jenkins/new_build_yocto_src_2016.4/qemu/qom/object.c:1576:object_get_canonical_path_component: assertion failed: (obj)
petalinux-qemu-boot: line 726: 16907 Aborted (core dumped) $QEMU_DEBUG ${qemu_cmd} ${qemu_mach} ${nic_list} ${qemu_serial} ${qemu_display} ${qemu_img_opt} -gdb tcp::${start_port} ${dtb_option} ${slirp_option} ${extra_args} ${zynq_fsbl_args} ${aarch64_beta2_args}
sh: line 1: 16995 Segmentation fault (core dumped) /home/daryl/Petalinux/tools/webtalk/bin/unwrapped/lnx64.o/xilproxy > /home/daryl/Dropbox/zedboard/petalinux/proj_FFT3b/.Xil/Webtalk-16991-daryl-HP-ENVY-Notebook/webtalk/xilproxy.log 2>&1

0 Kudos
4 Replies
Moderator
Moderator
3,410 Views
Registered: ‎12-04-2016

Re: Booting to QEMU, 2016.4

Hi 

 

Can you try this?

 

qemu-system-aarch64 -M arm-generic-fdt-plnx -machine linux=on -serial /dev/null -serial mon:stdio -display none -kernel /scratch/Petalinux/xilinx-zc702-2016.4/build/qemu_image.elf -gdb tcp::9000 -dtb /scratch/Petalinux/xilinx-zc702-2016.4/images/linux/system.dtb -net nic,vlan=1 -net user,vlan=1 -net nic -net user -device loader,addr=0xf8000008,data=0xDF0D,data-len=4 -device loader,addr=0xf8000140,data=0x00500801,data-len=4 -device loader,addr=0xf800012c,data=0x1ed044d,data-len=4 -device loader,addr=0xf8000108,data=0x0001e008,data-len=4

0 Kudos
Explorer
Explorer
3,390 Views
Registered: ‎10-08-2016

Re: Booting to QEMU, 2016.4

I did (copy-paste, for accuracy), and got this:

 

qemu-system-aarch64: Unable to get size of device tree file '/scratch/Petalinux/xilinx-zc702-2016.4/images/linux/system.dtb'
qemu-system-aarch64: Error: Unable to load Device Tree /scratch/Petalinux/xilinx-zc702-2016.4/images/linux/system.dtb

 

I'm not too surprised at that because I have no /scratch directory on my system.  I searched my Petalinux installation for xilinx-zc702-2016.4 to no avail.

0 Kudos
Moderator
Moderator
3,380 Views
Registered: ‎12-04-2016

Re: Booting to QEMU, 2016.4

Hi

 

/scratch/Petalinux is my local path where petalinux project has been created. Request to replace this with accordingly.

 

 

0 Kudos
Explorer
Explorer
3,369 Views
Registered: ‎10-08-2016

Re: Booting to QEMU, 2016.4

Okay.  I found a qemu_image.elf at the top level of the build directory, so I ran this command:

 

$ qemu-system-aarch64 -M arm-generic-fdt-plnx -machine linux=on -serial /dev/null -serial mon:stdio -display none -kernel ./build/qemu_image.elf -gdb tcp::9000 -dtb ./images/linux/system.dtb -net nic,vlan=1 -net user,vlan=1 -net nic -net user -device loader,addr=0xf8000008,data=0xDF0D,data-len=4 -device loader,addr=0xf8000140,data=0x00500801,data-len=4 -device loader,addr=0xf800012c,data=0x1ed044d,data-len=4 -device loader,addr=0xf8000108,data=0x0001e008,data-len=4

 

and got this error:


ERROR:/build/ssw/petalinux/jenkins/new_build_yocto_src_2016.4/qemu/qom/object.c:1576:object_get_canonical_path_component: assertion failed: (obj)
Aborted (core dumped)

0 Kudos