how to change the u-boot environment to NAND when saveenv on i.MX28 coustom board

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

how to change the u-boot environment to NAND when saveenv on i.MX28 coustom board

跳至解决方案
5,653 次查看
yongkimin
Contributor III

Hi I'm work on my custom board base on i.im28 evk.

The u-boot image (imx28_ivt_uboot.sb) was flashing with Mfgtool and I modified ucl.xml. My board does not have MMC.

So I'd like to change the u-boot environment variable to NAND without MMC.

The log is

MX28 U-Boot > saveenv

Saving Environment to MMC...

MMC0: No card detected!

MMC init failed

Can you tell me how to change it.

I got the u-boot source code this command.

./ltib -p u-boot -m prep

That source code is build.

ltib/rpm/BUILD/u-boot-2009.08

Thanks.

标签 (2)
1 解答
2,164 次查看
GraceH
Senior Contributor II

In u-boot-2009.08/include/configs/mx28_evk.h

#define CONFIG_CMD_NAND

#define CONFIG_FSL_ENV_IN_NAND

and remove the MMC related Macro

Grace

在原帖中查看解决方案

3 回复数
2,165 次查看
GraceH
Senior Contributor II

In u-boot-2009.08/include/configs/mx28_evk.h

#define CONFIG_CMD_NAND

#define CONFIG_FSL_ENV_IN_NAND

and remove the MMC related Macro

Grace

2,164 次查看
yongkimin
Contributor III

Thanks for GraceSi answer!

I disable the define for "CONFIG_CMD_MMC". Then delete all obj files (*.o) and *.a files. The reason is for build error. The *.o and *. a files created before disable the MMC macro make force build error. My case the directory of build error are /common and /fs/fat.

I'm trying (add NAND parameters) . Thanks.

0 项奖励
回复
2,164 次查看
yongkimin
Contributor III

Thanks for advice.

Success for change to NAND as below log.

MX28 U-Boot > saveenv

Saving Environment to NAND...

Erasing Nand...

Erasing at 0x140000000020000 --   0% complete.

Writing to Nand... [send_page] DMA error

[send_command] DMA error

Command execute failed!

[send_command] DMA error

Command execute failed!

[read_data] DMA error

FAILED!

Now I trying again to change the address.

Thank you.

0 项奖励
回复