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.

DRA7xx use GLSDK,but i do not know how to compile the yocto Project source.

Because of the Great Firewall ,I could not download the whole GLSDK. And local TI FAE got me the tar package.

But I do not know how to compile the yocto Project source.

For example ,I want to build kernel in the yocto Project,what comand i could use?

./build-specific-recipe.sh <MACHINE-NAME> -f -c compile <RECIPE-NAME>

|—> ./build-specific-recipe.sh dra7xx-evm -f -c compile linux   ?????

  • Hi,

    There is an extensive guide regarding building kernel, u-boot & Yocto file system on processors wiki:
    http://processors.wiki.ti.com/index.php/DRA7xx_GLSDK_Software_Developers_Guide

    For example to build the yocto file system, linux kernel and u-boot, you need to set up your environment :
    export PATH=<path to downloaded gcc cross compiler>/bin:$PATH

    cd $GLSDK

    ./bin/setup-yocto.sh

    cd yocto-layers

    mkdir downloads

    and then run:

    ./build-core-sdk.sh dra7xx-evm

    To rebuild kernel you need to, setup your environment:
    export ARCH=arm

    export CROSS_COMPILE=<use the downloaded corsscompiler>

    export PATH=<path to downloaded gcc cross compiler>/bin:$PATH

    cd $GLSDK

    And then run:
    make <target>_clean

    make <target>

    make <target>_install

    <target> can be linux or u-boot

    Hope this helps.

    Best Regards,

    Yordan

  • Thanks for your reply.

    But my question is how to compile Yocto project in GLSDK.

    The link http://processors.wiki.ti.com/index.php/DRA7xx_GLSDK_Software_Developers_Guide only told me how to compile linux kernel and uboot independent ,not the kernel and uboot in the Yocto Project.

    Sorry for my poor English.

  • Hi,

    The Building Yocto Filesystem section of DRA7xx Software Developers Guide (see http://processors.wiki.ti.com/index.php/DRA7xx_GLSDK_Software_Developers_Guide#Building_Yocto_Filesystem), shows the steps you need to take for compiling the kernel & u-boot in the Yocto Project.

    The execution of  ./build-core-sdk.sh dra7xx-evm script generates uImage, uImage.dtb, u-boot.bin & arago-glsdk-multimedia-image

    After completing the build, generated images can be found in yocto-layers/build/arago-tmp-external-linaro-toolchain/deploy/images/

    Best Regards,

    Yordan

  • Thank you.

    Yesterday I have recompiled the yocto project using execution of  ./build-specific-recipe.sh dra7xx-evm arago-glsdk-multimedia-image.

    I got an ERROR message ,like this:

    ERROR: Task 2744 (/home/ubuntu/work/ti-glsdk_dra7xx-evm_6_03_00_01/yocto-layers/sources/oe-core/meta/recipes-connectivity/openssl/openssl_1.0.1e.bb, do_compile) failed with exit code '1'

    So  i want to remove the openssl from target arago-glsdk-multimedia-image.What can i do?

  • Hi,

    To avoid compiling the openssl with your yocto build you can simply go to yocto-layers/sources/oe-core/meta/recipes-connectivity/ and remove openssl .conf & .bb files. After that the build would ignore this component. 

    But I wouldn't recommend removing components from your build.

    In order to avoid errors you need to setup your environment correctly(steps from http://processors.wiki.ti.com/index.php/DRA7xx_GLSDK_Software_Developers_Guide#Building_Yocto_Filesystem): PATH , CROSS_COMPILE, ARCH... then run the setup-yocto.sh script. Also if you work behind a proxy it is a good idea to export your proxy settings.

    And one more clarification the build-specific-recipe.sh script is used to build/rebuild yocto filesystem with a specified component passed with the <RECIPE-NAME>. Building arago-glsdk-multimedia-image  bitbakes the whole yocto fylesystem, linux kernel & u-boot.

    If you look at the source of the scripts (located in ti-glsdk_dra7xx-evm_6_03_00_01/bin)  you will see that executing ./build-core-sdk.sh actually runs the oe-layertool-setup.sh, which configures your yocto build, and executes MACHINE=$1 bitbake arago-glsdk-multimedia-image

    Best Regards,

    Yordan

  • Thanks for your answers.

    In Yocto Project, is  there  no config file to configure which component the project need,same as the linux kernel menuconfig?

  • Hi,


    There is a configuration file for OMAP5 in GLSDK, it is called omap2plus_defconfig. And it is located in ti-glsdk_omap5-uevm_6_03_00_01/board-support/linux/arch/arm/configs folder.

    Best Regards,

    Yordan

  • Hello,

    Do you run your build on 64bit host machine?

    I was able to find a description of your openssl build issue. Please have a look at the following article:
    http://processors.wiki.ti.com/index.php/GLSDK_FAQs#How_to_fix_the_openssl_build_failure_on_a_64-bit_machine.3F

    Best Regards,

    Yordan

  • No,My host machine is 32 bit.

    uname -a
    Linux hwubuntu 3.5.0-25-generic #39~precise1-Ubuntu SMP Tue Feb 26 00:11:13 UTC 2013 i686 i686 i386 GNU/Linux