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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,893 次查看
AdamWen1z
Contributor I

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!

标记 (2)
0 项奖励
回复
1 回复

694 次查看
XiaoPong
NXP Employee
NXP Employee

H/W: i.MX53 SMD

S/W: Android r10.4 +

SATA enable configuration: 

CONFIG_ATA=y

CONFIG_ATA_VERBOSE_ERROR=y

#CONFIG_SATA_PMP is not set

CONFIG_SATA_AHCI_PLATFORM=y

CONFIG_ATA_SFF=y

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:

Product model number:

Firmware version:

Capacity: 312581808 sectors

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:            4853PC0JT

Product model number: TOSHIBA MK1646GSX

Firmware version: LB113J

Capacity: 312581808 sectors

MX53-SMD U-Boot > sata device 0                                               

                                                                              

SATA device 0: Model: TOSHIBA MK1646GSX Firm: LB113J Ser#:            4853PC0JT

            Type: Hard Disk                                                   

            Supports 48-bit addressing                                        

            Capacity: 152627.8 MB = 149.0 GB (312581808 x 512)                

... is now current device                                                    

MX53-SMD U-Boot > boot

...

# ls -l /dev/block            

drwxr-xr-x root     root              2000-01-01 08:01 vold     

drwxr-xr-x root     root              2000-01-01 08:01 dispd    

brw------- root     root       7,   7 2000-01-01 08:01 loop7    

brw------- root     root       7,   6 2000-01-01 08:01 loop6    

brw------- root     root       7,   5 2000-01-01 08:01 loop5    

brw------- root     root       7,   4 2000-01-01 08:01 loop4    

brw------- root     root       7,   3 2000-01-01 08:01 loop3    

brw------- root     root       7,   2 2000-01-01 08:01 loop2    

brw------- root     root       7,   1 2000-01-01 08:01 loop1    

brw------- root     root       7,   0 2000-01-01 08:01 loop0    

brw------- root     root     179,  14 2000-01-01 08:01 mmcblk1p6

brw------- root     root     179,  13 2000-01-01 08:01 mmcblk1p5

brw------- root     root     179,  12 2000-01-01 08:01 mmcblk1p4

brw------- root     root     179,  11 2000-01-01 08:01 mmcblk1p3

brw------- root     root     179,  10 2000-01-01 08:01 mmcblk1p2

brw------- root     root     179,   9 2000-01-01 08:01 mmcblk1p1

brw------- root     root     179,   8 2000-01-01 08:01 mmcblk1  

brw------- root     root       8,   4 2000-01-01 08:01 sda4     

brw------- root     root       8,   3 2000-01-01 08:01 sda3     

brw------- root     root       8,   2 2000-01-01 08:01 sda2     

brw------- root     root       8,   1 2000-01-01 08:01 sda1     

brw------- root     root       8,   0 2000-01-01 08:01 sda      

brw------- root     root     179,   1 2000-01-01 08:01 mmcblk0p1

drwxr-xr-x root     root              2000-01-01 08:01 platform 

brw------- root     root     179,   0 2000-01-01 08:01 mmcblk0 

0 项奖励
回复