2010-12-28 04:08:45     IDE SSD disk detect issue in BF533 customed board

Document created by Aaronwu Employee on Aug 25, 2013
Version 1Show Document
  • View in full screen mode

2010-12-28 04:08:45     IDE SSD disk detect issue in BF533 customed board

Nicole Otsuka (CHINA)

Message: 97027   

 

Hello,

 

i'm using an 8GB flash-disk(IDE port) in my bf533 board...and it works fine...

 

but the model of the flash-disk is old...can't be purchased from the manufactory any more..so i choosed a new one(32GB SSD) instead...

 

of course..it uses IDE port as well and can be detected by PC via an IDE-USB conventor..

 

BUT..it can not be detected by my board which is running uClinux....i tried two version(2009r1.1-rc4 and 2010r1-rc5)

 

 

 

the debugging info printed by linux kernel:

 

ata_host_alloc: ENTER

 

ata_port_alloc: ENTER

 

__ata_port_freeze: ata4294967295 port frozen

 

scsi0 : pata_platform

 

ata1: PATA max PIO0 no IRQ, using PIO polling mmio cmd 0x20280000 ctl 0x20240000

 

ata_host_register: probe begin

 

ata_port_schedule_eh: port EH scheduled

 

ata_scsi_error: ENTER

 

ata_port_flush_task: ENTER

 

ata_eh_link_autopsy: ENTER

 

ata_eh_recover: ENTER

 

__ata_port_freeze: ata1 port frozen

 

ata_sff_softreset: ENTER

 

ata_devchk:nsect=0 lbal=0

 

ata_devchk:nsect=0 lbal=0

 

ata_sff_softreset: about to softreset, devmask=0

 

ata_bus_softreset: ata1: bus reset via SRST

 

ata_sff_dev_classify:before sff_tf_read

 

ata_sff_tf_read:tf->command=0

 

ata_sff_dev_classify:after sff_tf_read

 

ata_dev_classify: found ATA device by sig

 

ata_sff_dev_classify:before sff_tf_read

 

ata_sff_tf_read:tf->command=0

 

ata_sff_dev_classify:after sff_tf_read

 

ata_dev_classify: found ATA device by sig

 

ata_sff_softreset: EXIT, classes[0]=9 [1]=9

 

ata_eh_thaw_port: ata1 port thawed

 

ata_std_postreset: ENTER

 

ata_std_postreset: EXIT

 

ata_sff_postreset: EXIT, no device

 

ata_eh_revalidate_and_attach: ENTER

 

ata_eh_recover: EXIT, rc=0

 

ata_scsi_error: EXIT

 

ata_host_register: host probe begin

 

 

 

it seems that the kernel can't access(read or wirte) the register of IDE correctly...the function 'ata_devchk' writes 0x55 and 0xaa to two registers but get 0x0 from both...

 

 

 

In this case, i thougt that might be a hardware problem..

 

then i checked the spec of two harddsik...it seems to be no different...

 

the same IDE port and both of them can work under 5v or 3.3v powersupply...

 

 

 

BTW,i use a 3.3v for power supply...the old flash-disk works fine..and the new ssd doesn't

 

so i change 3.3v to 5v for testing...but doesn't make any sence...

 

 

 

Can anyone give me some idea or advice to find where the problem is...

 

Thank you very much.

 

 

 

Best regards,

 

Nicolin

 

QuoteReplyEditDelete

 

 

2010-12-28 04:20:25     Re: IDE SSD disk detect issue in BF533 customed board

Sonic Zhang (CHINA)

Message: 97028   

 

Could you list the SCLK and Async EBIU setting in your kernel here?

QuoteReplyEditDelete

 

 

2010-12-28 21:45:04     Re: IDE SSD disk detect issue in BF533 customed board

Nicole Otsuka (CHINA)

Message: 97041   

 

MCLK=120Mhz

 

AMBCTL=78B0 (the bank for IDE)

 

 

 

and if i change 78B0 to default value(FFC2) or FFC3...the result is same

QuoteReplyEditDelete

 

 

2010-12-28 22:05:51     Re: IDE SSD disk detect issue in BF533 customed board

Sonic Zhang (CHINA)

Message: 97042   

 

what is MCLK?

 

Could you try to set the SCLK to 80Mhz for the IDE device? I remeber some IDE device only support 80Mhz SCLK.

QuoteReplyEditDelete

 

 

2010-12-28 22:26:33     Re: IDE SSD disk detect issue in BF533 customed board

Nicole Otsuka (CHINA)

Message: 97043   

 

sorry,it was SCLK...

 

 

 

and i tried what you advised...same...

 

80mhz(FFC2) is ok for the old one

Attachments

    Outcomes