From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sven Schnelle Date: Thu, 13 Oct 2011 09:52:56 +0200 Subject: [U-Boot] [PATCH 1/2] AVR32: use generic mmc framework In-Reply-To: <4E95AB6B.9030406@gmail.com> References: <1318424949-24760-1-git-send-email-svens@stackframe.org> <1318424949-24760-2-git-send-email-svens@stackframe.org> <4E95A464.5070208@gmail.com> <4E95A965.20504@stackframe.org> <4E95AB6B.9030406@gmail.com> Message-ID: <4E9698D8.3000702@stackframe.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 10/12/2011 04:59 PM, Andreas Bie?mann wrote: > Am 12.10.2011 16:51, schrieb Sven Schnelle: >> On 10/12/2011 04:29 PM, Andreas Bie?mann wrote: >>> Am 12.10.2011 15:09, schrieb Sven Schnelle: >>> And does not work on device: >>> b) ext2ls is not reliable: >>> >>> ---8<--- >>> U-Boot> ext2ls mmc 0:1 >>> 1024 . >>> 1024 .. >>> 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--- > > best regards > > Andreas Bie?mann I've just tried all SD cards i have here, which are in particular: Noname 32GB SDHC: works 'PLATINUM' 4GB SDHC: works Sandisk 2GB SD: works Sandisk 2GB Micro SD: works So this seems to be an issue with the specific card - it would be nice if you could enable CONFIG_MMC_TRACE, and send me the output. Regards Sven