Re: How to Boot FreeBSD Using pftf/RPi4 UEFI (I got: "panic: ram_attach: resource 5 failed to attach" from FreeBSD-14.0-BETA3)

From: Mark Millard <marklmi_at_yahoo.com>
Date: Fri, 22 Sep 2023 22:22:38 UTC
[Mitchell H.: I think this has exposed a possibly general issue
not specific to RPi*'s, despite the UEFI/ACPI booting of RPi*'s
not being officially supported. See the "BOOT -V RELATED MATERIAL"
section towards the end, skipping the earlier explorations.]

On Sep 22, 2023, at 08:39, Mark Millard <marklmi@yahoo.com> wrote:

> On Sep 22, 2023, at 01:02, ykla <yklaxds@gmail.com> wrote:
> 
>> But who test  FreeBSD-14.0-BETA2-arm64-aarch64-disc1.iso on UEFI on rpi4b?
> 
> I might get to this this weekend or tonight (local time).
> 
> But, as I do not normally deal with FreeBSD-14.0-*-arm64-aarch64-disc1.iso
> for RPi4B's, could you list step by step instructions so that I'm sure to
> test what you tested in reasonable detail? Please make the step-by-step
> instructions be for having the serial console working.
> 
> (My use of any FreeBSD-*.iso has been historically rare.)
> 
> Most likely FreeBSD-14.0-BETA3-arm64-aarch64-disc1.iso will be available
> by the time I get to this. So that is likely what I'd test.

I'll also note that FreeBSD makes no claim to
support pftf/RPi4 UEFI : official support is via
the U-Boot port that is used for the aarch64 RPI
specific images.

I'll note that the RPi4B here is a 8 GiByte one,
a modern "C0T" one that does not require the
special bounce buffering that was used to avoid
the wrapper logic error that limited some address
ranges in "B0T" parts for specific types of
activity. (But, bounce buffering should still
work.)



