[armv7] 13.1-BETA1-GENERICSD panic at boot on beaglebone enhanced

From: Matteo Riondato <matteo_at_freebsd.org>
Date: Sat, 19 Mar 2022 01:42:48 UTC
Hi all,

I'm getting the following panic at boot when trying to boot up the 
13.1-BETA1-arm-armv7-GENERICSD (from the FTP) image on a beaglebone 
enhanced (https://beagleboard.org/enhanced), which is "essentially" a 
beaglebone black (although I do understand that even minor variations 
may have a big effect on SoC): b

Fatal kernel mode data abort: 'Translation Fault (L1)' on read
trapframe: 0xc0e14c98
FSR=00000005, FAR=6578696e, spsr=20000093
r0 =d6837680, r1 =65786966, r2 =d6925d50, r3 =c08cf75c
r4 =d690faa4, r5 =00000001, r6 =00000000, r7 =00000006
r8 =d690fa80, r9 =d684ba00, r10=d690fa80, r11=c0e14d30
r12=00020000, ssp=c0e14d28, slr=c06db204, pc =c06db210

panic: Fatal abort
cpuid = 0
time = 1
KDB: stack backtrace:
#0 0xc035561c at kdb_backtrace+0x48
#1 0xc02fc7ac at vpanic+0x170
#2 0xc02fc63c at vpanic+0
#3 0xc061aa94 at abort_align+0
#4 0xc061a584 at abort_handler+0x2a0
#5 0xc05f9b2c at exception_exit+0
#6 0xc06db210 at ti_sysc_clock_enable+0x18
#7 0xc06d7dfc at ti_i2c_attach+0xd8
#8 0xc0342184 at device_attach+0x4f4
#9 0xc03442c4 at bus_generic_new_pass+0x134
#10 0xc034424c at bus_generic_new_pass+0xbc
#11 0xc034424c at bus_generic_new_pass+0xbc
#12 0xc034424c at bus_generic_new_pass+0xbc
#13 0xc0346108 at root_bus_configure+0x48
#14 0xc027c644 at mi_startup+0x134
#15 0xc0000344 at _start+0x144

boot -v messages up until the panic are available at 
http://rionda.to/files/beagleboneenhanced-FBSD131BETA1-bootverbose.log 
):

This is the first time that I trying booting up FreeBSD on this board, 
so I don't know whether I need to do anything special.

Tomorrow I'll try to compile a -CURRENT image and boot it up, but if 
anyone has an idea of what is going on, please let me know.

Thanks,
Matteo