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/TDA2EVM5777: Compiling Kernel with packages, and applying changes to .config file

Part Number: TDA2EVM5777
Other Parts Discussed in Thread: DRA746

Tool/software: Linux

Hello,

I downloaded the TDAx Linux and RTOS PROCESSOR_SDK for Vision SDK V_03_01_00_00 and compiled for linux. I would like to add packages to the rootfs and make changes to the .config file.

1. I would like to add packages like openvpn or minicom to the linux filesystem. Where can I add these packages to the rootfs?


2. I tried to manually make changes to the .config file using the command make menuconfig in the directiory <PROCESSOR_SDK>/ti_components/os_tools/linux/kernel/omap/
. When I would run the command to recompile the linux rootfs using the command make linux in the directory <PROCESSOR_SDK>/vision_sdk/build/ the .config file, in <PROCESSOR_SDK>/ti_components/os_tools/linux/kernel/omap/, would be restored to default.

Thank you,
iFer

  • Hi,

    You can try the workaround

    1. “make menuconfig” under /ti_components/os_tools/linux/kernel/omap to get your .config
    2. Use the generated .config to override original defconfig (like arch/arm/configs/ti_sdk_dra7x_release_defconfig)

  • Hello Luke,

    Thank you for your help. I will try running "make linux" in the directory /vision_sdk/build/ and assume that will recompile the rootfs with the corret/modified .config file. (Is that correct?)

    Secondly, do you know of a way to install packages, like minicom, within the rootfs in the compile process?

    Thank you for your help,
    iFer
  • IFer,

    You may refer Processor SDK Linux Software Developers Guide (link below), see the chapter "Building Yocto Filesystem"

    processors.wiki.ti.com/index.php
  • Thank you,

    I have downloaded and am building it now, but I noticed that the documentation in step 5 (Booting the board, under Starting your software development) pointed me to a set of different EVMs than the tda2evm5777 (link).

    How can I configure the build for tda2evm5777?

  • Hello Luke,

    I followed the link that you sent me and in step 4 (Prepare SD card), I was able to use the prebuilt SDK and was able to get it to boot on the TDA2EVM5777.

    Unfortunately I ran into an issue when I get to the part where I am building the Yocto Filesystem. When I run the command "./build-core-sdk.sh dra7xx-evm", I get the error:

    [PSDKLA]>
    [PSDKLA]> Current Directory is /opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers
    [PSDKLA]> PATH is /home/user01/LinaroCrossCompilerToolchain/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin:/home/user01/LinaroCrossCompilerToolchain/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin:/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/bin:/home/user01/ti/ti-processor-sdk-linux-rt-am57xx-evm-03.03.00.04/linux-devkit/sysroots/x86_64-arago-linux/usr/bin:/opt/PHYTEC_BSPs/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
    [PSDKLA]> Building on gantz04 running Linux gantz04 4.4.0-83-generic #106~14.04.1-Ubuntu SMP Mon Jun 26 18:10:19 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
    [PSDKLA]> Starting Yocto build at Thu Jan 4 12:39:07 PST 2018
    [PSDKLA]>
    [PSDKLA]> cd build
    [PSDKLA]> . conf/setenv
    [PSDKLA]> cp conf/local.conf conf/local.conf.pristine
    [PSDKLA]> MACHINE=dra7xx-evm bitbake tisdk-rootfs-image
    NOTE: Started PRServer with DBfile: /opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 34245, PID: 22148
    Loading cache: 100% |########################################################################################################################################################################| ETA: 00:00:00
    Loaded 2849 entries from dependency cache.
    NOTE: Resolving any missing task queue dependencies

    Build Configuration:
    BB_VERSION = "1.30.0"
    BUILD_SYS = "x86_64-linux"
    NATIVELSBSTRING = "Ubuntu-14.04"
    TARGET_SYS = "arm-linux-gnueabi"
    MACHINE = "dra7xx-evm"
    DISTRO = "arago"
    DISTRO_VERSION = "2016.12"
    TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
    TARGET_FPU = "hard"
    meta-glsdk = "HEAD:66cfd8ef55344508d6e7b306259f34c05b828194"
    meta-arago-distro
    meta-arago-extras = "HEAD:4c01410ffde8853224567fb6078d7d9f190b942f"
    meta-qt5 = "HEAD:f8584d7a7c90afc71484a40279aa3df651d0e04f"
    meta-networking
    meta-ruby
    meta-python
    meta-oe = "HEAD:55c8a76da5dc099a7bc3838495c672140cedb78e"
    meta-ti = "HEAD:5f3a1169d307fec41626f850f5c700437dedbe93"
    meta-linaro-toolchain
    meta-optee = "HEAD:2f51d38048599d9878f149d6d15539fb97603f8f"
    meta = "HEAD:bfa04fa71c47e8fe9528208848cfcec2e232777d"

    NOTE: Preparing RunQueue
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    ERROR: gstreamer1.0-plugins-hevc-git-r5 do_configure: Function failed: do_configure (log file is located at /opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/gstreamer1.0-plugins-hevc/git-r5/temp/log.do_configure.22317)
    ERROR: gstreamer1.0-plugins-vpe-git-r2.16 do_configure: Function failed: do_configure (log file is located at /opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/dra7xx_evm-linux-gnueabi/gstreamer1.0-plugins-vpe/git-r2.16/temp/log.do_configure.22314)
    ERROR: Logfile of failure stored in: /opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/dra7xx_evm-linux-gnueabi/gstreamer1.0-plugins-vpe/git-r2.16/temp/log.do_configure.22314
    Log data follows:
    | DEBUG: Executing python function sysroot_cleansstate
    | DEBUG: Python function sysroot_cleansstate finished
    | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
    | DEBUG: Executing shell function autotools_preconfigure
    | DEBUG: Shell function autotools_preconfigure finished
    | DEBUG: Executing python function autotools_copy_aclocals
    | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
    | DEBUG: Python function autotools_copy_aclocals finished
    | DEBUG: Executing shell function do_configure
    | + Setting up common submodule
    | Failed to run command 'submodule': Numerical result out of range
    | Failed to run command 'submodule': Numerical result out of range
    | There is something wrong with your source tree.
    | You are missing common/gst-autogen.sh
    | WARNING: /opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/dra7xx_evm-linux-gnueabi/gstreamer1.0-plugins-vpe/git-r2.16/temp/run.do_configure.22314:1 exit 1 from './autogen.sh --host=arm-linux --with-libtool-sysroot=/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/sysroots/dra7xx-evm --prefix=/usr'
    | ERROR: Function failed: do_configure (log file is located at /opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/dra7xx_evm-linux-gnueabi/gstreamer1.0-plugins-vpe/git-r2.16/temp/log.do_configure.22314)
    ERROR: Logfile of failure stored in: /opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/gstreamer1.0-plugins-hevc/git-r5/temp/log.do_configure.22317
    Log data follows:
    | DEBUG: Executing python function sysroot_cleansstate
    | DEBUG: Python function sysroot_cleansstate finished
    | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
    | DEBUG: Executing shell function autotools_preconfigure
    | DEBUG: Shell function autotools_preconfigure finished
    | DEBUG: Executing python function autotools_copy_aclocals
    | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
    | DEBUG: Python function autotools_copy_aclocals finished
    | DEBUG: Executing shell function do_configure
    | + Setting up common submodule
    | Failed to run command 'submodule': Numerical result out of range
    | Failed to run command 'submodule': Numerical result out of range
    | There is something wrong with your source tree.
    | You are missing common/gst-autogen.sh
    | WARNING: /opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/gstreamer1.0-plugins-hevc/git-r5/temp/run.do_configure.22317:1 exit 1 from './autogen.sh --host=arm-linux --with-libtool-sysroot=/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/sysroots/dra7xx-evm --prefix=/usr'
    | ERROR: Function failed: do_configure (log file is located at /opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/gstreamer1.0-plugins-hevc/git-r5/temp/log.do_configure.22317)
    ERROR: Task 6113 (/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/sources/meta-arago/meta-arago-extras/recipes-multimedia/gst-plugins-ti/gstreamer1.0-plugins-vpe_git.bb, do_configure) failed with exit code '1'
    ERROR: Task 6071 (/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/sources/meta-arago/meta-arago-extras/recipes-multimedia/gst-plugins-ti/gstreamer1.0-plugins-hevc_git.bb, do_configure) failed with exit code '1'
    ERROR: gstreamer1.0-plugins-ducati-git-r2.25_psdkla do_configure: Function failed: do_configure (log file is located at /opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/dra7xx_evm-linux-gnueabi/gstreamer1.0-plugins-ducati/git-r2.25_psdkla/temp/log.do_configure.22315)
    ERROR: Logfile of failure stored in: /opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/dra7xx_evm-linux-gnueabi/gstreamer1.0-plugins-ducati/git-r2.25_psdkla/temp/log.do_configure.22315
    Log data follows:
    | DEBUG: Executing python function sysroot_cleansstate
    | DEBUG: Python function sysroot_cleansstate finished
    | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
    | DEBUG: Executing shell function autotools_preconfigure
    | DEBUG: Shell function autotools_preconfigure finished
    | DEBUG: Executing python function autotools_copy_aclocals
    | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
    | DEBUG: Python function autotools_copy_aclocals finished
    | DEBUG: Executing shell function do_configure
    | Failed to run command 'submodule': Numerical result out of range
    | + passing argument --host=arm-linux to configure
    | + passing argument --with-libtool-sysroot=/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/sysroots/dra7xx-evm to configure
    | + passing argument --prefix=/usr to configure
    | + options passed to configure: --host=arm-linux --with-libtool-sysroot=/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/sysroots/dra7xx-evm --prefix=/usr
    | + check for build tools
    | ./autogen.sh: line 40: version_check: command not found
    | ./autogen.sh: line 42: version_check: command not found
    | ./autogen.sh: line 44: version_check: command not found
    | ./autogen.sh: line 46: version_check: command not found
    | ./autogen.sh: line 48: version_check: command not found
    | ./autogen.sh: line 51: die_check: command not found
    | ./autogen.sh: line 53: aclocal_check: command not found
    | ./autogen.sh: line 54: autoheader_check: command not found
    | ./autogen.sh: line 56: die_check: command not found
    | + running --force ...
    | common/gst-autogen.sh: line 108: --force: command not found
    |
    | --force failed
    | WARNING: /opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/dra7xx_evm-linux-gnueabi/gstreamer1.0-plugins-ducati/git-r2.25_psdkla/temp/run.do_configure.22315:1 exit 1 from './autogen.sh --host=arm-linux --with-libtool-sysroot=/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/sysroots/dra7xx-evm --prefix=/usr'
    | ERROR: Function failed: do_configure (log file is located at /opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/dra7xx_evm-linux-gnueabi/gstreamer1.0-plugins-ducati/git-r2.25_psdkla/temp/log.do_configure.22315)
    ERROR: Task 6099 (/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/sources/meta-arago/meta-arago-extras/recipes-multimedia/gst-plugins-ti/gstreamer1.0-plugins-ducati_git.bb, do_configure) failed with exit code '1'
    ERROR: gstreamer1.0-plugins-dsp66-git-r1 do_configure: Function failed: do_configure (log file is located at /opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/gstreamer1.0-plugins-dsp66/git-r1/temp/log.do_configure.22316)
    ERROR: Logfile of failure stored in: /opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/gstreamer1.0-plugins-dsp66/git-r1/temp/log.do_configure.22316
    Log data follows:
    | DEBUG: Executing python function sysroot_cleansstate
    | DEBUG: Python function sysroot_cleansstate finished
    | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
    | DEBUG: Executing shell function autotools_preconfigure
    | DEBUG: Shell function autotools_preconfigure finished
    | DEBUG: Executing python function autotools_copy_aclocals
    | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
    | DEBUG: Python function autotools_copy_aclocals finished
    | DEBUG: Executing shell function do_configure
    | + Setting up common submodule
    | Failed to run command 'submodule': Numerical result out of range
    | Failed to run command 'submodule': Numerical result out of range
    | There is something wrong with your source tree.
    | You are missing common/gst-autogen.sh
    | WARNING: /opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/gstreamer1.0-plugins-dsp66/git-r1/temp/run.do_configure.22316:1 exit 1 from './autogen.sh --host=arm-linux --with-libtool-sysroot=/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/sysroots/dra7xx-evm --prefix=/usr'
    | ERROR: Function failed: do_configure (log file is located at /opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/gstreamer1.0-plugins-dsp66/git-r1/temp/log.do_configure.22316)
    ERROR: Task 6085 (/opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/sources/meta-arago/meta-arago-extras/recipes-multimedia/gst-plugins-ti/gstreamer1.0-plugins-dsp66_git.bb, do_configure) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 4214 tasks of which 4210 didn't need to be rerun and 4 failed.
    NOTE: Writing buildhistory
    Waiting for 0 running tasks to finish:

    Summary: 4 tasks failed:
    /opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/sources/meta-arago/meta-arago-extras/recipes-multimedia/gst-plugins-ti/gstreamer1.0-plugins-vpe_git.bb, do_configure
    /opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/sources/meta-arago/meta-arago-extras/recipes-multimedia/gst-plugins-ti/gstreamer1.0-plugins-hevc_git.bb, do_configure
    /opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/sources/meta-arago/meta-arago-extras/recipes-multimedia/gst-plugins-ti/gstreamer1.0-plugins-ducati_git.bb, do_configure
    /opt/ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03/yocto-layers/sources/meta-arago/meta-arago-extras/recipes-multimedia/gst-plugins-ti/gstreamer1.0-plugins-dsp66_git.bb, do_configure
    Summary: There were 4 ERROR messages shown, returning a non-zero exit code.
    [PSDKLA]>
    [PSDKLA]> Completed Yocto build at Thu Jan 4 12:39:55 PST 2018
    [PSDKLA]>



    How can I fix this issue to finish compiling?

    Thank you,
    -iFer
  • iFer,

    Sorry, I did not build filesystem in person. For questions related to "Processor SDK Linux Automotive", please look for help at the forum below.

    e2e.ti.com/.../1020
  • Hello Luke,

    Thank you,

    I attempted to post to that forum from the link that you sent, but it is not accepting the part number: TDA2EVM5777
  • iFer,

    You may use DRA746 instead. Kernel is the same for DRA746 and TDA2x