[U-Boot] Compiling a debug version of u-boot on panda board

Hi all,
I want to compile a u-boot with debug enable.But i am getting some problem in that.
I am using omap4460 panda board. When i am enabling DEBUG in config file(include/configs/omap4_panda.h). I am getting error that .rodaata not fit in region .sram , sram overflowed (might be because the size of spl image is larger then expected).
Is there any way to enable DEBUG to whole u-boot source code.
Waiting for your views on this problem.

Hi Vikram, On Monday 02 December 2013 04:01 PM, Vikram Singh Shekhawat wrote:
Hi all,
I want to compile a u-boot with debug enable.But i am getting some problem in that.
I am using omap4460 panda board. When i am enabling DEBUG in config file(include/configs/omap4_panda.h). I am getting error that .rodaata not fit in region .sram , sram overflowed (might be because the size of spl image is larger then expected).
Is there any way to enable DEBUG to whole u-boot source code.
Since you are trying to debug, you can try the following diif:
diff --git a/include/configs/omap4_common.h b/include/configs/omap4_common.h index ea56eeb..9e9b955 100644 --- a/include/configs/omap4_common.h +++ b/include/configs/omap4_common.h @@ -149,8 +149,8 @@ "fi"
/* Defines for SPL */ -#define CONFIG_SPL_TEXT_BASE 0x40304350 -#define CONFIG_SPL_MAX_SIZE (38 * 1024) +#define CONFIG_SPL_TEXT_BASE 0x40300350 +#define CONFIG_SPL_MAX_SIZE (0x4030C000 - CONFIG_SPL_TEXT_BASE) #define CONFIG_SPL_DISPLAY_PRINT #define CONFIG_SPL_LDSCRIPT "$(CPUDIR)/omap-common/u-boot-spl.lds"
This will increase the SPL_MAX_SIZE.
Please let me know if you need more info.
Thanks and regards, Lokesh
Waiting for your views on this problem.
U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
participants (2)
-
Lokesh Vutla
-
Vikram Singh Shekhawat