diff options
author | Stephen Warren <swarren@nvidia.com> | 2011-11-10 13:17:53 -0700 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2011-12-01 09:45:35 +0100 |
commit | b9b50e89d317c58becd0e2d7fac2e21e3a81dd0a (patch) | |
tree | 3d232af9ba19de272563e24d8f12fc8293b6a2bf /common/image.c | |
parent | a63d9652757605ec5f7104addc5d38bf10ba8671 (diff) | |
download | u-boot-imx-b9b50e89d317c58becd0e2d7fac2e21e3a81dd0a.zip u-boot-imx-b9b50e89d317c58becd0e2d7fac2e21e3a81dd0a.tar.gz u-boot-imx-b9b50e89d317c58becd0e2d7fac2e21e3a81dd0a.tar.bz2 |
image: Implement IH_TYPE_KERNEL_NOLOAD
The legacy uImage format includes an absolute load and entry-point
address. When bootm operates on a kernel uImage in memory that isn't
loaded at the address in the image's load address, U-Boot will copy
the image to its address in the header.
Some kernel images can actually be loaded and used at any arbitrary
address. An example is an ARM Linux kernel zImage file. To represent
this capability, IH_TYPE_KERNEL_NOLOAD is implemented, which operates
just like IH_TYPE_KERNEL, except that the load address header is
ignored, and U-Boot does not copy the image to its load address, but
rather uses it in-place.
This is useful when sharing a single (uImage-wrapped) zImage across
multiple boards with different memory layouts; in this case, a specific
load address need not be picked when creating the uImage, but instead
is selected by the board-specific U-Boot environment used to load and
boot that image.
v2: Rename from IH_TYPE_KERNEL_ANYLOAD to IH_TYPE_KERNEL_NOLOAD.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'common/image.c')
-rw-r--r-- | common/image.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/image.c b/common/image.c index 555d9d9..aacae5a 100644 --- a/common/image.c +++ b/common/image.c @@ -136,6 +136,7 @@ static const table_entry_t uimage_type[] = { { IH_TYPE_FIRMWARE, "firmware", "Firmware", }, { IH_TYPE_FLATDT, "flat_dt", "Flat Device Tree", }, { IH_TYPE_KERNEL, "kernel", "Kernel Image", }, + { IH_TYPE_KERNEL_NOLOAD, "kernel_noload", "Kernel Image (no loading done)", }, { IH_TYPE_KWBIMAGE, "kwbimage", "Kirkwood Boot Image",}, { IH_TYPE_IMXIMAGE, "imximage", "Freescale i.MX Boot Image",}, { IH_TYPE_INVALID, NULL, "Invalid Image", }, |