As for attempting to use pftf/RPi4 UEFI . . .
(I've no clue how well this matches your procedure.)


Prepare microsd card to have just pftf/RPi4 UEFI :

# gpart show -p da3
=>      63  62521281    da3  MBR  (30G)
        63     40897         - free -  (20M)
     40960    102400  da3s1  fat32lba  (50M)
    143360  62377984         - free -  (30G)

# mount -onoatime -tmsdosfs /dev/da3s1 /mnt

# ls -Tloa /mnt/
total 9
drwxr-xr-x   1 root wheel -     16384 Dec 31 16:00:00 1979 .
drwxr-xr-x  63 root wheel uarch    70 Sep 21 10:15:27 2023 ..

# tar -xpf RPi4_UEFI_Firmware_v1.35.zip -C /mnt/
RPI_EFI.fd: Can't set user=1001/group=123 for RPI_EFI.fd: Invalid argument
bcm2711-rpi-4-b.dtb: Can't set user=1001/group=123 for bcm2711-rpi-4-b.dtb: Invalid argument
bcm2711-rpi-400.dtb: Can't set user=1001/group=123 for bcm2711-rpi-400.dtb: Invalid argument
bcm2711-rpi-cm4.dtb: Can't set user=1001/group=123 for bcm2711-rpi-cm4.dtb: Invalid argument
config.txt: Can't set user=1001/group=123 for config.txt: Invalid argument
fixup4.dat: Can't set user=1001/group=123 for fixup4.dat: Invalid argument
start4.elf: Can't set user=1001/group=123 for start4.elf: Invalid argument
overlays/: Can't set user=1001/group=123 for overlays: Invalid argument
overlays/upstream-pi4.dtbo: Can't set user=1001/group=123 for overlays/upstream-pi4.dtbo: Invalid argument
overlays/miniuart-bt.dtbo: Can't set user=1001/group=123 for overlays/miniuart-bt.dtbo: Invalid argument
Readme.md: Can't set user=1001/group=123 for Readme.md: Invalid argument
firmware/: Can't set user=1001/group=123 for firmware: Invalid argument
firmware/Readme.txt: Can't set user=1001/group=123 for firmware/Readme.txt: Invalid argument
firmware/brcm/: Can't set user=1001/group=123 for firmware/brcm: Invalid argument
firmware/brcm/brcmfmac43455-sdio.txt: Can't set user=1001/group=123 for firmware/brcm/brcmfmac43455-sdio.txt: Invalid argument
firmware/brcm/brcmfmac43455-sdio.clm_blob: Can't set user=1001/group=123 for firmware/brcm/brcmfmac43455-sdio.clm_blob: Invalid argument
firmware/brcm/brcmfmac43455-sdio.bin: Can't set user=1001/group=123 for firmware/brcm/brcmfmac43455-sdio.bin: Invalid argument
firmware/brcm/brcmfmac43455-sdio.Raspberry: Can't set user=1001/group=123 for firmware/brcm/brcmfmac43455-sdio.Raspberry: Invalid argument
firmware/LICENCE.txt: Can't set user=1001/group=123 for firmware/LICENCE.txt: Invalid argument
tar: Error exit delayed from previous errors.

# find -s /mnt/ -print
/mnt/
/mnt/RPI_EFI.fd
/mnt/Readme.md
/mnt/bcm2711-rpi-4-b.dtb
/mnt/bcm2711-rpi-400.dtb
/mnt/bcm2711-rpi-cm4.dtb
/mnt/config.txt
/mnt/firmware
/mnt/firmware/LICENCE.txt
/mnt/firmware/Readme.txt
/mnt/firmware/brcm
/mnt/firmware/brcm/brcmfmac43455-sdio.Raspberry
/mnt/firmware/brcm/brcmfmac43455-sdio.bin
/mnt/firmware/brcm/brcmfmac43455-sdio.clm_blob
/mnt/firmware/brcm/brcmfmac43455-sdio.txt
/mnt/fixup4.dat
/mnt/overlays
/mnt/overlays/miniuart-bt.dtbo
/mnt/overlays/upstream-pi4.dtbo
/mnt/start4.elf

# umount /mnt/

Prepare separate USB3 media to hold the *.iso content:

# dd if=FreeBSD-14.0-BETA3-arm64-aarch64-disc1.iso of=/dev/da0 bs=1m conv=fsync,sync status=progress
  855638016 bytes (856 MB, 816 MiB) transferred 7.097s, 121 MB/s
933+0 records in
933+0 records out
978321408 bytes transferred in 7.956494 secs (122958854 bytes/sec)

Note: the efi partition/file system from the .iso does not have room
to hold the RPi4B firmware:

# mount -onoatime -tmsdosfs /dev/da0p1 /mnt
CA72-16Gp-ZFS aarch64  1500001 1500001 # df -m
Filesystem                                 1M-blocks Used  Avail Capacity  Mounted on
. . .
/dev/da0p1                                         1    0      1    42%    /mnt
. . .

# umount /mnt/

Thus the use of a microsd card for the pftf/RPi4 UEFI material in
its own msdosfs.


Also have USB3 media to install FreeBSD onto (different media):

# gpart destroy -F da0
da0 destroyed
# gpart create -s GPT da0
da0 created
# gpart show da0
=>       40  468862048  da0  GPT  (224G)
         40  468862048       - free -  (224G)

Note: The FreeBSD installer would not deal with providing
RPi* firmware or such on the target media. Such would be
a separate, manual step if we got that far.



Plugging in all 3 media into the RPi4B and powering on:

. . .
   Autoboot in 8 seconds. [Space] to pause  

Loading kernel...
/boot/kernel/kernel text=0x2a8 text=0x9b1de0 text=0x25c154 data=0x14cb38 data=0x
0+0x2c5000 0x8+0x14b770+0x8+0x173d90/
Loading configured modules...
can't find '/etc/hostid'
can't find '/boot/entropy'
No valid device tree blob found!
WARNING! Trying to fire up the kernel, but no device tree blob found!
---<<BOOT>>---
Copyright (c) 1992-2023 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 14.0-BETA3 #0 releng/14.0-n265111-c429a0425dc4: Fri Sep 22 05:48:41 UTC 2023
    root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64
FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152)
VT: init without driver.
module scmi already present!
real memory  = 3139194880 (2993 MB)
avail memory = 3031814144 (2891 MB)
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
kbd0 at kbdmux0
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 21,22,23 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 1.000000s
panic: ram_attach: resource 5 failed to attach
cpuid = 0
time = 1
KDB: stack backtrace:
#0 0xffff00000050ccc0 at kdb_backtrace+0x58
#1 0xffff0000004b87dc at vpanic+0x19c
#2 0xffff0000004b863c at panic+0x44
#3 0xffff000000868adc at ram_attach+0x1ac
#4 0xffff0000004f984c at device_attach+0x3f8
#5 0xffff0000004fb9d8 at bus_generic_new_pass+0x120
#6 0xffff0000004fb968 at bus_generic_new_pass+0xb0
#7 0xffff0000004fdcc0 at root_bus_configure+0x40
#8 0xffff000000429778 at mi_startup+0xdc
#9 0xffff0000000008ac at virtdone+0x70
Uptime: 1s

NOTE: it automatically reboots here, no db> prompt.



So, trying more typical media for a small aarch64 board:

# dd if=FreeBSD-14.0-BETA3-arm64-aarch64-ROCK64.img of=/dev/da0 bs=1m conv=fsync,sync status=progress
  5246025728 bytes (5246 MB, 5003 MiB) transferred 21.066s, 249 MB/s
5120+0 records in
5120+0 records out
5368709120 bytes transferred in 21.602018 secs (248528134 bytes/sec)

# mount -onoatime -tmsdosfs /dev/da0p1 /mnt

# tar -xpf RPi4_UEFI_Firmware_v1.35.zip -C /mnt/
RPI_EFI.fd: Can't set user=1001/group=123 for RPI_EFI.fd: Invalid argument
bcm2711-rpi-4-b.dtb: Can't set user=1001/group=123 for bcm2711-rpi-4-b.dtb: Invalid argument
bcm2711-rpi-400.dtb: Can't set user=1001/group=123 for bcm2711-rpi-400.dtb: Invalid argument
bcm2711-rpi-cm4.dtb: Can't set user=1001/group=123 for bcm2711-rpi-cm4.dtb: Invalid argument
config.txt: Can't set user=1001/group=123 for config.txt: Invalid argument
fixup4.dat: Can't set user=1001/group=123 for fixup4.dat: Invalid argument
start4.elf: Can't set user=1001/group=123 for start4.elf: Invalid argument
overlays/: Can't set user=1001/group=123 for overlays: Invalid argument
overlays/upstream-pi4.dtbo: Can't set user=1001/group=123 for overlays/upstream-pi4.dtbo: Invalid argument
overlays/miniuart-bt.dtbo: Can't set user=1001/group=123 for overlays/miniuart-bt.dtbo: Invalid argument
Readme.md: Can't set user=1001/group=123 for Readme.md: Invalid argument
firmware/: Can't set user=1001/group=123 for firmware: Invalid argument
firmware/Readme.txt: Can't set user=1001/group=123 for firmware/Readme.txt: Invalid argument
firmware/brcm/: Can't set user=1001/group=123 for firmware/brcm: Invalid argument
firmware/brcm/brcmfmac43455-sdio.txt: Can't set user=1001/group=123 for firmware/brcm/brcmfmac43455-sdio.txt: Invalid argument
firmware/brcm/brcmfmac43455-sdio.clm_blob: Can't set user=1001/group=123 for firmware/brcm/brcmfmac43455-sdio.clm_blob: Invalid argument
firmware/brcm/brcmfmac43455-sdio.bin: Can't set user=1001/group=123 for firmware/brcm/brcmfmac43455-sdio.bin: Invalid argument
firmware/brcm/brcmfmac43455-sdio.Raspberry: Can't set user=1001/group=123 for firmware/brcm/brcmfmac43455-sdio.Raspberry: Invalid argument
firmware/LICENCE.txt: Can't set user=1001/group=123 for firmware/LICENCE.txt: Invalid argument
tar: Error exit delayed from previous errors.

