hi, I try to use I.MX chip MCIMX6Q6AVT10AD(rev 1.5) SATA interface to read harddisk ID failed, but MCIMX6Q6AVT10AC(rev 1.2) is work OK. this is u-boot print infomation!
//********************************************************* MCIMX6Q6AVT10AC(rev 1.2) ****************************************************
U-Boot 2013.01 (Aug 11 2014 - 01:16:03)
CPU: Freescale i.MX6Q rev1.2 at 792 MHz
Reset cause: POR
Board: SABRE Lite
DRAM: 256 MiB
WARNING: Caches not enabled
MMC: FSL_SDHC: 0, FSL_SDHC: 1
SF: Detected SST25VF016B with page size 4 KiB, total 2 MiB
*** Warning - bad CRC, using default environment
No panel detected: default to HDMI
unsupported panel HDMI
In: serial
Out: serial
Err: serial
Thermal fuse is 0x5844e67d, raw_25c=1412 raw_hot=1254 hot_temp=125 C scale=0.63
Temperature raw=1391 temperature= 38.29 C
Net: Phy not found
using phy at 4
PHY reset timed out
FEC [PRIME]
Warning: failed to set MAC address
Hit any key to stop autoboot: 0
AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part
SATA Device Info:
S/N: 9QE0M77K
Product model number: ST3250820AS
Firmware version: 3.AAC
Capacity: 488397168 sectors
SATA device 0: Model: ST3250820AS Firm: 3.AAC Ser#: 9QE0M77K
Type: Hard Disk
Supports 48-bit addressing
Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
... is now current device
//********************************************************* MCIMX6Q6AVT10AD(rev 1.5) ****************************************************
U-Boot 2013.01 (Aug 11 2014 - 01:16:03)
CPU: Freescale i.MX6Q rev1.5 at 792 MHz
Reset cause: POR
Board: SABRE Lite
DRAM: 256 MiB
WARNING: Caches not enabled
MMC: FSL_SDHC: 0, FSL_SDHC: 1
SF: Detected SST25VF016B with page size 4 KiB, total 2 MiB
*** Warning - bad CRC, using default environment
No panel detected: default to HDMI
unsupported panel HDMI
In: serial
Out: serial
Err: serial
Thermal fuse is 0x5714bc7d, raw_25c=1393 raw_hot=1212 hot_temp=125 C scale=0.55
Temperature raw=1396 temperature= 23.34 C
Net: Phy not found
using phy at 4
PHY reset timed out
FEC [PRIME]
Warning: failed to set MAC address
Hit any key to stop autoboot: 0
AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part
timeout exit!
timeout exit!
SATA Device Info:
S/N:
Product model number:
Firmware version: 5
Capacity: 0 sectors
SATA device 0: Model: Firm: Ser#:
Type: Hard Disk
Capacity: not available
... is now current device
** Bad device size - sata 0 **
** Bad device size - sata 0 **
//*****************************************************************************************************************************************************
them use the same board and harddisk, why MCIMX6Q6AVT10AD(rev 1.5) read ID is timeout ?
thanks!
Hi zard33
I.MX6 chips may vary regarding SATA Phy strength and sensitivity levels, so
general sugestion in such cases try to do SATA TX compliance test, fine tune the
SATA controller registers (such as pre-emphasis parameters,
IOMUX GPR13 defines various SATA Phy transmitter/receiver settings.) and keep the
compliance test result with a better margin. (Eye-diagram should be look better).
Just for test one can try SDK for minimizing overall board noise and run it from iRAM
iRAM (OCRAM) i.MX6 SDK Application
i.MX 6Series Platform SDK : Bare-metal SDK
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
dear all
I don't understand the GPR13 register setting, the default value = 0x0593E4C6,what parts may I need to change?
In addition, I view the SATA PHY register P0SSTS
bit IPM = 0x1 (interface in active)
SPD = 0x1 (1.5Gbps)
DET = 0x3 (PHY ready)
the kernel print infomation
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
ata1.00: qc timeout (cmd 0xec)
do you have any test on the SATA code?
thanks!