I am using at91sam9g45ekes and uboot-2011.12.
My configs:
Code:
file: include/configs/at91sam9m10g45ek.h
#define CONFIG_ATMEL_MCI 1
#define CONFIG_SYS_MMC_CD_PIN AT91_PIN_PC9
#define CONFIG_CMD_MMC 1
#define ATMEL_BASE_MMCI ATMEL_BASE_MCI0
1.when using SDHC 8G
Code:
U-Boot 2011.12 (Feb 03 2012 - 08:28:17)
CPU: AT91SAM9G45
Crystal frequency: 12 MHz
CPU clock : 400 MHz
Master clock : 133.333 MHz
DRAM: 128 MiB
WARNING: Caches not enabled
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: macb0
Hit any key to stop autoboot: 0
U-Boot> mmc init
mmc: clock 150000 too low; setting CLKDIV to 255
mmc: command 1 failed (status: 0x0c100025)
No MMC card found
U-Boot>
2.using sd 2G
Code:
U-Boot> mmc init
mmc: clock 150000 too low; setting CLKDIV to 255
Manufacturer ID: 02
OEM/Application ID: 544D
Product name: SD02G
Product Revision: 6.0
Product Serial Number: 2852010526
Manufacturing Date: 11/07
SD Card detected (RCA 23004)
CSD data: 002e0032 5b5a83a9 ffffff80 16800091
CSD structure version: 1.2
MMC System Spec version: 12
Card command classes: 3a9
Read block length: 256
Does not support partial reads
Write block length: 1
Does not support partial writes
Does not support group WP
Card capacity: 520224768 bytes
File format: 1/0
Write protection: permanent
mmc: Using 524288 cycles data timeout (DTOR=0x68)
.mmc1 is available
U-Boot> fatls mmc 1:0 /
** Invalid boot device **
U-Boot>
the Card capacity is not 2G bytes.
What should i do?