From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gabor Juhos Date: Wed, 16 Jan 2013 18:43:42 +0100 Subject: [U-Boot] [PATCH] MIPS: board.c: fix monitor length calculations In-Reply-To: <1358347153-31678-1-git-send-email-juhosg@openwrt.org> References: <1358347153-31678-1-git-send-email-juhosg@openwrt.org> Message-ID: <50F6E6CE.6000408@openwrt.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 2013.01.16. 15:39 keltez?ssel, Gabor Juhos ?rta: > The current code uses the CONFIG_SYS_MONITOR_BASE > constant to calculate the size of the reserved > memory for U-Boot. The constant is also used > explicitly to calcualte the value of the > monitor_flash_len variable. > > However this leads to miscalculated values if > CONFIG_SYS_TEXT_BASE != CONFIG_SYS_MONITOR_BASE. > > Use the linked address of the _start symbol in > the calculations to fix the miscalculated values. > > Also print the calculated monitor length if > debug is enabled. > > Signed-off-by: Gabor Juhos > Cc: Daniel Schwierzeck Forget this. It still does not work as expected. -Gabor