Skip to contentSkip to conversation

Undefined reference to `boot_relocate_fdt'

U-Boot Juan Pablo Gómez 3 participants 3 messages Nov 3, 2008 – Nov 4, 2008

lore
Share & tools
lore
#0 lore raw

His I'm trying to build u-boot for a xupv2p board, but with the newest version this is appearing during the make :
*
$make xupv2p_config
$make*

-Map u-boot.map -o u-boot
common/libcommon.a(cmd_bootm.o): In function `do_bootm_subcommand':
/home/juanwalker/software/projects/u-boot/common/cmd_bootm.c:505: undefined reference to `boot_relocate_fdt'
make: *** [u-boot] Error 1

Signature · 5 lines
Regards, Juan Pablo

Muchas gracias.

Atentamente, Juan Pablo G?mez
#1 lore raw
Quoted 11 lines · Juan Pablo G?mez

His I'm trying to build u-boot for a xupv2p board, but with the newest version this is appearing during the make :
*
$make xupv2p_config
$make*

-Map u-boot.map -o u-boot
common/libcommon.a(cmd_bootm.o): In function `do_bootm_subcommand':
/home/juanwalker/software/projects/u-boot/common/cmd_bootm.c:505: undefined reference to `boot_relocate_fdt'
make: *** [u-boot] Error 1

Hi Juan,

That is odd. It works for me on a PowerPC target (I don't have microblaze support set up). Your config has CONFIG_LIBFDT enabled, which is why do_bootm_subcommand is calling boot_relocate_fdt. I don't see any obvious reason why boot_relocate_fdt isn't in your build (it is defined in common/image.c and enabled by CONFIG_LIBFDT).

One thing you could do is to save your make output into a log file
make > make.log
and then find the line that compiles image.c (it likely will be the *second* time, the first time is making host tools). Cut and paste it onto the command line (in the common/ subdirectory) BUT CHANGE the flags at the end of the gcc command from:
-c -o image.o image.c
to:
-C -E -o image.pp image.c
This stops after running the preprocessor and puts the result in "image.pp". Maybe you can get a clue what happened to your boot_relocate_fdt() from that???

Best regards,
gvb

#2 lore raw
In reply to Juan Pablo Gómez

Hi Juan,

this change arise with some new patches. Latest v2008.10 release is OK. I will track it where is the problem.
Currently FDT support for microblaze is not in the repo.
Just disable libfdt (comment #define CONFIG_OF_LIBFDT) in config files(ml401.h, xupv2p.h).

Thanks,
Michal

Quoted 22 lines

His I'm trying to build u-boot for a xupv2p board, but with the newest version this is appearing during the make :
*
$make xupv2p_config
$make*

-Map u-boot.map -o u-boot
common/libcommon.a(cmd_bootm.o): In function `do_bootm_subcommand':
/home/juanwalker/software/projects/u-boot/common/cmd_bootm.c:505: undefined reference to `boot_relocate_fdt'
make: *** [u-boot] Error 1

------------------------------------------------------------------------

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