This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

리눅스 / AM5718 : SDK U-boot compile Error

Part Number: AM5718

Tool/software: Linux

Hi,

SDK : ti-processor-sdk-linux-rt-am57xx-evm-05.00.00.15

Toolchain : ARM GCC 8.3 2019.03 hard-float toolchain

u-boot : u-boot-2018.01

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

The following problems occur when compiling the boot loader.

Do you know the cause?

LD lib/built-in.o
LD u-boot
/toolchain/bin/arm-linux-gnueabihf-ld.bfd: cmd/built-in.o: in function `print_cpu_list':
/sanion/RGBTest/bsp/u-boot-2018.01/cmd/cpu.c:35: undefined reference to `cpu_get_desc'
/toolchain/bin/arm-linux-gnueabihf-ld.bfd: /sanion/RGBTest/bsp/u-boot-2018.01/cmd/cpu.c:40: undefined reference to `cpu_get_info'
make[1]: *** [Makefile:1261: u-boot] error 1
make[1]: directory '/sanion/RGBTest/bsp/u-boot-2018.01' out
make: *** [Makefile:77: boot] error 2

  • Hi Sunmin,

    What is your host OS?

    On my side I have Ubuntu 16.04 LTS 64-bit

    Regards,
    Pavel

  • Hi,

    The host OS is Ubuntu 19.04 64-bit.

  • Sunmin,

    Sunmin Kim said:

    SDK : ti-processor-sdk-linux-rt-am57xx-evm-05.00.00.15

    Toolchain : ARM GCC 8.3 2019.03 hard-float toolchain

    This PSDK Linux-RT 5.00 comes with Linaro GCC 7.2.1 2017.11 hard-float toolchain

    ti-processor-sdk-linux-rt-am57xx-evm-05.00.00.15/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc-7.2.1

     

    Please use this toolchain and follow the below steps to build u-boot.

     

    {HOME}/ti-processor-sdk-linux-rt-am57xx-evm-05.00.00.15/board-support/u-boot-2018.01+gitAUTOINC+131dc82830-g131dc82830$ export PATH={HOME}/ti-processor-sdk-linux-rt-am57xx-evm-05.00.00.15/linux-devkit/sysroots/x86_64-arago-linux/usr/bin:$PATH

    {HOME}/ti-processor-sdk-linux-rt-am57xx-evm-05.00.00.15/board-support/u-boot-2018.01+gitAUTOINC+131dc82830-g131dc82830$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distclean

    {HOME}/ti-processor-sdk-linux-rt-am57xx-evm-05.00.00.15/board-support/u-boot-2018.01+gitAUTOINC+131dc82830-g131dc82830$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=am57xx_evm am57xx_evm_defconfig

    {HOME}/ti-processor-sdk-linux-rt-am57xx-evm-05.00.00.15/board-support/u-boot-2018.01+gitAUTOINC+131dc82830-g131dc82830$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=am57xx_evm

     

    Regards,
    Pavel