From: Kumar Gala Date: Wed, 6 Aug 2008 17:09:13 -0500 Subject: [U-Boot-Users] bootm -- load_os inputs/outputs In-Reply-To: <1C0F961D-7380-4114-8114-BD36157C2618@kernel.crashing.org> References: <20080806211503.34C8B24847@gemini.denx.de> <1C0F961D-7380-4114-8114-BD36157C2618@kernel.crashing.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de So I proposed something like: bootm load_os bootm load_fdt so I figured trying to expand on what load_os does might be useful. input: ENV:bootm_low ENV:bootm_size BOOTMAP_SZ image specifier (a standalone uImage, a multi-uImage, a FIT specifier) output: ERROR: if image doesn't pass validity checks ERROR: (if image is compressed) error during decompression ERROR: if resulting decompress exceeds, bootm_size/BOOTMAP_SZ ERROR: if image load address is less than bootm_low ENV?: image OS type (LINUX, NETBSD, etc..) ENV?: LMB to keep track of memory regions used ENV?: entry point MEM: "raw memory image, decompressed, no header, etc." I think that's everything.. So my suggestion is to keep track of the image OS type, LMB, entry point via the existing global 'static bootm_headers_t images'. If this is not acceptable it means adding support to some how pass around the LMB info via env var. comments? - k