
11 Apr
2014
11 Apr
'14
4:46 p.m.
On Thu, Apr 10, 2014 at 02:18:03PM -0500, Rob Herring wrote:
From: Rob Herring robh@kernel.org
Various commands that load images have no checks that a loaded image does not exceed the available RAM space and will happily continue overwriting u-boot or other RAM that should not be touched. Also, some commands such as USB DFU or fastboot need to know the maximum buffer size, but there is no common way to define this.
Introduce a global load_size and environment variable loadsize to specify the size. The default is ~0UL which is effectively unlimited.
Signed-off-by: Rob Herring robh@kernel.org
Reviewed-by: Tom Rini trini@ti.com
--
Tom