Nico Nico

LTIB_problem at boot with SD/MMC: Warning - bad CRC or MMC, using default environment

Discussion created by Nico Nico on Dec 6, 2011
Latest reply on Dec 7, 2011 by KrishnaPavan

Hi..

I'm working with iMX28 using LTIB environment.

I've a problem with u-boot-2009.08 when i make the boot from SD card.

The default speed was 50MHz and i've reduced it until 5MHz, but the problem remains.

Using SDHC verbatim there aren't problems under 25MHz of clock...with other sdhc cards the problem remains also using 5MHz.

 

There's also a list of command sent to the SDHC when it works in 4bits bus width.

I print the serial log...(I added some printf )

 

Thanks in advance!!

 

*********START BOOTLET power_prep******************

PowerPrep start initialize power...

Configured for 5v only power source. Battery powered oper ation disabled.
Dec 1 201116:49:02
FRAC 0x92925552
memory type is DDR2
Wait for ddr ready 1power 0x00820616
Frac 0x92925552
start change cpu freq
hbus 0x00000003
cpu 0x00010001
start test memory accress
ddr2 0x40000000
finish simple test


U-Boot 2009.08 (Dec 01 2011 - 12:11:56)

Freescale i.MX28 family
CPU: 454 MHz
BUS: 151 MHz
EMI: 205 MHz
GPMI: 24 MHz
DRAM: 128 MB
MMC: ***imx_ssp_mmc_initialize***
***imx_ssp_mmc_initialize***
IMX_SSP_MMC: 0, IMX_SSP_MMC: 1
MMC0: Set clock rate to 400 KHz (requested 400 KHz)
***ssp_mmc_init***

MMC0: Set 1 bits bus width
MMC0: Set clock rate to 400 KHz (requested 400 KHz)
MMC0: Set 1 bits bus width
MMC0: CMD0
MMC0: CMD8
MMC0: CMD55
MMC0: CMD41
MMC0: CMD55
MMC0: CMD41
MMC0: CMD2
MMC0: CMD3
MMC0: CMD9
MMC0: CMD7
MMC0: CMD55
MMC0: CMD51
MMC0: CMD6
MMC0: CMD6
MMC0: CMD55
MMC0: CMD6
MMC0: Set clock rate to 400 KHz (requested 400 KHz)
MMC0: Set 4 bits bus width
u-boot-2009.08/driver/mmc/mmc.c *** mmc_set_clock: 20MHz ***
MMC0: Set clock rate to 4965 KHz (requested 5000 KHz)
MMC0: Set 4 bits bus width
MMC0: CMD16
MMC0: CMD17
MMC0: CMD16
MMC0: CMD18
MMC0: CMD12
*** Warning - bad CRC or MMC, using default environment

In: serial
Out: serial
Err: serial
Net: got MAC address from IIM: 00:04:00:00:00:00
FEC0
Hit any key to stop autoboot: 3

Outcomes