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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
4,317件の閲覧回数
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,065件の閲覧回数
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,065件の閲覧回数
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,066件の閲覧回数
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,065件の閲覧回数
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,065件の閲覧回数
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 件の賞賛
返信