linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* uboot parsing
@ 2015-04-19  7:49 Ajit Phadnis
  2015-04-19  8:50 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Ajit Phadnis @ 2015-04-19  7:49 UTC (permalink / raw)
  To: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 381 bytes --]

Hi Folks,

Would like to how to store the response command of a run command


=>setenv addr  'ping 192.172.24.24'

=>setenv ping_resp 'run  addr'

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

// Expecting the output as ping response string and parse the outcome with
grep !!
=> echo $ping_respone


-- 
Thanks,
Ajit

[-- Attachment #2: Type: text/html, Size: 737 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: uboot parsing
  2015-04-19  7:49 uboot parsing Ajit Phadnis
@ 2015-04-19  8:50 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2015-04-19  8:50 UTC (permalink / raw)
  To: Ajit Phadnis; +Cc: linuxppc-dev

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-19  8:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-19  7:49 uboot parsing Ajit Phadnis
2015-04-19  8:50 ` Wolfgang Denk

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).