I.MX6 SATA problem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

I.MX6 SATA problem

2,350件の閲覧回数
sunfrank
Contributor I

Hi, community

       I meet a problem of SATA 

       hardware :  Imx6q core board + carrier   

       OS :  LINUX 3.0.35  

       SATA device :  I tried  both  HDD and SSD

       when power on we can see this information from serial port: 

....

Uniform Multi-Platform E-IDE driver
ide-gd driver 1.18
ahci: SSS flag set, parallel bus scan disabled
ahci ahci.0: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
ahci ahci.0: flags: ncq sntf stag pm led clo only pmp pio slum part ccc apst
scsi0 : ahci_platform
ata1: SATA max UDMA/133 mmio [mem 0x02200000-0x02200fff] port 0x100 irq 71
GPMI NAND driver registered. (IMX)

.....

and later:

ata1: SATA link down (SStatus 0 SControl 300)

I use external power for HDD, so power is stable. 

0 件の賞賛
返信
2 返答(返信)

1,909件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Sun

in general for better signal shape one can try to tweak IOMUX GPR13 register.
IOMUX GPR13 defines various SATA Phy transmitter/receiver settings.

Is it working in uboot, if yes then one can try to change configurations for IOMUXC_GPR13 to be same
in kernel as in U-boot (helped some customers).

diff --git a/arch/arm/mach-mx6/board-mx6q_sabresd.c b/arch/arm/mach-mx6/board-m

index ac9b8f8..95e5f2a 100644
--- a/arch/arm/mach-mx6/board-mx6q_sabresd.c
+++ b/arch/arm/mach-mx6/board-mx6q_sabresd.c
@@ -1177,7 +1177,7 @@ static int mx6q_sabresd_sata_init(struct device *dev, voi
         *.tx_edgerate_0(iomuxc_gpr13[0]),
         */
        tmpdata = readl(IOMUXC_GPR13);
-       writel(((tmpdata & ~0x07FFFFFD) | 0x0593A044), IOMUXC_GPR13);
+       writel(((tmpdata & ~0x07FFFFFD) | 0x0593E4C4), IOMUXC_GPR13);

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

1,909件の閲覧回数
sunfrank
Contributor I

Hi,

         thank you very much for your reply.  my kernal can detect the HDD now,renson is the .config, lack of SATA support.   but the new problem is in android 4.4 , still can not detect the HDD, I found a document which says can modify the vold.fstab in ../system/etc,to set the HDD as a SD card.  but it seems like vold.fstab is not exsist any more after android 4.4...do you know another way to let android support the sata disk? 

0 件の賞賛
返信