Additional Options for Booting on QEMU - 2020.2 English

PetaLinux Tools Documentation Reference Guide (UG1144)

Document ID
UG1144
Release Date
2020-11-24
Version
2020.2 English
  • To download the newly built <plnx-proj-root>/images/linux/u-boot.elf with QEMU:
    $ petalinux-boot --qemu --u-boot
    • For MicroBlaze™ CPUs and Zynq-7000 devices, it boots <plnx-proj-root>/images/linux/u-boot.elf with QEMU.
  • To download the newly built kernel with QEMU:
    $ petalinux-boot --qemu --kernel
    • For MicroBlaze processors, it boots <plnx-proj-root>/images/linux/image.elf with QEMU.
    • For Zynq-7000 devices, it boots <plnx-proj-root>/images/linux/zImage with QEMU.
    • For Zynq UltraScale+ MPSoC, it loads the kernel image <plnx-proj-root>/images/linux/Image and boots the ATF image <plnx-proj-root>/images/linux/bl31.elf with QEMU, and the ATF then boots the loaded kernel image, with PMU firmware running in the background.
Note: For Zynq UltraScale+ MPSoC kernel boot, create a pre-built/linux/images/ folder and copy pmu_rom_qemu_sha3.elf from any Zynq UltraScale+ MPSoC BSP project. You can also pass pmu_rom_qemu_sha3.elf using --pmu-qemu-args.
$ cd <plnx-proj-root>
$ mkdir -p pre-built/linux/images
$ cp <zynq UltraScale+ bsp project directory>/pre-built/linux/images/pmu_rom_qemu_sha3.elf pre-built/linux/images/

or

$ petalinux-boot --qemu --uboot --pmu-qemu-args" -kernel pmu_rom_qemu_sha3.elf"

During startup, the normal Linux boot process ending with a login prompt is displayed as shown below:

$  petalinux-boot --qemu --kernel
INFO: Sourcing build tools
INFO: No DTB has been specified, use the default one "/proj/xhdsswstaff/kamakshi/7/xilinx-zcu102-2020.2/images/linux/system.dtb".
INFO: No DTB has been specified, use the default one "/proj/xhdsswstaff/kamakshi/7/xilinx-zcu102-2020.2/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 /proj/xhdsswstaff/kamakshi/7/xilinx-zcu102-2020.2/pre-built/linux/images/pmu_rom_qemu_sha3.elf -device loader,file=/proj/xhdsswstaff/kamakshi/7/xilinx-zcu102-2020.2/images/linux/pmufw.elf      -hw-dtb /proj/xhdsswstaff/kamakshi/7/xilinx-zcu102-2020.2/images/linux/zynqmp-qemu-multiarch-pmu.dtb -machine-path /tmp/tmp.CrX0TFKdLj -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.CrX0TFKdLj/qemu-rport-_pmu@0: No such file or directory
qemu-system-microblazeel: info: QEMU waiting for connection on: disconnected:unix:/tmp/tmp.CrX0TFKdLj/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=/proj/xhdsswstaff/kamakshi/7/xilinx-zcu102-2020.2/images/linux/bl31.elf,cpu-num=0 -device loader,file=/proj/xhdsswstaff/kamakshi/7/xilinx-zcu102-2020.2/images/linux/rootfs.cpio.gz.u-boot,addr=0x04000000,force-raw -device loader,file=/proj/xhdsswstaff/kamakshi/7/xilinx-zcu102-2020.2/images/linux/u-boot.elf -device loader,file=/proj/xhdsswstaff/kamakshi/7/xilinx-zcu102-2020.2/images/linux/Image,addr=0x00200000,force-raw -device loader,file=/proj/xhdsswstaff/kamakshi/7/xilinx-zcu102-2020.2/images/linux/system.dtb,addr=0x00100000,force-raw -device loader,file=/proj/xhdsswstaff/kamakshi/7/xilinx-zcu102-2020.2/images/linux/boot.scr,addr=0x20000000,force-raw -gdb tcp::9000 -dtb /proj/xhdsswstaff/kamakshi/7/xilinx-zcu102-2020.2/images/linux/system.dtb  -net nic -net nic -net nic -net nic,netdev=eth0 -netdev user,id=eth0,tftp=/tftpboot   -hw-dtb /proj/xhdsswstaff/kamakshi/7/xilinx-zcu102-2020.2/images/linux/zynqmp-qemu-multiarch-arm.dtb -machine-path /tmp/tmp.CrX0TFKdLj -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
PMU Firmware 2020.2	Oct  7 2020   06:49:49
PMU_ROM Version: xpbr-v8.1.0-0
NOTICE:  ATF running on XCZUUNKN/QEMU v4/RTL0.0 at 0xfffea000
NOTICE:  BL31: v2.2(release):xilinx_rebase_v2.2_2020.1-8-g9b6807d15
NOTICE:  BL31: Built : 06:46:42, Oct  7 2020


