[U-Boot] [PATCH 1/2] AVR32: use generic mmc framework

Andreas Bießmann andreas.devel at googlemail.com
Fri Oct 14 14:30:54 CEST 2011


Hi all,

Am 12.10.2011 17:18, schrieb Andreas Bießmann:
> Dear Sven,
> 
> Am 12.10.2011 17:08, schrieb Sven Schnelle:
>> On 10/12/2011 04:59 PM, Andreas Bießmann wrote:
>>> b) ext2ls is not reliable:
>>>>> ---8<---
>>>>> U-Boot>   ext2ls mmc 0:1
>>>>> <DIR>         1024 .
>>>>> <DIR>         1024 ..
>>>>> <DIR>        12288 lost+found
>>>>> gen_atmel_mci: CMDR 00051051 (17) ARGR 02008600 (SR: 00400025) Data
>>>>> Transfer Failed
>>>>>    ** ext2fs_devread read error - last part
>>>>> U-Boot>
>>>>> --->8---
>>>> Hmm, that's really bad. What type of card is this? MMC, SD or SDHC?
>>> It is SD card (the one delivered with my atstk1002, there is an Atmel
>>> label on it ;).
>>>
>>> When initialising mmc with old atmel_mci driver I get this:
>>>
>>> ---8<---
>>> U-Boot>  mmc init
>>> Manufacturer ID:       03
>>> OEM/Application ID:    5344
>>> Product name:          SD128
>>> Product Revision:      5.8
>>> Product Serial Number: 8227719
>>> Manufacturing Date:    06/03
>>> SD Card detected (RCA 58916)
>>> CSD data: 00260032 1f5983c0 fefa4fff 924040ab
>>> CSD structure version:   1.0
>>> MMC System Spec version: 0
>>> Card command classes:    1f5
>>> Read block length:       512
>>> Supports partial reads
>>> Write block length:      512
>>> Does not support partial writes
>>> Supports group WP:      32
>>> Card capacity:        125960192 bytes
>>> File format:            0/0
>>> Write protection:
>>> mmc: Using 131072 cycles data timeout (DTOR=0x62)
>>> .mmc1 is available
>>> --->8---
>>>
>>
>> Thanks for the Info Andreas. Do you have some other SD/SDHC cards handy?
>> would be interesting if it doesn't work at all on your Board, or if this
>> is an card
>> specific issue...
> 
> at least one other SD Card works:

to sum it up:
 * it is a timeout issue
 * the timeout in gen_atmel_mci is set to a fixed value which is way to
   small for my combination of card and bus-clock

best regards

Andreas Bießmann


More information about the U-Boot mailing list