All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] BOOT: Add RAW ramdisk support to bootz
Date: Fri, 16 Mar 2012 12:09:45 +0100	[thread overview]
Message-ID: <20120316110945.96950200B56@gemini.denx.de> (raw)
In-Reply-To: <201203160945.40467.marex@denx.de>

Dear Marek Vasut,

In message <201203160945.40467.marex@denx.de> you wrote:
> 
> > - You add code size even for systems which don't enable "bootz"
> >   support.
> 
> This is a good point, do you agree to introduce CONFIG_SUPPORT_RAW_RAMDISK to 
> enable this feature?

Fine with me - please also document the new option.

> > - You change the syntax of all boot related commands where a ramdisk
> >   address may be passed (i. e. "bootm") without documenting it.
> 
> Right, this should be documented in the top-level README file? Or is there some 
> other place?

Hm... I have no strong opinion here.

> > - Using this syntax with a mkimage wrapped ramdisk image will cause
> >   bad things to happen, even if you specific the correct size.  The
> >   API should be more robust.
> 
> It actually won't. If you use mkimage warped ramdisk, it'll recognise it's magic 
> numbers and simply ignore the stuff behind ":". Though I hope noone in sane mind 
> would do that.

Argh...  Passing arguments that silently get ignored under certain
conditions is not something I like to see.

And are you sure hat it will work like that? [I mean, has this been
tested?]

> > > +			/*
> > > +			 * Check if rd_len was manually overridden, if it was,
> > > +			 * we're loading RAW ramdisk.
> > > +			 */
> > 
> > This is undocumented policy, and I dislike such a side-effect based
> > design (if we have a size parameter, it must be a raw image).
> 
> It must not, but if it is, it'll be used as raw.

Sorry, I cannot parse this.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
One possible reason that things aren't going  according  to  plan  is
that there never was a plan in the first place.

  reply	other threads:[~2012-03-16 11:09 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-16  0:19 [U-Boot] [PATCH] BOOT: Add RAW ramdisk support to bootz Marek Vasut
2012-03-16  7:30 ` Wolfgang Denk
2012-03-16  8:45   ` Marek Vasut
2012-03-16 11:09     ` Wolfgang Denk [this message]
2012-03-16 21:30 [U-Boot] [PATCH V2] " Marek Vasut
2012-03-18 21:47 ` [U-Boot] [PATCH] " Rob Herring
2012-03-22  9:10   ` Marek Vasut
2012-03-22 12:14     ` Rob Herring
2012-03-22 12:45       ` Marek Vasut
2012-03-22 13:33         ` Wolfgang Denk
2012-03-22 16:45           ` Marek Vasut
2012-03-22 23:04             ` Wolfgang Denk
2012-03-23  8:36               ` Marek Vasut
2012-03-28 20:54                 ` Marek Vasut
2012-03-30 21:01   ` Wolfgang Denk
2012-03-30 21:12   ` Wolfgang Denk

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=20120316110945.96950200B56@gemini.denx.de \
    --to=wd@denx.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.