U-Boot 2020.01 (Oct 07 2020 - 06:47:51 +0000)

Model: ZynqMP ZCU102 Rev1.0
Board: Xilinx ZynqMP
DRAM:  4 GiB
PMUFW:	v1.1
EL Level:	EL2
Chip ID:	unknown
NAND:  0 MiB
MMC:   mmc@ff170000: 0
In:    serial@ff000000
Out:   serial@ff000000
Err:   serial@ff000000
Bootmode: JTAG_MODE
Reset reason:	
Net:   
ZYNQ GEM: ff0e0000, mdio bus ff0e0000, phyaddr 12, interface rgmii-id

Warning: ethernet@ff0e0000 using MAC address from DT
eth0: ethernet@ff0e0000
Hit any key to stop autoboot:  0 
JTAG: Trying to boot script at 0x20000000
## Executing script at 20000000
## Loading init Ramdisk from Legacy Image at 04000000 ...
   Image Name:   petalinux-image-minimal-zynqmp-g
   Image Type:   AArch64 Linux RAMDisk Image (uncompressed)
   Data Size:    8717029 Bytes = 8.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 00100000
   Booting using the fdt blob at 0x100000
   Loading Ramdisk to 787af000, end 78fff2e5 ... OK
   Loading Device Tree to 000000000ffef000, end 000000000ffff2ab ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.4.0-xilinx-v2020.1 (oe-user@oe-host) (gcc version 9.2.0 (GCC)) #1 SMP Wed Oct 7 06:48:40 UTC 2020
