From: Wolfgang Denk Date: Fri, 05 Mar 2010 21:43:01 +0100 Subject: [U-Boot] What is CONFIG_HAS_DATAFLASH? In-Reply-To: <4B915A1F.90206@freescale.com> References: <20100305191744.90796E4716D@gemini.denx.de> <4B915A1F.90206@freescale.com> Message-ID: <20100305204301.69038E502AE@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Timur Tabi, In message <4B915A1F.90206@freescale.com> you wrote: > > 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. Hm... What exactly don't you understand here? > >> 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 ... > I'm not imagining things. You are right. I was grepping for CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS instead :-( > Fair enough, but I was hoping there'd be an easy way to get md to work. Why are plain simple memory accesses not possible on your hardware? Which architecture / CPU is this? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Some people march to the beat of a different drummer. And some people tango!