qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OpenBSD arm64 under qemu-system-aarch64


From: Pavel Jirout
Subject: OpenBSD arm64 under qemu-system-aarch64
Date: Thu, 2 Jan 2020 15:07:45 +0100

Hello,

Im experiencing a strange issue which I can only reproduce with qemu -current (git clone from today) on aarch64 Linux with KVM enabled kernel (MANJARO Linux 5.4.0-2-MANJARO) running on the Pinebook-pro (arm64)

When trying to boot the miniroot66.fs from OpenBSD I get the following failures for these configurations

QEMU emulator version 4.2.50 (v4.2.0-363-gdd5b0f9549)
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers


(No KVM accel)  - and I can confirm this works fine on x86_64 Linux
/usr/local/bin/qemu-system-aarch64 \
-M virt \
-m 512 \
-cpu cortex-a57 \
-bios QEMU_EFI.fd \
-drive file=miniroot65.fs,format=raw,id=drive1 \
-drive file=obsd-arm64.qcow2,if=none,id=drive0,format=qcow2 \
-device virtio-blk-device,drive=drive0 \
-nographic \
-serial tcp::4450,server,telnet,wait

As well as with KVM enabled a

/usr/local/bin/qemu-system-aarch64 \
    -cpu host -M virt,accel=kvm -smp 2 \
    -m 512 -nographic \
    -bios QEMU_EFI.fd \
    -drive file=miniroot66.fs,format=raw,id=drive1 \
    -drive file=disk.img,if=none,id=drive0,format=qcow2 \
    -device virtio-blk-device,drive=drive0 \
    -net nic -net tap
celeration

In both cases I get the following error during boot 
BdsDxe: failed to load Boot0001 "UEFI Misc Device" from VenHw(93E34C7E-B50E-11DF-9223-2443DFD72085,00): Not Found
BdsDxe: failed to load Boot0002 "UEFI Misc Device 2" from VenHw(837DCA9E-E874-4D82-B29A-23FE0E23D1E2,003E000A00000000): Not Found
BdsDxe: loading Boot0003 "UEFI Misc Device 3" from PciRoot(0x0)/Pci(0x2,0x0)
BdsDxe: starting Boot0003 "UEFI Misc Device 3" from PciRoot(0x0)/Pci(0x2,0x0)
disks: sd0* sd1 sd2
>> OpenBSD/arm64 BOOTAA64 0.20
boot>
cannot open sd0a:/etc/random.seed: No such file or directory
booting sd0a:/bsd: 2236692+624680+8770560+742368 [180638+109+523200+202041]=0xfefeb0
FACP APIC GTDT MCFG SPCR IORT
type 0x2 pa 0x40000000 va 0x0 pages 0x4000 attr 0x8
type 0x7 pa 0x44000000 va 0x0 pages 0x13746 attr 0x8
type 0x2 pa 0x57746000 va 0x0 pages 0xd11 attr 0x8
type 0x1 pa 0x58457000 va 0x0 pages 0x29 attr 0x8
type 0x9 pa 0x58480000 va 0x0 pages 0x70 attr 0x8
type 0x2 pa 0x584f0000 va 0x0 pages 0x20 attr 0x8
type 0x9 pa 0x58510000 va 0x0 pages 0x20 attr 0x8
type 0x5 pa 0x58530000 va 0xa3863000 pages 0x80 attr 0x8000000000000008
type 0x6 pa 0x585b0000 va 0xa38e3000 pages 0xf0 attr 0x8000000000000008
type 0x5 pa 0x586a0000 va 0xa39d3000 pages 0xb0 attr 0x8000000000000008
type 0x7 pa 0x58750000 va 0x0 pages 0xba6 attr 0x8
type 0x4 pa 0x592f6000 va 0x0 pages 0x234e attr 0x8
type 0x7 pa 0x5b644000 va 0x0 pages 0x2e6 attr 0x8
type 0x3 pa 0x5b92a000 va 0x0 pages 0x2f6 attr 0x8
type 0x5 pa 0x5bc20000 va 0xa6f53000 pages 0x190 attr 0x8000000000000008
type 0x6 pa 0x5bdb0000 va 0xa70e3000 pages 0x250 attr 0x8000000000000008
type 0x7 pa 0x5c000000 va 0x0 pages 0x1f attr 0x8
type 0x4 pa 0x5c01f000 va 0x0 pages 0x1 attr 0x8
type 0x7 pa 0x5c020000 va 0x0 pages 0x3816 attr 0x8
type 0x4 pa 0x5f836000 va 0x0 pages 0x21 attr 0x8
type 0x3 pa 0x5f857000 va 0x0 pages 0x35 attr 0x8
type 0x4 pa 0x5f88c000 va 0x0 pages 0x660 attr 0x8
type 0x3 pa 0x5feec000 va 0x0 pages 0x4 attr 0x8
type 0x4 pa 0x5fef0000 va 0x0 pages 0x101 attr 0x8
type 0x3 pa 0x5fff1000 va 0x0 pages 0xa attr 0x8
type 0x4 pa 0x5fffb000 va 0x0 pages 0x5 attr 0x8
type 0xb pa 0x4000000 va 0xa7333000 pages 0x4000 attr 0x8000000000000001
type 0xb pa 0x9010000 va 0xab333000 pages 0x1 attr 0x8000000000000001
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2020 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 6.6-current (RAMDISK) #391: Wed Jan  1 15:07:58 MST 2020
    address@hidden:/usr/src/sys/arch/arm64/compile/RAMDISK
real mem  = 467693568 (446MB)
avail mem = 420577280 (401MB)
mainbus0 at root: ACPI
cpu0 at mainbus0 mpidr 0: ARM Cortex-A72 r0p2
cpu0: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache
cpu0: 1024KB 64b/line 16-way L2 cache
efi0 at mainbus0: UEFI 2.7
efi0: EDK II rev 0x10000
psci0 at mainbus0: PSCI 1.0, SMCCC 1.1
ampintc0 at mainbus0 nirq 288, ncpu 2: "interrupt-controller"
ampintcmsi0 at ampintc0: nspi 1073741824
panic: malloc: allocation too large, type = 2, size = 8589934592


The operating system has halted.
Please press any key to reboot.

Again this only happens on aarch64 system, everything works as expected on x86_64 
Linux. Also I can boot with no problems on aarch64 via qemu-system-aarch64 (KVM) 
NetBSD, FreeBSD, RHEL8, Centos8, Ubuntu18.10 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]