From: Anders Larsen Date: Tue, 06 Dec 2005 10:14:52 +0100 Subject: [U-Boot-Users] troubles In-Reply-To: <954227671.20051206114637@alpha.tula.net> References: <954227671.20051206114637@alpha.tula.net> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Alexandr Kuleschov 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