Yesterday I used "sysupgrade" to upgrade my RPI4 from OpenBSD 6.9 to 7.0, and
now it's booting to the "ddb" prompt. A clean install was also not possible
because the installation media won't even boot. It's the same panic message.
SERIAL CONSOLE OUTPUT:
============================================
rebooting...
U-Boot 2021.07 (Aug 12 2021 - 02:45:29 -0600)
DRAM: 3.9 GiB
RPI 4 Model B (0xc03112)
MMC: mmcnr@7e300000: 1, emmc2@7e340000: 0
Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1... In:
serial
Out: serial
Err: serial
Net: eth0: ethernet@7d580000
PCIe BRCM: link up, 5.0 Gbps x1 (SSC)
starting USB...
Bus xhci_pci: Register 5000420 NbrPorts 5
Starting the controller
USB XHCI 1.00
scanning bus xhci_pci for devices... 2 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Card did not respond to voltage select! : -110
Scanning disk [email protected]...
Disk [email protected] not ready
Scanning disk [email protected]...
** Unrecognized filesystem type **
Found 3 disks
No EFI system partition
BootOrder not defined
EFI boot manager: Cannot load any image
Found EFI removable media binary efi/boot/bootaa64.efi
170694 bytes read in 31 ms (5.3 MiB/s)
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Booting /efi\boot\bootaa64.efi
disks: sd0*
>> OpenBSD/arm64 BOOTAA64 1.6
boot>
NOTE: random seed is being reused.
booting sd0a:/bsd: 9095504+1888888+574184+827536
[665242+109+1094640+639474]=0xfa0430
type 0x0 pa 0x0 va 0x0 pages 0x1 attr 0x8
type 0x7 pa 0x1000 va 0x1000 pages 0x1ff attr 0x8
type 0x2 pa 0x200000 va 0x200000 pages 0x4000 attr 0x8
type 0x7 pa 0x4200000 va 0x4200000 pages 0x3cf0 attr 0x8
type 0x9 pa 0x7ef0000 va 0x7ef0000 pages 0x20 attr 0x8
type 0x7 pa 0x7f10000 va 0x7f10000 pages 0x31ef0 attr 0x8
type 0x4 pa 0x39e00000 va 0x39e00000 pages 0x1 attr 0x8
type 0x7 pa 0x39e01000 va 0x39e01000 pages 0x1 attr 0x8
type 0x2 pa 0x39e02000 va 0x39e02000 pages 0x100 attr 0x8
type 0x1 pa 0x39f02000 va 0x39f02000 pages 0x2a attr 0x8
type 0x0 pa 0x39f2c000 va 0x39f2c000 pages 0x7 attr 0x8
type 0x4 pa 0x39f33000 va 0x39f33000 pages 0x1 attr 0x8
type 0x6 pa 0x39f34000 va 0x533d3c4000 pages 0x1 attr 0x8000000000000008
type 0x4 pa 0x39f35000 va 0x39f35000 pages 0x2 attr 0x8
type 0x0 pa 0x39f37000 va 0x39f37000 pages 0x1 attr 0x8
type 0x6 pa 0x39f38000 va 0x533d3c8000 pages 0x3 attr 0x8000000000000008
type 0x4 pa 0x39f3b000 va 0x39f3b000 pages 0x1 attr 0x8
type 0x6 pa 0x39f3c000 va 0x533d3cc000 pages 0x4 attr 0x8000000000000008
type 0x0 pa 0x39f40000 va 0x39f40000 pages 0x1 attr 0x8
type 0x4 pa 0x39f41000 va 0x39f41000 pages 0x1 attr 0x8
type 0x0 pa 0x39f42000 va 0x39f42000 pages 0x1 attr 0x8
type 0x4 pa 0x39f43000 va 0x39f43000 pages 0x2 attr 0x8
type 0x0 pa 0x39f45000 va 0x39f45000 pages 0x1 attr 0x8
type 0x4 pa 0x39f46000 va 0x39f46000 pages 0x2 attr 0x8
type 0x2 pa 0x39f48000 va 0x39f48000 pages 0x1408 attr 0x8
type 0x5 pa 0x3b350000 va 0x533e7e0000 pages 0x10 attr 0x8000000000000008
type 0x2 pa 0x3b360000 va 0x3b360000 pages 0xa0 attr 0x8
type 0x0 pa 0x3ef5c000 va 0x3ef5c000 pages 0x1 attr 0x8
type 0x4 pa 0x40000000 va 0x40000000 pages 0xbc000 attr 0x8
type 0xb pa 0xfe100000 va 0x533e7f0000 pages 0x1 attr 0x8000000000000000
[ using 2400440 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2021 OpenBSD. All rights reserved. https://www.OpenBSD.org
OpenBSD 7.0 (GENERIC.MP) #1332: Thu Sep 30 16:53:51 MDT 2021
[email protected]:/usr/src/sys/arch/arm64/compile/GENERIC.MP
real mem = 4124962816 (3933MB)
avail mem = 3965726720 (3782MB)
random: good seed from bootblocks
mainbus0 at root: Raspberry Pi 4 Model B Rev 1.2
cpu0 at mainbus0 mpidr 0: ARM Cortex-A72 r0p3
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
cpu0: CRC32,ASID16
cpu1 at mainbus0 mpidr 1: ARM Cortex-A72 r0p3
cpu1: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache
cpu1: 1024KB 64b/line 16-way L2 cache
cpu1: CRC32,ASID16
cpu2 at mainbus0 mpidr 2: ARM Cortex-A72 r0p3
cpu2: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache
cpu2: 1024KB 64b/line 16-way L2 cache
cpu2: CRC32,ASID16
cpu3 at mainbus0 mpidr 3: ARM Cortex-A72 r0p3
cpu3: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache
cpu3: 1024KB 64b/line 16-way L2 cache
cpu3: CRC32,ASID16
efi0 at mainbus0: UEFI 2.8
efi0: Das U-Boot rev 0x20210700
apm0 at mainbus0
"system" at mainbus0 not configured
"axi" at mainbus0 not configured
simplebus0 at mainbus0: "soc"
bcmclock0 at simplebus0
bcmmbox0 at simplebus0
bcmgpio0 at simplebus0
bcmaux0 at simplebus0
ampintc0 at simplebus0 nirq 256, ncpu 4 ipi: 0, 1: "interrupt-controller"
bcmtmon0 at simplebus0
bcmdmac0 at simplebus0: DMA0 DMA2 DMA4 DMA5 DMA6 DMA7 DMA8 DMA9
"timer" at simplebus0 not configured
pluart0 at simplebus0: console
"local_intc" at simplebus0 not configured
bcmdog0 at simplebus0
bcmirng0 at simplebus0
"firmware" at simplebus0 not configured
"power" at simplebus0 not configured
"mailbox" at simplebus0 not configured
sdhc0 at simplebus0
sdhc0: SDHC 3.0, 250 MHz base clock
sdmmc0 at sdhc0: 4-bit, sd high-speed, mmc high-speed
"gpiomem" at simplebus0 not configured
"fb" at simplebus0 not configured
"vcsm" at simplebus0 not configured
"clocks" at mainbus0 not configured
"phy" at mainbus0 not configured
"clk-27M" at mainbus0 not configured
"clk-108M" at mainbus0 not configured
simplebus1 at mainbus0: "emmc2bus"
sdhc1 at simplebus1
sdhc1: SDHC 3.0, 100 MHz base clock
sdmmc1 at sdhc1: 8-bit, sd high-speed, mmc high-speed, ddr52, dma
"arm-pmu" at mainbus0 not configured
agtimer0 at mainbus0: 54000 kHz
simplebus2 at mainbus0: "scb"
bcmpcie0 at simplebus2
pci0 at bcmpcie0
bse0 at simplebus2: address dc:a6:32:9c:c7:ca
brgphy0 at bse0 phy 1: BCM54210E 10/100/1000baseT PHY, rev. 2
"dma" at simplebus2 not configured
"hevc-decoder" at simplebus2 not configured
"rpivid-local-intc" at simplebus2 not configured
"h264-decoder" at simplebus2 not configured
"vp9-decoder" at simplebus2 not configured
"leds" at mainbus0 not configured
"sd_io_1v8_reg" at mainbus0 not configured
"sd_vcc_reg" at mainbus0 not configured
"fixedregulator_3v3" at mainbus0 not configured
"fixedregulator_5v0" at mainbus0 not configured
simplebus3 at mainbus0: "v3dbus"
"bootloader" at mainbus0 not configured
dt: 445 probes
scsibus0 at sdmmc1: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <SD/MMC, SB16G, 0080> removable
sd0: 15193MB, 512 bytes/sector, 31116288 sectors
bwfm0 at sdmmc0 function 1
manufacturer 0x02d0, product 0xa9a6 at sdmmc0 function 2 not configured
manufacturer 0x02d0, product 0xa9a6 at sdmmc0 function 3 not configured
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on sd0a (27e657a16b8269c2.a) swap on sd0b dump on sd0b
WARNING: CHECK AND RESET THE DATE!
gpio0 at bcmgpio0: 58 pins
bwfm0: address dc:a6:32:9c:c7:cc
panic: do_el0_error
Stopped at panic+0x160: cmp w21, #0x0
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*219696 76417 0 0 0 0 init
457567 1 0 0x2 0 2K init
db_enter() at panic+0x15c
panic() at do_el0_error+0x10
sdhc_fdt_match() at handle_el0_error+0x74
handle_el0_error() at 0x5a2c2dea8
address 0x7ffffcb1e8 is invalid
https://www.openbsd.org/ddb.html describes the minimum info required in bug
reports. Insufficient info makes it difficult to find and fix bugs.
ddb{0}>
============================================
PANIC:
============================================
ddb{0}> show panic
*cpu0: do_el0_error
============================================
TRACE:
============================================
ddb{0}> trace
db_enter() at panic+0x15c
panic() at do_el0_error+0x10
sdhc_fdt_match() at handle_el0_error+0x74
handle_el0_error() at 0x5a2c2dea8
address 0x7ffffcb1e8 is invalid
============================================
I couldn't collect a trace for each processor core (SMP). mach ddbcpu N or
machine ddbcpu N froze the system. I had to cut the power.
PROCESS LIST:
============================================
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
*19713 252502 1 0 7 0 init
34367 343391 0 0 3 0x14200 bored smr
98544 416452 0 0 3 0x14200 pgzero zerothread
54236 95818 0 0 3 0x14200 aiodoned aiodoned
16787 386540 0 0 3 0x14200 syncer update
83115 71179 0 0 3 0x14200 cleaner cleaner
50923 37223 0 0 3 0x14200 reaper reaper
58109 484679 0 0 3 0x14200 pgdaemon pagedaemon
34506 116941 0 0 3 0x14200 bored bwfm0
43735 484672 0 0 3 0x14200 bored crynlk
74778 412731 0 0 3 0x14200 bored crypto
81889 398177 0 0 3 0x14200 bored tztq
11691 239098 0 0 3 0x14200 mmctsk sdmmc1
18831 308921 0 0 3 0x14200 mmctsk sdmmc0
32819 307259 0 0 3 0x14200 bored sensors
52618 59348 0 0 7 0x40014200 idle3
54469 167255 0 0 3 0x40014200 idle2
16587 234610 0 0 7 0x40014200 idle1
84380 677 0 0 3 0x14200 bored softnet
2203 362107 0 0 3 0x14200 bored systqmp
6651 471321 0 0 3 0x14200 bored systq
76954 21083 0 0 3 0x40014200 bored softclock
43281 490694 0 0 3 0x40014200 idle0
34849 484173 0 0 3 0x14200 kmalloc kmthread
1 142121 0 0 7 0x2 init
0 0 -1 0 3 0x10200 scheduler swapper
============================================
The "install70.img" installation media for arm64 fails to boot due to the same
panic.