[prev in list] [next in list] [prev in thread] [next in thread] 

List:       u-boot
Subject:    Re: [U-Boot] [PATCH] image: Allow images to indicate they're
From:       Simon Glass <sjg () chromium ! org>
Date:       2011-10-31 21:20:31
Message-ID: CAPnjgZ05B=f3=B=NtZEy08-=EV5_ZhC32K8MESqkC=AF_u5NRg () mail ! gmail ! com
[Download RAW message or body]

On Mon, Oct 24, 2011 at 6:59 AM, Stephen Warren <swarren@nvidia.com> wrote:
> The legacy uImage format includes an absolute load and entry-
> point address. When presented with a uImage in memory that
> isn't loaded at the address in the image's load address,
> U-Boot will relocate the image to its address in the header.
>
> Some payloads can actually be loaded and used at any arbitrary
> address. An example is an ARM Linux kernel zImage file. This
> is useful when sharing a single zImage across multiple boards
> with different memory layouts, or U-Boot builds with different
> ${load_addr} since sharing a single absolute load address may
> not be possible.
>
> With this config option enabled, an image header may contain a
> load address of -1/0xffffffff. This indicates the image can
> operate at any load address, and U-Boot will avoid automtically
> copying it anywhere. In this case, the entry-point field is
> specified relative to the start of the image payload.
>
> Signed-off-by: Stephen Warren <swarren@nvidia.com>

Tested-by: Simon Glass <sjg@chromium.org>

> ---
> Wolfgang,
>
> This is an much simpler and less invasive alternative to my previous
> IH_TYPE_KERNEL_REL patch. If it's OK, you can ignore that patch.
>
> u-boot.bin sizes for Tegra Seaboard without/with this config option on:
>
> =A0 text =A0 =A0data =A0 =A0 bss =A0 =A0 dec =A0 =A0 hex filename
> =A0165858 =A0 =A03565 =A0217016 =A0386439 =A0 5e587 ./u-boot
>
> with:
>
> =A0 text =A0 =A0data =A0 =A0 bss =A0 =A0 dec =A0 =A0 hex filename
> =A0165950 =A0 =A03565 =A0217012 =A0386527 =A0 5e5df ./u-boot
>
> =A0README =A0 =A0 =A0 =A0 =A0 =A0 | =A0 23 +++++++++++++++++++++++
> =A0common/cmd_bootm.c | =A0 =A04 ++++
> =A0common/image.c =A0 =A0 | =A0 27 +++++++++++++++++++++++++++
> =A0include/image.h =A0 =A0| =A0 =A04 ++++
> =A04 files changed, 58 insertions(+), 0 deletions(-)
>
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic