
em.. how linux does that? does linux read the data to mem first before it write to the same bank of a nor flash?
thanks much~
------------------ hacklu.uboot 2011-04-15
------------------------------------------------------------- 发件人:Wolfgang Denk 发送日期:2011-04-15 16:44:47 收件人:hacklu.uboot 抄送:u-boot 主题:Re: [U-Boot] is any bug in cp?
Dear "hacklu.uboot",
In message 201104151401034442433@gmail.com you wrote:
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.
You cannot copy directly within the same bank of NOR flash. While in programming mod, you cannot read any user data from that device. This is a "feature" of how NOR flash works and no bug in the code. Just don't do it.
Best regards,
Wolfgang Denk