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.

AM3352: Requesting help to clone the TI Linux SDK

Part Number: AM3352

Hi,

We are unable to clone the code as per the instructions provided in this link https://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Overview_Building_the_SDK.html.

The error says that connection timed out. This step was working few weeks before.

Please help us, in resolving this issue.

Regards,

  • The server location has since moved to a ti.com-hosted server. The current/latest SDK documentation should have the correct link in it, see here:

    https://software-dl.ti.com/processor-sdk-linux/esd/AM335X/08_02_00_24/exports/docs/linux/Overview_Building_the_SDK.html

    (Note from your post, even your URL says 'latest' in it, it is unfortunately not the latest-latest, but instead the 'latest' before the URL scheme was migrated to a new scheme. I know it's confusing but the best is always to start out from the SDK product folder like https://www.ti.com/tool/PROCESSOR-SDK-AM335X)

    Regards, Andreas

  • Dear Andreas,

    I followed steps mentioned in this link https://software-dl.ti.com/processor-sdk-linux/esd/AM335X/08_02_00_24/exports/docs/linux/Overview_Building_the_SDK.html

    I ran below command

    ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-08.02.00.23-config.txt

    I noticed that in line 876 "unexpected operator" below message, please help me in resolving this.

    ********** console log **************************************

    /home/administrator/sumanth/tisdk


    cloning repo bitbake

    Cloning into '/home/administrator/sumanth/tisdk/sources/bitbake'...
    remote: Counting objects: 61046, done.
    remote: Compressing objects: 100% (13082/13082), done.
    remote: Total 61046 (delta 46535), reused 60832 (delta 46391)
    Receiving objects: 100% (61046/61046), 12.44 MiB | 5.67 MiB/s, done.
    Resolving deltas: 100% (46535/46535), done.
    Branch '1.46' set up to track remote branch '1.46' from 'origin'.
    Switched to a new branch '1.46'
    Already up to date.
    Note: checking out 'd22cc1e'.

    You are in 'detached HEAD' state. You can look around, make experimental
    changes and commit them, and you can discard any commits you make in this
    state without impacting any branches by performing another checkout.

    If you want to create a new branch to retain commits you create, you may
    do so (now or later) by using -b with the checkout command again. Example:

    git checkout -b <new-branch-name>

    HEAD is now at d22cc1e5 tests/fetch: Handle upstream master -> main branch change


    cloning repo meta-processor-sdk

    Cloning into '/home/administrator/sumanth/tisdk/sources/meta-processor-sdk'...
    remote: Counting objects: 16367, done.
    remote: Compressing objects: 100% (7093/7093), done.
    remote: Total 16367 (delta 8657), reused 15643 (delta 8267)
    Receiving objects: 100% (16367/16367), 38.03 MiB | 2.27 MiB/s, done.
    Resolving deltas: 100% (8657/8657), done.
    Branch 'dunfell' set up to track remote branch 'dunfell' from 'origin'.
    Switched to a new branch 'dunfell'
    Already up to date.
    Note: checking out '716008bc1003478d2e6c3e0c741f0fd80dcee5fb'.

    You are in 'detached HEAD' state. You can look around, make experimental
    changes and commit them, and you can discard any commits you make in this
    state without impacting any branches by performing another checkout.

    If you want to create a new branch to retain commits you create, you may
    do so (now or later) by using -b with the checkout command again. Example:

    git checkout -b <new-branch-name>

    HEAD is now at 716008b u-boot: Apply DDR configuration fix to hs-evm too


    cloning repo meta-arago

    Cloning into '/home/administrator/sumanth/tisdk/sources/meta-arago'...
    remote: Enumerating objects: 40565, done.
    remote: Counting objects: 100% (41/41), done.
    remote: Compressing objects: 100% (36/36), done.
    remote: Total 40565 (delta 10), reused 0 (delta 0), pack-reused 40524
    Receiving objects: 100% (40565/40565), 12.97 MiB | 4.26 MiB/s, done.
    Resolving deltas: 100% (28252/28252), done.
    Branch 'dunfell' set up to track remote branch 'dunfell' from 'origin'.
    Switched to a new branch 'dunfell'
    Already up to date.
    Note: checking out '08.02.00.006'.

    You are in 'detached HEAD' state. You can look around, make experimental
    changes and commit them, and you can discard any commits you make in this
    state without impacting any branches by performing another checkout.

    If you want to create a new branch to retain commits you create, you may
    do so (now or later) by using -b with the checkout command again. Example:

    git checkout -b <new-branch-name>

    HEAD is now at 382ca36b recipes-core: images: Add tisdk-thinlinux-image


    cloning repo meta-qt5

    Cloning into '/home/administrator/sumanth/tisdk/sources/meta-qt5'...
    remote: Enumerating objects: 15607, done.
    remote: Counting objects: 100% (1347/1347), done.
    remote: Compressing objects: 100% (393/393), done.
    remote: Total 15607 (delta 996), reused 1185 (delta 936), pack-reused 14260
    Receiving objects: 100% (15607/15607), 3.94 MiB | 1006.00 KiB/s, done.
    Resolving deltas: 100% (11077/11077), done.
    Branch 'dunfell' set up to track remote branch 'dunfell' from 'origin'.
    Switched to a new branch 'dunfell'
    Already up to date.
    Note: checking out '6bfe29d'.

    You are in 'detached HEAD' state. You can look around, make experimental
    changes and commit them, and you can discard any commits you make in this
    state without impacting any branches by performing another checkout.

    If you want to create a new branch to retain commits you create, you may
    do so (now or later) by using -b with the checkout command again. Example:

    git checkout -b <new-branch-name>

    HEAD is now at 6bfe29d qtbase: eglfs: Prevent printing a warning in every widget-based app


    cloning repo meta-virtualization

    Cloning into '/home/administrator/sumanth/tisdk/sources/meta-virtualization'...
    remote: Enumerating objects: 13647, done.
    remote: Counting objects: 100% (5/5), done.
    remote: Compressing objects: 100% (5/5), done.
    remote: Total 13647 (delta 0), reused 0 (delta 0), pack-reused 13642
    Receiving objects: 100% (13647/13647), 3.28 MiB | 1.33 MiB/s, done.
    Resolving deltas: 100% (8251/8251), done.
    Branch 'dunfell' set up to track remote branch 'dunfell' from 'origin'.
    Switched to a new branch 'dunfell'
    Already up to date.
    Note: checking out 'c5f61e5'.

    You are in 'detached HEAD' state. You can look around, make experimental
    changes and commit them, and you can discard any commits you make in this
    state without impacting any branches by performing another checkout.

    If you want to create a new branch to retain commits you create, you may
    do so (now or later) by using -b with the checkout command again. Example:

    git checkout -b <new-branch-name>

    HEAD is now at c5f61e5 runc: change branch to main


    cloning repo meta-openembedded

    Cloning into '/home/administrator/sumanth/tisdk/sources/meta-openembedded'...
    remote: Counting objects: 189869, done.
    remote: Compressing objects: 100% (63093/63093), done.
    remote: Total 189869 (delta 119338), reused 188091 (delta 118221)
    Receiving objects: 100% (189869/189869), 46.65 MiB | 7.71 MiB/s, done.
    Resolving deltas: 100% (119338/119338), done.
    Branch 'dunfell' set up to track remote branch 'dunfell' from 'origin'.
    Switched to a new branch 'dunfell'
    Already up to date.
    Note: checking out '0722ff6'.

    You are in 'detached HEAD' state. You can look around, make experimental
    changes and commit them, and you can discard any commits you make in this
    state without impacting any branches by performing another checkout.

    If you want to create a new branch to retain commits you create, you may
    do so (now or later) by using -b with the checkout command again. Example:

    git checkout -b <new-branch-name>

    HEAD is now at 0722ff6f0 protobuf: Fix CVE-2021-22570


    cloning repo meta-ti

    Cloning into '/home/administrator/sumanth/tisdk/sources/meta-ti'...
    remote: Enumerating objects: 40028, done.
    remote: Total 40028 (delta 0), reused 0 (delta 0), pack-reused 40028
    Receiving objects: 100% (40028/40028), 9.85 MiB | 3.49 MiB/s, done.
    Resolving deltas: 100% (27476/27476), done.
    Branch 'dunfell' set up to track remote branch 'dunfell' from 'origin'.
    Switched to a new branch 'dunfell'
    Already up to date.
    Note: checking out '08.02.00.006'.

    You are in 'detached HEAD' state. You can look around, make experimental
    changes and commit them, and you can discard any commits you make in this
    state without impacting any branches by performing another checkout.

    If you want to create a new branch to retain commits you create, you may
    do so (now or later) by using -b with the checkout command again. Example:

    git checkout -b <new-branch-name>

    HEAD is now at facd5397 u-boot-ti-staging: Bump to 08.02.00.006 release


    cloning repo meta-arm

    Cloning into '/home/administrator/sumanth/tisdk/sources/meta-arm'...
    remote: Enumerating objects: 15828, done.
    remote: Total 15828 (delta 0), reused 0 (delta 0), pack-reused 15828
    Receiving objects: 100% (15828/15828), 3.30 MiB | 1.29 MiB/s, done.
    Resolving deltas: 100% (9859/9859), done.
    Branch 'dunfell' set up to track remote branch 'dunfell' from 'origin'.
    Switched to a new branch 'dunfell'
    Already up to date.
    Note: checking out 'c4f04f3'.

    You are in 'detached HEAD' state. You can look around, make experimental
    changes and commit them, and you can discard any commits you make in this
    state without impacting any branches by performing another checkout.

    If you want to create a new branch to retain commits you create, you may
    do so (now or later) by using -b with the checkout command again. Example:

    git checkout -b <new-branch-name>

    HEAD is now at c4f04f3 arm/trusted-firmware-a: add branch name for mbedtls


    cloning repo oe-core

    Cloning into '/home/administrator/sumanth/tisdk/sources/oe-core'...
    remote: Counting objects: 461636, done.
    remote: Compressing objects: 100% (116556/116556), done.
    remote: Total 461636 (delta 338316), reused 461277 (delta 338039)
    Receiving objects: 100% (461636/461636), 135.13 MiB | 9.67 MiB/s, done.
    Resolving deltas: 100% (338316/338316), done.
    Branch 'dunfell' set up to track remote branch 'dunfell' from 'origin'.
    Switched to a new branch 'dunfell'
    Already up to date.
    Note: checking out '51844f2'.

    You are in 'detached HEAD' state. You can look around, make experimental
    changes and commit them, and you can discard any commits you make in this
    state without impacting any branches by performing another checkout.

    If you want to create a new branch to retain commits you create, you may
    do so (now or later) by using -b with the checkout command again. Example:

    git checkout -b <new-branch-name>

    HEAD is now at 51844f2d60 uninative: Upgrade to 3.5


    ################################################################################
    The bblayers.conf configuration file has been created for you with some
    default values. Please verify the contents of your conf/bblayers.conf
    file for correctness.

    NOTE: Any additional entries to this file will be lost if the ./oe-layertool-setup.sh
    script is run again. To add entries permanently to this file
    please add them to the config file used and rerun the
    ./oe-layertool-setup.sh script.

    ################################################################################
    The local.conf configuration file has been created for you with some
    default values. Please verify the contents of your conf/local.conf
    file for correctness.

    By default the number of threads used by the build is set to the number
    of CPUs found on your system.

    NOTE: You will probably want to change the default MACHINE setting in the
    local.conf file to the machine you are trying to build.

    ################################################################################
    A setenv file has been created for you in the conf directory. Please verify
    The contents of this file. Once you have verified the contents please source
    this file to configure your environment for building:

    . conf/setenv

    You can then start building using the bitbake command. You will likely want
    to set the MACHINE option if you have not done so in your local.conf file.

    For example:
    MACHINE=xxxxx bitbake <target>

    Common targets are:
    From oe-core:
    build-appliance-image_15.0.0: An image containing the build system itself
    core-image-base: A console-only image that fully supports the target device
    core-image-minimal-mtdutils: No Summary available
    core-image-tiny-initramfs: No Summary available
    core-image-minimal-initramfs: No Summary available
    core-image-minimal: A small image just capable of allowing a device to boot.
    core-image-minimal-dev: No Summary available
    From meta-processor-sdk:
    tisdk-docker-rootfs-image: No Summary available
    From meta-openembedded:
    meta-networking-image-base: meta-networking build test image
    meta-networking-image: No Summary available
    core-image-minimal-xfce: No Summary available
    initramfs-kexecboot-klibc-image: Initramfs image for kexecboot kernel (klibc-static binaries)
    initramfs-kexecboot-image: Initramfs image for kexecboot kernel
    meta-initramfs-image: meta-initramfs build test image
    initramfs-debug-image: No Summary available
    meta-python-ptest-image: meta-python ptest test image
    meta-python-image: meta-python build test image
    meta-python-image-base: meta-python build test image
    meta-oe-image: meta-oe build test image
    meta-oe-ptest-image: meta-oe ptest test image
    meta-oe-image-base: meta-oe build test image
    meta-webserver-image: No Summary available
    meta-webserver-image-base: meta-webserver build test image
    From meta-arm:
    arm-autonomy-host-image-minimal: No Summary available
    From meta-arago[recommended]:
    tisdk-base-image: No Summary available
    tisdk-thinlinux-image: No Summary available
    tisdk-tiny-image: No Summary available
    tisdk-default-image: No Summary available
    tisdk-core-bundle: No Summary available
    ./oe-layertool-setup.sh: 876: [: no: unexpected operator

    ********** End console log **************************************

  • Hi Sumanth,

    what Linux distribution are you running this under? Our scripts/installers require the use of 'bash', and it should ideally be a Ubuntu 18.04 distribution (currently).

    Also note what the SDK instructions say regarding this specifically. By default Ubuntu uses “dash” as the default shell for /bin/sh. You must reconfigure to use bash by running the following command:

    sudo dpkg-reconfigure dash

    Regards, Andreas

  • Got resolved. Thanks Andreas.