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.

PROCESSOR-SDK-AM57X: Version: 08.02.01.00 - Trouble Building BSP

Part Number: PROCESSOR-SDK-AM57X

I'm following https://software-dl.ti.com/processor-sdk-linux/esd/AM57X/08_02_01_00/exports/docs/linux/Overview_Building_the_SDK.html

I have installed gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu and gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf per the note that both ARMv7 and ARMv8 cross compilers are required.

When I go to 'bitbake tisdk-default-image' I get errors that state that my ARMv5 compiler (gcc-arm-9.2-ti2020.01-armv5-x86_64-arm-none-linux-gnueabi) is missing. Where can I download this from? Is it actually required?

The guide states "Download the toolchain compilers from the links provided in the SDK release page" but I'm not sure which SDK release page this is referring to and there is no hyper link.

  • Hi,

    Can you please share the entire build commands and the log?

    If it helps, please check the process of building outlined here: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1114480/tda4vm-tda4vm-8-2sdk-yocto-build-failed/4154642#4154642 starting from the SDK installation. It may help resolve some other issues that you would eventually encounter too.

    Regards

    Karthik

  • Hey Karthik,

    Here are the commands I am running in my Ubuntu 18.04 build server.

    # ran the AM57X 08_02_01_00 SDK for Linux installer in a Ubuntu 18.04 build server
    
    sudo apt-get update
    sudo apt-get install build-essential autoconf \
          automake bison \
          flex libssl-dev bc u-boot-tools \
          python diffstat \
          texinfo gawk chrpath dos2unix \
          wget unzip socat doxygen libc6:i386 \
          libncurses5:i386 libstdc++6:i386 \
          libz1:i386 g++-multilib \
          git python3-distutils python3-apt
        
    sudo dpkg-reconfigure dash   # answer no
    
    #Per the SDK Build steps, install ARm v7 and v8 compilers... why arent these commands included in the guide? Did I install the correct ones?
    mkdir ~/TOOLCHAIN
    wget https://developer.arm.com/-/media/Files/downloads/gnu-a/9.2-2019.12/binrel/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf.tar.xz
    tar -Jxvf gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf.tar.xz -C ~/TOOLCHAIN
    wget https://developer.arm.com/-/media/Files/downloads/gnu-a/9.2-2019.12/binrel/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz
    tar -Jxvf gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz -C ~/TOOLCHAIN
    rm gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf.tar.xz gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz
    
    cd yocto-build
    ./oe-layertool-setup.sh -f configs/processor-sdk-linux/processor-sdk-linux-08_02_01_00.txt
    cd build
    echo "INHERIT += \"own-mirrors\"" >> conf/local.conf
    echo "SOURCE_MIRROR_URL = \"https://software-dl.ti.com/processor-sdk-mirror/sources/\"" >> conf/local.conf
    echo "ARAGO_BRAND  = \"psdkla\"" >> conf/local.conf
    echo "DISTRO_FEATURES_append = \" virtualization\"" >> conf/local.conf
    echo "IMAGE_INSTALL_append = \" docker\"">> conf/local.conf
    echo "TOOLCHAIN_BASE = \"/home/tloan/TOOLCHAINS\"">> conf/local.conf
    echo "MACHINE ?= \"am57xx-evm\"">> conf/local.conf
    . conf/setenv
    bitbake -k tisdk-default-image
    
    
    

    As I mentioned, these steps are from here: https://software-dl.ti.com/processor-sdk-linux/esd/AM57X/08_02_01_00/exports/docs/linux/Overview_Building_the_SDK.html

    These recommended steps yield the following error:

    tloan@ubuntu1804:~/AM5-psdk8.02.02/yocto-build/build$ bitbake tisdk-default-image
    ERROR: Unable to start bitbake server (None)
    ERROR: Server log for this session (/home/tloan/AM5-psdk8.02.02/yocto-build/build/bitbake-cookerdaemon.log):
    --- Starting bitbake server pid 59632 at 2022-07-25 09:43:59.464310 ---
    ERROR: ParseError at /home/tloan/AM5-psdk8.02.02/yocto-build/sources/meta-arago/meta-arago-distro/conf/distro/arago.conf:207: Could not include required file conf/distro/include/branding-psdkla.inc

    Heads up that I cannot build the SDK according to the provided steps.

    I remove the following line from the conf/local.conf since it seems to cause issues:

    ARAGO_BRAND  = "psdkla"

    is conf/distro/include/branding-psdkla.inc missing by mistake or are the steps wrong?

    When I go to rebuild I get errors complaining about the missing ARM v5 toolchain:

    tloan@ubuntu1804:~/AM5-psdk8.02.02/yocto-build/build$ bitbake tisdk-default-image
    ERROR: Unable to start bitbake server (None)
    ERROR: Server log for this session (/home/tloan/AM5-psdk8.02.02/yocto-build/build/bitbake-cookerdaemon.log):
    --- Starting bitbake server pid 59681 at 2022-07-25 09:52:00.214220 ---
    ERROR: Failed to obtain external Arm toolchain version: Execution of '/home/tloan/TOOLCHAINS/am5-psdk-8.02/gcc-arm-9.2-ti2020.01-armv5-x86_64-arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -v' failed: command not found
    ERROR: Failed to obtain external Arm toolchain version: Execution of '/home/tloan/TOOLCHAINS/am5-psdk-8.02/gcc-arm-9.2-ti2020.01-armv5-x86_64-arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -v' failed: command not found
    ERROR: Error: EXTERNAL_TOOLCHAIN path '/home/tloan/TOOLCHAINS/am5-psdk-8.02/gcc-arm-9.2-ti2020.01-armv5-x86_64-arm-none-linux-gnueabi' does not exist

    Is the ARM v5 toolchain actually required or are there problems with the BSP? Where do I install it from?

    I reviewed the link you shared, sorry but I do not see its relevance at this time.

  • Hi,

    I'm pretty sure that I have tried this previously and it worked, but I'm recreating this environment and will provide my detailed feedback.

    Thank you so much for providing the details, it definitely seems like a few fixups are required in the documentation. Will come back with a complete list.

    Regards

    Karthik

  • Hi,

    Can you please just try this below procedure on a fresh installation?

    The build has started for me, and I will let it run overnight and report back the results in the morning.

    Issues found so far:

    1. echo "ARAGO_BRAND = \"psdkla\"" >> conf/local.conf  #this is not required and should be removed.

    Regards

    Karthik

    # ran the AM57X 08_02_01_00 SDK for Linux installer in a Ubuntu 18.04 build server

    mkdir ~/TOOLCHAIN
    wget developer.arm.com/.../gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf.tar.xz
    tar -Jxvf gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf.tar.xz -C ~/TOOLCHAIN
    wget developer.arm.com/.../gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz
    tar -Jxvf gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz -C ~/TOOLCHAIN
    rm gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf.tar.xz gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz

    cd yocto-build
    ./oe-layertool-setup.sh -f configs/processor-sdk-linux/processor-sdk-linux-08_02_01_00.txt
    cd build

    . conf/setenv

    TOOLCHAIN_BASE=~/TOOLCHAIN MACHINE=am57xx-evm bitbake -k tisdk-default-image

  • Did your build complete successfully?

    I was able to start the build with your simplified build steps using a fresh SDK installation (the error about the missing ARMv5 toolchain stopped coming up), but now I keep encountering build errors due to missing dependencies that weren't covered in the Host Setup section.

    I am working my way through these errors by installing the missing dependency before cleaning/rebuilding the failed bitbake recipe, however it seems to be never ending process...  

    Is PROCESSOR-SDK-AM57X: Version: 08.02.01.00 in a good place to evaluate at this time (ie should I continue trying?)?

  • "The build has started for me, and I will let it run overnight and report back the results in the morning." - Karthik

    Were you ever able to build this release? 

  • Is PROCESSOR-SDK-AM57X: Version: 08.02.01.00 being supported by TI?

  • Sorry about the delay in posting a response here. 

    Yes, the SDK PROCESSOR-SDK-AM57X: Version: 08.02.01.00 is supported by TI.

    The build was successful at my end, and here are the set of commands that I ran on my side:

    wget dr-download.ti.com/.../ti-processor-sdk-linux-am57xx-evm-08_02_01_00-Linux-x86-Install.bin
    chmod +x ti-processor-sdk-linux-am57xx-evm-08_02_01_00-Linux-x86-Install.bin
    ./ti-processor-sdk-linux-am57xx-evm-08_02_01_00-Linux-x86-Install.bin --mode unattended --prefix `pwd`
    cd yocto-build/
    ./oe-layertool-setup.sh -f ../configs/processor-sdk-linux-08_02_01_00.txt
    cd build/
    cd ../sources/meta-ti/
    git cherry-pick 39fa0c1d3d020d5239c067e103e2f429ef0fcfc7
    git cherry-pick 9e6c7d69d8d5700ff22ca03a3d1d1b04bce88f85
    git cherry-pick ccbe45c06b2fddf73b4a5c596214fc86b0968d39
    cd -

    . conf/setenv
    TOOLCHAIN_BASE=/sdk/tools MACHINE=am57xx-evm bitbake -k tisdk-default-image

    Can you please update the status of the build at your end?