[U-Boot] Master branch broken for omap4_panda (SPL_BUILD)

Aneesh V
2011-10-04T14:15:36Z

Hi Sergio,

On Tuesday 04 October 2011 12:20 AM, Aguirre, Sergio wrote:
> Hi all,
>
> I'm trying to build this commit:
>
> http://git.denx.de/?p=u-boot.git;a=commit;h=7b8ffea2ac44097ed1c99ba70b8c6a4cf12ba0b4
>
> with:
>
> make omap4_panda_config
> make
>
> But it fails for spl build, while trying to link libfat.o with
> malloc()/free() functions.
>
> Git-bisect throws this commit to blame:
>
> http://git.denx.de/?p=u-boot.git;a=commit;h=ac4977719e157bcb3c45c70d9dd781164727530d
>
> Has anyone seen this?

Yes, I tried this just now and I am also facing this issue. I can fix
the build issue using the following change. But that doesn't solve the
problem. We do not have heap in SPL. So, this is a real serious problem
for any SPL that has FAT support. I will try to setup a heap in SDRAM
as soon as I get some time to work on this.

---
diff --git a/common/Makefile b/common/Makefile
index 2edbd71..b424beb 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -29,7 +29,6 @@ LIB = $(obj)libcommon.o
ifndef CONFIG_SPL_BUILD
COBJS-y += main.o
COBJS-y += command.o
-COBJS-y += dlmalloc.o
COBJS-y += exports.o
COBJS-$(CONFIG_SYS_HUSH_PARSER) += hush.o
COBJS-y += image.o
@@ -176,6 +175,7 @@ COBJS-$(CONFIG_USB_KEYBOARD) += usb_kbd.o
endif

COBJS-y += console.o
+COBJS-y += dlmalloc.o
COBJS-y += memsize.o
COBJS-y += stdio.o

>
> Regards,
> Sergio
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot