
Hello!
On Sun, Oct 09, 2005 at 10:58:23PM +0000, zoldnap@freemail.hu wrote:
Hi,
I'm using u-boot 1.1.3 with an AT91 board, however I'm having problems with the dataflash support:
U-Boot downloaded successfully
...
Bank # 1: Atmel: Unknown Chip Type U-Boot> md C0020000 c0020000:Error Timeout -F- Data Abort detected
To me, this seems like u-boot is not honouring that C0000000 should be mapped to the dataflash, instead it wants to read the physical memory at C0000000 which is obviously non existing on this platform.
the "about the "Atmel: Flash: 0 kB" message is normal, since I'm having no NAND and using the atmel developed loader.bin for booting u-boot.
Absence of NAND flash uncovers an issue with flash address ranges checking. The problem can be bypassed with either of two methods:
First: hack address ranges checking in common/flash.c:
--- u-boot-1.1.3/common/flash.c 2005-08-14 03:53:35.000000000 +0400 +++ u-boot-1.1.3-new/common/flash.c 2005-09-15 01:15:58.000000000 +0400 @@ -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
Second: disable NAND flash by setting CFG_MAX_FLASH_BANKS to 0 in board config.
I'm not sure it is right solution, but it at least looks as working for me :)