Bug 251330

Summary: Freebsd 12.2-Release does not detect sata hard disk in bananapi
Product: Base System Reporter: Franco <franco.manco>
Component: armAssignee: freebsd-arm (Nobody) <freebsd-arm>
Status: New ---    
Severity: Affects Many People CC: fulda
Priority: --- Keywords: regression
Version: 12.2-RELEASE   
Hardware: arm   
OS: Any   

Description Franco 2020-11-23 16:37:34 UTC
Hello.

Mainboard: Bananapi M1
S.O. : Freebsd 12.2-Release ( I also installed Freebsd 12.1-Release and Freebsd 13.0-Current) 

Problem: THE SATA DISK IS NOT DETECT!


the last time the system correctly detected the sata disk was with version 11.2 (it seems to me .. in short, from version 12 upwards the sata disk is not detected).

The only way to show the sata disk is to enter the "Scsi scan" command in U-Boot ... just so the disk is detected correctly.


Regards
Comment 1 fulda 2021-03-20 11:54:00 UTC
On my Banana PI M1

12.0 RELEASE (FreeBSD-12.0-RELEASE-arm-armv7-BANANAPI.img) works fine
12.2 RELEASE (FreeBSD-12.2-RELEASE-arm-armv7-BANANAPI.img) does not work
13.0 CURRENT (FreeBSD-13.0-CURRENT-arm-armv7-BANANAPI-20190207-r343862.img) works fine

The issue is, that version that does not work does not recognize ahcich0

What I see in dmesg with versions, that WORKS:
..
usbus1 on ohci0
ahci0: <Allwinner Integrated AHCI controller> mem 0x1c18000-0x1c18fff irq 25 on simplebus0
ahci0: AHCI v1.10 with 1 3Gbps ports, Port Multiplier not supported
ahci0: quirks=0x2<NOPMP>
ahcich0: <AHCI channel> at channel 0 on ahci0
ehci1: <Allwinner Integrated USB 2.0 controller> mem 0x1c1c000-0x1c1c0ff irq 26 on simplebus0
..
uhub3: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <KINGSTON SKC300S37A60G 507KC4> ATA8-ACS SATA 3.x device
..

What I see in dmesg with versions, that DOES NOT WORK:
..
usbus1 on ohci0
ahci0: <Allwinner Integrated AHCI controller> mem 0x1c18000-0x1c18fff irq 26 on simplebus0
ahci0: AHCI v1.10 with 1 3Gbps ports, Port Multiplier not supported
ahci0: quirks=0x2<NOPMP>
ehci1: <Generic EHCI Controller> mem 0x1c1c000-0x1c1c0ff irq 27 on simplebus0
..





=================== dmesg - 13.0 CURRENT - works ===============
---<<BOOT>>---
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2019 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 r343862 GENERIC arm
FreeBSD clang version 7.0.1 (tags/RELEASE_701/final 349250) (based on LLVM 7.0.1)
WARNING: WITNESS option enabled, expect reduced performance.
VT: init without driver.
module_register: cannot register ofwbus/pcib from kernel; already loaded from kernel
Module ofwbus/pcib failed to register: 17
module_register: cannot register simplebus/pcib from kernel; already loaded from kernel
Module simplebus/pcib failed to register: 17
CPU: ARM Cortex-A7 r0p4 (ECO: 0x00000000)
CPU Features:
  Multiprocessing, Thumb2, Security, Virtualization, Generic Timer, VMSAv7,
  PXN, LPAE, Coherent Walk
Optional instructions:
  SDIV/UDIV, UMULL, SMULL, SIMD(ext)
LoUU:2 LoC:3 LoUIS:2
Cache level 1:
 32KB/64B 4-way data cache WB Read-Alloc Write-Alloc
 32KB/32B 2-way instruction cache Read-Alloc
Cache level 2:
 256KB/64B 8-way unified cache WB Read-Alloc Write-Alloc
