[U-Boot] [PATCH] sbc8548: reclaim wasted sector in boot flash

Kumar Gala galak at kernel.crashing.org
Wed Sep 30 15:33:07 CEST 2009


On Sep 25, 2009, at 10:14 AM, Paul Gortmaker wrote:

> By nature of being based off the MPC8548CDS board, this
> board inherited an ENV_SIZE setting of 256k.  But since
> it has a smaller flash device (8MB soldered on), it has
> a native sector size of 128k, and hence the ENV_SIZE was
> causing 2 sectors to be used for the environment.
>
> By removing the unused sector, we can push TEXT_BASE up
> closer to the end of address space and reclaim that
> sector for any other application.  This also fixes the
> mismatch between TEXT_BASE and MONITOR_LEN reported by
> Kumar earlier.
>
> Since this board also supports the ability to boot off
> the 64MB SODIMM flash, this change is forward looking
> with that in mind; i.e. the settings for MONITOR_LEN
> and ENV_SIZE will work when the 512k sectors of the
> SODIMM flash are used for alternate boot in the future.
>
> Signed-off-by: Paul Gortmaker <paul.gortmaker at windriver.com>
> ---
> board/sbc8548/config.mk   |    2 +-
> doc/README.sbc8548        |   24 ++++++++++++++++++++++++
> include/configs/sbc8548.h |   20 +++++++++++++++++---
> 3 files changed, 42 insertions(+), 4 deletions(-)

applied to 85xx

- k


More information about the U-Boot mailing list