[U-Boot] [PATCH] image: Implement IH_TYPE_KERNEL_REL

Kumar Gala galak at kernel.crashing.org
Fri Oct 7 04:13:22 CEST 2011


On Oct 6, 2011, at 5:36 PM, Stephen Warren wrote:

> uImage files contain absolute "load" and "entry" addresses. Such a concept
> is incompatible with using the same kernel image on multiple SoCs, each with
> a potentially different SDRAM base. To support that, create a new image type
> IH_TYPE_KERNEL_REL, which is handled identically to IH_TYPE_KERNEL, except
> that the "load" and "entry" properties are an offset from the base of SDRAM,
> rather than an absolute address.
> 
> "An offset from the base of SDRAM" is specified as:
> a) CONFIG_SYS_SDRAM_BASE, if set.
> b) Otherwise, for ARM, the start address of the first bank of SDRAM known
>   to U-Boot.
> c) Otherwise, 0.
> 
> The exact algorithm is implemented in getenv_bootm_low().
> 
> Signed-off-by: Stephen Warren <swarren at nvidia.com>
> ---
> arch/sh/lib/bootm.c   |    2 +-
> common/cmd_bootm.c    |   16 +++--
> common/image.c        |  178 ++++++++++++++++++++++++++++++++++++++++++-------
> common/lynxkdi.c      |    6 +-
> common/update.c       |    2 +-
> include/image.h       |   30 ++++++--
> tools/default_image.c |    7 +-
> 7 files changed, 194 insertions(+), 47 deletions(-)

Can you explain WHY we need this in the commit message.

- k



More information about the U-Boot mailing list