[U-Boot-Users] Testing todays u-boot-fdt

Jerry Van Baren gerald.vanbaren at smiths-aerospace.com
Thu Apr 19 15:28:52 CEST 2007


Wolfgang Grandegger wrote:
> Hi Jerry,
> 
> I gave the fdtlib of your git://cideas.us/pub/scm/u-boot/u-boot-fdt.git
> a try on my Icecube board. I got it built with the attached patch. 
> libfdt was actually not made and the second hunk fixes a warning 
> (=bug?). Then I was able to read and list a blob in memory:

[snip]

> diff --git a/Makefile b/Makefile
> index 9a27bc2..94cda54 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -219,6 +219,7 @@ LIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
>  LIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
>  	"post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
>  LIBS += common/libcommon.a
> +LIBS += libfdt/libfdt.a
>  LIBS += $(BOARDLIBS)
>  
>  LIBS := $(addprefix $(obj),$(LIBS))

Ahh, that is not a bug, you fixed the wrong file.  You need to add 
libfdt/libfdt.a to your board's BOARDLIBS in your board's config file 
(see line after your addition - been there, did the same thing ;-). 
There is no point building libfdt.a if it isn't used.

Best regards,
gvb




More information about the U-Boot mailing list