[U-Boot-Users] bug in relocation fixup, was: Hang in env_relocate
Rune Torgersen
runet at innovsys.com
Tue Oct 23 00:28:37 CEST 2007
> From: Rune Torgersen
> I am trying to update a board (Freescale 8280 cpu) from
> u-boot 1.1.4 to
> 1.3.0-rc3
> Right now it is hanging in env_relocate (env_common.c:124).
> It is calling malloc for a size of 64k (65536) and malloc is
> hanging in
> a for loop in dlmalloc.c:2191
Not yet sure WHY this is happening, but I did figure out that the
relocation fixup causes it.
If I undefine CONFIG_RELOC_FIXUP_WORKS in include/common.h for 8260, my
board boots.
Also if I back out commits f82b3b6304b620ef7e28bfaa1ea887a2ad2fa325
and e9514751cfa5cce61ea699fa0d3eb37898a5eeb5 I can boot.
When I tried to debug, I noticed that the malloc start address was not
0x0ffxxxxxx range as it should be, but was instead in teh 0xfffxxxxx
range, and the length was negative.
More information about the U-Boot
mailing list