Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: How to use SD/MMC in uboot?
PostPosted: Fri Feb 03, 2012 2:44 am 
Offline

Joined: Wed Jul 07, 2010 7:10 am
Posts: 9
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?


Top
 Profile  
 
 Post subject: Re: How to use SD/MMC in uboot?
PostPosted: Fri Feb 03, 2012 2:50 am 
Offline

Joined: Wed Jul 07, 2010 7:10 am
Posts: 9
And when I using this config:
Code:
#define CONFIG_GENERIC_MMC              1
#define CONFIG_GENERIC_ATMEL_MCI        1
#define CONFIG_SYS_MMC_CD_PIN           AT91_PIN_PC9
#define CONFIG_CMD_MMC                  1
#define ATMEL_BASE_MMCI ATMEL_BASE_MCI0

or
Code:
#define CONFIG_MMC                      1
#define CONFIG_GENERIC_MMC              1
#define CONFIG_GENERIC_ATMEL_MCI        1
#define CONFIG_SYS_MMC_CD_PIN           AT91_PIN_PC9
#define CONFIG_CMD_MMC                  1
#define ATMEL_BASE_MMCI ATMEL_BASE_MCI0

uboot hang after DRAM.
Code:
U-Boot 2011.12 (Feb 03 2012 - 08:53:50)

CPU: AT91SAM9G45
Crystal frequency:       12 MHz
CPU clock        :      400 MHz
Master clock     :  133.333 MHz
DRAM:  128 MiB


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: