From: Kumar Gala Date: Tue, 5 Aug 2008 09:35:00 -0500 Subject: [U-Boot-Users] outline of bootm script Message-ID: <2E8CBC61-B62F-45C4-BF98-CF18CE437309@kernel.crashing.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de here's a rough start at an outline for the bootm script based on the code (I've only outlined the Linux/PPC boot case its seems the most complicated). One of the first things we clearly need is a imload command. Thoughts on the various disable_{interrupts, usb, caches} ? - k bootm script: disable_interrupts /* sets an env with the state of interrupts before disabling */ #ifdef CONFIG_CMD_USB disable_usb #endif #ifdef CONFIG_AMIGAONEG3SE disable_caches #endif imload switch(on OS type from imload) LINUX: if (fdt) fdt relocate to after kernel_image + padding fdt fixups (board setup, etc) if (ramdisk) imload ramdisk if (fdt) fixup initrd info in fdt bootm_linux ... - k