> > I don't know. I'm waiting for someone to actually write documentation > on this. I keep seeing commits talking about ATA disks via CAM (e.g. > SCSI emulation for ATA disks), but the only thing I'm aware of that > exists is SCSI emulation for ATAPI devices. > > > I've just tried "Modular ATA" configuration of Intel ICH7-based system > plus "device ahci" > > minus all traditional ata(4) kernel configuration, the kernel builds fine > > but boot messages do not show any attempt to detect my SATA HDD, > > so root mount just fails (I use GEOM UFS labels in my /etc/fstab). > > Typing ? at "mounroot" prompt I see only daX devices standing for my USB > cardreader > > and no device for HDD. > > This sounds like a different problem. You may want to talk to mav@ > about this. > > > It seems I miss ada(4) device and I cannot find it in 8.0 - not ada.ko > nor "device ada". > > Same. >
To enable ahci, put ahci_load="YES" into loader.conf. Upon reboot, drives will be detected as adaX eg galacticdominator% dmesg |grep ada GEOM_STRIPE: Disk ada3 attached to stripe0. GEOM_STRIPE: Disk ada4 attached to stripe0. a...@galacticdominator.com:/usr/obj/usr/src/sys/GENERIC amd64 ada0 at ahcich0 bus 0 target 0 lun 0 ada0: <ST31000528AS CC37> ATA/ATAPI-8 SATA 2.x device ada0: 300.000MB/s transfers ada0: 953869MB (1953525168 512 byte sectors: 16H 63S/T 16383C) ada0: Native Command Queueing enabled ada1 at ahcich1 bus 0 target 0 lun 0 ada1: <ST3750330AS SD15> ATA/ATAPI-8 SATA 2.x device ada1: 300.000MB/s transfers ada1: 715404MB (1465149168 512 byte sectors: 16H 63S/T 16383C) ada1: Native Command Queueing enabled ada2 at ahcich3 bus 0 target 0 lun 0 ada2: <ST3500320AS AD14> ATA/ATAPI-8 SATA 2.x device ada2: 300.000MB/s transfers ada2: 476940MB (976773168 512 byte sectors: 16H 63S/T 16383C) ada2: Native Command Queueing enabled ada3 at ahcich4 bus 0 target 0 lun 0 ada3: <ST3500320AS AD14> ATA/ATAPI-8 SATA 2.x device ada3: 300.000MB/s transfers ada3: 476940MB (976773168 512 byte sectors: 16H 63S/T 16383C) ada3: Native Command Queueing enabled ada4 at ahcich5 bus 0 target 0 lun 0 ada4: <ST3750330AS SD15> ATA/ATAPI-8 SATA 2.x device ada4: 300.000MB/s transfers ada4: 715404MB (1465149168 512 byte sectors: 16H 63S/T 16383C) ada4: Native Command Queueing enabled BIOS must be set to ahci controller mode, and obviously both disk and controller must support it. This works fine off a GENERIC. -- Adam Vande More _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"