[U-Boot] [HELP] coldfire, bss.variable offset greater than __bss_end
Angelo Dureghello
angelo70 at gmail.com
Sat Sep 10 17:51:02 CEST 2011
Hi all,
i reply just to close the thread and to help each other that can have similar issues, this since i have seen other boards that can have the same issue.
The issue was related to my custom board, and more properly was that the linker added some other .bss.* variables after __bss_end__ , that of course u-boot was not relocating into sdram. Error was in my board-related u-boot.lds:
WRONG
__bss_start = .;
.bss (NOLOAD) :
{
_sbss = .;
*(.sbss)
*(.bss) <----
*(COMMON)
. = ALIGN(4);
_ebss = .;
}
CORRECT
__bss_start = .;
.bss (NOLOAD) :
{
_sbss = .;
*(.sbss*)
*(.bss*)
*(COMMON)
. = ALIGN(4);
_ebss = .;
}
regards,
angelo
-------- Original Message --------
Subject: [HELP] coldfire, bss.variable offset greater than __bss_end
Date: Sat, 10 Sep 2011 00:41:58 +0200
From: Angelo Dureghello <angelo70 at gmail.com>
To: U-Boot at lists.denx.de <U-Boot at lists.denx.de>
Hi all,
after a recent update and compiling u-boot, bootloader get locked trying to set a global variable, just after sdram relocation.
Exactly, the program lock here:
1529 void mem_malloc_init(ulong start, ulong size)
1530 {
1531 mem_malloc_start = start; <<<---program paralize here
Tracing the variable offset in memory, i have seen this variable is located a little bit outside (higher address) of the total 16M SDRAM memory size.
Investigating further, in the map file, the issue seems to be that u-boot assign a memory space that is:
len = (ulong)&__bss_end__ - CONFIG_SYS_MONITOR_BASE;
But from the map file the variable seems to have an offset greater than __bss_end :
.bss.mem_malloc_start
0xffc159c8 0x4
.bss.mem_malloc_start
0xffc159c8 0x4 common/libcommon.o
0xffc159c8 mem_malloc_start
.....
.bss 0xffc13e00 0x1544
0xffc13e00 _sbss = .
*(.sbss)
*(.bss)
*(COMMON)
COMMON 0xffc13e00 0x4 arch/m68k/lib/libm68k.o
0xffc13e00 monitor_flash_len
u-boot.lds has been checked many times, i don't see any issue on it.
I am using this compiler:
m68k-elf-gcc --version
m68k-elf-gcc (GCC) 4.2.4
Copyright (C) 2007 Free Software Foundation, Inc.
Any help is really appreciated.
regards,
angelo
More information about the U-Boot
mailing list