FreeBSD 15 on Raspberry Pi CM4

As a follow-up of my previous adventure on getting FreeBSD 14.3 running on the CM4 - Forget about FreeBSD 14, just use FreeBSD 15. It works out of the box.

SATA disks

One issue was with the SATA Controller of the Turing Pi though, but luckily this forum post already resolved the issue for me.

So, when botting I noticed that the external SATA HDD was not recognised and I saw messages like this in the dmesg:

ahcich5: Timeout on slot 0 port 0
ahcich5: is 00000000 cs 00000000 ss 00000000 rs 00000001 tfd 150 serr 00000000 cmd 0004c017
(aprobe5:ahcich5:0:0:0): SETFEATURES SET TRANSFER MODE. ACB: ef 03 00 00 00 40 00 00 00 00 46 00
(aprobe5:ahcich5:0:0:0): CAM status: Command timeout
(aprobe5:ahcich5:0:0:0): Retrying command
ahcich5: Timeout on slot 0 port 0
ahcich5: is 00000000 cs 00000000 ss 00000000 rs 00000001 tfd 150 serr 00000000 cmd 0004c017
(aprobe5:ahcich5:0:0:0): SETFEATURES SET TRANSFER MODE. ACB: ef 03 00 00 00 40 00 00 00 00 46 00
(aprobe5:ahcich5:0:0:0): CAM status: Command timeout
(aprobe5:ahcich5:0:0:0): Error 5, Retries exhausted
ahcich5: Timeout on slot 0 port 0

For me, adding the following to the /boot/device.hints file fixed the issue for me after a reboot:

# disable MSI to try to fix repeated CAM CRC/timeout errors and possible panic on zfs import
# https://forums.freebsd.org/threads/kernel-ahcich-timeout-in-slot.51868/page-2
hint.ahci.0.msi=0
hint.ahcich.0.sata_rev=2
hint.ahcich.1.sata_rev=2

And then, the disk got recognized and I could start replicating stuff onto it. Nicely done!