filling string variables in script

Martino Ruppi mruppi at techimp.com
Thu Mar 29 09:35:59 EDT 2012


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 at techimp.com<mailto:mruppi at techimp.com>
Techimp HQ srl
Via Toscana 11/C
40069 Zola Predosa (BO)
Tel.   051 19986050
Fax.   051 19986099
Cell.  349 4677660


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/barebox/attachments/20120329/b505ae2c/attachment.html>


More information about the barebox mailing list