From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 89-97-197-40.ip19.fastwebnet.it ([89.97.197.40] helo=srv-exc.techimp.com) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SDFbX-0004IR-Mr for barebox@lists.infradead.org; Thu, 29 Mar 2012 13:41:32 +0000 From: Martino Ruppi Date: Thu, 29 Mar 2012 15:35:59 +0200 Message-ID: <63954CAD61AA2440BC0B16A69EAE2BBC630E110778@srv-exc.techimp.com> Content-Language: it-IT MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1189695193304577882==" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: filling string variables in script To: "barebox@lists.infradead.org" --===============1189695193304577882== Content-Language: it-IT Content-Type: multipart/alternative; boundary="_000_63954CAD61AA2440BC0B16A69EAE2BBC630E110778srvexctechimp_" --_000_63954CAD61AA2440BC0B16A69EAE2BBC630E110778srvexctechimp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 do= esn't implemented redirection. I'd like to do something of this: myvar=3D"" memcpy -s /dev/nor0.switch -d $myvar 0x0 0x0 4 or myvar=3D"$(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 Techimp HQ srl Via Toscana 11/C 40069 Zola Predosa (BO) Tel. 051 19986050 Fax. 051 19986099 Cell. 349 4677660 --_000_63954CAD61AA2440BC0B16A69EAE2BBC630E110778srvexctechimp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Dear all,

I w= ould ask a question as barebox user.

I mind to set a variable as result of memory readin= g but I understand it doesn’t implemented redirection.

I’d like to do somethi= ng of this:

 

myvar=3D&= #8221;”

= memcpy –s  /dev/nor0.switch –d $myvar 0x0 0x0 4=

 =

or

 

myvar=3D”$(cat /dev/nor0.switch)”

 

I think, I use one of l= ast releases (version command?).

Thanks to everyone can help me.

Marty

 

~~= ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Mart= ino Ruppi, FW engineer developer, PhD

mruppi@techimp.com

Techimp HQ srl

Via Toscana 11= /C

40069 Zola Predosa (BO)

Tel.   051 19986050

Fax.   051 19986099

Ce= ll.  349 4677660

 

 

= --_000_63954CAD61AA2440BC0B16A69EAE2BBC630E110778srvexctechimp_-- --===============1189695193304577882== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox --===============1189695193304577882==--