[U-Boot] [PATCH] stxamc8548: make environment use one of the smaller "boot" blocks in flash

Alex Dubov oakad at yahoo.com
Wed Aug 5 04:57:02 CEST 2009


> > 
> > Put environment into .ppcenv section aligned on a
> smaller "boot" eraseblock
> > boundary near flash end.
> 
> Hm... if you change to code to using a smaller boot
> sector...
> 
> >  #define CONFIG_ENV_ADDR     
>   (CONFIG_SYS_MONITOR_BASE + 0x38000)
> >  #define
> CONFIG_ENV_SECT_SIZE   0x4000   /*
> 16K(one sector) for env */
> > -#define CONFIG_ENV_SIZE       
> 0x2000
> > +#define CONFIG_ENV_SIZE       
> 0x4000
> 
> ...should then not be CONFIG_ENV_SECT_SIZE changed to some
> smaller
> size, too?
> 

The "large" eraseblock size for this flash config is 128k (2x64k). Small one is 16k (2x8k).



      


More information about the U-Boot mailing list