<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="chsdate"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="chmetcnv"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:SimSun;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:SimSun;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=ZH-CN link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'>Dear Group:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; On Tue, May 09, 2006
at 07:11:52PM +0800, KylongMu wrote:<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; &gt; Dear Groups:<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; &gt; &nbsp;&nbsp; My board
contains: AT91RM9200 DataFlash:AT45DB642 (without nand<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; &gt; flash)<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; ..<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; &gt; U-Boot&gt; erase
c<st1:chmetcnv TCSC="0" NumberType="1" Negative="False" HasSpace="True"
SourceValue="20000" UnitName="C" w:st="on">0020000 c</st1:chmetcnv>0027fff<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; &gt; Error: start
address not on sector boundary<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; &gt; U-Boot&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; &gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt;
----------------------------------------------------------------------<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; ----<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; --<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; &gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; &gt; &nbsp;&nbsp;
Does anybody know how to solve with this?<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; &gt; Thanks a lot!<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; <o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; Perhaps, this patch
will help you:<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; <o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; --- u-boot-<st1:chsdate
IsROCDate="False" IsLunarDate="False" Day="30" Month="12" Year="1899" w:st="on">1.1.3</st1:chsdate>/common/cmd_mem.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
2005-09-14 22:45:12.000000000 +0400<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; +++ u-boot-<st1:chsdate
IsROCDate="False" IsLunarDate="False" Day="30" Month="12" Year="1899" w:st="on">1.1.3</st1:chsdate>-new/common/cmd_mem.c&nbsp;&nbsp;
2005-09-14 22:47:03.000000000 +0400<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; @@ -423,7 +423,7 @@<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
/* check if we are copying to Flash */<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
if ( (addr2info(dest) != NULL)&nbsp; #ifdef CONFIG_HAS_DATAFLASH<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt;
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;&amp;
(!addr_dataflash(addr))<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;&amp;
(!addr_dataflash(addr)) &amp;&amp; (!addr_dataflash(dest))<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt;&nbsp; #endif<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
) {<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
int rc;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; <o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; If it will not solve
the problem, try this:<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; <o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; --- u-boot-<st1:chsdate
IsROCDate="False" IsLunarDate="False" Day="30" Month="12" Year="1899" w:st="on">1.1.4</st1:chsdate>/common/flash.c
2005-08-14 03:53:35.000000000 +0400<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; +++ u-boot-<st1:chsdate
IsROCDate="False" IsLunarDate="False" Day="30" Month="12" Year="1899" w:st="on">1.1.4</st1:chsdate>-new/common/flash.c&nbsp;&nbsp;&nbsp;&nbsp;
2005-09-15 01:15:58.000000000 +0400<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; @@ -105,6 +105,8 @@<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
int i;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; <o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
for (i=0, info=&amp;flash_info[0]; i&lt;CFG_MAX_FLASH_BANKS; ++i, <o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; ++info) {<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
if (info-&gt;size == 0)<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt;
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
continue;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
if (info-&gt;flash_id != FLASH_UNKNOWN &amp;&amp;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
addr &gt;= info-&gt;start[0] &amp;&amp;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
/* WARNING - The '- 1' is needed if the flash<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; <o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; --<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt; With best regards,<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>&gt;&nbsp;&nbsp; Andrey
Vasilyev<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
I tested many export version tag from the U-Boot git tree, it&#8217;s shows
this error message:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'>U-Boot&gt; cp.b <st1:chmetcnv
TCSC="0" NumberType="1" Negative="False" HasSpace="True" SourceValue="22000000"
UnitName="C" w:st="on">22000000 c</st1:chmetcnv>0300000 1024<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'>Copy to Flash... -F- Data
Abort detected<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
With Mr. Andrey&#8217;s patch, I only modified with </span></font><font size=1
face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:Arial'>common/cmd_mem.c
, after this modification, the dataflash<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'>Work OK!<font color=navy><span style='color:navy'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'>U-Boot &gt; cp.b <st1:chmetcnv
TCSC="0" NumberType="1" Negative="False" HasSpace="True" SourceValue="22000000"
UnitName="C" w:st="on">22000000 c</st1:chmetcnv>0300000 1024<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'>Copy to DataFlash... done<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
So, I hope this patch can be applied to main tree.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'>Cordially,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'>KylongMu<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>