From mboxrd@z Thu Jan 1 00:00:00 1970 From: S. Egbert Date: Wed, 08 Feb 2006 21:48:31 -0800 Subject: [U-Boot-Users] Regarding memory commands In-Reply-To: <2195AF8E2250C54D8D8A726C8AE84A3331C2C8@dbde01.ent.ti.com> References: <2195AF8E2250C54D8D8A726C8AE84A3331C2C8@dbde01.ent.ti.com> Message-ID: <43EAD7AF.6000404@sbcglobal.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Herekar, Aniruddha wrote: > Does memory commands mm, mw, mn and tftp work only with RAM memory and > not flash (nor or nand) memory? > > If so are there any other commands other than 'cp' that can be used to > write into flash (nor or nand) memory? > Basic memory commands (mm. mw) work in any memory region that the hardware supports. You will have to be mindful of certain memory and interface devices using only 16-bit or 8-bit access in a 32-bit architecture. Otherwise, such attempts to use 32-bit read/write will result in the most significant short-word or byte NOT to carry valid data value. TFTP does work writing directly into unprotected FLASH region if the CFG_DIRECT_FLASH_TFTP is defined in your include/configs/.h file.