From: Martino Ruppi <mruppi@techimp.com>
To: "barebox@lists.infradead.org" <barebox@lists.infradead.org>
Subject: filling string variables in script
Date: Thu, 29 Mar 2012 15:35:59 +0200 [thread overview]
Message-ID: <63954CAD61AA2440BC0B16A69EAE2BBC630E110778@srv-exc.techimp.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 652 bytes --]
Dear all,
I would ask a question as barebox user.
I mind to set a variable as result of memory reading but I understand it doesn't implemented redirection.
I'd like to do something of this:
myvar=""
memcpy -s /dev/nor0.switch -d $myvar 0x0 0x0 4
or
myvar="$(cat /dev/nor0.switch)"
I think, I use one of last releases (version command?).
Thanks to everyone can help me.
Marty
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Martino Ruppi, FW engineer developer, PhD
mruppi@techimp.com<mailto:mruppi@techimp.com>
Techimp HQ srl
Via Toscana 11/C
40069 Zola Predosa (BO)
Tel. 051 19986050
Fax. 051 19986099
Cell. 349 4677660
[-- Attachment #1.2: Type: text/html, Size: 4596 bytes --]
[-- Attachment #2: Type: text/plain, Size: 149 bytes --]
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2012-03-29 13:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-29 13:35 Martino Ruppi [this message]
2012-04-02 14:28 ` R: " Martino Ruppi
2012-04-02 14:37 ` Sascha Hauer
[not found] ` <63954CAD61AA2440BC0B16A69EAE2BBC630E11085B@srv-exc.techimp.com>
2012-04-02 16:53 ` R: " Sascha Hauer
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=63954CAD61AA2440BC0B16A69EAE2BBC630E110778@srv-exc.techimp.com \
--to=mruppi@techimp.com \
--cc=barebox@lists.infradead.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