[U-Boot] [PATCH] flread: new command for reading indirect mapped flashes

Wolfgang Denk wd at denx.de
Sun Jul 5 01:39:45 CEST 2009


Dear Mike Frysinger,

In message <1246387465-13156-1-git-send-email-vapier at gentoo.org> you wrote:
> From: Harald Krapfenbauer <Harald.Krapfenbauer at bluetechnix.at>
> 
> The current flash framework generally assumes that the flash in question
> is completely directly addressable.  With the new weak accessor functions,
> that is no longer always the case.  These allow us to hook up flashes
> whose pins are only partially directly addressable while the rest are
> connected to GPIOs.  Since all the erase/write commands go through the

Either you or me misunderstand the purpose of these weak accessor
functions.

> weak accessor functions, those work transparently.  But for reading from
> the flash, the common memory function is still used and this does not go
> through the weak accessor functions.  So we need a dedicated command to
> make sure the weak accessor functions are used to do the actual reading.

Nope. This ain't working.

Either we have flash memory; then it is a mandatory requirent that we
can access the flash memory  using  all  memory  accessing  commands,
including  "cp",  "md"  etc. This is not the case on any devices that
require additional address switching, like  on  processors  that  use
things  like bank switching signals in addition to the normal address
lines.

Otherwise we have some form of storage device, which cannot be
accessed with commands like "cp", "md", or "erase".


NAK.

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
"A dirty mind is a joy forever."                       - Randy Kunkee


More information about the U-Boot mailing list