linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: Ajit Phadnis <ajitsp2001@gmail.com>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: uboot parsing
Date: Sun, 19 Apr 2015 10:50:23 +0200	[thread overview]
Message-ID: <20150419085023.71726380907@gemini.denx.de> (raw)
In-Reply-To: <CAKNr0CiLK3bfGWzuwEs1KHqeCan6q5bPJ2psn6gNmBTobCS3Ug@mail.gmail.com>

Dear Ajit Phadnis,

In message <CAKNr0CiLK3bfGWzuwEs1KHqeCan6q5bPJ2psn6gNmBTobCS3Ug@mail.gmail.com> you wrote:
>
> Would like to how to store the response command of a run command

You should ask U-Boot related questions on the U-Boot mailing list [1] 
instead; chances for a helpful reply are much better there than on
lists that do not actually deal with U-Boot.

> Would to store the outcome of  "run addr" in into a variable and grep for
> the characters or string in Uboot.

Unfortunately, there is currently no way (yet) to do that.  When the
hush shell was ported to U-Boot, it was configured and modified for
minimal memory footprint; one of the features that have not been
included is command substitution.

If you really need such a feature, you could port (or have ported) a
more recent version of hush and include this feature.  Today's systems
usually have much more resources than we had at the time when hush was
added, so the additional memory footprint should be acceptable
(especially if you make that option configurable, so those who are not
interested in it or are already tight on memory can opt out).

Further discussions should be done on the U-Boot list [1].

[1] http://lists.denx.de/mailman/listinfo/u-boot


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
In an organization, each person rises to the level of his own  incom-
petency                                         - The Peter Principle

      reply	other threads:[~2015-04-19  8:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-19  7:49 uboot parsing Ajit Phadnis
2015-04-19  8:50 ` Wolfgang Denk [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=20150419085023.71726380907@gemini.denx.de \
    --to=wd@denx.de \
    --cc=ajitsp2001@gmail.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    /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;
as well as URLs for NNTP newsgroup(s).