From: Timur Tabi <timur@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] What is CONFIG_HAS_DATAFLASH?
Date: Fri, 05 Mar 2010 13:23:11 -0600 [thread overview]
Message-ID: <4B915A1F.90206@freescale.com> (raw)
In-Reply-To: <20100305191744.90796E4716D@gemini.denx.de>
Wolfgang Denk wrote:
> Dear Timur Tabi,
>
> In message <ed82fe3e1003050915r6e677102mb47a448293e62067@mail.gmail.com> you wrote:
>> Can someone tell me what CONFIG_HAS_DATAFLASH does?
>
> I know this sounds like an act of darin, but how about having a look
> at the README ?
>
> [And I really wonder why you did not find the documentation there.]
CONFIG_HAS_DATAFLASH
Defining this option enables DataFlash features and
allows to read/write in Dataflash via the standard
commands cp, md...
This doesn't tell me anything.
>> The reason I ask is that I'm trying to use
>> CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS, but I noticed that the "md"
>
> Why would you want to do that? This is only needed in very special
> situations which involve a state of hardware that can be best
> described as broken.
You're right. The board I need to support is broken, IMHO. Fortunately, CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS provides a reasonably elegant fix.
>> command does not use the flash_readX primitives when I ask it to
>> display memory from a flash address. In examining do_mem_md(), I
>> noticed CONFIG_HAS_DATAFLASH.
>
> Did you? I don't see any CONFIG_HAS_DATAFLASH anywhere in cmd_mem.c
int do_mem_md ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
{
ulong addr, length;
#if defined(CONFIG_HAS_DATAFLASH)
ulong nbytes, linebytes;
#endif
I'm not imagining things.
> And this is expected - the "md" command is, as the name suggests,
> intended for Memory Dumps. "Memory" is defined as something that can
> be read by just putting the address on the address bus and reading
> the corresponding data from the data bus, without need for any
> additional code or access protocols. On hardware where
> CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS is needed, you cannot really
> apply the term "memory" to such a flash device - it is a storage
> device, but not more.
Fair enough, but I was hoping there'd be an easy way to get md to work.
--
Timur Tabi
Linux kernel developer at Freescale
next prev parent reply other threads:[~2010-03-05 19:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-05 17:15 [U-Boot] What is CONFIG_HAS_DATAFLASH? Timur Tabi
2010-03-05 19:17 ` Wolfgang Denk
2010-03-05 19:23 ` Timur Tabi [this message]
2010-03-05 20:43 ` Wolfgang Denk
2010-03-05 20:46 ` Timur Tabi
2010-03-08 16:02 ` Detlev Zundel
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=4B915A1F.90206@freescale.com \
--to=timur@freescale.com \
--cc=u-boot@lists.denx.de \
/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