[U-Boot-Users] troubles

Hi people!
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? Thank
Alexandr

Alexandr Kuleschov kuleschov@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
participants (2)
-
Alexandr Kuleschov
-
Anders Larsen