Re: [U-Boot] env_flash.c:saveenv() broken when env is smaller than a sector

2011-01-17 Thread Wolfgang Denk
Dear Mike Frysinger, In message <201012292139.05901.vap...@gentoo.org> you wrote: > > seems the new saveenv code in the non-redund case has been rewritten > completely and doesn't support the same feature set as it used to. ... > so the difference is that the new code no longer supports envs whic

Re: [U-Boot] env_flash.c:saveenv() broken when env is smaller than a sector

2010-12-29 Thread Mike Frysinger
On Wednesday, December 29, 2010 20:53:17 Mike Frysinger wrote: > On Saturday, July 17, 2010 15:45:48 Wolfgang Denk wrote: > > --- a/common/env_flash.c > > +++ b/common/env_flash.c > > int saveenv(void) > > { > > > > - int len, rc; > > - ulong end_addr; > > - ulong flash_sect_addr;

[U-Boot] env_flash.c:saveenv() broken when env is smaller than a sector

2010-12-29 Thread Mike Frysinger
On Saturday, July 17, 2010 15:45:48 Wolfgang Denk wrote: > --- a/common/env_flash.c > +++ b/common/env_flash.c > #ifdef CMD_SAVEENV > int saveenv(void) > { > - char *saved_data = NULL; > - int rc = 1; > - char flag = OBSOLETE_FLAG, new_flag = ACTIVE_FLAG; > + env_t env_new; > +