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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Jump to solution
3,921 Views
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.

Labels (2)
1 Solution
432 Views
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

View solution in original post

3 Replies
433 Views
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

View solution in original post

432 Views
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 Kudos
432 Views
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 Kudos