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/K2GICE: Issues in building Linux-RT SDK for K2G ICE

Part Number: K2GICE

Tool/software: Linux

 Hello,

 

I am trying to build the sdk on k2g-evm on Ubuntu 16.04 64 bit version using the steps mentioned in the below link:

http://processors.wiki.ti.com/index.php/Processor_SDK_Building_The_SDK

 

I have tried to execute the method for building the sdk:

$ 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
$ mkdir downloads
$ cd downloads
$ # Assuming src file downloaded to $HOME/Downloads
$ tar xvf $HOME/Downloads/<target-board>-linux-sdk-arago-src-##.##.##.##.tar.xz
$ <target-board>-linux-sdk-arago-src-##.##.##.##/get_build_sources.sh <target-board>-linux-sdk-arago-src-##.##.##.##/source_pkg_list.txt
$ cd ..</span>
$ cd build
$ . conf/setenv
$ export PATH=$HOME/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:$PATH
$ MACHINE=k2g-evm ARAGO_RT_ENABLE=1 bitbake arago-core-tisdk-image

 

It gives the me the following error while building the sdk:

ERROR: ParseError at /home/manish/tisdk/sources/meta-processor-sdk/recipes-ti/includes/tisdk-paths.inc:1:Could not include required file recipes-ti/includes/arago-paths.inc

 

On further inspection, I find that the file  "arago-paths.inc"doesn’t exist.

 

Kindly let me know how should I proceed.

 

Regards

