From: Sascha Hauer <s.hauer@pengutronix.de>
To: Owen Kirby <osk@exegin.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] Add readmem command to read values out of memory.
Date: Mon, 12 May 2014 07:59:10 +0200 [thread overview]
Message-ID: <20140512055910.GE5858@pengutronix.de> (raw)
In-Reply-To: <536D5DBF.7040708@exegin.com>
On Fri, May 09, 2014 at 03:59:11PM -0700, Owen Kirby wrote:
> From 299ffc6a961c807b118605bdd9e736c7b096fec9 Mon Sep 17 00:00:00 2001
> From: Owen Kirby <osk@exegin.com>
> Date: Fri, 9 May 2014 15:14:30 -0700
> Subject: [PATCH] Add readmem command to read values out of memory.
>
> I was trying to do something conditionally from a shell script based on the type
> of image present in flash, and finding it rather cumbersome to do. So I added a
> command that reads values out of memory and into shell variables as hexadecimal.
Such a functionality might come in handy and indeed it seems to be hard
to archieve with other commands.
Have you looked into the filetype stuff? This could solve your problem
without having to interpret hex values from shell. See common/filetype.c
and commands/filetype.c.
> +config CMD_READMEM
> + tristate
> + default y
No default y please, just drop this line.
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:[~2014-05-12 5:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-09 22:59 Owen Kirby
2014-05-10 13:32 ` Antony Pavlov
2014-05-12 5:59 ` Sascha Hauer [this message]
2014-05-12 18:36 ` Owen Kirby
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=20140512055910.GE5858@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=osk@exegin.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