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,655件の閲覧回数
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,166件の閲覧回数
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,167件の閲覧回数
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,166件の閲覧回数
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,166件の閲覧回数
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 件の賞賛
返信