AnsweredAssumed Answered

How to compile u-boot for p1020rdb-pd

Question asked by Michael Moritsch on Jun 21, 2017
Latest reply on Jul 3, 2017 by Yiping Wang


I need to enable ECC for DDR and therefore need to recompile u-boot with the proper setting.

The u-boot sources are from the QoriQ SDK 2.0 . The toolchain is from "QorIQ Linux SDK v2.0 PPCE500V2 IMAGE.iso". I tried the i686 as well as the x86_64 version. Both with the same result.

To compile i executed the following steps

source /opt/fsl-qoriq/2.0/environment-setup-ppce500v2-fsl-linux-gnuspe

make P1020RDB-PC_config

make all


The build produces the following error:
powerpc-fsl-linux-gnuspe-ld.bfd: _GLOBAL_OFFSET_TABLE_ not defined in linker created .got
powerpc-fsl-linux-gnuspe-ld.bfd: final link failed: Bad value
make: *** [u-boot] Error 1


Does anybody have an idea how to solve this?


Note: I also tried to compile using the toolchain delivered with CodeWarrior, giving me the same error and additional warnings relating to -mrelocatable.



best regards