Skip to contentSkip to conversation

troubles

U-Boot-Users Alexandr Kuleschov 2 participants 2 messages Dec 6, 2005

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

Alexandr Kuleschov <[email protected]> schrieb am Dienstag, 6. Dezember 2005 um 09:46 +0100:

Quoted 11 lines

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