From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?B?aGFja2x1LnVib290?= Date: Mon, 18 Apr 2011 09:47:59 +0800 Subject: [U-Boot] =?utf-8?q?is_any_bug_in_cp=3F?= References: , <201104151401034442433@gmail.com>, Message-ID: <201104180947513911895@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 'cp' can also copy from flash to another bank of flash. I have test it. thanks all the same ------------------ hacklu.uboot 2011-04-18 ------------------------------------------------------------- ????????????Charles Krinke ???????????????2011-04-15 22:02:13 ????????????hacklu.uboot ?????????u-boot ?????????Re: [U-Boot] is any bug in cp? This makes sense as one should *not* copy from one sector in a flash to the same sector in a flash. Flash is erased in sectors, usually 128K and should be treated as a complete sector. The cp command is usually used to copy from RAM to FLASH or from FLASH to RAM. What you are doing seems illogical. Charles On Thu, Apr 14, 2011 at 11:01 PM, hacklu.uboot wrote: > hi,in my uboot. > > there is some bugs when I cp to flash like this: > cp.b addr1 addr2 0x100 > > when the two addr in the same bank of a flash. it go wrongs > > finally the date of addr2 is 0x8080808080... > > cp to another bank of flash is work correctly. > cp from mem to flash or from flash to mem also correctly. > > how is this??? > > > _______________________________________________ > U-Boot mailing list > U-Boot at lists.denx.de > http://lists.denx.de/mailman/listinfo/u-boot > > -- Charles Krinke