[U-Boot] [PATCH] MIPS: board.c: fix monitor length calculations

Gabor Juhos juhosg at openwrt.org
Wed Jan 16 18:43:42 CET 2013


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 <juhosg at openwrt.org>
> Cc: Daniel Schwierzeck <daniel.schwierzeck at googlemail.com>

Forget this. It still does not work as expected.

-Gabor


More information about the U-Boot mailing list