[U-Boot] [PATCH v2a] AT91: add SD/MMC support

Schleifer, Alexander Alexander.Schleifer at ise.de
Fri Aug 13 13:56:06 CEST 2010


Thanks for your reply...

The CID part is:
mmc: response: 1a50514d 53202020 1018301a ec007b8b
Manufacturer ID:       1A
OEM/Application ID:    5051
Product name:          MS
Product Revision:      1.0
Product Serial Number: 405805804
Manufacturing Date:    07/11

The CSD part is:
mmc: response: 005e0032 5f5983cf edb6ff87 9640003f
raw CSD data: 005e0032 5f5983cf edb6ff87 9640003f
Read block length: 512
  (Supports partial reads)
Card capacity: 244 Mbytes
Warning: Using maximum data timeout
mmc: Using 983040 cycles data timeout (DTOR=0x7f)
...
MCI_DTOR = 0000007f
...
mmc: bread failed, status = 0040c0e5, card status = 00000900
...

The maximum data timeout is set hard-coded for testing purposes because the bread status has the DTOE bit set.
I have also tried a 2GB SD card (no SDHC) with the same error and status code.

Best regards,
Alexander

-----Original Message-----
From: Reinhard Meyer [mailto:u-boot at emk-elektronik.de] 
Sent: Friday, August 13, 2010 1:17 PM
To: Schleifer, Alexander
Cc: u-boot at lists.denx.de
Subject: Re: [U-Boot] [PATCH v2a] AT91: add SD/MMC support

asc0 wrote:
> Hello! I have successfully applied your patch on a AT91SAM9G20 cpu and 
> it reads the correct CID & CSD info.
> At the end of initialization the bread function fails with the 
> following
> error:
> 
> mmc: bread failed, status = 0040c0e5, card status = 00000900
> 
> Does someone else received this error or have a hint on this error message?

a) it works fine on ATNGW100 and AT91SAM9XE-EK. Have you tried other cards?
The driver will not work with SDHC cards or cards that do not allow partial reads.
Maybe supply us here with the CID and CSD output from the driver.

b) that driver has become obsolete now... A few days ago I managed to get the mmc framework based driver originally by Rob Emanuele running. That one can deal with large cards (still have to test that, a 32GB card is in the mail to me). During the weekend I might post a first patch of that to the list.

Best Regards,
Reinhard


More information about the U-Boot mailing list