real memory  = 1056813056 (1007 MB)
avail memory = 1015721984 (968 MB)
No PSCI/SMCCC call function found
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
random: unblocking device.
random: entropy device external interface
kbd0 at kbdmux0
ofwbus0: <Open Firmware Device Tree>
aw_ccu0: <Allwinner Clock Control Unit> on ofwbus0
clk_fixed0: <Fixed clock> on aw_ccu0
clk_fixed1: <Fixed clock> on aw_ccu0
clk_fixed2: <Fixed clock> on aw_ccu0
clk_fixed3: <Fixed clock> on aw_ccu0
aw_gmacclk0: <Allwinner GMAC Clock> mem 0x1c20164-0x1c20167 on aw_ccu0
simplebus0: <Flattened device tree simple bus> on ofwbus0
ccu_a10ng0: <Allwinner A10/A20 Clock Control Unit NG> mem 0x1c20000-0x1c203ff on simplebus0
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x1c2ac00-0x1c2afff irq 56 on simplebus0
iicbus0: <OFW I2C bus> on iichb0
iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1c2b400-0x1c2b7ff irq 58 on simplebus0
iicbus1: <OFW I2C bus> on iichb1
regfix0: <Fixed Regulator> on ofwbus0
regfix1: <Fixed Regulator> on ofwbus0
regfix2: <Fixed Regulator> on ofwbus0
regfix3: <Fixed Regulator> on ofwbus0
regfix4: <Fixed Regulator> on ofwbus0
regfix5: <Fixed Regulator> on ofwbus0
regfix6: <Fixed Regulator> on ofwbus0
aw_sid0: <Allwinner Secure ID Controller> mem 0x1c23800-0x1c239ff on simplebus0
gic0: <ARM Generic Interrupt Controller> mem 0x1c81000-0x1c81fff,0x1c82000-0x1c83fff,0x1c84000-0x1c85fff,0x1c86000-0x1c87fff irq 74 on simplebus0
gic0: pn 0x1, arch 0x2, rev 0x1, implementer 0x43b irqs 160
aw_nmi0: <Allwinner NMI Controller> mem 0x1c00030-0x1c0003b irq 6 on simplebus0
gpio0: <Allwinner GPIO/Pinmux controller> mem 0x1c20800-0x1c20bff irq 29 on simplebus0
gpiobus0: <OFW GPIO bus> on gpio0
axp2xx_pmu0: <X-Powers AXP209 Power Management Unit> at addr 0x68 irq 79 on iicbus0
gpiobus1: <OFW GPIO bus> on axp2xx_pmu0
generic_timer0: <ARMv7 Generic Timer> irq 0,1,2,3 on ofwbus0
Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000
Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000
rtc0: <Allwinner RTC> mem 0x1c20d00-0x1c20d1f irq 36 on simplebus0
rtc0: registered as a time-of-day clock, resolution 1.000000s
awusbphy0: <Allwinner USB PHY> mem 0x1c13400-0x1c1340f,0x1c14800-0x1c14803,0x1c1c800-0x1c1c803 on simplebus0
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
cpufreq_dt0: <Generic cpufreq driver> on cpu0
cpu1: <Open Firmware CPU> on cpulist0
pmu0: <Performance Monitoring Unit> irq 4,5 on ofwbus0
a10dmac0: <Allwinner DMA controller> mem 0x1c02000-0x1c02fff irq 7 on simplebus0
aw_mmc0: <Allwinner Integrated MMC/SD controller> mem 0x1c0f000-0x1c0ffff irq 15 on simplebus0
mmc0: <MMC/SD bus> on aw_mmc0
ehci0: <Allwinner Integrated USB 2.0 controller> mem 0x1c14000-0x1c140ff irq 20 on simplebus0
usbus0: EHCI version 1.0
usbus0 on ehci0
ohci0: <Generic OHCI Controller> mem 0x1c14400-0x1c144ff irq 21 on simplebus0
usbus1 on ohci0
ahci0: <Allwinner Integrated AHCI controller> mem 0x1c18000-0x1c18fff irq 25 on simplebus0
ahci0: AHCI v1.10 with 1 3Gbps ports, Port Multiplier not supported
ahci0: quirks=0x2<NOPMP>
ahcich0: <AHCI channel> at channel 0 on ahci0
ehci1: <Allwinner Integrated USB 2.0 controller> mem 0x1c1c000-0x1c1c0ff irq 26 on simplebus0
usbus2: EHCI version 1.0
usbus2 on ehci1
ohci1: <Generic OHCI Controller> mem 0x1c1c400-0x1c1c4ff irq 27 on simplebus0
usbus3 on ohci1
gpioc0: <GPIO controller> on gpio0
aw_wdog0: <Allwinner A10 Watchdog> mem 0x1c20c90-0x1c20c9f on simplebus0
aw_ir0: <Allwinner CIR controller> mem 0x1c21800-0x1c2183f irq 38 on simplebus0
pcm0: <Allwinner Audio Codec> mem 0x1c22c00-0x1c22c3f irq 43 on simplebus0
pcm0: cannot find codec clock
device_attach: pcm0 attach returned 6
aw_ts0: <Allwinner Touch Screen controller> mem 0x1c25000-0x1c250ff irq 45 on simplebus0
uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 46 on simplebus0
uart0: console (115384,n,8,1)
uart1: <16750 or compatible> mem 0x1c28c00-0x1c28fff irq 49 on simplebus0
uart2: <16750 or compatible> mem 0x1c29c00-0x1c29fff irq 53 on simplebus0
gpioc1: <GPIO controller> on axp2xx_pmu0
iic0: <I2C generic I/O> on iicbus0
iic1: <I2C generic I/O> on iicbus1
dwc0: <A20 Gigabit Ethernet Controller> mem 0x1c50000-0x1c5ffff irq 69 on simplebus0
miibus0: <MII bus> on dwc0
rgephy0: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 0 on miibus0
rgephy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto
rgephy1: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 1 on miibus0
rgephy1:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto
dwc0: Ethernet address: 02:51:09:c1:b4:1d
gpioled0: <GPIO LEDs> on ofwbus0
cryptosoft0: <software crypto>
Timecounters tick every 1.000 msec
usbus0: 480Mbps High Speed USB v2.0
usbus1: 12Mbps Full Speed USB v1.0
usbus2: 480Mbps High Speed USB v2.0
usbus3: 12Mbps Full Speed USB v1.0
ugen0.1: <Allwinner EHCI root HUB> at usbus0
uhub0: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
ugen1.1: <Generic OHCI root HUB> at usbus1
uhub1: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen2.1: <Allwinner EHCI root HUB> at usbus2
uhub2: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
ugen3.1: <Generic OHCI root HUB> at usbus3
uhub3: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <KINGSTON SKC300S37A60G 507KC4> ATA8-ACS SATA 3.x device
ada0: Serial Number 50026B723B033A53
ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 57241MB (117231408 512 byte sectors)
mmcsd0: 8GB <SDHC 00000 1.0 SN 0D28F6C8 MFG 09/2013 by 27 SM> at mmc0 50.0MHz/4bit/32768-block
Release APs
WARNING: WITNESS option enabled, expect reduced performance.
Trying to mount root from ufs:/dev/ada0p4 [rw,noatime]...
mmc0: Failed to set VCCQ for card at relative address 22964
uhub1: 1 port with 1 removable, self powered
uhub3: 1 port with 1 removable, self powered
uhub0: 1 port with 1 removable, self powered
uhub2: 1 port with 1 removable, self powered
lock order reversal:
 1st 0xc4f02600 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:3906
 2nd 0xd8427600 dirhash (dirhash) @ /usr/src/sys/ufs/ufs/ufs_dirhash.c:289
