This patch, based on the NetBSD implementation, implements the AHCI/SATA controller for the i.MX6 SoC.
I have tested this driver on the current Wandboard Quad and it has been working fine for both read and write operations.
$ dmesg | grep ahci ahci0: <i.MX6 Integrated AHCI controller> mem 0x2200000-0x2203fff irq 14 on simplebus0 ahci0: AHCI v1.30 with 1 3Gbps ports, Port Multiplier supported ahcich0: <AHCI channel> at channel 0 on ahci0 ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 $ dmesg | grep ada0 ada0: <Hitachi HTS545050B9A300 PB4OC60F> ATA8-ACS SATA 2.x device ada0: Serial Number 110303PBN403M7FN7JBE ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 476940MB (976773168 512 byte sectors) $ dd if=/dev/zero of=/dev/ada0 bs=1m count=1024 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 13.720023 secs (78260935 bytes/sec)