Dear Group:
> On Tue, May 09, 2006
at 07:11:52PM +0800, KylongMu wrote:
> > Dear Groups:
> > My board
contains: AT91RM9200 DataFlash:AT45DB642 (without nand
> > flash)
> ..
> > U-Boot> erase
c
> > Error: start
address not on sector boundary
> > U-Boot>
> >
>
----------------------------------------------------------------------
> ----
> --
> >
> >
Does anybody know how to solve with this?
> > Thanks a lot!
>
> Perhaps, this patch
will help you:
>
> --- u-boot-
> +++ u-boot-
> @@ -423,7 +423,7 @@
>
/* check if we are copying to Flash */
>
if ( (addr2info(dest) != NULL) #ifdef CONFIG_HAS_DATAFLASH
>
- &&
(!addr_dataflash(addr))
>
+ &&
(!addr_dataflash(addr)) && (!addr_dataflash(dest))
> #endif
>
) {
>
int rc;
>
> If it will not solve
the problem, try this:
>
> --- u-boot-
> +++ u-boot-
> @@ -105,6 +105,8 @@
>
int i;
>
>
for (i=0, info=&flash_info[0]; i<CFG_MAX_FLASH_BANKS; ++i,
> ++info) {
>
+
if (info->size == 0)
>
+
continue;
>
if (info->flash_id != FLASH_UNKNOWN &&
>
addr >= info->start[0] &&
>
/* WARNING - The '- 1' is needed if the flash
>
> --
> With best regards,
> Andrey
Vasilyev
I tested many export version tag from the U-Boot git tree, it’s shows
this error message:
U-Boot> cp.b
Copy to Flash... -F- Data
Abort detected
With Mr. Andrey’s patch, I only modified with common/cmd_mem.c
, after this modification, the dataflash
Work OK!
U-Boot > cp.b
Copy to DataFlash... done
So, I hope this patch can be applied to main tree.
Cordially,
KylongMu