From: Wolfgang Denk Date: Tue, 26 Aug 2008 23:42:59 +0200 Subject: [U-Boot] [PATCH 11/15] bootm: refactor image detection and os load steps In-Reply-To: <1218806685-3615-11-git-send-email-galak@kernel.crashing.org> References: <1218806685-3615-1-git-send-email-galak@kernel.crashing.org> <1218806685-3615-2-git-send-email-galak@kernel.crashing.org> <1218806685-3615-3-git-send-email-galak@kernel.crashing.org> <1218806685-3615-4-git-send-email-galak@kernel.crashing.org> <1218806685-3615-5-git-send-email-galak@kernel.crashing.org> <1218806685-3615-6-git-send-email-galak@kernel.crashing.org> <1218806685-3615-7-git-send-email-galak@kernel.crashing.org> <1218806685-3615-8-git-send-email-galak@kernel.crashing.org> <1218806685-3615-9-git-send-email-galak@kernel.crashing.org> <1218806685-3615-10-git-send-email-galak@kernel.crashing.org> <1218806685-3615-11-git-send-email-galak@kernel.crashing.org> Message-ID: <20080826214259.2F477248C3@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- > 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