[U-Boot-Users] u-boot fw_setenv does not write

Jeff Angielski jeff at theptrgroup.com
Mon Jul 2 21:51:16 CEST 2007


On Mon, 2007-07-02 at 17:36 +0200, Victor Librado wrote:
> u-boot environment tool fw_setenv does not work when writing the 
> environment to flash. Working with at91sam9260ek running kernel 2.6.20.
<snip>
> Offset and environmet size as defined in myboard.h for u-boot 
> compilation. I suppose flash sector size is the erase (block size).
> 
> Any help please?

There is nothing special about the u-boot env. The parameters are in
human readable format if you dump the contents [or used to be last time
I looked].  And the fw_xxx tools just access the flash through the
normal MTD layer.  

With this in mind, can you access that block using the standard
utilities?  cat?  dd? einfo?  erase?  etc.  If not, your MTD
configuration for your board is broken.


-- 
Jeff Angielski
The PTR Group
www.theptrgroup.com





More information about the U-Boot mailing list