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: 
Visitor uscmule
Visitor
1,610 Views
Registered: ‎09-27-2017

petalinux 2017.2 build in qemu wont start

The error message I am getting is:

 

$ 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/ubuntu/petatest1/build/qemu_image.elf -gdb tcp::9000 -dtb /home/ubuntu/petatest1/images/linux/system.dtb -net nic,vlan=1 -net user,vlan=1,tftp=/tftpboot -net nic -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
The 'arm-generic-fdt-plnx' machine has been deprecated. Please use 'arm-generic-fdt-7series' instead.

 

I have not modified the kernel or dts, I have only added rootfs packages and built.

0 Kudos
5 Replies
Moderator
Moderator
1,598 Views
Registered: ‎09-12-2007

Re: petalinux 2017.2 build in qemu wont start

You can boot manually using the command argument you have here:

 

<YOUR PATH>/tools/linux-i386/petalinux/bin/qemu-system-aarch64 -M arm-generic-fdt-7series -machine linux=on -serial /dev/null -serial mon:stdio -display none -kernel /home/ubuntu/petatest1/build/qemu_image.elf -gdb tcp::9000 -dtb /home/ubuntu/petatest1/images/linux/system.dtb -net nic,vlan=1 -net user,vlan=1,tftp=/tftpboot -net nic -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
Visitor uscmule
Visitor
1,594 Views
Registered: ‎09-27-2017

Re: petalinux 2017.2 build in qemu wont start

Thanks stephenm, I tried that, replacing the -M arm-generic-fdt-7series arument.

 

It just sits there, only additional output is:

Warning: vlan 0 is not connected to host network

 

But no error messages are produced and it is not booting. Any further troubleshooting tips?

0 Kudos
Moderator
Moderator
1,465 Views
Registered: ‎12-04-2016

Re: petalinux 2017.2 build in qemu wont start

Hi 

 

Was QEMU boot working fine before making modifications to rootfs package with the same command-line?

 

 

Best Regards

Shabbir

0 Kudos
Observer mnsgs
Observer
1,448 Views
Registered: ‎05-23-2017

Re: petalinux 2017.2 build in qemu wont start

Hi,

 

I am observing similar, also on petalinux 2017.2:

 

martin@martin-Precision-5510:~/work/petalinux/build$ runqemu tmp/deploy/images/zcu102-zynqmp/petalinux-minimal-zcu102-zynqmp.qemuboot.conf
runqemu - INFO - CONFFILE: /home/martin/work/petalinux/build/tmp/deploy/images/zcu102-zynqmp/petalinux-minimal-zcu102-zynqmp.qemuboot.conf
runqemu - INFO - Continuing with the following parameters:

KERNEL: [/home/martin/work/petalinux/build/tmp/deploy/images/zcu102-zynqmp/Image]
DTB: [/home/martin/work/petalinux/build/tmp/deploy/images/zcu102-zynqmp/Image-zynqmp-zcu102-revB.dtb]
MACHINE: [zcu102-zynqmp]
FSTYPE: [cpio]
ROOTFS: [/home/martin/work/petalinux/build/tmp/deploy/images/zcu102-zynqmp/petalinux-minimal-zcu102-zynqmp-20170827122845.rootfs.cpio]
CONFFILE: [/home/martin/work/petalinux/build/tmp/deploy/images/zcu102-zynqmp/petalinux-minimal-zcu102-zynqmp.qemuboot.conf]

runqemu - INFO - Running /sbin/ip link...
runqemu - INFO - Setting up tap interface under sudo
[sudo] password for martin:
runqemu - INFO - Acquiring lockfile /tmp/qemu-tap-locks/tap0.lock...
runqemu - INFO - Created tap: tap0
runqemu - INFO - Running ldd /home/martin/work/petalinux/build/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-aarch64...
runqemu - INFO - Running /home/martin/work/petalinux/build/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-aarch64 -netdev tap,id=net0,ifname=tap0,script=no,downscript=no -net nic -net nic -net nic -net nic,netdev=net0,macaddr=52:54:00:12:34:02 -machine xlnx-zcu102 -m 4096 -initrd /home/martin/work/petalinux/build/tmp/deploy/images/zcu102-zynqmp/petalinux-minimal-zcu102-zynqmp-20170827122845.rootfs.cpio -nographic -serial mon:stdio -serial null -kernel /home/martin/work/petalinux/build/tmp/deploy/images/zcu102-zynqmp/Image -append 'root=/dev/ram0 rw debugshell mem=4096M ip=192.168.7.2::192.168.7.1:255.255.255.0 ' -dtb /home/martin/work/petalinux/build/tmp/deploy/images/zcu102-zynqmp/Image-zynqmp-zcu102-revB.dtb
Warning: vlan 0 is not connected to host network

 

 - given the '-serial mon:stdio' I would expect the kernel log printed to the console where QEMU is started, but nothing happens. I can not ping/ssh 192.168.7.2 which I assume is the IP address of the emulator. 

 

Similar observations are done for a non Petalinux (i.e. Yocto/Poky build using simply meta-xilinx and meta-xilinx-tools) - version:

 

martin@martin-Precision-5510:~/work/zcu102_os/meta-xilinx$ git lg -1
* 74a0d90 - (HEAD -> master, origin/master, origin/HEAD) pmu-rom_2017.1.bb: Recipe that deploys pmu-rom.elf from ZCU102 BSP (9 weeks ago) <Nathan Rossi>

 

The host OS is Ubuntu 17.04 and for reference I tested building and running the x86-qemu from todays' Rocko release of Poky.

 

Br,

mnsgs

 

0 Kudos
Observer mnsgs
Observer
1,442 Views
Registered: ‎05-23-2017

Re: petalinux 2017.2 build in qemu wont start

Never mind my above post, the extracted pmu-rom.elf from the downloaded BSP was corrupt - fixing this enables qemu to start.

0 Kudos