Manish

  • Manish,

    Would it be possible for you to attach the entire log of the above sequence? Thanks.
  • Hello Ron,

    I was able to resolve the issue. The main cause of issue was improper configuration for git core protocol.

    I was fetching packages listed in configs/processor-sdk.txt using https:// - protocol instead of git:// protocol.

    With proper settings, I was able to fetch the right packages using core git:// protocol with correct commit head.

    While building the 'libcap' recipe only(not building the entire sdk) using the process described here for recipes:

    processors.wiki.ti.com/.../Processor_SDK_Building_The_SDK

    I am receiving the following Error:

    error: inflate: data stream error (incorrect data check)
    | error: failed to unpack compressed delta at offset 435900272 from /home/username/tisdk/downloads/git2/git.ti.com.processor-sdk.processor-sdk-linux.git/objects/pack/pack-823a4a591ace78c157b5297f3edb7b20b7b54680.pack
    | error: failed to read object a72065ed64d14aeb3d8504221af3ed6925576c6a at offset 435900268 from /home/username/tisdk/downloads/git2/git.ti.com.processor-sdk.processor-sdk-linux.git/objects/pack/pack-823a4a591ace78c157b5297f3edb7b20b7b54680.pack
    | fatal: packed object a72065ed64d14aeb3d8504221af3ed6925576c6a (stored in /home/username/tisdk/downloads/git2/git.ti.com.processor-sdk.processor-sdk-linux.git/objects/pack/pack-823a4a591ace78c157b5297f3edb7b20b7b54680.pack) is corrupt

    I have attached the log file for errors. 

    Regards

    Manish

    MACHINE=k2g-evm ARAGO_RT_ENABLE=1 bitbake libcap
    Loading cache: 100% |############################################| Time: 0:00:06
    Loaded 3797 entries from dependency cache.
    Parsing recipes: 100% |##########################################| Time: 0:00:06
    Parsing of 3033 .bb files complete (3030 cached, 3 parsed). 3800 targets, 533 skipped, 0 masked, 0 errors.
    WARNING: No recipes available for:
      /home/username/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           = "k2g-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:00:08
    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
    WARNING: libpcre-native-8.39-r0 do_fetch: Checksum mismatch for local file /home/username/tisdk/downloads/pcre-8.39.tar.bz2
    Cleaning and trying again.
    WARNING: libpcre-native-8.39-r0 do_fetch: Renaming /home/username/tisdk/downloads/pcre-8.39.tar.bz2 to /home/username/tisdk/downloads/pcre-8.39.tar.bz2_bad-checksum_493db6589cf2b32b98e3a9e81f99fbe9
    WARNING: libpcre-native-8.39-r0 do_fetch: Checksum failure encountered with download of http://downloads.sourceforge.net/projects/pcre/files/prce/8.39/pcre-8.39.tar.bz2 - will attempt other sources if available
    WARNING: linux-ti-staging-rt-4.9.59+gitAUTOINC+273202a0d3-r10a.arago1.tisdk16 do_fetch: Failed to fetch URL git://git.ti.com/processor-sdk/processor-sdk-linux.git;protocol=git;branch=processor-sdk-linux-rt-04.02.00, attempting MIRRORS if available
    ERROR: linux-ti-staging-rt-4.9.59+gitAUTOINC+273202a0d3-r10a.arago1.tisdk16 do_create_srcipk: Function failed: do_create_srcipk (log file is located at /home/username/tisdk/build/arago-tmp-external-linaro-toolchain/work/k2g_evm-linux-gnueabi/linux-ti-staging-rt/4.9.59+gitAUTOINC+273202a0d3-r10a.arago1.tisdk16/temp/log.do_create_srcipk.6957)
    ERROR: Logfile of failure stored in: /home/username/tisdk/build/arago-tmp-external-linaro-toolchain/work/k2g_evm-linux-gnueabi/linux-ti-staging-rt/4.9.59+gitAUTOINC+273202a0d3-r10a.arago1.tisdk16/temp/log.do_create_srcipk.6957
    Log data follows:
    | DEBUG: Executing python function sstate_task_prefunc
    | DEBUG: Python function sstate_task_prefunc finished
    | DEBUG: Executing shell function do_create_srcipk
    | /home/username/tisdk/build/arago-tmp-external-linaro-toolchain/work/k2g_evm-linux-gnueabi/linux-ti-staging-rt/4.9.59+gitAUTOINC+273202a0d3-r10a.arago1.tisdk16/temp/run.do_create_srcipk.6957: 198: [: true: unexpected operator
    | error: inflate: data stream error (incorrect data check)
    | error: failed to unpack compressed delta at offset 435900272 from /home/username/tisdk/downloads/git2/git.ti.com.processor-sdk.processor-sdk-linux.git/objects/pack/pack-823a4a591ace78c157b5297f3edb7b20b7b54680.pack
    | error: failed to read object a72065ed64d14aeb3d8504221af3ed6925576c6a at offset 435900268 from /home/username/tisdk/downloads/git2/git.ti.com.processor-sdk.processor-sdk-linux.git/objects/pack/pack-823a4a591ace78c157b5297f3edb7b20b7b54680.pack
    | fatal: packed object a72065ed64d14aeb3d8504221af3ed6925576c6a (stored in /home/username/tisdk/downloads/git2/git.ti.com.processor-sdk.processor-sdk-linux.git/objects/pack/pack-823a4a591ace78c157b5297f3edb7b20b7b54680.pack) is corrupt
    | WARNING: exit code 128 from a shell command.
    | ERROR: Function failed: do_create_srcipk (log file is located at /home/username/tisdk/build/arago-tmp-external-linaro-toolchain/work/k2g_evm-linux-gnueabi/linux-ti-staging-rt/4.9.59+gitAUTOINC+273202a0d3-r10a.arago1.tisdk16/temp/log.do_create_srcipk.6957)
    ERROR: Task (/home/username/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging-rt_4.9.bb:do_create_srcipk) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 476 tasks of which 0 didn't need to be rerun and 1 failed.
    
    Summary: 1 task failed:
      /home/username/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging-rt_4.9.bb:do_create_srcipk
    Summary: There were 6 WARNING messages shown.
    Summary: There was 1 ERROR message shown, returning a non-zero exit code.
    
    

  • I updated the configs/processor-sdk.txt Scripts with proper git files and git check out for it. The build process described above worked properly.