# ls -Tlod /mnt/*
drwxr-xr-x  1 root wheel -        4096 Sep 22 02:57:32 2023 /mnt/EFI
-rwxr-xr-x  1 root wheel uarch 2031616 Jun  5 04:12:52 2023 /mnt/RPI_EFI.fd
-rwxr-xr-x  1 root wheel uarch    5051 Jun  5 04:04:18 2023 /mnt/Readme.md
-rwxr-xr-x  1 root wheel uarch   54388 Jun  5 04:12:58 2023 /mnt/bcm2711-rpi-4-b.dtb
-rwxr-xr-x  1 root wheel uarch   54477 Jun  5 04:13:00 2023 /mnt/bcm2711-rpi-400.dtb
-rwxr-xr-x  1 root wheel uarch   54997 Jun  5 04:12:58 2023 /mnt/bcm2711-rpi-cm4.dtb
-rwxr-xr-x  1 root wheel uarch     243 Jun  5 04:04:18 2023 /mnt/config.txt
drwxr-xr-x  1 root wheel -        4096 Sep 22 02:57:32 2023 /mnt/dtb
drwxr-xr-x  1 root wheel -        4096 Jun  5 04:04:18 2023 /mnt/firmware
-rwxr-xr-x  1 root wheel uarch    5397 Jun  5 04:12:56 2023 /mnt/fixup4.dat
drwxr-xr-x  1 root wheel -        4096 Jun  5 04:13:00 2023 /mnt/overlays
-rwxr-xr-x  1 root wheel uarch 2253088 Jun  5 04:12:58 2023 /mnt/start4.elf

# umount /mnt

Attempting to boot that gets the same panic, so not specific to the .iso :

. . .
Loading kernel...
/boot/kernel/kernel text=0x2a8 text=0x9b1de0 text=0x25c154 data=0x14cb38 data=0x
0+0x2c5000 0x8+0x14b770+0x8+0x173d90
Loading configured modules...
can't find '/etc/hostid'
/boot/kernel/umodem.ko text=0x2040 text=0x1350 data=0x6f8+0x4 0x8+0xeb8+0x8+0xb2
c
loading required module 'ucom'
/boot/kernel/ucom.ko text=0x249f text=0x3370 data=0x920+0x858 0x8+0x1170+0x8+0xb
13
can't find '/boot/entropy'

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!
---<<BOOT>>---
Copyright (c) 1992-2023 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 14.0-BETA3 #0 releng/14.0-n265111-c429a0425dc4: Fri Sep 22 08:52:35 UTC 2023
    root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64
FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152)
VT: init without driver.
module scmi already present!
real memory  = 3138154496 (2992 MB)
avail memory = 3030900736 (2890 MB)
Starting CPU 1 (1)
Starting CPU 2 (2)
Starting CPU 3 (3)
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
arc4random: WARNING: initial seeding bypassed the cryptographic random device because it was not yet seeded and the knob 'bypass_before_seeding' was enabled.
random: entropy device external interface
kbd0 at kbdmux0
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 21,22,23 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 1.000000s
panic: ram_attach: resource 5 failed to attach
cpuid = 0
time = 1
KDB: stack backtrace:
#0 0xffff00000050ccc0 at kdb_backtrace+0x58
#1 0xffff0000004b87dc at vpanic+0x19c
#2 0xffff0000004b863c at panic+0x44
#3 0xffff000000868adc at ram_attach+0x1ac
#4 0xffff0000004f984c at device_attach+0x3f8
#5 0xffff0000004fb9d8 at bus_generic_new_pass+0x120
#6 0xffff0000004fb968 at bus_generic_new_pass+0xb0
#7 0xffff0000004fdcc0 at root_bus_configure+0x40
#8 0xffff000000429778 at mi_startup+0xdc
#9 0xffff0000000008ac at virtdone+0x70
Uptime: 1s