stack backtrace:
lo0: link state changed to UP
dwc0: link state changed to DOWN
dwc0: link state changed to UP
Security policy loaded: MAC/ntpd (mac_ntpd)
$


=================== dmesg - 12.2 RELEASE - does not work ===============
---<<BOOT>>---
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 12.2-RELEASE-p4 r369447 BANANAPI arm
FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2)
VT: init without driver.
CPU: ARM Cortex-A7 r0p4 (ECO: 0x00000000)
CPU Features:
  Multiprocessing, Thumb2, Security, Virtualization, Generic Timer, VMSAv7,
  PXN, LPAE, Coherent Walk
Optional instructions:
  SDIV/UDIV, UMULL, SMULL, SIMD(ext)
LoUU:2 LoC:3 LoUIS:2
Cache level 1:
 32KB/64B 4-way data cache WB Read-Alloc Write-Alloc
 32KB/32B 2-way instruction cache Read-Alloc
Cache level 2:
 256KB/64B 8-way unified cache WB Read-Alloc Write-Alloc
real memory  = 1056792576 (1007 MB)
avail memory = 1019297792 (972 MB)
No PSCI/SMCCC call function found
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
random: unblocking device.
random: entropy device external interface
kbd0 at kbdmux0
ofwbus0: <Open Firmware Device Tree>
aw_ccu0: <Allwinner Clock Control Unit> on ofwbus0
clk_fixed0: <Fixed clock> on aw_ccu0
clk_fixed1: <Fixed clock> on aw_ccu0
clk_fixed2: <Fixed clock> on aw_ccu0
clk_fixed3: <Fixed clock> on aw_ccu0
simplebus0: <Flattened device tree simple bus> on ofwbus0
regfix0: <Fixed Regulator> on ofwbus0
regfix1: <Fixed Regulator> on ofwbus0
regfix2: <Fixed Regulator> on ofwbus0
regfix3: <Fixed Regulator> on ofwbus0
regfix4: <Fixed Regulator> on ofwbus0
regfix5: <Fixed Regulator> on ofwbus0
regfix6: <Fixed Regulator> on ofwbus0
rtc0: <Allwinner RTC> mem 0x1c20d00-0x1c20d1f irq 39 on simplebus0
rtc0: registered as a time-of-day clock, resolution 1.000000s
aw_gmacclk0: <Allwinner GMAC Clock> mem 0x1c20164-0x1c20167 on aw_ccu0
ccu_a10ng0: <Allwinner A10/A20 Clock Control Unit NG> mem 0x1c20000-0x1c203ff on simplebus0
gic0: <ARM Generic Interrupt Controller> mem 0x1c81000-0x1c81fff,0x1c82000-0x1c83fff,0x1c84000-0x1c85fff,0x1c86000-0x1c87fff irq 77 on simplebus0
gic0: pn 0x1, arch 0x2, rev 0x1, implementer 0x43b irqs 160
aw_nmi0: <Allwinner NMI Controller> mem 0x1c00030-0x1c0003b irq 6 on simplebus0
gpio0: <Allwinner GPIO/Pinmux controller> mem 0x1c20800-0x1c20bff irq 31 on simplebus0
gpiobus0: <OFW GPIO bus> on gpio0
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x1c2ac00-0x1c2afff irq 59 on simplebus0
iicbus0: <OFW I2C bus> on iichb0
axp2xx_pmu0: <X-Powers AXP209 Power Management Unit> at addr 0x68 irq 82 on iicbus0
gpiobus1: <OFW GPIO bus> on axp2xx_pmu0
iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1c2b400-0x1c2b7ff irq 61 on simplebus0
iicbus1: <OFW I2C bus> on iichb1
generic_timer0: <ARMv7 Generic Timer> irq 0,1,2,3 on ofwbus0
Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000
Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000
aw_sid0: <Allwinner Secure ID Controller> mem 0x1c23800-0x1c239ff on simplebus0
awusbphy0: <Allwinner USB PHY> mem 0x1c13400-0x1c1340f,0x1c14800-0x1c14803,0x1c1c800-0x1c1c803 on simplebus0
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
cpufreq_dt0: <Generic cpufreq driver> on cpu0
cpu1: <Open Firmware CPU> on cpulist0
pmu0: <Performance Monitoring Unit> irq 4,5 on ofwbus0
a10dmac0: <Allwinner DMA controller> mem 0x1c02000-0x1c02fff irq 7 on simplebus0
aw_mmc0: <Allwinner Integrated MMC/SD controller> mem 0x1c0f000-0x1c0ffff irq 16 on simplebus0
ehci0: <Generic EHCI Controller> mem 0x1c14000-0x1c140ff irq 21 on simplebus0
usbus0: EHCI version 1.0
usbus0 on ehci0
ohci0: <Generic OHCI Controller> mem 0x1c14400-0x1c144ff irq 22 on simplebus0
usbus1 on ohci0
ahci0: <Allwinner Integrated AHCI controller> mem 0x1c18000-0x1c18fff irq 26 on simplebus0
ahci0: AHCI v1.10 with 1 3Gbps ports, Port Multiplier not supported
ahci0: quirks=0x2<NOPMP>
ehci1: <Generic EHCI Controller> mem 0x1c1c000-0x1c1c0ff irq 27 on simplebus0
usbus2: EHCI version 1.0
usbus2 on ehci1
ohci1: <Generic OHCI Controller> mem 0x1c1c400-0x1c1c4ff irq 28 on simplebus0
usbus3 on ohci1
gpioc0: <GPIO controller> on gpio0
aw_wdog0: <Allwinner A10 Watchdog> mem 0x1c20c90-0x1c20c9f irq 38 on simplebus0
aw_ir0: <Allwinner CIR controller> mem 0x1c21800-0x1c2183f irq 41 on simplebus0
pcm0: <Allwinner Audio Codec> mem 0x1c22c00-0x1c22c3f irq 46 on simplebus0
pcm0: cannot find codec clock
device_attach: pcm0 attach returned 6
aw_ts0: <Allwinner Touch Screen controller> mem 0x1c25000-0x1c250ff irq 48 on simplebus0
uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 49 on simplebus0
uart0: console (115384,n,8,1)
uart1: <16750 or compatible> mem 0x1c28c00-0x1c28fff irq 52 on simplebus0
uart2: <16750 or compatible> mem 0x1c29c00-0x1c29fff irq 56 on simplebus0
gpioc1: <GPIO controller> on axp2xx_pmu0
iic0: <I2C generic I/O> on iicbus0
iic1: <I2C generic I/O> on iicbus1
dwc0: <A20 Gigabit Ethernet Controller> mem 0x1c50000-0x1c5ffff irq 72 on simplebus0
miibus0: <MII bus> on dwc0
rgephy0: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 0 on miibus0
rgephy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto
rgephy1: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 1 on miibus0
rgephy1:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto
dwc0: Ethernet address: 02:51:09:c1:b4:1d
gpioled0: <GPIO LEDs> on ofwbus0
cryptosoft0: <software crypto>
Timecounters tick every 1.000 msec
usbus0: 480Mbps High Speed USB v2.0
usbus1: 12Mbps Full Speed USB v1.0
usbus2: 480Mbps High Speed USB v2.0
usbus3: 12Mbps Full Speed USB v1.0
Release APs
ugen0.1: <Generic EHCI root HUB> at usbus0
ugen1.1: <Generic OHCI root HUB> at usbus1
uhub0: <Generic EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
uhub1: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
Trying to mount root from ufs:/dev/ufs/rootfs [rw]...
ugen2.1: <Generic EHCI root HUB> at usbus2
Root mount waiting for:uhub2:  usbus0<Generic EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
 usbus1ugen3.1: <Generic OHCI root HUB> at usbus3
 usbus2uhub3:  usbus3<Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
 CAMmmc0:
