AT91RM9200 Dataflash op error with U-Boot1.1.4
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 12 lines · KylongMu
Quoted 3 lines
Dear Groups:
My board contains: AT91RM9200 DataFlash:AT45DB642 (without nand
flash)...
Quoted 4 lines
U-Boot> erase
c0020000c0027fff
Error: start address not on sector boundary
U-Boot>--------------------------------------------------------------------------
--Quoted 1 line
Quoted 6 lines
Quoted 2 lines
Does anybody know how to solve with this?
Thanks a lot!Perhaps, this patch will help you:
---
u-boot-1.1.3/common/cmd_mem.c2005-09-14 22:45:12.000000000
+0400
Quoted 1 line
+++
u-boot-1.1.3-new/common/cmd_mem.c2005-09-14 22:47:03.000000000
+0400
common/flash.c 2005-09-15 01:15:58.000000000
Quoted 14 lines
(quoted diff) +1
-1@@ -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:
common/flash.c 2005-09-15 01:15:58.000000000 renamed from common/flash.c 2005-08-14 03:53:35.000000000 +0400 +0
-0
+0400
common/flash.c 2005-09-15 01:15:58.000000000 line 107
Quoted 4 lines
common/flash.c 2005-09-15 01:15:58.000000000 renamed from common/flash.c 2005-08-14 03:53:35.000000000 +0400 +0
-0@@ -105,6 +105,8 @@ int i; for (i=0, info=&flash_info[0]; i<CFG_MAX_FLASH_BANKS; ++i, ++info)
{
Quoted 9 lines
common/flash.c 2005-09-15 01:15:58.000000000 renamed from common/flash.c 2005-08-14 03:53:35.000000000 +0400 +2
-1+ 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
Dear Andrey,
Thanks for your answer. I patched these two files one by one, or
both of them, but all failed, and the error is still.
Thanks a lot!
KylongMu
Quoted 10 lines · KylongMu
Quoted 10 lines · KylongMu
Quoted 3 lines
Dear Groups:
My board contains: AT91RM9200 DataFlash:AT45DB642 (without nand
flash)...
Quoted 3 lines
U-Boot> erase
c0020000c0027fff
Error: start address not on sector boundary
U-Boot>Perhaps, this patch will help you:
...
Quoted 1 line
Quoted 1 line
If it will not solve the problem, try this:
...
Quoted 5 lines
Dear Andrey,
Thanks for your answer. I patched these two files one by one, or
both of them, but all failed, and the error is still.
Thanks a lot!
Oops... My mistake. I've replied without carefully reading your question...
Right answer (I hope): you dont need to erase dataflash. AFAIK, dataflash erasing is performed by driver when you write into dataflash. So, for example, to download binary into c0042000 dataflash "virtual" address, you can use simple "cp" command, without issuing "erase" command first, like this:
loadb 21000000
<sending image 0x12345 bytes long by kermit>
cp.b 21000000 c0042000 12345
Signature · 2 lines
With best regards, Andrey Vasilyev