<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'>
<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'>> 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'>> > 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'>> > 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'>> > 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'>> ..<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'>> > U-Boot> 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'>> > 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'>> > U-Boot><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'>> ><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'>>
----------------------------------------------------------------------<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'>> ----<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'>> --<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'>> ><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'>> >
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'>> > 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'>> <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'>> 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'>> <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'>> --- 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
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'>> +++ 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
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'>> @@ -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'>>
/* 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'>>
if ( (addr2info(dest) != NULL) #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'>>
- &&
(!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'>>
+ &&
(!addr_dataflash(addr)) && (!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'>> #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'>>
) {<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'>>
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'>> <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'>> 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'>> <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'>> --- 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'>> +++ 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
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'>> @@ -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'>>
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'>> <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'>>
for (i=0, info=&flash_info[0]; i<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'>> ++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'>>
+
if (info->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'>>
+
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'>>
if (info->flash_id != FLASH_UNKNOWN &&<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'>>
addr >= info->start[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'>>
/* 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'>> <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'>> --<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'>> 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'>> 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'>
I tested many export version tag from the U-Boot git tree, it’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> 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'>
<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'>
With Mr. Andrey’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 > 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'>
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> </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> </o:p></span></font></p>
</div>
</body>
</html>