Hi Yiping,
Now i got the uboot working with sata, but i followed your instruction to patched kernel and enabled
+CONFIG_SATA_AHCI=y
+CONFIG_SATA_AHCI_PLATFORM=y
in kernel, also, i tried to enabled the "Freescale 3.0Gbps SATA support " in kernel configuration, but always got following issue
--------
| LD kernel/built-in.o
| drivers/ata/sata_fsl.c: In function 'sata_fsl_probe':
| drivers/ata/sata_fsl.c:1478:2: error: implicit declaration of function 'of_iomap' [-Werror=implicit-function-declaration]
| hcr_base = of_iomap(ofdev->dev.of_node, 0);
| ^
| drivers/ata/sata_fsl.c:1478:11: warning: assignment makes pointer from integer without a cast [enabled by default]
| hcr_base = of_iomap(ofdev->dev.of_node, 0);
| ^
| drivers/ata/sata_fsl.c:1503:2: error: implicit declaration of function 'irq_of_parse_and_map' [-Werror=implicit-function-declaration]
| irq = irq_of_parse_and_map(ofdev->dev.of_node, 0);
| ^
| drivers/ata/sata_fsl.c: In function 'sata_fsl_remove':
| drivers/ata/sata_fsl.c:1590:2: error: implicit declaration of function 'irq_dispose_mapping' [-Werror=implicit-function-declaration]
| irq_dispose_mapping(host_priv->irq);
| ^
| cc1: some warnings being treated as errors
| make[2]: *** [drivers/ata/sata_fsl.o] Error 1
| make[1]: *** [drivers/ata] Error 2
| make: *** [drivers] Error 2
| make: *** Waiting for unfinished jobs....
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/liyq/QorIQ-SDK-V1.7-20141218-yocto_RDS_20150302/build_ls1021aiot_release/tmp/work/ls1021aiot-fsl-linux-gnueabi/linux-ls1/3.12-r0/temp/log.do_compile.27529)
ERROR: Task 4 (/home/liyq/QorIQ-SDK-V1.7-20141218-yocto_RDS_20150302/meta-fsl-arm/recipes-kernel/linux/linux-ls1_3.12.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 219 tasks of which 218 didn't need to be rerun and 1 failed.
-------------
when i removed the "Freescale 3.0Gbps SATA support", i can got a kernel success built, when the kernel booting up, i can saw following message
-------
[ 21.627318] ata1: SATA link down (SStatus 1 SControl 300)
[ 21.632741] ata1: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0xe frozen t4
[ 21.639866] ata1: irq_stat 0x00000040, connection status changed
[ 21.645872] ata1: hard resetting link
[ 22.397305] ata1: SATA link down (SStatus 0 SControl 300)
[ 22.402688] ata1: EH complete
-------
kernel can not mount the hard disk as a SCSI disk, what is wrong in there, should i need do more patch in kernel for support SATA of IOT GW?
Thank you.