[    0.000000] Machine model: ZynqMP ZCU102 Rev1.0
[    0.000000] earlycon: cdns0 at MMIO 0x00000000ff000000 (options '115200n8')
[    0.000000] printk: bootconsole [cdns0] enabled
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 256 MiB at 0x0000000068400000
[    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] psci: SMC Calling Convention v1.1
[    0.000000] percpu: Embedded 22 pages/cpu s49880 r8192 d32040 u90112
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: detected: ARM erratum 843419
[    0.000000] Speculative Store Bypass Disable mitigation not required
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1031940
[    0.000000] Kernel command line:  earlycon console=ttyPS0,115200 clk_ignore_unused root=/dev/ram0 rw
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x7bf00000-0x7ff00000] (64MB)
[    0.000000] Memory: 3758140K/4193280K available (12092K kernel code, 738K rwdata, 3752K rodata, 768K init, 560K bss, 172996K reserved, 262144K cma-reserved)
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: 	RCU event tracing is enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    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] random: get_random_bytes called from start_kernel+0x2a8/0x42c with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 65.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xefdb196da, max_idle_ns: 440795204367 ns
[    0.000082] sched_clock: 56 bits at 65MHz, resolution 15ns, wraps every 2199023255550ns
[    0.010579] Console: colour dummy device 80x25
[    0.012001] Calibrating delay loop (skipped), value calculated using timer frequency.. 130.00 BogoMIPS (lpj=260000)
[    0.012441] pid_max: default: 32768 minimum: 301
[    0.015002] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.015383] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.057921] ASID allocator initialised with 32768 entries
[    0.058868] rcu: Hierarchical SRCU implementation.
[    0.062914] EFI services will not be available.
[    0.066014] smp: Bringing up secondary CPUs ...
[    0.083914] Detected VIPT I-cache on CPU1
[    0.085453] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.104775] Detected VIPT I-cache on CPU2
[    0.105214] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.119521] Detected VIPT I-cache on CPU3
[    0.119844] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.120544] smp: Brought up 1 node, 4 CPUs
[    0.122585] SMP: Total of 4 processors activated.
[    0.122959] CPU features: detected: 32-bit EL0 Support
[    0.123366] CPU features: detected: CRC32 instructions
[    0.126255] CPU: All CPU(s) started at EL2
[    0.126844] alternatives: patching kernel code
[    0.145516] devtmpfs: initialized
[    0.179212] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.179903] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.199229] xor: measuring software checksum speed
[    0.239046]    8regs     :  2500.000 MB/sec
[    0.279553]    32regs    :  2318.000 MB/sec
[    0.320198]    arm64_neon:  1853.000 MB/sec
[    0.320445] xor: using function: 8regs (2500.000 MB/sec)
[    0.321687] pinctrl core: initialized pinctrl subsystem
[    0.332296] DMI not present or invalid.
[    0.338337] NET: Registered protocol family 16
[    0.348689] DMA: preallocated 256 KiB pool for atomic allocations
[    0.349296] audit: initializing netlink subsys (disabled)
[    0.351684] audit: type=2000 audit(0.308:1): state=initialized audit_enabled=0 res=1
[    0.356210] cpuidle: using governor menu
[    0.357779] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.360436] Serial: AMBA PL011 UART driver
[    0.423718] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.424090] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.424429] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.424753] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    1.292252] cryptd: max_cpu_qlen set to 1000
[    1.389902] DRBG: Continuing without Jitter RNG
[    1.472797] raid6: neonx8   gen()  2441 MB/s
[    1.542187] raid6: neonx8   xor()  1208 MB/s
[    1.611395] raid6: neonx4   gen()  2398 MB/s
[    1.680920] raid6: neonx4   xor()  1227 MB/s
[    1.750081] raid6: neonx2   gen()  1885 MB/s
[    1.819438] raid6: neonx2   xor()  1030 MB/s
[    1.888628] raid6: neonx1   gen()  1146 MB/s
[    1.958423] raid6: neonx1   xor()   747 MB/s
[    2.027819] raid6: int64x8  gen()  1247 MB/s
[    2.097065] raid6: int64x8  xor()   936 MB/s
[    2.166380] raid6: int64x4  gen()  2074 MB/s
[    2.235839] raid6: int64x4  xor()  1337 MB/s
[    2.305482] raid6: int64x2  gen()   707 MB/s
[    2.374923] raid6: int64x2  xor()  1112 MB/s
[    2.444576] raid6: int64x1  gen()  1212 MB/s
[    2.514033] raid6: int64x1  xor()   800 MB/s
[    2.514265] raid6: using algorithm neonx8 gen() 2441 MB/s
[    2.514537] raid6: .... xor() 1208 MB/s, rmw enabled
[    2.514931] raid6: using neon recovery algorithm
[    2.517243] iommu: Default domain type: Translated 
[    2.519453] SCSI subsystem initialized
[    2.521708] usbcore: registered new interface driver usbfs
[    2.522590] usbcore: registered new interface driver hub
[    2.523079] usbcore: registered new device driver usb
[    2.523653] mc: Linux media interface: v0.10
[    2.524023] videodev: Linux video capture interface: v2.00
[    2.524451] pps_core: LinuxPPS API ver. 1 registered
[    2.524702] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    2.525197] PTP clock support registered
[    2.525590] EDAC MC: Ver: 3.0.0
[    2.532346] zynqmp-ipi-mbox mailbox@ff990400: Registered ZynqMP IPI mbox with TX/RX channels.
[    2.534726] FPGA manager framework
[    2.536392] Advanced Linux Sound Architecture Driver Initialized.
[    2.545034] Bluetooth: Core ver 2.22
[    2.545683] NET: Registered protocol family 31
[    2.545916] Bluetooth: HCI device and connection manager initialized
[    2.546481] Bluetooth: HCI socket layer initialized
[    2.546973] Bluetooth: L2CAP socket layer initialized
[    2.547412] Bluetooth: SCO socket layer initialized
[    2.551145] clocksource: Switched to clocksource arch_sys_counter
[    2.552588] VFS: Disk quotas dquot_6.6.0
[    2.553010] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    2.576609] NET: Registered protocol family 2
[    2.584186] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    2.584794] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    2.585688] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear)
[    2.587123] TCP: Hash tables configured (established 32768 bind 32768)
[    2.589301] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    2.589906] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    2.592270] NET: Registered protocol family 1
[    2.596177] RPC: Registered named UNIX socket transport module.
[    2.596505] RPC: Registered udp transport module.
[    2.596741] RPC: Registered tcp transport module.
[    2.596966] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.599327] PCI: CLS 0 bytes, default 64
[    2.602662] Trying to unpack rootfs image as initramfs...
[    3.210211] Freeing initrd memory: 8512K
[    3.883336] Initialise system trusted keyrings
[    3.885423] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[    3.892701] NFS: Registering the id_resolver key type
[    3.893176] Key type id_resolver registered
[    3.893443] Key type id_legacy registered
[    3.893843] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    3.894792] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    3.915018] NET: Registered protocol family 38
[    3.915420] Key type asymmetric registered
[    3.915726] Asymmetric key parser 'x509' registered
[    3.916176] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    3.916749] io scheduler mq-deadline registered
[    3.917047] io scheduler kyber registered
[    3.924154] ps_pcie_dma init()
[    3.996817] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    4.002977] Serial: AMBA driver
[    4.039136] brd: module loaded
[    4.058518] loop: module loaded
[    4.062189] mtdoops: mtd device (mtddev=name/number) must be supplied
[    4.068263] libphy: Fixed MDIO Bus: probed
[    4.070739] tun: Universal TUN/TAP device driver, 1.6
[    4.071795] CAN device driver interface
[    4.074052] usbcore: registered new interface driver asix
[    4.074397] usbcore: registered new interface driver ax88179_178a
[    4.074712] usbcore: registered new interface driver cdc_ether
[    4.075164] usbcore: registered new interface driver net1080
[    4.075455] usbcore: registered new interface driver cdc_subset
[    4.075765] usbcore: registered new interface driver zaurus
[    4.076137] usbcore: registered new interface driver cdc_ncm
[    4.080153] usbcore: registered new interface driver uas
[    4.080617] usbcore: registered new interface driver usb-storage
[    4.086664] rtc_zynqmp ffa60000.rtc: registered as rtc0
[    4.087306] i2c /dev entries driver
[    4.092311] usbcore: registered new interface driver uvcvideo
[    4.092588] USB Video Class driver (1.1.1)
[    4.096064] Bluetooth: HCI UART driver ver 2.3
[    4.096376] Bluetooth: HCI UART protocol H4 registered
[    4.096647] Bluetooth: HCI UART protocol BCSP registered
[    4.096976] Bluetooth: HCI UART protocol LL registered
[    4.097240] Bluetooth: HCI UART protocol ATH3K registered
[    4.097578] Bluetooth: HCI UART protocol Three-wire (H5) registered
[    4.098024] Bluetooth: HCI UART protocol Intel registered
[    4.098336] Bluetooth: HCI UART protocol QCA registered
[    4.098665] usbcore: registered new interface driver bcm203x
[    4.099151] usbcore: registered new interface driver bpa10x
[    4.099484] usbcore: registered new interface driver bfusb
[    4.099849] usbcore: registered new interface driver btusb
[    4.100261] usbcore: registered new interface driver ath3k
[    4.101297] EDAC MC: ECC not enabled
[    4.102042] EDAC ZynqMP-OCM: ECC not enabled - Disabling EDAC driver
[    4.104660] sdhci: Secure Digital Host Controller Interface driver
[    4.105053] sdhci: Copyright(c) Pierre Ossman
[    4.105292] sdhci-pltfm: SDHCI platform and OF driver helper
[    4.108731] ledtrig-cpu: registered to indicate activity on CPUs
[    4.110009] zynqmp_firmware_probe Platform Management API v1.1
[    4.110393] zynqmp_firmware_probe Trustzone version v1.0
[    4.123353] zynqmp-pinctrl firmware:zynqmp-firmware:pinctrl: zynqmp pinctrl initialized
[    4.363359] alg: No test for xilinx-zynqmp-aes (zynqmp-aes)
[    4.369733] zynqmp_aes zynqmp_aes: AES Successfully Registered
[    4.369733] 
[    4.371647] alg: No test for xilinx-keccak-384 (zynqmp-keccak-384)
[    4.379087] alg: No test for xilinx-zynqmp-rsa (zynqmp-rsa)
[    4.386303] usbcore: registered new interface driver usbhid
[    4.386599] usbhid: USB HID core driver
[    4.403551] ARM CCI_400_r1 PMU driver probed
[    4.407310] fpga_manager fpga0: Xilinx ZynqMP FPGA Manager registered
[    4.410192] usbcore: registered new interface driver snd-usb-audio
[    4.414484] pktgen: Packet Generator for packet performance testing. Version: 2.75
[    4.425950] Initializing XFRM netlink socket
[    4.427049] NET: Registered protocol family 10
[    4.436077] Segment Routing with IPv6
[    4.438774] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    4.442545] NET: Registered protocol family 17
[    4.443276] NET: Registered protocol family 15
[    4.444017] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    4.444648] can: controller area network core (rev 20170425 abi 9)
[    4.445372] NET: Registered protocol family 29
[    4.445769] can: raw protocol (rev 20170425)
[    4.446134] can: broadcast manager protocol (rev 20170425 t)
[    4.446540] can: netlink gateway (rev 20190810) max_hops=1
[    4.447738] Bluetooth: RFCOMM TTY layer initialized
[    4.448046] Bluetooth: RFCOMM socket layer initialized
[    4.448361] Bluetooth: RFCOMM ver 1.11
[    4.448625] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    4.448891] Bluetooth: BNEP filters: protocol multicast
[    4.449188] Bluetooth: BNEP socket layer initialized
[    4.449456] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    4.449773] Bluetooth: HIDP socket layer initialized
[    4.451475] 9pnet: Installing 9P2000 support
[    4.451906] Key type dns_resolver registered
[    4.453220] registered taskstats version 1
[    4.453452] Loading compiled-in X.509 certificates
[    4.460229] Btrfs loaded, crc32c=crc32c-generic
[    4.491264] ff000000.serial: ttyPS0 at MMIO 0xff000000 (irq = 47, base_baud = 2169921) is a xuartps
[    4.493263] printk: console [ttyPS0] enabled
[    4.493263] printk: console [ttyPS0] enabled
[    4.493893] printk: bootconsole [cdns0] disabled
[    4.493893] printk: bootconsole [cdns0] disabled
[    4.501694] ff010000.serial: ttyPS1 at MMIO 0xff010000 (irq = 48, base_baud = 2169921) is a xuartps
[    4.504530] of-fpga-region fpga-full: FPGA Region probed
[    4.525466] nwl-pcie fd0e0000.pcie: Link is UP
[    4.526146] nwl-pcie fd0e0000.pcie: host bridge /amba/pcie@fd0e0000 ranges:
[    4.527114] nwl-pcie fd0e0000.pcie:   MEM 0xe0000000..0xefffffff -> 0xe0000000
[    4.527602] nwl-pcie fd0e0000.pcie:   MEM 0x600000000..0x7ffffffff -> 0x600000000
[    4.534570] nwl-pcie fd0e0000.pcie: PCI host bridge to bus 0000:00
[    4.535278] pci_bus 0000:00: root bus resource [bus 00-ff]
[    4.535700] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    4.536042] pci_bus 0000:00: root bus resource [mem 0x600000000-0x7ffffffff pref]
[    4.545679] xilinx-dpdma fd4c0000.dma: Xilinx DPDMA engine is probed
[    4.548807] xilinx-zynqmp-dma fd500000.dma: ZynqMP DMA driver Probe success
[    4.549677] xilinx-zynqmp-dma fd510000.dma: ZynqMP DMA driver Probe success
[    4.550545] xilinx-zynqmp-dma fd520000.dma: ZynqMP DMA driver Probe success
[    4.551478] xilinx-zynqmp-dma fd530000.dma: ZynqMP DMA driver Probe success
[    4.552286] xilinx-zynqmp-dma fd540000.dma: ZynqMP DMA driver Probe success
[    4.553136] xilinx-zynqmp-dma fd550000.dma: ZynqMP DMA driver Probe success
[    4.553938] xilinx-zynqmp-dma fd560000.dma: ZynqMP DMA driver Probe success
[    4.554726] xilinx-zynqmp-dma fd570000.dma: ZynqMP DMA driver Probe success
[    4.557144] xilinx-zynqmp-dma ffa80000.dma: ZynqMP DMA driver Probe success
[    4.557917] xilinx-zynqmp-dma ffa90000.dma: ZynqMP DMA driver Probe success
[    4.558716] xilinx-zynqmp-dma ffaa0000.dma: ZynqMP DMA driver Probe success
[    4.559622] xilinx-zynqmp-dma ffab0000.dma: ZynqMP DMA driver Probe success
[    4.560434] xilinx-zynqmp-dma ffac0000.dma: ZynqMP DMA driver Probe success
[    4.561223] xilinx-zynqmp-dma ffad0000.dma: ZynqMP DMA driver Probe success
[    4.562027] xilinx-zynqmp-dma ffae0000.dma: ZynqMP DMA driver Probe success
[    4.562914] xilinx-zynqmp-dma ffaf0000.dma: ZynqMP DMA driver Probe success
[    4.567888] xilinx-psgtr fd400000.zynqmp_phy: Lane:1 type:8 protocol:4 pll_locked:yes
[    4.598233] zynqmp_clk_divider_set_rate() set divider failed for ams_ref_div1, ret = -13
[    4.638801] xilinx-dp-snd-codec fd4a0000.zynqmp-display:zynqmp_dp_snd_codec0: Failed to get required clock freq
[    4.640003] xilinx-dp-snd-codec: probe of fd4a0000.zynqmp-display:zynqmp_dp_snd_codec0 failed with error -22
[    4.641840] xilinx-dp-snd-pcm zynqmp_dp_snd_pcm0: Xilinx DisplayPort Sound PCM probed
[    4.642790] xilinx-dp-snd-pcm zynqmp_dp_snd_pcm1: Xilinx DisplayPort Sound PCM probed
[    4.644244] xilinx-dp-snd-card fd4a0000.zynqmp-display:zynqmp_dp_snd_card: ASoC: failed to init link xilinx-dp0: -517
[    4.645661] OF: graph: no port node found in /amba/zynqmp-display@fd4a0000
[    4.649483] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    4.649829] [drm] No driver support for vblank timestamp query.
[    4.654055] xlnx-drm xlnx-drm.0: bound fd4a0000.zynqmp-display (ops 0xffff800010d1a830)
[    4.816027] Console: switching to colour frame buffer device 128x48
[    4.847402] zynqmp-display fd4a0000.zynqmp-display: fb0: xlnxdrmfb frame buffer device
[    4.849903] [drm] Initialized xlnx 1.0.0 20130509 for fd4a0000.zynqmp-display on minor 0
[    4.850467] zynqmp-display fd4a0000.zynqmp-display: ZynqMP DisplayPort Subsystem driver probed
[    4.852895] ahci-ceva fd0c0000.ahci: fd0c0000.ahci supply ahci not found, using dummy regulator
[    4.853994] ahci-ceva fd0c0000.ahci: fd0c0000.ahci supply phy not found, using dummy regulator
[    4.854928] ahci-ceva fd0c0000.ahci: fd0c0000.ahci supply target not found, using dummy regulator
[    4.858989] xilinx-psgtr fd400000.zynqmp_phy: Lane:3 type:3 protocol:2 pll_locked:yes
[    4.862427] ahci-ceva fd0c0000.ahci: AHCI 0001.0000 32 slots 2 ports 1.5 Gbps 0x3 impl platform mode
[    4.863073] ahci-ceva fd0c0000.ahci: flags: 64bit ncq only 
[    4.869326] scsi host0: ahci-ceva
[    4.871990] scsi host1: ahci-ceva
[    4.872732] ata1: SATA max UDMA/133 mmio [mem 0xfd0c0000-0xfd0c1fff] port 0x100 irq 45
[    4.873169] ata2: SATA max UDMA/133 mmio [mem 0xfd0c0000-0xfd0c1fff] port 0x180 irq 45
[    4.884179] spi-nor spi0.0: found mt25qu512a (n25q512a), expected m25p80
[    4.891305] spi-nor spi0.0: mt25qu512a (n25q512a) (131072 Kbytes)
[    4.892722] 3 fixed-partitions partitions found on MTD device spi0.0
[    4.893093] Creating 3 MTD partitions on "spi0.0":
[    4.893764] 0x000000000000-0x000001e00000 : "boot"
[    4.899293] 0x000001e00000-0x000001e40000 : "bootenv"
[    4.901321] 0x000001e40000-0x000004240000 : "kernel"
[    4.944955] macb ff0e0000.ethernet: Not enabling partial store and forward
[    4.945461] macb: GEM doesn't support hardware ptp.
[    4.949397] libphy: MACB_mii_bus: probed
[    5.031478] Marvell 88E1118 ff0e0000.ethernet-ffffffff:0c: attached PHY driver [Marvell 88E1118] (mii_bus:phy_addr=ff0e0000.ethernet-ffffffff:0c, irq=POLL)
[    5.032534] macb ff0e0000.ethernet eth0: Cadence GEM rev 0x40070106 at 0xff0e0000 irq 31 (00:0a:35:00:22:01)
[    5.034738] xilinx-axipmon ffa00000.perf-monitor: Probed Xilinx APM
[    5.036172] xilinx-axipmon fd0b0000.perf-monitor: Probed Xilinx APM
[    5.037100] xilinx-axipmon fd490000.perf-monitor: Probed Xilinx APM
[    5.037997] xilinx-axipmon ffa10000.perf-monitor: Probed Xilinx APM
[    5.070599] dwc3 fe200000.dwc3: Failed to get clk 'ref': -2
[    5.079274] xilinx-psgtr fd400000.zynqmp_phy: Lane:2 type:0 protocol:3 pll_locked:yes
[    5.087639] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    5.088350] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    5.094027] xhci-hcd xhci-hcd.0.auto: hcc params 0x00087001 hci version 0x100 quirks 0x0000000200010810
[    5.094741] xhci-hcd xhci-hcd.0.auto: irq 54, io mem 0xfe200000
[    5.101918] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    5.102330] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.102783] usb usb1: Product: xHCI Host Controller
[    5.103176] usb usb1: Manufacturer: Linux 5.4.0-xilinx-v2020.1 xhci-hcd
[    5.103484] usb usb1: SerialNumber: xhci-hcd.0.auto
[    5.108207] hub 1-0:1.0: USB hub found
[    5.109250] hub 1-0:1.0: 4 ports detected
[    5.113283] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    5.113559] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    5.113962] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[    5.115249] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.116020] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04
[    5.116407] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.116735] usb usb2: Product: xHCI Host Controller
[    5.116982] usb usb2: Manufacturer: Linux 5.4.0-xilinx-v2020.1 xhci-hcd
[    5.117270] usb usb2: SerialNumber: xhci-hcd.0.auto
[    5.118268] hub 2-0:1.0: USB hub found
[    5.118645] hub 2-0:1.0: 4 ports detected
[    5.130115] pca953x 0-0020: 0-0020 supply vcc not found, using dummy regulator
[    5.137863] pca953x 0-0021: 0-0021 supply vcc not found, using dummy regulator
[    5.160813] i2c i2c-0: Added multiplexed i2c bus 3
[    5.173610] i2c i2c-0: Added multiplexed i2c bus 4
[    5.176490] i2c i2c-0: Added multiplexed i2c bus 5
[    5.177048] i2c i2c-0: Added multiplexed i2c bus 6
[    5.177319] pca954x 0-0075: registered 4 multiplexed busses for I2C mux pca9544
[    5.177808] cdns-i2c ff020000.i2c: 400 kHz mmio ff020000 irq 33
[    5.189645] at24 7-0054: 1024 byte 24c08 EEPROM, writable, 1 bytes/write
[    5.190091] i2c i2c-1: Added multiplexed i2c bus 7
[    5.191090] i2c i2c-1: Added multiplexed i2c bus 8
[    5.196500] ata2: SATA link down (SStatus 0 SControl 300)
[    5.198678] ata1: SATA link down (SStatus 0 SControl 300)
[    5.200625] si570 9-005d: registered, current frequency 300000000 Hz
[    5.201356] i2c i2c-1: Added multiplexed i2c bus 9
[    5.223411] si570 10-005d: registered, current frequency 148500000 Hz
[    5.223885] i2c i2c-1: Added multiplexed i2c bus 10
[    5.224958] si5324 11-0069: si5328 probed
[    5.291052] random: fast init done
[    5.295815] si5324 11-0069: si5328 probe successful
[    5.296398] i2c i2c-1: Added multiplexed i2c bus 11
[    5.297103] i2c i2c-1: Added multiplexed i2c bus 12
[    5.297770] i2c i2c-1: Added multiplexed i2c bus 13
[    5.298408] i2c i2c-1: Added multiplexed i2c bus 14
[    5.298749] pca954x 1-0074: registered 8 multiplexed busses for I2C switch pca9548
[    5.300245] i2c i2c-1: Added multiplexed i2c bus 15
[    5.300886] i2c i2c-1: Added multiplexed i2c bus 16
[    5.301533] i2c i2c-1: Added multiplexed i2c bus 17
[    5.302190] i2c i2c-1: Added multiplexed i2c bus 18
[    5.302970] i2c i2c-1: Added multiplexed i2c bus 19
[    5.303648] i2c i2c-1: Added multiplexed i2c bus 20
[    5.304290] i2c i2c-1: Added multiplexed i2c bus 21
[    5.304979] i2c i2c-1: Added multiplexed i2c bus 22
[    5.305309] pca954x 1-0075: registered 8 multiplexed busses for I2C switch pca9548
[    5.305844] cdns-i2c ff030000.i2c: 400 kHz mmio ff030000 irq 34
[    5.307744] cdns-wdt fd4d0000.watchdog: Xilinx Watchdog Timer with timeout 60s
[    5.308946] cdns-wdt ff150000.watchdog: Xilinx Watchdog Timer with timeout 10s
[    5.315708] cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 277750 KHz
[    5.318636] cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed to: 299999 KHz
[    5.398537] mmc0: SDHCI controller on ff170000.mmc [ff170000.mmc] using ADMA 64-bit
[    5.403309] xilinx-dp-snd-card fd4a0000.zynqmp-display:zynqmp_dp_snd_card: ASoC: failed to init link xilinx-dp0: -517
[    5.404535] xilinx-dp-snd-card fd4a0000.zynqmp-display:zynqmp_dp_snd_card: ASoC: failed to init link xilinx-dp0: -517
[    5.411523] rtc_zynqmp ffa60000.rtc: setting system clock to 2020-10-07T07:41:11 UTC (1602056471)
[    5.412400] of_cfs_init
[    5.412902] of_cfs_init: OK
[    5.413906] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    5.541733] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    5.542483] clk: Not disabling unused clocks
[    5.592200] ALSA device list:
[    5.592634]   No soundcards found.
[    5.603972] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    5.605287] cfg80211: failed to load regulatory.db
[    5.687537] Freeing unused kernel memory: 768K
[    5.700074] Run /init as init process
INIT: version 2.88 booting
Starting udev
[    6.375566] udevd[362]: starting version 3.2.8
[    6.388772] random: udevd: uninitialized urandom read (16 bytes read)
[    6.391964] random: udevd: uninitialized urandom read (16 bytes read)
[    6.393322] random: udevd: uninitialized urandom read (16 bytes read)
[    6.432325] udevd[363]: starting eudev-3.2.8
Configuring packages on first boot....
 (This may take several minutes. Please do not power off the machine.)
