AnsweredAssumed Answered

MMC in U-Boot 2015.04 at imx6qSabreSD-based board.

Question asked by Peter Tseng on Mar 31, 2016
Latest reply on Apr 20, 2016 by fulin chen


Hi i.MX Community,

 

I reference imx6qSabreSD trying to porting my custom board.

I need to support eMMC(SD3) and SD card slot(SD4).

In MCC device add and boot  support  i have added this following one,

 

#ifdef CONFIG_CMD_BMODE

static const struct boot_mode board_boot_modes[] = {

  /* 4 bit bus width */

  {"mmc0", MAKE_CFGVAL(0x40, 0x30, 0x00, 0x00)},

  /* 8 bit bus width */

  {"emmc", MAKE_CFGVAL(0x60, 0x58, 0x00, 0x00)},

  {NULL, 0},

};

#endif /* CONFIG_CMD_BMODE */

 

static struct fsl_esdhc_cfg usdhc_cfg[2] = {

  {USDHC3_BASE_ADDR}, /* eMMC */

  {USDHC4_BASE_ADDR}, /* SD Card Slot */

};

 

 

But it can not find the MMC device.

the error message follows:

 

U-Boot 2015.04 (Mar 31 2016 - 15:37:08)

 

 

CPU:   Freescale i.MX6Q rev1.2 at 792 MHz

CPU:   Temperature 28 C

Reset cause: POR

I2C:   ready

DRAM:  2 GiB

MMC:   MMC/SD: Reset never completed.

voltage not supported by controller

 

 

MMC Device 2 not found

No MMC card found

Using default environment

 

 

Display: (1024x600)

In:    serial

Out:   serial

Err:   serial

unsupported boot devices

check_and_clean: reg 0, flag_set 0

Recovery key pressed

Fastboot: Recovery command file found!

Unsupported bootup device for recovery: dev: 9

SATA isn't buildin

Net:   FEC [PRIME]

Normal Boot

 

 

 

Hope for your help!

 

Regards,

Outcomes