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]
Dear Groups:
My board contains: AT91RM9200 DataFlash:AT45DB642 (without nand
flash)
Crosstool: ELDK4.0 for arm
UBoot: Get from www.denx.de with git, and update to most recent
code.
UBoot Config file: at91rm9200dk_config
At fist, I compiled the uboot with at91rm9200dk config, but it halt
after boot and without prompt. It's work after I add some definition in the file include/configs/at91rm9200dk.h like this:
----------------------------------------------------------------------------
#define CONFIG_ENV_OVERWRITE
#define CONFIG_SKIP_LOWLEVEL_INIT
#define CFG_ENV_IS_IN_DATAFLASH
----------------------------------------------------------------------------
I think this is very confuse for a uboot user, it waste me many time
to find out the correct way to make it work, I think it should be with a simple define to make sure if you boot from dataflash.
The good message is my board can show uboot prompt now, the bad
message is when I try to erase the DataFlash, it shows error like this:
----------------------------------------------------------------------------
*--------------------------------------*
DataFlash[15Mhz]:AT45DB642
Nb pages: 8192 Page Size: 1056
Size= 8650752 bytes
Logical address: 0xC0000000
*--------------------------------------*
1: Download Dataflash [addr]
2: Read Dataflash [addr]
3: Start UBOOT [C0008000 => 20000000]
*--------------------------------------*
Enter:
Load UBOOT from dataflash[c0008000] to SDRAM[21f00000] PLLA[180MHz], MCK[60Mhz] ==> Start UBOOT
U-Boot 1.1.4 (May 8 2006 - 20:12:59)
DRAM: 64 MB Atmel: Flash: 0 kB DataFlash:AT45DB642 Nb pages: 8192 Page Size: 1056
Size= 8650752 bytes
Logical address: 0xC0000000
Area 0: C0000000 to C0007FFF (RO)
Area 1: C0008000 to C001FFFF (RO)
Area 2: C0020000 to C0027FFF
Area 3: C0028000 to C083FFFF
*** Warning - bad CRC, using default environment
In: serial Out: serial Err: serial
U-Boot> erase c0020000 c0027fff
Error: start address not on sector boundary
U-Boot>
----------------------------------------------------------------------------
Does anybody know how to solve with this?
Thanks a lot!
KylongMu
Quoted 3 lines · KylongMu
Dear Groups:
My board contains: AT91RM9200 DataFlash:AT45DB642 (without nand
flash)
...
Quoted 7 lines
U-Boot> erase
c0020000c0027fff
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:
common/cmd_mem.c 2005-09-14 22:47:03.000000000 +0400 renamed from common/cmd_mem.c 2005-09-14 22:45:12.000000000 +0400 +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 +0400 renamed from common/flash.c 2005-08-14 03:53:35.000000000 +0400 +2 -0
@@ -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
Signature · 2 lines
With best regards, Andrey Vasilyev