public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Question about md output
Date: Sat, 12 May 2012 16:32:10 +0200	[thread overview]
Message-ID: <20120512143210.A74AB200049@gemini.denx.de> (raw)
In-Reply-To: <28478089.7028571336829211206.JavaMail.defaultUser@defaultHost>

Dear "ffileppo at libero.it",

In message <28478089.7028571336829211206.JavaMail.defaultUser@defaultHost> you wrote:
> 
> I need to access data values stored in flash for integrity checking.

This is something where teh test / itest commands come in handy.

> Thus, I would like to parse the output of md (memory display) and store its 
> output to enviromental varaibles.

This is probably the wrong approach to do what you have in mind.

> 1) Is it feasible with the current uboot scripting features?

No.  But actually it is not needed either.  Use itest instead.

> 2) Would it be possible to modify the md command so that it also store its 
> output to env variables?

It would be possible, but it makes little sense to me.

> 3) Or, would it be possible to modify the md command so that its output is 
> just a word value which can be used for uboot scripting capabilities?
> e.g. 

Ditto.

Have a look at itest; if you still make no progress then please
describe what you actually want to do, so we can show you how to do it
efficiently - without need to modify code.

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
America has been discovered before, but it has always been hushed up.
- Oscar Wilde

      reply	other threads:[~2012-05-12 14:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-12 13:26 [U-Boot] Question about md output ffileppo at libero.it
2012-05-12 14:32 ` 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=20120512143210.A74AB200049@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox