[U-Boot] [PATCH 11/15] bootm: refactor image detection and os load steps

Wolfgang Denk
2008-08-26T21:42:59Z

Dear Kumar Gala,

In message <1218806685-3615-11-git-send-email-galak@kernel.crashing.org> you wrote:
> Created a bootm_start() that handles the parsing and detection of all the
> images that will be used by the bootm command (OS, ramdisk, fdt). As part
> of this we now tract all the relevant image offsets in the bootm_headers_t
> struct. This will allow us to have all the needed state for future
> sub-commands and lets us reduce a bit of arch specific code on SPARC.
>
> Created a bootm_load_os() that deals with decompression and loading the
> OS image.
>
> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
> ---
> common/cmd_bootm.c | 216 ++++++++++++++++++++++++++++++----------------------
> include/image.h | 9 ++
> lib_sparc/bootm.c | 19 +-----
> 3 files changed, 136 insertions(+), 108 deletions(-)

Frankly, I have no idea if this really works with all image types we
have to deal with. But the easiest way to find out is to apply it and
make people scream if it doesn't ;-)

Applied, thanks.

Best regards,

Wolfgang Denk

--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Anything that is worth doing at all is worth doing well.
-- Philip Earl of Chesterfield