By contrast, using an official FreeBSD-14.0-BETA3 aarch64 RPI *.img
(U-Boot UEFI/DeviceTree based):

# dd if=FreeBSD-14.0-BETA3-arm64-aarch64-RPI.img of=/dev/da0 bs=1m conv=fsync,sync status=progress
  5289017344 bytes (5289 MB, 5044 MiB) transferred 21.063s, 251 MB/s
5120+0 records in
5120+0 records out
5368709120 bytes transferred in 21.435878 secs (250454362 bytes/sec)

and booting that FreeBSD-14.0-BETA3 media boots just fine.




BOOT -V RELATED MATERIAL:


Going back to the  failing case, boot -v shows, for example:
[Note the material that looks like:
. . .
Physical memory chunk(s):
  . . .
  0x40000000 - 0xbfffffff,  2048 MB ( 524288 pages)
. . .
real memory  = 3139190784 (2993 MB)
Physical memory chunk(s):
. . .
0x00000040000000 - 0x000000bb637fff, 2070118400 bytes (505400 pages)
. . .
ram0: reserving memory region:   40000000-c0000000
panic: ram_attach: resource 5 failed to attach
cpuid = 0
time = 1
KDB: stack backtrace:
#0 0xffff00000050ccc0 at kdb_backtrace+0x58
#1 0xffff0000004b87dc at vpanic+0x19c
#2 0xffff0000004b863c at panic+0x44
#3 0xffff000000868adc at ram_attach+0x1ac
#4 0xffff0000004f984c at device_attach+0x3f8
#5 0xffff0000004fb9d8 at bus_generic_new_pass+0x120
#6 0xffff0000004fb968 at bus_generic_new_pass+0xb0
#7 0xffff0000004fdcc0 at root_bus_configure+0x40
#8 0xffff000000429778 at mi_startup+0xdc
#9 0xffff0000000008ac at virtdone+0x70
Uptime: 1s

It looks like it sis not stay inside the range:
0x00000040000000 - 0x000000bb637fff
but needed to and rejected the mismatch.
]

Type '?' for a list of commands, 'help' for more detailed help.
OK boot -v
Loading kernel...
/boot/kernel/kernel text=0x2a8 text=0x9b1de0 text=0x25c154 data=0x14cb38 data=0x
0+0x2c5000 0x8+0x14b770+0x8+0x173d90/
Loading configured modules...
can't find '/boot/entropy'
can't find '/etc/hostid'
No valid device tree blob found!
WARNING! Trying to fire up the kernel, but no device tree blob found!
---<<BOOT>>---
                   Type     Physical      Virtual   #Pages Attr
               Reserved 000000000000 000000000000 000001d0 WC WT WB 
    RuntimeServicesData 0000001d0000 0000001d0000 00000020 WC WT WB RUNTIME
               Reserved 0000001f0000 000000000000 00000010 WC WT WB 
     ConventionalMemory 000000200000 000000000000 0002b68e WC WT WB 
             LoaderCode 00002b88e000 000000000000 00004000 WC WT WB 
             LoaderData 00002f88e000 000000000000 00004000 WC WT WB 
             LoaderCode 00003388e000 000000000000 000000d2 WC WT WB 
    RuntimeServicesData 000033960000 000033960000 00000060 WC WT WB RUNTIME
     ConventionalMemory 0000339c0000 000000000000 00000003 WC WT WB 
             LoaderData 0000339c3000 000000000000 00000001 WC WT WB 
               Reserved 0000339c4000 000000000000 0000005c WC WT WB 
    RuntimeServicesCode 000033a20000 000033a20000 00000100 WC WT WB RUNTIME
      ACPIReclaimMemory 000033b20000 000000000000 00000010 WC WT WB 
     ConventionalMemory 000033b30000 000000000000 00001876 WC WT WB 
       BootServicesData 0000353a6000 000000000000 00000001 WC WT WB 
     ConventionalMemory 0000353a7000 000000000000 00000008 WC WT WB 
       BootServicesData 0000353af000 000000000000 00001675 WC WT WB 
     ConventionalMemory 000036a24000 000000000000 00000186 WC WT WB 
       BootServicesCode 000036baa000 000000000000 00000456 WC WT WB 
    RuntimeServicesCode 000037000000 000037000000 00000190 WC WT WB RUNTIME
    RuntimeServicesData 000037190000 000037190000 00000250 WC WT WB RUNTIME
     ConventionalMemory 0000373e0000 000000000000 0000001f WC WT WB 
       BootServicesData 0000373ff000 000000000000 00000001 WC WT WB 
     ConventionalMemory 000037400000 000000000000 00002fb7 WC WT WB 
       BootServicesCode 00003a3b7000 000000000000 00000039 WC WT WB 
       BootServicesData 00003a3f0000 000000000000 00001010 WC WT WB 
     ConventionalMemory 000040000000 000000000000 00080000 WC WT WB 
