From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Scholz Date: Fri, 29 Nov 2002 12:41:25 +0100 Subject: [U-Boot-Users] autoscript? References: <20021129113451.55A91C638B@atlas.denx.de> Message-ID: <3DE75265.2CD5F57E@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 Wolfgang Denk wrote: > > In message <3DE74E8B.B8B12592@imc-berlin.de> you wrote: > > > > > 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... > > Sure. You can build a script image. > > But your original question was how to "make an u-boot image that > contains a kernel _and_ a script". That would be a MFI, and there is > no script support for MFIs. > > > Than how should I understand the following lines from > > ppcboot/common/cmd_autoscript.c > > You can run a script image. This is an image that contains ONLY the > script. Oh! I can see clearly now ... :o) Thanks! > > > 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? > > No. But you cannot combine a Linux kernel and a script in a single > MFI (yet). Or actually you can, but you canot make any use of such an > image ;-) > > > 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... > > Use the update script to download and install the kernel image, then. That's great! Thanks again! Steven