On 09/17/2011 03:20 AM, Marek Vasut wrote:
> On Friday, September 16, 2011 09:15:12 PM Scott Wood wrote:
>> Consider using CONFIG_ENV_RANGE to allow for bad blocks.
> 
> How does this actually play with CONFIG_MTDPARTS ?

I don't think there's any direct interaction between the environment
code and mtdparts.

> For you see -- I now have
> CONFIG_MTDPARTS "...128k(environment), 128k(redundant-environment)..."
> and CONFIG_ENV_SECT_SIZE (128 * 1024).
> 
> So what exactly am I supposed to set into CONFIG_ENV_RANGE and do I have to 
> modify the CONFIG_MTDPARTS?

You'd have to make the environment partitions larger -- the idea is to
provide an extra block or two in case of bad blocks.  CONFIG_ENV_RANGE
would be set to the partition size.

-Scott

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to