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.

MCSDK offline Build fails

Hi,

I am trying to build Yocto MCSDK as offline, i have downloaded the latest version from the ti site "mcsdk-3_01_01_04.arago.src.tar.gz"  untar the package.

After setting the build environment, edit the "conf/local.conf" file. I have added the following lines in the configuration file.

SOURCE_MIRROR_URL = "file:$(PWD)/mcsdk_offline/mcsdk/downloads/"
INHERIT += "own-mirrors"
BB_GENERATE_MIRROR_TARBALLS = "1"
BB_NO_NETWORK = "1"
BB_FETCH_PREMIRRORONLY = "1"
CONNECTIVITY_CHECK_URIS=""
DISABLE_NETWORK_SANITY = "1"

BB_NO_NETWORK = "1"

But as soon as i try to execute the command to build the rootfs i am getting the following error -

MACHINE=keystone-evm TOOLCHAIN_BRAND=linaro ARAGO_BRAND=mcsdk bi
tbake tisdk-server-rootfs-image
Pseudo is not present but is required, building this first before the main build
ERROR: Error executing a python function in <code>:                                                          | ETA:  --:--:--
ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception NetworkAccess: Network access disabled through BB_NO_NETWORK but access requested with command git ls-remote git://github.com/TI-OpenLink/ti-utils.git ol_R5.SP3.05 (for url None)

ERROR: Error executing a python function in <code>:
ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception NetworkAccess: Network access disabled through BB_NO_NETWORK but access requested with command git ls-remote git://github.com/TI-OpenLink/ti-utils.git ol_R5.00.18 (for url None)

Could you please help me out, if i am missing any configuration.

Thanks & regards

Amit K

  • Hi Amit Kumar,

    Please follow up the instructions given in TI WIKI for using MCSDK.

    For Yocot build please refer to : http://processors.wiki.ti.com/index.php/MCSDK_UG_Chapter_Exploring

    user guide -

    For Yocot build please refer to :

     

    Regards,

    Shankari

  • Hi Shankari G

    Thanks for replay!!!!

    I am following the same link to build the Yocto MCSDK. After doing the “Prerequisite” and “Configuration”, I have downloaded the snapshot of source packages in MCSDK release.



    And un-taring it into the “mcsdk” directory. Now, since we have the all the packages in one place is it possible to build the MCSDK without the internet connection.

    If it’s possible how to build the MCSDK without the internet connection.

    Thanks & regards

    Amit K
  • I have followed the below steps for yocto build.

    http://processors.wiki.ti.com/index.php/MCSDK_UG_Chapter_Exploring#Yocto

    sudo apt-get install diffstat texi2html texinfo subversion chrpath build-essential subversion ccache sed wget cvs coreutils unzip texinfo docbook-utils gawk help2man file g++ bison flex htmldoc chrpath libxext-dev xserver-xorg-dev doxygen socat uboot-mkimage git

    git clone git://arago-project.org/git/projects/oe-layersetup.git

    git clone git://arago-project.org/git/people/hzhang/oe-layersetup-mcsdk.git mcsdk

    *) Open "mcsdk-03.00.03.15-config.txt" and change the "http" to "git"

    ./oe-layertool-setup.sh -f configs/mcsdk/mcsdk-03.00.03.15-config.txt

    MACHINE=keystone-evm TOOLCHAIN_BRAND=linaro ARAGO_BRAND=mcsdk bitbake tisdk-server-rootfs-image

    For OFFLINE build,

    Untar the "mcsdk-3_01_01_04.arago.src.tar.gz" file into "oe-layersetup/mcsdk" folder as "downloads" (It will untar the files with 'downloads' directory)

    Log:

    titus@Titus:~/workdir/ti-e2e/keystone/yocto/oe-layersetup/mcsdk/build$ MACHINE=keystone-evm TOOLCHAIN_BRAND=linaro ARAGO_BRAND=mcsdk bitbake tisdk-server-rootfs-image
    Pseudo is not present but is required, building this first before the main build
    Loading cache: 100% |################################################################################################| ETA: 00:00:00
    Loaded 1900 entries from dependency cache.
    Parsing recipes: 100% |##############################################################################################| Time: 00:00:13
    Parsing of 1540 .bb files complete (1534 cached, 6 parsed). 1905 targets, 169 skipped, 7 masked, 0 errors.

    Build Configuration:
    BB_VERSION = "1.17.0"
    TARGET_ARCH = "arm"
    TARGET_OS = "linux-gnueabi"
    MACHINE = "keystone-evm"
    DISTRO = "arago"
    DISTRO_VERSION = "2013.04"
    TUNE_FEATURES = "${TUNE_FEATURES_tune-cortexa8thf-neon}"
    TARGET_FPU = "soft"
    meta-arago-distro
    meta-arago-extras = "(nobranch):b87c2ed933d55b5e6a45148c8bdd73458273ad4a"
    toolchain-layer
    meta-oe = "(nobranch):f00028caf257e386c0f3ae46bd4b3ba53dd0729d"
    meta-ti = "(nobranch):0039248515b16b88161844aef5d507737331c834"
    meta-linaro = "(nobranch):d0558fa4304592622423582f8b464e1c22cfe6f1"
    meta = "(nobranch):d6c69df33e5b447eb01ee7fca921b94c3a853203"

    NOTE: Resolving any missing task queue dependencies
    NOTE: Preparing runqueue
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    Currently 1 running tasks (46 of 72):
    0: automake-native-1.12.3-r2 do_fetch (pid 14009)
  • Hi,
    Thanks for the reply......
    I have followed the steps suggested by Mr. Titus S. but still i am not able to build the MCSDK offline. On-line(with internet connection) build is success, there are some URL error i found and fix it, it working fine.
    But my requirement is can we build the MCSDK as offline (without internet connection).
    As you suggest for Offline build -
    Untar the "mcsdk-3_01_01_04.arago.src.tar.gz" file into "oe-layersetup/mcsdk" folder as "downloads" (It will untar the files with 'downloads' directory).
    I did the same and unplug the internet connection, as soon as run the build command "MACHINE=keystone-evm TOOLCHAIN_BRAND=linaro ARAGO_BRAND=mcsdk bitbake tisdk-server-rootfs-image" it's throwing an error.
    Do we have to modify anything in the configuration file - "conf/local.conf" ? If yes what should be add there, and if not how to build it offline.
    Please suggest if you have done this before.

    Thanks & Regards
    Amit K
  • Hi Amit,

    You can't build yocto in offline.
    We need internet access for yocto build though you have downloads folder with all necessary packages and it will be finished quickly and it wont fetch the package from internet.