mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 0/4] defaultenv boot updates
Date: Sat, 23 Apr 2011 04:16:35 +0200	[thread overview]
Message-ID: <20110423021635.GD23775@game.jcrosoft.org> (raw)
In-Reply-To: <20110411105550.GH7285@pengutronix.de>

HI,

	until this new way will be available can we have those patch
	integrated?

Best Regards,
J.
On 12:55 Mon 11 Apr     , Sascha Hauer wrote:
> Hi J,
> 
> On Mon, Apr 11, 2011 at 12:17:52PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > On 12:16 Mon 11 Apr     , Sascha Hauer wrote:
> > > Hi,
> > > 
> > > On Fri, Apr 08, 2011 at 03:37:13PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > > > HI,
> > > > 
> > > > 	this following patch series make boot script more configurable
> > > > 
> > > > 
> > > 
> > > I'm getting the impression that we stretch the capabilities of our shell
> > > way beyond its limits. We started with booting from nand/nor/net and
> > > added mmc cards later. Still this is not flexible enough to handle
> > > images for example on a fat filesystem, not to mention different kernels
> > > on one medium.
> > > 
> > > I was thinking about this topic a bit, and my idea currently is
> > > to add a command with which we can build a list of images. An image can
> > > be a kernel or a filesystem image. Each image can be associated with
> > > a bootarg snippet and a command to execute to access this image.
> > > 
> > I like the idea
> > 
> > as we can be multiple user of the same harware so it will simplify it
> > 
> > > Altogether this could look like this:
> > > 
> > > linux [OPTIONS]
> > > 
> > >  -a <name>    add a new image
> > >  -f <file>    path to image
> > >  -b <bootarg> kernel bootargs to append for this image
> > >  -z           This is a zImage
> > >  -u           This is a uImage
> > >  -r <adr>     This is a raw kernel image to be started at address <adr>
> > >  -l           The image is lzo compressed
> > -C <compression>
> > >  -i           Show currently registered images
> > -l for list
> > >  -d           delete all registered images
> > -d too delete all :(
> > 
> > I think -d should delete only one
> > -D for all
> 
> Ok.
> 
> > > 
> > > 
> > > example:
> > > 
> > > barebox@Phytec phyCORE pcm049:/ linux -a kernel.nand -f /dev/nand0.kernel.bb -z
> > > barebox@Phytec phyCORE pcm049:/ linux -a kernel.mmc -f /dev/disk0.1 -c "mci0.probe=1" -r 0x80008000 -l
> > what is this -c ?
> 
> -c specifies a command to be executed when this file is to be accessed.
> If you have network on a USB ethernet dongle for example, you want to
> delay the probing until it is really used. So you could provide a script
> here which calls "usb; dhcp" or something like that.
> For a fat filesystem on a mmc card it could be
> 
> "mci0.probe=1; mkdir /fat; mount /dev/disk0.1 fat /fat"
> 
> > I like the idea
> > 
> > but we should use the menu to manage it?
> 
> I think it should always work without the menu, but of course it's nice
> to integrate it into the menu also.
> 
> Sascha
> 
> -- 
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2011-04-23  2:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-08 13:37 Jean-Christophe PLAGNIOL-VILLARD
2011-04-08 13:40 ` [PATCH 1/4] defaultenv/boot: switch to getopt Jean-Christophe PLAGNIOL-VILLARD
2011-04-08 13:40 ` [PATCH 2/4] defaultenv/boot: add -k and -t option to specify the kernel location and image type Jean-Christophe PLAGNIOL-VILLARD
2011-04-08 13:40 ` [PATCH 3/4] defaultenv/boot: add -r and -T option to select rootfs location and type Jean-Christophe PLAGNIOL-VILLARD
2011-04-08 13:40 ` [PATCH 4/4] defaultenv/boot: add -i option to select the ip mode Jean-Christophe PLAGNIOL-VILLARD
2011-04-11 10:16 ` [PATCH 0/4] defaultenv boot updates Sascha Hauer
2011-04-11 10:17   ` Jean-Christophe PLAGNIOL-VILLARD
2011-04-11 10:55     ` Sascha Hauer
2011-04-23  2:16       ` Jean-Christophe PLAGNIOL-VILLARD [this message]

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=20110423021635.GD23775@game.jcrosoft.org \
    --to=plagnioj@jcrosoft.com \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox