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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
4,314 次查看
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

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
3,062 次查看
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 项奖励
回复
4 回复数
3,062 次查看
fabio_estevam
NXP Employee
NXP Employee

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

0 项奖励
回复
3,063 次查看
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 项奖励
回复
3,062 次查看
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 项奖励
回复
3,062 次查看
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 项奖励
回复