<MMC/SD bus> on aw_mmc0
mmcsd0: 16GB <SDHC SC16G 8.0 SN 3D84BB62 MFG 01/2021 by 3 SD> at mmc0 50.0MHz/4bit/32768-block
mmc0: Failed to set VCCQ for card at relative address 43690
uhub1: 1 port with 1 removable, self powered
uhub3: 1 port with 1 removable, self powered
uhub0: 1 port with 1 removable, self powered
uhub2: 1 port with 1 removable, self powered
mountroot: waiting for device /dev/ufs/rootfs...
lo0: link state changed to UP
dwc0: link state changed to DOWN
dwc0: link state changed to UP
root@generic:/usr/src #
Comment 2 Franco 2021-03-24 10:35:38 UTC
Hello

Ok, but whath's the solution? 

if the version is made for bananapi M1 why doesn't it work? 

what can I do so that ahcich0 is recognized? 

Sorry for the bad English and lack of competence.

Regards
Comment 3 fulda 2021-07-03 19:06:38 UTC
OK, I have more time to spent with.

Systems that works have in verbose mode:

------- WORKING ONE --------
ahci0: <Allwinner Integrated AHCI controller> mem 0x1c18000-0x1c18fff irq 25 on simplebus0
ahci0: AHCI v1.10 with 1 3Gbps ports, Port Multiplier not supported
ahci0: quirks=0x2<NOPMP>
ahci0: Caps: NCQ SNTF SS ALP AL CLO 3Gbps PMD SSC PSC 32cmd CCC 1ports
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich0: Caps:
----------------------------

