From: Steven Scholz Date: Fri, 29 Nov 2002 12:24:59 +0100 Subject: [U-Boot-Users] autoscript? References: <20021129111434.80189C638B@atlas.denx.de> Message-ID: <3DE74E8B.B8B12592@imc-berlin.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Wolfgang, thanks for your fast reply. > Well, _making_ the image is easy. the mkimage tool will happily > combine any files you pass to it into one multifile image (MFI). I thought I've seen a command line option for "mkimage" saying something about scripts... > But _using_ such a MFI is a different issue. So far, PPCBoot > understands only one format of MFIs, which consist of a Linux kernel > image as the first part and a ramdisk image as the second part. This > is being handled buy the "bootm" command. > > So far, there is no other support for MFIs. Than how should I understand the following lines from ppcboot/common/cmd_autoscript.c /* * autoscript allows a remote host to download a command file and, * optionally, binary data for automatically updating the target. For * example, you create a new kernel image and want the user to be * able to simply download the image and the machine does the rest. * The kernel image is postprocessed with mkimage, which creates an * image with a script file prepended. If enabled, autoscript will * verify the script and contents of the download and execute the * script portion. This would be responsible for erasing flash, * copying the new image, and rebooting the machine. */ Is this actually a multi step solution? First download the script, then download the binary data (e.g. kernel image) and then execute the script? I would like to do something like this: Normally the board boots from flash (in detail: pImage is stored on a JFFS2 partition, which serves as the root fs as well). But in the case that no (valid) pImage is found, I would like ppcboot (sorry, still using this) to automagically download a whole pFlashdisk image and burn that to the flash. So I thougth about using an MFI (containing the data and the update script) that gets downloaded... Steven