"Paul de Weerd" <we...@weirdnet.nl> writes:

> Hi folks,
>
> So, Klemens (kn@) contacted me off-list and helped me make some
> progress with this issue.  Turns out, attaching an sd(4) device to the
> ahci1 controller, results in this behavior.  (note that dmesg also
> lists an ahci0, but there's only four SATA ports on the motherboard
> and they all end up on ahci1).
>
> After disconnecting both the SATA SSD and the SATA HDD, I could
> install just fine to the nvme(4) SSD that's also installed in this
> machine.
>
> I've tried several combinations.  I also installed a cd(4) drive to
> the same SATA controller, that works fine.  I've tried various ports
> on the motherboard, but it doesn't matter: as soon as I connect one
> sd(4) device (the SSD or the HDD that I want to take from my previous
> system), things stop after "scisbus at softraid0".  Note that the
> device does get detected just fine.
>
> At Klemens' suggestion, i built a kernel with AHCI_DEBUG enabled.
> Both a dmesg with and one without the SSD connected are attached
> below, but the diff is this:
>
> ...

I'm having exact same issue on a RockPro64 (arm64) that I'm trying to
use as a NAS. System is installed on eMMC and it boots just fine with no
SATA disks connected.

I've boot it with AHCI_DEBUG enabled and attached console outputs with
and without SATA disks connected. Here is the diff:

--- ahci_debug.no_disks Fri Mar 17 15:45:37 2023
+++ ahci_debug.one_disk Fri Mar 17 15:45:13 2023
@@ -128,7 +128,8 @@
 ahci0.29: port reset
 ahci0.30: port reset
 ahci0.31: port reset
-ahci0: no device detected on port 0
+ahci0: detected device on port 0; 0
+ahci0.0: port 0: 1.5Gb/s
 ahci0: no device detected on port 1
 ahci0: no device detected on port 2
 ahci0: no device detected on port 3
@@ -159,6 +160,8 @@
 ahci0: no device detected on port 30
 ahci0: no device detected on port 31
 scsibus0 at ahci0: 32 targets
+sd0 at scsibus0 targ 0 lun 0: <ATA, FUJITSU MHY2160B, 0081> [REDACTED]
+sd0: 152627MB, 512 bytes/sector, 312581808 sectors
 dwge0 at mainbus0: rev 0x35, address [REDACTED]
 rgephy0 at dwge0 phy 0: RTL8169S/8110S/8211 PHY, rev. 6
 dwmmc0 at mainbus0: 50 MHz base clock
@@ -267,10 +270,9 @@
 audio0 at graphaudio0
 sdmmc0: can't enable card
 scsibus1 at sdmmc2: 2 targets, initiator 0
-sd0 at scsibus1 targ 1 lun 0: <Sandisk, [REDACTED], 0000> removable
-sd0: 59640MB, 512 bytes/sector, 122142720 sectors
+sd1 at scsibus1 targ 1 lun 0: <Sandisk, [REDACTED], 0000> removable
+sd1: 59640MB, 512 bytes/sector, 122142720 sectors
 vscsi0 at root
 scsibus2 at vscsi0: 256 targets
 softraid0 at root
 scsibus3 at softraid0: 256 targets
-root on sd0a ([REDACTED].a) swap on sd0b dump on sd0b



--
Renato Aguiar

Attachment: ahci_debug.no_disks
Description: Binary data

Attachment: ahci_debug.one_disk
Description: Binary data

Reply via email to