[U-Boot] fw_setenv not working

Wolfgang Denk wd at denx.de
Mon Feb 9 15:26:07 CET 2009


Dear "M SANDEEP-TVF386",

In message <0A01463223B8164194908CAC85B66A12034145FA at ZMY16EXM67.ds.mot.com> you wrote:
> 
> im currently trying to set the u-boot environment variables by using
> fw_setenv. i hope my configuration everything is fine.. as im getting
> proper crc check and
> able to print environment variables, but not able to set using
> fw_setenv, as im getting the following error.
>  
> CRC error on /dev/mtd0 : Invalid argument
> Error: can't write fw_env to flash

Which version of U-Boot is this?

Is this NOR flash or NAND?

What exactly does your flash memory map in U-Boot look like?

How are your Linux MTD partitions set up?

What exactly does your fw_env.config file contain?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Free markets select for winning solutions."        - Eric S. Raymond


More information about the U-Boot mailing list