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.

AM5728: u-boot

Part Number: AM5728

For the AM5728 idk like board, we are gonging to upgrade the u-boot to the latest version Ti uboot ti-u-boot-2021.01-rc4.

I have build error in Oracle VM VirtualBox.

The command I use

 sudo make ROSS_COMPILE=/home/builder_macjine/gcc-linaro-6.2.1-2-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- ARCH=arm distclean

 sudo make ROSS_COMPILE=/home/builder_macjine/gcc-linaro-6.2.1-2-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- ARCH=arm O=u-boot-sdcard am57xx_evm_defconfig

 sudo make ROSS_COMPILE=/home/builder_macjine/gcc-linaro-6.2.1-2-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- ARCH=arm O=u-boot-sdcard


Is Ti uboot ti-u-boot-2021.01-rc4

 

  • Is Ti uboot ti-u-boot-2021.01-rc4  a right version?

  • The build error is caused by the Makefile, we need add option for MK_ARCH in the command line.
    I try to add either "armv7l" or "armv8l", but still get error.

    sudo make ROSS_COMPILE=/home/builder_macjine/gcc-linaro-6.2.1-2-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- MK_ARCH=armv7l distclean

    What command do wen should use?

    Makefile:

    # Determine host architecture
    include include/host_arch.h
    MK_ARCH="${shell uname -m}"
    unexport HOST_ARCH
    ifeq ("x86_64", $(MK_ARCH))
      export HOST_ARCH=$(HOST_ARCH_X86_64)
    else ifneq (,$(findstring $(MK_ARCH), "i386" "i486" "i586" "i686"))
      export HOST_ARCH=$(HOST_ARCH_X86)
    else ifneq (,$(findstring $(MK_ARCH), "aarch64" "armv8l"))
      export HOST_ARCH=$(HOST_ARCH_AARCH64)
    else ifeq ("armv7l", $(MK_ARCH))
      export HOST_ARCH=$(HOST_ARCH_ARM)
    else ifeq ("riscv32", $(MK_ARCH))
      export HOST_ARCH=$(HOST_ARCH_RISCV32)
    else ifeq ("riscv64", $(MK_ARCH))
      export HOST_ARCH=$(HOST_ARCH_RISCV64)
    endif
    undefine MK_ARCH

  • Hi Frank,

    I am using this version: arm-none-linux-gnueabihf-gcc --version
    arm-none-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025
    Copyright (C) 2019 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


    git checkout v2021.01-rc4

    Commands used:

    make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- distclean
    make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- am57xx_evm_defconfig
    make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf-  -j8
    

    Please resolve this issue.

    Best Regards,
    Keerthy