Unrelenting testplan D25219

Mark Millard marklmi at yahoo.com
Thu Jun 11 19:51:57 UTC 2020


On 2020-Jun-11, at 06:59, Klaus Küchemann via freebsd-arm <freebsd-arm at freebsd.org> wrote:

> 
>> . . .
> loader.efi-thing maybe fixed in rS362008.. hope so..
> 
> . . .

For the RPi4 UEFI/ACPI based boot context . . .

I grabbed a loader.efi from:

https://artifact.ci.freebsd.org/snapshot/head/r362017/arm64/aarch64/base.txz

(the closest to -r362008 that was available for aarch64).
Substituting it as EFI/BOOT/BOOTAA64.EFI into what I'd been
attempting boots with and got (no other updates, so not
expecting a complete boot):

Consoles: serial port  
    Reading loader env vars from /efi/freebsd/loader.env
Setting currdev to disk1p3:
FreeBSD/arm64 EFI loader, Revision 1.1
(Wed Jun 10 20:35:29 UTC 2020 root at FreeBSD-head-aarch64-build.jail.ci.FreeBSD.org)

   Command line arguments: loader.efi
   Image base: 0x33830000
   EFI version: 2.70
   EFI Firmware: https://github.com/pftf/RPi4 (rev 1.00)
   Console: comconsole (0)
   Load Path: \EFI\BOOT\BOOTAA64.EFI
   Load Device: PcieRoot(0x0)/Pci(0x0,0x0)/Pci(0x0,0x0)/USB(0x1,0x0)/HD(3,GPT,#..#,0x19300800,0x32000)
   BootCurrent: 0003
   BootOrder: 0002 0000 0001 0003[*]
   BootInfo Path: PcieRoot(0x0)/Pci(0x0,0x0)/Pci(0x0,0x0)/USB(0x1,0x0)
Ignoring Boot0003: Only one DP found
Trying ESP: PcieRoot(0x0)/Pci(0x0,0x0)/Pci(0x0,0x0)/USB(0x1,0x0)/HD(3,GPT,#...#,0x19300800,0x32000)
Setting currdev to disk1p3:
Trying: PcieRoot(0x0)/Pci(0x0,0x0)/Pci(0x0,0x0)/USB(0x1,0x0)/HD(1,GPT,#...#,0x800,0x18A00000)
Setting currdev to disk1p1:
Loading /boot/defaults/loader.conf
Loading /boot/device.hints
Loading /boot/loader.conf
Loading /boot/loader.conf.local
Loading kernel...
/boot/kernel/kernel text=0xa5b074 data=0x190ed8 data=0x0+0x3017a6 syms=[0x8+0x10caa0+0x8+0x132a1c]
Loading configured modules...
/boot/kernel/umodem.ko text=0x2180 text=0x1430 data=0x6f0+0x10 syms=[0x8+0xf78+0x8+0xb8d]
/boot/kernel/ucom.ko text=0x21bf text=0x3700 data=0x888+0x858 syms=[0x8+0x1188+0x8+0xb1b]
/boot/entropy size=0x1000
/etc/hostid size=0x25

Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel]...               
No valid device tree blob found!
WARNING! Trying to fire up the kernel, but no device tree blob found!
EFI framebuffer information:
addr, size     0x3e402000, 0x7f8000
dimensions     1920 x 1080
stride         1920
masks          0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000
---<<BOOT>>---
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2020 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 13.0-CURRENT #2 r360311M: Sat Apr 25 10:39:37 PDT 2020
    markmi at FBSDFHUGE:/usr/obj/cortexA53_clang/arm64.aarch64/usr/src/arm64.aarch64/sys/GENERIC-NODBG arm64
FreeBSD clang version 10.0.0 (git at github.com:llvm/llvm-project.git llvmorg-10.0.0-0-gd32170dbd5b)
VT(efifb): resolution 1920x1080
module firmware already present!
Starting CPU 1 (1)
Starting CPU 2 (2)
Starting CPU 3 (3)
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
random: unblocking device.
random: entropy device external interface
MAP 1d0000 mode 2 pages 32
MAP 33930000 mode 2 pages 80
MAP 33a10000 mode 2 pages 128
MAP 33ab0000 mode 2 pages 128
MAP 37000000 mode 2 pages 400
MAP 37190000 mode 2 pages 592
WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD 13.0.
kbd0 at kbdmux0
WARNING: Device "openfirm" is Giant locked and may be deleted before FreeBSD 13.0.
acpi0: <RPIFDN RPI4>
acpi0: Power Button (fixed)
acpi0: Could not update all GPEs: AE_NOT_CONFIGURED
psci0: <ARM Power State Co-ordination Interface Driver> on acpi0
gic0: <ARM Generic Interrupt Controller> iomem 0xff841000-0xff841fff,0xff842000-0xff842fff on acpi0
gic0: pn 0x2, arch 0x2, rev 0x1, implementer 0x43b irqs 256
generic_timer0: <ARM Generic Timer> irq 15,16,17 on acpi0
Timecounter "ARM MPCore Timecounter" frequency 54000000 Hz quality 1000
Event timer "ARM MPCore Eventtimer" frequency 54000000 Hz quality 1000
efirtc0: <EFI Realtime Clock>
efirtc0: registered as a time-of-day clock, resolution 0.000001s
acpi_syscontainer0: <System Container> on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_syscontainer1: <System Container> on acpi0
xhci0: <Generic USB 3.0 controller> iomem 0x600000000-0x600000fff irq 0 on acpi0
panic: Misaligned access from kernel space!
cpuid = 0
time = 1
KDB: stack backtrace:
db_trace_self() at db_trace_self_wrapper+0x28
         pc = 0xffff000000823608  lr = 0xffff00000010c1dc
         sp = 0xffff000000010280  fp = 0xffff000000010480

db_trace_self_wrapper() at vpanic+0x194
         pc = 0xffff00000010c1dc  lr = 0xffff000000473934
         sp = 0xffff000000010490  fp = 0xffff0000000104e0

vpanic() at panic+0x44
         pc = 0xffff000000473934  lr = 0xffff00000047379c
         sp = 0xffff0000000104f0  fp = 0xffff000000010590

panic() at align_abort+0x7c
         pc = 0xffff00000047379c  lr = 0xffff000000842ac8
         sp = 0xffff0000000105a0  fp = 0xffff000000010610

align_abort() at do_el1h_sync+0x144
         pc = 0xffff000000842ac8  lr = 0xffff000000841b84
         sp = 0xffff000000010620  fp = 0xffff000000010630

do_el1h_sync() at handle_el1h_sync+0x78
         pc = 0xffff000000841b84  lr = 0xffff000000826078
         sp = 0xffff000000010640  fp = 0xffff000000010780

handle_el1h_sync() at xhci_init+0x1bc
         pc = 0xffff000000826078  lr = 0xffff0000002a6954
         sp = 0xffff000000010790  fp = 0xffff000000010810

xhci_init() at generic_xhci_attach+0x1cc
         pc = 0xffff0000002a6954  lr = 0xffff00000087105c
         sp = 0xffff000000010820  fp = 0xffff000000010850

generic_xhci_attach() at device_attach+0x3f0
         pc = 0xffff00000087105c  lr = 0xffff0000004b4b9c
         sp = 0xffff000000010860  fp = 0xffff0000000108b0

device_attach() at bus_generic_new_pass+0x11c
         pc = 0xffff0000004b4b9c  lr = 0xffff0000004b6b64
         sp = 0xffff0000000108c0  fp = 0xffff000000010910

bus_generic_new_pass() at bus_generic_new_pass+0xac
         pc = 0xffff0000004b6b64  lr = 0xffff0000004b6af4
         sp = 0xffff000000010920  fp = 0xffff000000010950

bus_generic_new_pass() at bus_generic_new_pass+0xac
         pc = 0xffff0000004b6af4  lr = 0xffff0000004b6af4
         sp = 0xffff000000010960  fp = 0xffff000000010990

bus_generic_new_pass() at root_bus_configure+0x40
         pc = 0xffff0000004b6af4  lr = 0xffff0000004b8c48
         sp = 0xffff0000000109a0  fp = 0xffff0000000109d0

root_bus_configure() at mi_startup+0x22c
         pc = 0xffff0000004b8c48  lr = 0xffff0000003f23dc
         sp = 0xffff0000000109e0  fp = 0xffff000000010a20

mi_startup() at virtdone+0x5c
         pc = 0xffff0000003f23dc  lr = 0xffff00000000108c
         sp = 0xffff000000010a30  fp = 0x0000000000000000

KDB: enter: panic
[ thread pid 0 tid 100000 ]
Stopped at      generic_bs_r_4: ldr     w0, [x1, x2]
db> 

Looks like loader.efi vintage problems were what
previously stopped the boot much earlier (no
loader output back then).



===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)



More information about the freebsd-arm mailing list