[U-Boot-Users] troubles

Anders Larsen alarsen at rea.de
Tue Dec 6 10:14:52 CET 2005


Alexandr Kuleschov <kuleschov at alpha.tula.net> schrieb am Dienstag, 6. Dezember 2005 um 09:46 +0100:
>I work with based on AT91RM9200  board. (SDRAM 16Mbitx16)
>When i use "mtest" then U-BOOT does not work
>But if to change a line
>#define CFG_MEMTEST_END  CFG_MEMTEST_START + PHYS_SDRAM_SIZE - 262144
>
>to a line
>
>#define CFG_MEMTEST_END CFG_MEMTEST_START + PHYS_SDRAM_SIZE - 2000000
>works correctly
>
>How to solve a problem?

Hi,

it seems the mtest is overwriting heap and stack.
AFAICT it would suffice to use
#define CFG_MEMTEST_END CFG_MEMTEST_START+PHYS_SDRAM_SIZE-1220608

(PHYS_SDRAM + PHYS_SDRAM_SIZE - TEXT_BASE + CFG_MALLOC_LEN +
 CONFIG_STACKSIZE - 4)

Cheers
 Anders





More information about the U-Boot mailing list