The system, that does not works have:
------- DEAD ONE --------
ahci0: <Allwinner Integrated AHCI controller> mem 0x1c18000-0x1c18fff irq 26 on simplebus0
ahci0: AHCI v1.10 with 1 3Gbps ports, Port Multiplier not supported
ahci0: quirks=0x2<NOPMP>
ahci0: Caps: NCQ SNTF ALP AL CLO 3Gbps PMD SSC PSC 32cmd CCC 1ports
ahcich0: not probed (disabled)
----------------------------

Question is, why ahcich0 feeling disabled?
Comment 4 fulda 2021-07-07 11:47:03 UTC
Hi,

I solved (workarounded) this problem for me. Some discussion in forum:
https://forums.freebsd.org/threads/bananapi-m1-problem-with-ahci-channel-0-freebsd-12-2.81148/

The issue is not in FreeBSD, but in u-Boot SPL. I found, that boot with: 
U-Boot SPL 2019.01 (Feb 07 2019 - 11:10:28 +0000)
works fine, but:
U-Boot SPL 2020.07 (Oct 23 2020 - 01:32:02 +0000)
does not.

I have not enough knowledge, how to compile u-Boot on FreeBSD, but I found article on lemaker website, how bananapi understand u-boot:
http://wiki.lemaker.org/BananaPro/Pi:Setting_up_the_bootable_SD_card

Then I created my new SD card by following way:
1) copy image of version I want to have on card: dd if=FreeBSD-12.2-RELEASE-arm-armv7-BANANAPI.img of=/dev/mmcsd0 bs=512
2) replace uBoot from image that is working for me: dd if=FreeBSD-13.0-CURRENT-arm-armv7-BANANAPI-20190207-r343862.img of=/dev/mmcsd0 bs=512 count=2077

In step 2 I assume, both images have same partition information in sector 1. If not, then first sector should be skipped. (by lemaker woki up to 16 sectors can be skipped).

My fix is not permanent, it does not fixes u-Boot, it only replace it by old one.