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.

Linux/TMDSEVM572X: SDK build errors

Part Number: TMDSEVM572X


Tool/software: Linux

Hi,

1. I installed ti-processor-sdk-linux-rt-am57xx-evm-04.02.00.09-Linux-x86-Install.bin at path /home/anjana/.

2. Also installed ccsv7 at path /home/anjana/ti-processor-sdk-linux-rt-am57xx-evm-04.02.00.09/ccs7/ccsv7

3. Followed the steps given at location .

but geting error for following command why? attached the log.

anjana@anjana-VirtualBox:~/tisdk/build$ . conf/setenv

anjana@anjana-VirtualBox:~/tisdk/build$ export PATH=$HOME/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:$PATH
anjana@anjana-VirtualBox:~/tisdk/build$ MACHINE=am57xx-evm bitbake arago-core-tisdk-image
Parsing recipes: 100% |##########################################| Time: 0:14:32
Parsing of 3033 .bb files complete (0 cached, 3033 parsed). 3800 targets, 534 skipped, 0 masked, 0 errors.
WARNING: No recipes available for:
/home/anjana/tisdk/sources/meta-openamp/recipes-bsp/device-tree/device-tree-generation_%.bbappend
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.32.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Ubuntu-16.04"
TARGET_SYS = "arm-linux-gnueabi"
MACHINE = "am57xx-evm"
DISTRO = "arago"
DISTRO_VERSION = "2017.10"
TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU = "hard"
meta-processor-sdk = "HEAD:eaac60268857bc56bf89625df93935a272b63341"
meta-ros = "HEAD:e01c6ace0d4f9d700449edad3781e9cd505b5e10"
meta-arago-distro
meta-arago-extras = "HEAD:d34c861f846f35d089e1caf224ec43079be7b202"
meta-browser = "HEAD:26d50665e2f7223c5f4ad7481a8d2431e7cb55fb"
meta-openamp = "HEAD:8a214032bfb7e8124bc1485c70c69f7d60abb819"
meta-qt5 = "HEAD:2c9f0e4eb0e9097f6f872ec1e1d81768a8ab5f1b"
meta-networking
meta-ruby
meta-python
meta-oe
meta-gnome
meta-multimedia = "HEAD:b40116cf457b88a2db14b86fda9627fb34d56ae6"
meta-ti = "HEAD:351ccf1928a18c2b69fd19b09b980c9aa3af2e26"
meta-linaro-toolchain
meta-optee = "HEAD:5d2cb685217794293ea2bab18d7e62019c329d06"
meta = "HEAD:1718f0a6c1de9c23660a9bebfd4420e3c4ed37e6"

Initialising tasks: 100% |#######################################| Time: 0:01:38
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: linux-libc-headers-4.9-r0.arago2 do_fetch: Failed to fetch URL git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=ti-lsk-linux-4.9.y, attempting MIRRORS if available
ERROR: linux-libc-headers-4.9-r0.arago2 do_fetch: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-rD6CSyX2tr"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/anjana/tisdk/sources/oe-core/scripts:/home/anjana/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin/arm-linux-gnueabi:/home/anjana/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm/usr/bin/crossscripts:/home/anjana/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/sbin:/home/anjana/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin:/home/anjana/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/sbin:/home/anjana/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/bin:/home/anjana/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:/home/anjana/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:/home/anjana/tisdk/sources/meta-ros/scripts:/home/anjana/tisdk/sources/meta-browser/scripts:/home/anjana/tisdk/sources/oe-core/scripts:/home/anjana/tisdk/sources/bitbake/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"; export HOME="/home/anjana"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git /home/anjana/tisdk/downloads/git2/git.ti.com.ti-linux-kernel.ti-linux-kernel.git --progress failed with exit code 128, output:
Cloning into bare repository '/home/anjana/tisdk/downloads/git2/git.ti.com.ti-linux-kernel.ti-linux-kernel.git'...
remote: Counting objects: 7594842, done.
remote: Compressing objects: 100% (1063599/1063599), done.
fatal: The remote end hung up unexpectedly 427.53 MiB | 105.00 KiB/s
fatal: early EOF
fatal: index-pack failed

ERROR: linux-libc-headers-4.9-r0.arago2 do_fetch: Fetcher failure for URL: 'git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=ti-lsk-linux-4.9.y'. Unable to fetch URL from any source.
ERROR: linux-libc-headers-4.9-r0.arago2 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/anjana/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/linux-libc-headers/4.9-r0.arago2/temp/log.do_fetch.12576
ERROR: Task (/home/anjana/tisdk/sources/meta-arago/meta-arago-distro/recipes-kernel/linux-libc-headers/linux-libc-headers_4.9.bb:do_fetch) failed with exit code '1'

Second Keyboard Interrupt, stopping...