Physical memory chunk(s):
  0x001d0000 - 0x001effff,     0 MB (     32 pages)
  0x00200000 - 0x339c3fff,   823 MB ( 210884 pages)
  0x33a20000 - 0x3b3fffff,   121 MB (  31200 pages)
  0x40000000 - 0xbfffffff,  2048 MB ( 524288 pages)
Excluded memory regions:
  0x001d0000 - 0x001effff,     0 MB (     32 pages) NoAlloc 
  0x2ba00000 - 0x2cfc9fff,    21 MB (   5578 pages) NoAlloc 
  0x33960000 - 0x339bffff,     0 MB (     96 pages) NoAlloc 
  0x33a20000 - 0x33b2ffff,     1 MB (    272 pages) NoAlloc 
  0x37000000 - 0x373dffff,     3 MB (    992 pages) NoAlloc 
Found 4 CPUs in the ACPI tables
Copyright (c) 1992-2023 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 14.0-BETA3 #0 releng/14.0-n265111-c429a0425dc4: Fri Sep 22 05:48:41 UTC 2023
    root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64
FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152)
VT: init without driver.
Preloaded elf kernel "/boot/kernel/kernel" at 0xffff000001395000.
Preloaded boot_entropy_platform "efi_rng_seed" at 0xffff00000139e3f0.
Preloaded TSLOG data "TSLOG" at 0xffff00000139e448.
module scmi already present!
real memory  = 3139190784 (2993 MB)
Physical memory chunk(s):
0x00000000200000 - 0x0000002b9fffff, 729808896 bytes (178176 pages)
0x0000002cfca000 - 0x0000003395ffff, 110714880 bytes (27030 pages)
0x000000339c0000 - 0x000000339c3fff, 16384 bytes (4 pages)
0x00000033b30000 - 0x00000036ffffff, 55377920 bytes (13520 pages)
0x000000373e0000 - 0x0000003b3fffff, 67239936 bytes (16416 pages)
0x00000040000000 - 0x000000bb637fff, 2070118400 bytes (505400 pages)
avail memory = 3031789568 (2891 MB)
Starting CPU 1 (1)
Starting CPU 2 (2)
Starting CPU 3 (3)
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
random: no preloaded entropy cache
random: read 2048 bytes from platform bootloader
random: unblocking device.
VIMAGE (virtualized network stack) enabled
hostuuid: using 00000000-0000-0000-0000-000000000000
ULE: setup cpu 0
ULE: setup cpu 1
ULE: setup cpu 2
ULE: setup cpu 3
random: entropy device external interface
snd_unit_init() u=0x00ff8000 [512] d=0x00007c00 [32] c=0x000003ff [1024]
feeder_register: snd_unit=-1 snd_maxautovchans=16 latency=2 feeder_rate_min=1 feeder_rate_max=2016000 feeder_rate_round=25
firmware: 'tegra210_xusb_fw' version 0: 132608 bytes loaded at 0xffff000000af5978
MAP 1d0000 mode 2 pages 32
MAP 33960000 mode 2 pages 96
MAP 33a20000 mode 2 pages 256
MAP 37000000 mode 2 pages 400
MAP 37190000 mode 2 pages 592
kbd0 at kbdmux0
mem: <memory>
null: <full device, null device, zero device>
openfirm: <Open Firmware control device>
tcp_log: tcp_log device
crypto: <crypto core>
ACPI: RSDP 0x0000000033B20018 000024 (v02 RPIFDN)
ACPI: XSDT 0x0000000033B2FE98 00006C (v01 RPIFDN RPI4     00000200      01000013)
ACPI: FACP 0x0000000033B2E998 000114 (v06 RPIFDN RPI4     00000200 EDK2 00000300)
ACPI: DSDT 0x0000000033B27518 0022D9 (v02 RPIFDN RPI      00000002 INTL 20200925)
ACPI: CSRT 0x0000000033B2FA98 000169 (v00 RPIFDN RPI4     00000200 EDK2 00000300)
ACPI: DBG2 0x0000000033B2FD18 000061 (v00 RPIFDN RPI4     00000200 EDK2 00000300)
ACPI: GTDT 0x0000000033B2F998 000068 (v03 RPIFDN RPI4     00000200 EDK2 00000300)
ACPI: APIC 0x0000000033B2F598 000184 (v05 RPIFDN RPI4     00000200 EDK2 00000300)
ACPI: PPTT 0x0000000033B2EB18 000184 (v02 RPIFDN RPI4     00000200 EDK2 00000300)
ACPI: SPCR 0x0000000033B2FE18 000050 (v02 RPIFDN RPI4     00000200 EDK2 00000300)
ACPI: SSDT 0x0000000033B2ED98 000277 (v02 RPIFDN RPI4EMMC 00000002 INTL 20200925)
ACPI: SSDT 0x0000000033B2F198 000244 (v05 RPIFDN RPI4XHCI 00000002 INTL 20200925)
acpi0: <RPIFDN RPI4>
ACPI: 3 ACPI AML tables successfully acquired and loaded
acpi0: Power Button (fixed)
acpi0: Could not update all GPEs: AE_NOT_CONFIGURED
psci0: <ARM Power State Co-ordination Interface Driver> on acpi0
psci0: PSCI version 0.2 compatible
Found SMCCC version 1.0
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 21,22,23 on acpi0
generic_timer0: allocated irq for 'sec-phys'
generic_timer0: allocated irq for 'phys'
generic_timer0: allocated irq for 'virt'
generic_timer0: could not allocate irq for optional interrupt 'hyp-phys'
generic_timer0: could not allocate irq for optional interrupt 'hyp-virt'
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 1.000000s
ram0: reserving memory region:   200000-2ba00000
ram0: reserving memory region:   2cfca000-33960000
ram0: reserving memory region:   339c0000-339c4000
ram0: reserving memory region:   33b30000-37000000
ram0: reserving memory region:   373e0000-3b400000
ram0: reserving memory region:   40000000-c0000000
panic: ram_attach: resource 5 failed to attach
cpuid = 0
time = 1
KDB: stack backtrace:
#0 0xffff00000050ccc0 at kdb_backtrace+0x58
#1 0xffff0000004b87dc at vpanic+0x19c
#2 0xffff0000004b863c at panic+0x44
#3 0xffff000000868adc at ram_attach+0x1ac
#4 0xffff0000004f984c at device_attach+0x3f8
#5 0xffff0000004fb9d8 at bus_generic_new_pass+0x120
#6 0xffff0000004fb968 at bus_generic_new_pass+0xb0
#7 0xffff0000004fdcc0 at root_bus_configure+0x40
#8 0xffff000000429778 at mi_startup+0xdc
#9 0xffff0000000008ac at virtdone+0x70
Uptime: 1s


===
Mark Millard
marklmi at yahoo.com