[U-Boot-Users] autoscript?

Steven Scholz steven.scholz at imc-berlin.de
Fri Nov 29 12:41:25 CET 2002


Wolfgang Denk wrote:
> 
> In message <3DE74E8B.B8B12592 at 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




More information about the U-Boot mailing list