WARNING: Timeout while attempting to communicate with bitbake server
WARNING: Timeout while attempting to communicate with bitbake server
WARNING: Timeout while attempting to communicate with bitbake server

Summary: 1 task failed:
/home/anjana/tisdk/sources/meta-arago/meta-arago-distro/recipes-kernel/linux-libc-headers/linux-libc-headers_4.9.bb:do_fetch
Summary: There were 2 WARNING messages shown.
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
NOTE: Tasks Summary: Attempted 94 tasks of which 0 didn't need to be rerun and 1 failed.
anjana@anjana-VirtualBox:~/tisdk/build$

Thanks,

Anjana Pathak

anjana@anjana-VirtualBox:~/tisdk/build$ . conf/setenvanjana@anjana-VirtualBox:~/tisdk/build$ export PATH=$HOME/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:$PATHanjana@anjana-VirtualBox:~/tisdk/build$ MACHINE=am57xx-evm bitbake arago-core-tisdk-imageParsing recipes: 100% |##########################################| Time: 0:14:32Parsing of 3033 .bb files complete (0 cached, 3033 parsed). 3800 targets, 534 skipped, 0 masked, 0 errors.WARNING: No recipes available for:  /home/anjana/tisdk/sources/meta-openamp/recipes-bsp/device-tree/device-tree-generation_%.bbappendNOTE: Resolving any missing task queue dependencies
Build Configuration:BB_VERSION        = "1.32.0"BUILD_SYS         = "x86_64-linux"NATIVELSBSTRING   = "Ubuntu-16.04"TARGET_SYS        = "arm-linux-gnueabi"MACHINE           = "am57xx-evm"DISTRO            = "arago"DISTRO_VERSION    = "2017.10"TUNE_FEATURES     = "arm armv7a vfp thumb neon       callconvention-hard"TARGET_FPU        = "hard"meta-processor-sdk = "HEAD:eaac60268857bc56bf89625df93935a272b63341"meta-ros          = "HEAD:e01c6ace0d4f9d700449edad3781e9cd505b5e10"meta-arago-distro meta-arago-extras = "HEAD:d34c861f846f35d089e1caf224ec43079be7b202"meta-browser      = "HEAD:26d50665e2f7223c5f4ad7481a8d2431e7cb55fb"meta-openamp      = "HEAD:8a214032bfb7e8124bc1485c70c69f7d60abb819"meta-qt5          = "HEAD:2c9f0e4eb0e9097f6f872ec1e1d81768a8ab5f1b"meta-networking   meta-ruby         meta-python       meta-oe           meta-gnome        meta-multimedia   = "HEAD:b40116cf457b88a2db14b86fda9627fb34d56ae6"meta-ti           = "HEAD:351ccf1928a18c2b69fd19b09b980c9aa3af2e26"meta-linaro-toolchain meta-optee        = "HEAD:5d2cb685217794293ea2bab18d7e62019c329d06"meta              = "HEAD:1718f0a6c1de9c23660a9bebfd4420e3c4ed37e6"
Initialising tasks: 100% |#######################################| Time: 0:01:38NOTE: Executing SetScene TasksNOTE: Executing RunQueue TasksWARNING: linux-libc-headers-4.9-r0.arago2 do_fetch: Failed to fetch URL git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=ti-lsk-linux-4.9.y, attempting MIRRORS if availableERROR: linux-libc-headers-4.9-r0.arago2 do_fetch: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-rD6CSyX2tr"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/anjana/tisdk/sources/oe-core/scripts:/home/anjana/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin/arm-linux-gnueabi:/home/anjana/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am57xx-evm/usr/bin/crossscripts:/home/anjana/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/sbin:/home/anjana/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin:/home/anjana/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/sbin:/home/anjana/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/bin:/home/anjana/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:/home/anjana/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:/home/anjana/tisdk/sources/meta-ros/scripts:/home/anjana/tisdk/sources/meta-browser/scripts:/home/anjana/tisdk/sources/oe-core/scripts:/home/anjana/tisdk/sources/bitbake/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"; export HOME="/home/anjana"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git /home/anjana/tisdk/downloads/git2/git.ti.com.ti-linux-kernel.ti-linux-kernel.git --progress failed with exit code 128, output:Cloning into bare repository '/home/anjana/tisdk/downloads/git2/git.ti.com.ti-linux-kernel.ti-linux-kernel.git'...remote: Counting objects: 7594842, done.        remote: Compressing objects: 100% (1063599/1063599), done.        fatal: The remote end hung up unexpectedly 427.53 MiB | 105.00 KiB/s   fatal:  early EOFfatal: index-pack failed
ERROR: linux-libc-headers-4.9-r0.arago2 do_fetch: Fetcher failure for URL: 'git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=ti-lsk-linux-4.9.y'. Unable to fetch URL from any source.ERROR: linux-libc-headers-4.9-r0.arago2 do_fetch: Function failed: base_do_fetchERROR: Logfile of failure stored in: /home/anjana/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/linux-libc-headers/4.9-r0.arago2/temp/log.do_fetch.12576ERROR: Task (/home/anjana/tisdk/sources/meta-arago/meta-arago-distro/recipes-kernel/linux-libc-headers/linux-libc-headers_4.9.bb:do_fetch) failed with exit code '1'
Second Keyboard Interrupt, stopping...
WARNING: Timeout while attempting to communicate with bitbake serverWARNING: Timeout while attempting to communicate with bitbake serverWARNING: Timeout while attempting to communicate with bitbake server
Summary: 1 task failed:  /home/anjana/tisdk/sources/meta-arago/meta-arago-distro/recipes-kernel/linux-libc-headers/linux-libc-headers_4.9.bb:do_fetchSummary: There were 2 WARNING messages shown.Summary: There were 3 ERROR messages shown, returning a non-zero exit code.NOTE: Tasks Summary: Attempted 94 tasks of which 0 didn't need to be rerun and 1 failed.anjana@anjana-VirtualBox:~/tisdk/build$ 

  • If I remember correctly, you don't setenv when compiling the kernel. You only need it when cross compiling. Let me know if I am wrong.

  • Please, see this post.

  • i am trying to build rt linux sdk since last 4 days but it stucks.

    now it is into retry condition 

    --2018-01-18 14:38:20--  (try:20)  http://software-dl.ti.com/processor-sdk-mirror/sources/git2_github.com.qtproject.qtwebengine.git.tar.gz
    Connecting to software-dl.ti.com (software-dl.ti.com)|203.92.47.80|:80... connected.
    HTTP request sent, awaiting response... No data received.
    Giving up.

    i wasted almost a weak in this.

    When i worked with ti rtos there no such dependency with internet. sdp package once installed there was very few steps to build the sdk and with in a day the build and compiled task was completed.

    Please tell me some alternative to start with it as soon as possible.

    Anjana Pathak

  • Hello Anjana,

    No need to concern. If you type MACHINE=am57xx-evm ARAGO_RT_ENABLE=1 bitbake qtwebengine -c do_fetch this source will be automatically downloaded from the primary source provider without the need of use of mirror.

    Best regards,
    Kemal

  • Hello Kemal,

    1. Please provide the proper steps to build RT Linux sdk.

    2. When should i use  MACHINE=am57xx-evm ARAGO_RT_ENABLE=1 bitbake qtwebengine -c do_fetch command?


    please find the below log after executing this command

    anjana@anjana-VirtualBox:~/tisdk/build$ MACHINE=am57xx-evm ARAGO_RT_ENABLE=1 bitbake qtwebengine-c do_fetch

    NOTE: Your conf/bblayers.conf has been automatically updated.

    NOTE: Your conf/bblayers.conf has been automatically updated.

    WARNING: /home/anjana/tisdk/sources/oe-core/meta/recipes-core/meta/meta-environment.bb: Exception during build_dependencies for toolchain_create_sdk_version

    WARNING: /home/anjana/tisdk/sources/oe-core/meta/recipes-core/meta/meta-environment.bb: Error during finalise of /home/anjana/tisdk/sources/oe-core/meta/recipes-core/meta/meta-environment.bb

    WARNING: /home/anjana/tisdk/sources/oe-core/meta/recipes-core/meta/meta-environment-extsdk.bb: Exception during build_dependencies for toolchain_create_sdk_version

    WARNING: /home/anjana/tisdk/sources/oe-core/meta/recipes-core/meta/meta-environment-extsdk.bb: Error during finalise of /home/anjana/tisdk/sources/oe-core/meta/recipes-core/meta/meta-environment-extsdk.bb

    ERROR: ExpansionError during parsing /home/anjana/tisdk/sources/oe-core/meta/recipes-core/meta/meta-environment.bb

    Traceback (most recent call last):

    bb.data_smart.ExpansionError: Failure expanding variable METADATA_REVISION, expression was ${@base_detect_revision(d)} which triggered exception CmdError: Execution of 'git rev-parse HEAD' failed: [Errno 12] Cannot allocate memory

    Summary: There were 4 WARNING messages shown.

    Summary: There was 1 ERROR message shown, returning a non-zero exit code.

    Anjana Pathak

  • Hello Kemal,
    1. Please provide me the complete steps to build Rt linux sdk.
    2. When do i execute this command for required results MACHINE=am57xx-evm ARAGO_RT_ENABLE=1 bitbake qtwebengine -c do_fetch?

    I got error after executing this command
    anjana@anjana-VirtualBox:~/tisdk/build$ MACHINE=am57xx-evm ARAGO_RT_ENABLE=1 bitbake qtwebengine-c do_fetch

    NOTE: Your conf/bblayers.conf has been automatically updated.

    NOTE: Your conf/bblayers.conf has been automatically updated.

    WARNING: /home/anjana/tisdk/sources/oe-core/meta/recipes-core/meta/meta-environment.bb: Exception during build_dependencies for toolchain_create_sdk_version

    WARNING: /home/anjana/tisdk/sources/oe-core/meta/recipes-core/meta/meta-environment.bb: Error during finalise of /home/anjana/tisdk/sources/oe-core/meta/recipes-core/meta/meta-environment.bb

    WARNING: /home/anjana/tisdk/sources/oe-core/meta/recipes-core/meta/meta-environment-extsdk.bb: Exception during build_dependencies for toolchain_create_sdk_version

    WARNING: /home/anjana/tisdk/sources/oe-core/meta/recipes-core/meta/meta-environment-extsdk.bb: Error during finalise of /home/anjana/tisdk/sources/oe-core/meta/recipes-core/meta/meta-environment-extsdk.bb

    ERROR: ExpansionError during parsing /home/anjana/tisdk/sources/oe-core/meta/recipes-core/meta/meta-environment.bb

    Traceback (most recent call last):

    bb.data_smart.ExpansionError: Failure expanding variable METADATA_REVISION, expression was ${@base_detect_revision(d)} which triggered exception CmdError: Execution of 'git rev-parse HEAD' failed: [Errno 12] Cannot allocate memory



    Summary: There were 4 WARNING messages shown.

    Summary: There was 1 ERROR message shown, returning a non-zero exit code.

    Thanks,
    Anjana Pathak
  • You have already installed the ti-processor-sdk-linux-rt-am57xx-evm-04.02.00.09-Linux-x86-Install.bin then you can go top Processor SDK install directory and rebuild the kernel or U-Boot with make -j 8 linux and make -j8 u-boot or clean them with make -j 8 linux_clean, make -j8 u-boot_clean commands. Please, see this wiki page for more details.

    If you want to rebuild the rootfs or complete Processor SDK itself follow the steps on Processor SDK Building The SDK wiki page.

    The exact steps are:
    $ sudo apt-get install git build-essential python diffstat texinfo gawk chrpath dos2unix wget unzip socat doxygen libc6:i386 libncurses5:i386 libstdc++6:i386 libz1:i386

    $ sudo dpkg-reconfigure dash
    # Select "No" when prompted

    $ wget https://releases.linaro.org/components/toolchain/binaries/6.2-2016.11/arm-linux-gnueabihf/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz
    $ tar -Jxvf gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz -C $HOME

    $ git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk
    $ cd tisdk
    $ ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-04.02.00.09-config.txt
    $ cd build
    $ . conf/setenv
    $ export PATH=$HOME/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:$PATH
    $ MACHINE=am57xx-evm ARAGO_RT_ENABLE=1 bitbake tisdk-rootfs-image

  • i followed the all steps mentioned above and landed up with error attached in my first communication.
    is it compulsory to build Processor SDK?
    without this it is not possible to compile and execute example projects?

    Anjana Pathak
  • You are out of memory see this message: failed: [Errno 12] Cannot allocate memory
    It is not compulsory to build the Processor SDK. You can use the ti-processor-sdk-linux-rt-am57xx-evm-04.02.00.09-Linux-x86-Install.bin to compile and execute example projects.

  • what is the purpose of building SDK will you please explain? may be a silly query but
    As i am new to this platform. I was previously working with TI RTOs sdk and develop an application with 1gb ethernet two uart and gpios with timers.
    But i switched to linux as i want to send data from PRU and a15 as PRU GPI latency is very small in 5 nano second. so idecided to switch to linux.
  • Hi Kemal,
    When i am running make all command i am getting following warning.

    WARNING: Could not create the helper script to generate configurations on remote machines ("jailhouse-conf-collect"). You need Python and the Mako library for it.
    Building modules, stage 2.
    MODPOST 1 modules
    CC /home/abc/ti-processor-sdk-linux-rt/board-support/extra-drivers/jailhouse-0.7/driver/jailhouse.mod.o
    LD [M] /home/abc/ti-processor-sdk-linux-rt/board-support/extra-drivers/jailhouse-0.7/driver/jailhouse.ko
    make[1]: Leaving directory '/home/abc/ti-processor-sdk-linux-rt/board-support/extra-drivers/jailhouse-0.7'

    Thanks,
    Anjana Pathak
  • $ sudo apt install python-mako

  • thanks a lot......
    issue resolved.
    one more question if i want to do ethernet communication with linux sdk do i need to execute the steps given in Processor SDK Building The SDK.

    Anjana Pathak
  • No, you need to execute these steps.