All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Scholz <steven.scholz@imc-berlin.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] autoscript?
Date: Fri, 29 Nov 2002 12:41:25 +0100	[thread overview]
Message-ID: <3DE75265.2CD5F57E@imc-berlin.de> (raw)
In-Reply-To: 20021129113451.55A91C638B@atlas.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

  reply	other threads:[~2002-11-29 11:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-29 10:32 [U-Boot-Users] autoscript? Steven Scholz
2002-11-29 11:14 ` Wolfgang Denk
2002-11-29 11:24   ` Steven Scholz
2002-11-29 11:34     ` Wolfgang Denk
2002-11-29 11:41       ` Steven Scholz [this message]
2002-11-29 12:24   ` Steven Scholz
2002-11-29 16:41     ` Wolfgang Denk
2002-12-02 13:27 ` Kyle Harris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3DE75265.2CD5F57E@imc-berlin.de \
    --to=steven.scholz@imc-berlin.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.