Running postinst /etc/rpm-postinsts/100-sysvinit-inittab...
update-rc.d: /etc/init.d/run-postinsts exists during rc.d purge (continuing)
 Removing any system startup links for run-postinsts ...
  /etc/rcS.d/S99run-postinsts
INIT: Entering runlevel: 5
Configuring network interfaces... udhcpc: started, v1.31.0
[   12.481105] macb ff0e0000.ethernet eth0: link up (1000/Full)
[   12.483026] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
udhcpc: sending discover
udhcpc: sending select for 10.0.2.15
udhcpc: lease of 10.0.2.15 obtained, lease time 86400
/etc/udhcpc.d/50default: Adding DNS 10.0.2.3
done.
Starting haveged: haveged: listening socket at 3
haveged: haveged starting up


Starting Dropbear SSH server: Generating 2048 bit rsa key, this may take a while...
Public key portion is:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDoR1TrSaHcbVebd1GigjR564QLvhICxoPYqdlYpJNG2hFYjMf9pACrDMQPkdrBCc0BYpfEQKVDY6Scs+2R8hk/Nxt2D56eJ56dVC57V00DRb/qLriVCS3kIJtX9V9wJn6d+l0sexYGigM79/bU1WamevMRUfyjNQYxCBrsHLmipqcJCLz9I+ay/KrG+HGgrRcidm4dxc0yukigA1wNq55+fwqCKLhI3hFH2BCZpUu61cj00UkIklGF44luTb3rppnxEQVfZLmHwg1YD8HmdTXbRyBbh6kCfzqcNOJlr+nPvNekbIv1uApec6R3udaKrEHbqImBRYlikN+DxitNzZiN root@xilinx-zcu102-2020_2
Fingerprint: sha1!! 40:24:a6:62:32:00:8a:83:ed:86:20:49:fd:db:2a:2c:d9:f8:75:4e
dropbear.
Starting internet superserver: inetd.
Starting syslogd/klogd: done
[   14.693278] random: crng init done
[   14.693603] random: 7 urandom warning(s) missed due to ratelimiting
Starting tcf-agent: OK

PetaLinux 2020.2 xilinx-zcu102-2020_2 /dev/ttyPS0

xilinx-zcu102-2020_2 login: root
Password: 
root@xilinx-zcu102-2020_2:~# 

You may see slightly different output from the above example depending on the Linux image you test and its configuration.

Login to the virtual system when you see the login prompt on the emulator console with the login root and password root. Try Linux commands such as ls, ifconfig, cat/proc/cpuinfo and so on. They behave the same as on real hardware. To exit the emulator when you are finished, press Ctrl + A, release, and then press X.

Note: QEMU version has been upgraded to 5.1. The old options are deprecated in the new version but remain functionally operational. Warning messages are displayed because PetaLinux tools still use the old options. You can ignore them.