public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: ffileppo at libero.it <ffileppo@libero.it>
To: u-boot@lists.denx.de
Subject: [U-Boot] Question about md output
Date: Sat, 12 May 2012 15:26:51 +0200 (CEST)	[thread overview]
Message-ID: <28478089.7028571336829211206.JavaMail.defaultUser@defaultHost> (raw)

Dear all,

I need to access data values stored in flash for integrity checking.

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

For example, when invoking:

=> md 0x100000 1
00100000: 8083764e bd86200a 60a19054 2c12c402

I would like to store one ore more memory values in some env variables.

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

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

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. 

=> md 0x100000 1 2 
bd86200a

=> md 0x100000 1 4 
2c12c402

Best Regards,

FF

             reply	other threads:[~2012-05-12 13:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-12 13:26 ffileppo at libero.it [this message]
2012-05-12 14:32 ` [U-Boot] Question about md output 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=28478089.7028571336829211206.JavaMail.defaultUser@defaultHost \
    --to=ffileppo@libero.it \
    --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