cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer
Observer
1,161 Views
Registered: ‎10-15-2018

Issues Booting kernel in QEMU for ZynqMP

 

 

 

I customized an image for a ZynqMP device in QEMU. I am following the Petalinux Workflow tutorial (UG1156). 

When I try the default command <petalinux-boot --qemu --kernel>, I can boot until this line: 

bootconsole [cdns0] disabled

 

 

Here is my full bootup info: 

 [CODE]petalinux-boot --qemu --kernel
INFO: No DTB has been specified, use the default one "/home/arti/PetaLinux/CopyzynqNFS/zynqNFS/images/linux/system.dtb".
INFO: No DTB has been specified, use the default one "/home/arti/PetaLinux/CopyzynqNFS/zynqNFS/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/arti/PetaLinux/CopyzynqNFS/zynqNFS/pre-built/linux/images/pmu_rom_qemu_sha3.elf -device loader,file=/home/arti/PetaLinux/CopyzynqNFS/zynqNFS/images/linux/pmufw.elf -hw-dtb /home/arti/PetaLinux/CopyzynqNFS/zynqNFS/pre-built/linux/images/zynqmp-qemu-multiarch-pmu.dtb -machine-path /tmp/tmp.uz7kIHE5RR -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.uz7kIHE5RR/qemu-rport-_pmu@0: No such file or directory
qemu-system-microblazeel: info: QEMU waiting for connection on: disconnected:unix:/tmp/tmp.uz7kIHE5RR/qemu-rport-_pmu@0,server
INFO: Set QEMU tftp to /home/arti/PetaLinux/CopyzynqNFS/zynqNFS/images/linux
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/arti/PetaLinux/CopyzynqNFS/zynqNFS/images/linux/bl31.elf,cpu-num=0 -device loader,file=/home/arti/PetaLinux/CopyzynqNFS/zynqNFS/images/linux/Image,addr=0x00080000 -device loader,file=/home/arti/PetaLinux/CopyzynqNFS/zynqNFS/images/linux/system.dtb,addr=0x1407f000 -device loader,file=/home/arti/PetaLinux/CopyzynqNFS/zynqNFS/build/misc/linux-boot/linux-boot.elf -gdb tcp::9000 -dtb /home/arti/PetaLinux/CopyzynqNFS/zynqNFS/images/linux/system.dtb -net nic -net nic -net nic -net nic,vlan=1 -net user,vlan=1,tftp=/home/arti/PetaLinux/CopyzynqNFS/zynqNFS/images/linux -hw-dtb /home/arti/PetaLinux/CopyzynqNFS/zynqNFS/pre-built/linux/images/zynqmp-qemu-multiarch-arm.dtb -machine-path /tmp/tmp.uz7kIHE5RR -global xlnx,zynqmp-boot.cpu-num=0 -global xlnx,zynqmp-boot.use-pmufw=true -m 4G
qemu-system-aarch64: -net nic,vlan=1: 'vlan' is deprecated. Please use 'netdev' instead.
QEMU 2.11.1 monitor - type 'help' for more information
(qemu) audio: Could not init `oss' audio driver
qemu-system-aarch64: warning: vlan 0 is not connected to host network
rom: requested regions overlap (rom phdr #0: /home/arti/PetaLinux/CopyzynqNFS/zynqNFS/build/misc/linux-boot/linux-boot.elf. free=0x0000000019239200, addr=0x0000000008000000)
PMU Firmware 2018.3 Feb 13 2019 21:25:44
PMU_ROM Version: xpbr-v8.1.0-0
NOTICE: ATF running on XCZUUNKN/QEMU v1/RTL0.0 at 0xfffea000
NOTICE: BL31: Secure code at 0x60000000
NOTICE: BL31: Non secure code at 0x8000000
NOTICE: BL31: v1.5(release):xilinx-v2018.2-919-g08560c36
NOTICE: BL31: Built : 02:13:23, Feb 14 2019
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.0-xilinx-v2018.3 (oe-user@oe-host) (gcc version 7.3.0 (GCC)) #2 SMP Thu Feb 14 02:52:53 UTC 2019
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] Machine model: ZynqMP ZCU106 RevA
[ 0.000000] earlycon: cdns0 at MMIO 0x00000000ff000000 (options '115200n8')
[ 0.000000] bootconsole [cdns0] enabled
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Failed to reserve 1700 MiB
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] random: fast init done
[ 0.000000] percpu: Embedded 21 pages/cpu @ffffffc87ff3e000 s46488 r8192 d31336 u86016
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: enabling workaround for ARM erratum 845719
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 1033987
[ 0.000000] Kernel command line: earlycon clk_ignore_unused consoleblank=0 cma=1700M uio_pdrv_genirq.of_id=generic-uio
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
[ 0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.000000] software IO TLB [mem 0x7beff000-0x7feff000] (64MB) mapped at [ffffffc07beff000-ffffffc07fefefff]
[ 0.000000] Memory: 3649272K/4193280K available (10300K kernel code, 676K rwdata, 3264K rodata, 397056K init, 2371K bss, 544008K reserved, 0K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] modules : 0xffffff8000000000 - 0xffffff8008000000 ( 128 MB)
[ 0.000000] vmalloc : 0xffffff8008000000 - 0xffffffbebfff0000 ( 250 GB)
[ 0.000000] .text : 0xffffff8008080000 - 0xffffff8008a90000 ( 10304 KB)
[ 0.000000] .rodata : 0xffffff8008a90000 - 0xffffff8008dd0000 ( 3328 KB)
[ 0.000000] .init : 0xffffff8008dd0000 - 0xffffff8021190000 (397056 KB)
[ 0.000000] .data : 0xffffff8021190000 - 0xffffff8021239200 ( 677 KB)
[ 0.000000] .bss : 0xffffff8021239200 - 0xffffff802148a1b0 ( 2372 KB)
[ 0.000000] fixed : 0xffffffbefe7fd000 - 0xffffffbefec00000 ( 4108 KB)
[ 0.000000] PCI I/O : 0xffffffbefee00000 - 0xffffffbeffe00000 ( 16 MB)
[ 0.000000] vmemmap : 0xffffffbf00000000 - 0xffffffc000000000 ( 4 GB maximum)
[ 0.000000] 0xffffffbf00000000 - 0xffffffbf1dc00000 ( 476 MB actual)
[ 0.000000] memory : 0xffffffc000000000 - 0xffffffc880000000 ( 34816 MB)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU event tracing is enabled.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GIC: Adjusting CPU interface base to 0x00000000f902f000
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] irq-xilinx: /amba_pl@0/interrupt-controller@a0052000: num_irq=4, edge=0x0
[ 0.000000] arch_timer: cp15 timer(s) running at 50.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb8812736b, max_idle_ns: 440795202655 ns
[ 0.000278] sched_clock: 56 bits at 50MHz, resolution 20ns, wraps every 4398046511100ns
[ 0.027469] Console: colour dummy device 80x25
[ 0.028153] console [tty0] enabled
[ 0.029440] bootconsole [cdns0] disabled

  [/CODE]

 

What I did: 

petalinux-create -t project -s xilinx-vcu-trd-zcu106-v2018.3-final.bsp

petalinux-config --get-hw-description=../

petalinux-build 

petalinux-boot --qemu --kernel

 

I read the following post, and in one of his cases, he has a similar output result as me. 

https://forums.xilinx.com/t5/Embedded-Linux/Issues-w-ZynqMP-Kernel-testing-on-QEMU/m-p/833359

Tags (4)
0 Kudos
2 Replies
Highlighted
Visitor
Visitor
796 Views
Registered: ‎11-20-2018

Re: Issues Booting kernel in QEMU for ZynqMP

I also have the same issue. can someone help with that?

0 Kudos
Highlighted
Moderator
Moderator
788 Views
Registered: ‎12-04-2016

Re: Issues Booting kernel in QEMU for ZynqMP

Hi @ahira 

Can you please share your HDF, let me give a try at my end and further look into it

 

Best Regards

Shabbir

0 Kudos