Adam Wen

i.Mx53 Android R10.3.2: SATA disk cannot be detected by u-boot

Discussion created by Adam Wen on Apr 27, 2012
Latest reply on Oct 31, 2012 by Wilson Hung

Hello all,

I have a SATA disk, which brand is West Digital WD1600BEKY, 160G, 7200RPM. Today I want to use it as one storage device in i.MX53 Tablet board (note:just use it as a storage device, not boot device), and found it cannot be detected by u-boot, the print message is as below:

MX53-SMD U-Boot > sata init
AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part
No port device detected!

 

MX53-SMD U-Boot > sata device

SATA device 0: Model:  Firm:  Ser#: 
            Type: Hard Disk
            Capacity: not available

 

If I boot the kernel:

MX53-SMD U-Boot > boot:

 

There is error message printed,as below (I have config the SATA configuration:

CONFIG_ATA=y

CONFIG_ATA_VERBOSE_ERROR=y

CONFIG_SATA_AHCI_PLATFORM=y

CONFIG_ATA_SFF=y

)

.....

mmc2: new high speed SDIO card at address 0001
ata1: SATA link down (SStatus 1 SControl 300)
ata1: exception Emask 0x10 SAct 0x0 SErr 0x4000000 action 0xe frozen t4
ata1: irq_stat 0x00000040, connection status changed
ata1: SError: { DevExch }
ata1: hard resetting link
ata1: SATA link down (SStatus 1 SControl 300)
ata1: EH complete
Freeing init memory: 204K
init: cannot open '/initlogo.rle'

.....

 

So in directory /dev/block, there is no sda and sda1.

 

But if I use the SSD block module in the Tablet board, which is Sandisk, 32GB. The U-boot and kernel detection will be no problem at all:

MX53-SMD U-Boot > sata init
AHCI 0001.0100 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: 111443300158
Product model number: SanDisk SSD P4 32GB
Firmware version: SSD 8.10
Capacity: 62533296 sectors

MX53-SMD U-Boot > sata info

SATA device 0: Model: SanDisk SSD P4 32GB Firm: SSD 8.10 Ser#: 111443300158
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 30533.8 MB = 29.8 GB (62533296 x 512)

 

MX53-SMD U-Boot > sata device 0

SATA device 0: Model: SanDisk SSD P4 32GB Firm: SSD 8.10 Ser#: 111443300158
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 30533.8 MB = 29.8 GB (62533296 x 512)
... is now current device

 

MX53-SMD U-Boot > boot

......

 

ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)

 

Android usb driver initialize

 

ata1.00: ATA-8: SanDisk SSD P4 32GB, SSD 8.10, max UDMA/133

 

ata1.00: 62533296 sectors, multi 1: LBA48

 

android_usb gadget: android_usb ready

 

usb wakeup is here

 

otg udc vbus falling wakeup

 

ata1.00: configured for UDMA/133

.....

scsi 0:0:0:0: Direct-Access     ATA      SanDisk SSD P4 3 SSD  PQ: 0 ANSI: 5

android_usb gadget: usb_mass_storage, version: 2009/09/11

android_usb gadget: Number of LUNs=3

 lun0: LUN: removable file: (no medium)

 lun1: LUN: removable file: (no medium)

 lun2: LUN: removable file: (no medium)

sd 0:0:0:0: [sda] 62533296 512-byte logical blocks: (32.0 GB/29.8 GiB)

sd 0:0:0:0: [sda] Write Protect is off

sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA

 sda:

rndis_function_bind_config MAC: 00:00:00:00:00:00

android_usb gadget: using random self ethernet address

android_usb gadget: using random host ethernet address

 sda1

sd 0:0:0:0: [sda] Attached SCSI disk

......

 

After the Android boots up, I can find sda and sda1 in /dev/block diretctory and can mount sd1.

 

 Can anyone tell me why iMX53 tablet board cannot spport SATA HDD drive, but can support SATA SSD block device, what is the difference between them?

Thanks all in advance!

Outcomes