How to enable mmc commands in u-boot for i.MX25?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to enable mmc commands in u-boot for i.MX25?

Jump to solution
2,790 Views
aldobiziak
Contributor II

Goodmorning everybody,

I'm using GEA M6425 module with an i.MX257 uC. My bootloader u-boot is version 2009 (reported in Makefile).

I have "mmcinit" command, but  I haven't got "mmc read"  or "mmc write" commands. How to enable them?

Note, in my include/configs/mx25_3stack.h file I enabled:

#define CONFIG_FSL_MMC

#define CONFIG_MMC

#define CONFIG_CMD_MMC

#define CONFIG_DOS_PARTITION

#define CONFIG_CMD_FAT

#define CONFIG_MMC_BASE       0x0

Kind regards

Labels (1)
Tags (2)
0 Kudos
1 Solution
1,538 Views
aldobiziak
Contributor II

Yes, you're right, 

As I wrote above,  the minum version with MMC dircet acces is 2009.03. I should update my u-boot, but this requires a porting of several propertary drivers board-dependent. So, I need to find another way.

View solution in original post

0 Kudos
4 Replies
1,538 Views
fabio_estevam
NXP Employee
NXP Employee

You could use U-boot 2013.07 instead. It supports 'mmc read/write' by default on mx25pdk.

0 Kudos
1,539 Views
aldobiziak
Contributor II

Yes, you're right, 

As I wrote above,  the minum version with MMC dircet acces is 2009.03. I should update my u-boot, but this requires a porting of several propertary drivers board-dependent. So, I need to find another way.

0 Kudos
1,538 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,aldobiziak,

    Please add a line in mx25_3stack.h file:

/*

* MMC Configs

* */

#ifdef CONFIG_CMD_MMC

#define CONFIG_MMC    1

#define CONFIG_GENERIC_MMC

#define CONFIG_IMX_MMC

#define CONFIG_SYS_FSL_ESDHC_NUM        2

#define CONFIG_SYS_FSL_ESDHC_ADDR      0

#define CONFIG_SYS_MMC_ENV_DEV  0

#define CONFIG_IMX_ESDHC_V1

#define CONFIG_DOS_PARTITION 1

#define CONFIG_CMD_FAT  1

#define CONFIG_BOOT_PARTITION_ACCESS

#endif

Try it ,please !

Regards,

Weidong

0 Kudos
1,538 Views
aldobiziak
Contributor II

Hello Weidong,

I tried to add CONFIG_BOOT_PARTITION_ACCESS and the other options, but They aren't available on u-boot 2009.01 . Probably the only one soution is to update my u-boot to 2009.03 version. This is the minimum version with MMC direct access.

0 Kudos