From: Sascha Hauer <s.hauer@pengutronix.de>
To: Martino Ruppi <mruppi@techimp.com>
Cc: "barebox@lists.infradead.org" <barebox@lists.infradead.org>
Subject: Re: R: filling string variables in script
Date: Mon, 2 Apr 2012 16:37:44 +0200 [thread overview]
Message-ID: <20120402143744.GZ3852@pengutronix.de> (raw)
In-Reply-To: <63954CAD61AA2440BC0B16A69EAE2BBC630E110855@srv-exc.techimp.com>
On Mon, Apr 02, 2012 at 04:28:22PM +0200, Martino Ruppi wrote:
> I'm sorry, I renovate my previous question.
> Or maybe it wasn't arrived to the list.
> I appreciate if someone could put me on right trace.
> Thanks. Marty
>
> Da: barebox-bounces@lists.infradead.org [mailto:barebox-bounces@lists.infradead.org] Per conto di Martino Ruppi
> Inviato: giovedì 29 marzo 2012 15.36
> A: barebox@lists.infradead.org
> Oggetto: filling string variables in script
>
> 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.
If I understand correctly then you want to copy the content of
/dev/nor0.switch to a variable. I'm afraid there currently is no
way to do this in barebox. What information is inside this nor
partition? It seems like you want to implement some kind of redundant
boot and want to decide which rootfs you want to boot. Am I right?
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2012-04-02 14:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-29 13:35 Martino Ruppi
2012-04-02 14:28 ` R: " Martino Ruppi
2012-04-02 14:37 ` Sascha Hauer [this message]
[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=20120402143744.GZ3852@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=mruppi@techimp.com \
/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