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/DRA74: Yocto build failed

Part Number: DRA74

Tool/software: Linux

Hi,

I completed my yocto build with some errors, I was following this thread actually to build yocto  http://processors.wiki.ti.com/index.php/Processor_SDK_Linux_Automotive_Software_Developers_Guide.

I downloaded the ti-processor-sdk-linux-automotive-dra7xx-evm-5.00.00.01-installer.bin and installed it, I dit not change anything,I followed the development instructions, and when I executed ./build-core-sdk.sh dra7xx-evm, I was prompted with the following error:

linux@linux:yocto-layers$ ./build-core-sdk.sh dra7xx-evm
[PSDKLA]>
[PSDKLA]> Current Directory is /home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers
[PSDKLA]> PATH is /home/linux/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin:/home/linux/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
[PSDKLA]> Building on linux running Linux linux 4.4.0-141-generic #167~14.04.1-Ubuntu SMP Mon Dec 10 13:20:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[PSDKLA]> Starting Yocto build at 2019年 01月 16日 星期三 15:17:37 CST
[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: /home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 44595, PID: 10772
NOTE: Your conf/bblayers.conf has been automatically updated.
Loading cache: 100% |#########################################################################################################################################################################| ETA: 00:00:00
Loaded 2849 entries from dependency cache.
Parsing recipes: 100% |#######################################################################################################################################################################| Time: 00:00:04
Parsing of 2254 .bb files complete (2220 cached, 34 parsed). 2848 targets, 443 skipped, 0 masked, 0 errors.
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
WARNING: libloki-0.1.7-r0 do_fetch: Checksum mismatch for local file /home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/downloads/libloki_0.1.7.orig.tar.gz
Cleaning and trying again.
WARNING: libloki-0.1.7-r0 do_fetch: Renaming /home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/downloads/libloki_0.1.7.orig.tar.gz to /home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/downloads/libloki_0.1.7.orig.tar.gz_bad-checksum_bd349456f4d44cf065d81b2360922098
WARNING: libloki-0.1.7-r0 do_fetch: Checksum mismatch for local file /home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/downloads/libloki_0.1.7.orig.tar.gz
Cleaning and trying again.
WARNING: libloki-0.1.7-r0 do_fetch: Renaming /home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/downloads/libloki_0.1.7.orig.tar.gz to /home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/downloads/libloki_0.1.7.orig.tar.gz_bad-checksum_bd349456f4d44cf065d81b2360922098
WARNING: libloki-0.1.7-r0 do_fetch: Checksum failure encountered with download of http://libloki.sourcearchive.com/downloads/0.1.7-3/libloki_0.1.7.orig.tar.gz - will attempt other sources if available
ERROR: libloki-0.1.7-r0 do_fetch: Fetcher failure for URL: 'http://libloki.sourcearchive.com/downloads/0.1.7-3/libloki_0.1.7.orig.tar.gz'. Checksum mismatch!
File: '/home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/downloads/libloki_0.1.7.orig.tar.gz' has md5 checksum bd349456f4d44cf065d81b2360922098 when af532c24a7f2e12d0829be8201934d92 was expected
File: '/home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/downloads/libloki_0.1.7.orig.tar.gz' has sha256 checksum 387ad3892f9e2cd5917218526d0853c3255f5d68dc7212250accdc78d535f9df when 0c2094ce916b106731c8be61c32f538a22e1c0f8398bd5d6295b13d08e0c41a3 was expected
If this change is expected (e.g. you have upgraded to a new version without updating the checksums) then you can use these lines within the recipe:
SRC_URI[md5sum] = "bd349456f4d44cf065d81b2360922098"
SRC_URI[sha256sum] = "387ad3892f9e2cd5917218526d0853c3255f5d68dc7212250accdc78d535f9df"
Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or otherwise unexpectedly modified.

ERROR: libloki-0.1.7-r0 do_fetch: Function failed: Fetcher failure for URL: 'http://libloki.sourcearchive.com/downloads/0.1.7-3/libloki_0.1.7.orig.tar.gz'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/libloki/0.1.7-r0/temp/log.do_fetch.10842
ERROR: Task 4988 (/home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/sources/meta-arago/meta-arago-extras/recipes-support/loki/libloki_0.1.7.bb, do_fetch) failed with exit code '1'
WARNING: linux-libc-headers-4.4-r0.arago1 do_fetch: Failed to fetch URL git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=ti-lsk-linux-4.4.y, attempting MIRRORS if available
ERROR: linux-libc-headers-4.4-r0.arago1 do_fetch: Fetcher failure: Fetch command failed with exit code 128, output:
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

ERROR: linux-libc-headers-4.4-r0.arago1 do_fetch: Function failed: Fetcher failure for URL: 'git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=ti-lsk-linux-4.4.y'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/linux-libc-headers/4.4-r0.arago1/temp/log.do_fetch.10832
ERROR: Task 3665 (/home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/sources/oe-core/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.4.bb, do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1159 tasks of which 1157 didn't need to be rerun and 2 failed.
NOTE: Writing buildhistory
Waiting for 0 running tasks to finish:

Summary: 2 tasks failed:
/home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/sources/meta-arago/meta-arago-extras/recipes-support/loki/libloki_0.1.7.bb, do_fetch
/home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/sources/oe-core/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.4.bb, do_fetch
Summary: There were 6 WARNING messages shown.
Summary: There were 4 ERROR messages shown, returning a non-zero exit code.
[PSDKLA]>
[PSDKLA]> Completed Yocto build at 2019年 01月 16日 星期三 17:40:53 CST
[PSDKLA]>

  • When the compilation is finished, there are four errors in total. as follows

    WARNING: libloki-0.1.7-r0 do_fetch: Checksum mismatch for local file /home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/downloads/libloki_0.1.7.orig.tar.gz
    Cleaning and trying again.
    WARNING: libloki-0.1.7-r0 do_fetch: Renaming /home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/downloads/libloki_0.1.7.orig.tar.gz to /home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/downloads/libloki_0.1.7.orig.tar.gz_bad-checksum_bd349456f4d44cf065d81b2360922098
    WARNING: libloki-0.1.7-r0 do_fetch: Checksum mismatch for local file /home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/downloads/libloki_0.1.7.orig.tar.gz
    Cleaning and trying again.
    WARNING: libloki-0.1.7-r0 do_fetch: Renaming /home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/downloads/libloki_0.1.7.orig.tar.gz to /home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/downloads/libloki_0.1.7.orig.tar.gz_bad-checksum_bd349456f4d44cf065d81b2360922098
    WARNING: libloki-0.1.7-r0 do_fetch: Checksum failure encountered with download of libloki.sourcearchive.com/.../libloki_0.1.7.orig.tar.gz - will attempt other sources if available
    ERROR: libloki-0.1.7-r0 do_fetch: Fetcher failure for URL: 'libloki.sourcearchive.com/.../libloki_0.1.7.orig.tar.gz'. Checksum mismatch!
    File: '/home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/downloads/libloki_0.1.7.orig.tar.gz' has md5 checksum bd349456f4d44cf065d81b2360922098 when af532c24a7f2e12d0829be8201934d92 was expected
    File: '/home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/downloads/libloki_0.1.7.orig.tar.gz' has sha256 checksum 387ad3892f9e2cd5917218526d0853c3255f5d68dc7212250accdc78d535f9df when 0c2094ce916b106731c8be61c32f538a22e1c0f8398bd5d6295b13d08e0c41a3 was expected
    If this change is expected (e.g. you have upgraded to a new version without updating the checksums) then you can use these lines within the recipe:
    SRC_URI[md5sum] = "bd349456f4d44cf065d81b2360922098"
    SRC_URI[sha256sum] = "387ad3892f9e2cd5917218526d0853c3255f5d68dc7212250accdc78d535f9df"
    Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or otherwise unexpectedly modified.

    ERROR: libloki-0.1.7-r0 do_fetch: Function failed: Fetcher failure for URL: 'libloki.sourcearchive.com/.../libloki_0.1.7.orig.tar.gz'. Unable to fetch URL from any source.
    ERROR: Logfile of failure stored in: /home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/libloki/0.1.7-r0/temp/log.do_fetch.10842
    ERROR: Task 4988 (/home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/sources/meta-arago/meta-arago-extras/recipes-support/loki/libloki_0.1.7.bb, do_fetch) failed with exit code '1'
    WARNING: linux-libc-headers-4.4-r0.arago1 do_fetch: Failed to fetch URL git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=ti-lsk-linux-4.4.y, attempting MIRRORS if available
    ERROR: linux-libc-headers-4.4-r0.arago1 do_fetch: Fetcher failure: Fetch command failed with exit code 128, output:
    fatal: The remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed

    ERROR: linux-libc-headers-4.4-r0.arago1 do_fetch: Function failed: Fetcher failure for URL: 'git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=ti-lsk-linux-4.4.y'. Unable to fetch URL from any source.
    ERROR: Logfile of failure stored in: /home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/linux-libc-headers/4.4-r0.arago1/temp/log.do_fetch.10832
    ERROR: Task 3665 (/home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/sources/oe-core/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.4.bb, do_fetch) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 1159 tasks of which 1157 didn't need to be rerun and 2 failed.
    NOTE: Writing buildhistory
    Waiting for 0 running tasks to finish:

    Summary: 2 tasks failed:
    /home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/sources/meta-arago/meta-arago-extras/recipes-support/loki/libloki_0.1.7.bb, do_fetch
    /home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/sources/oe-core/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.4.bb, do_fetch
    Summary: There were 6 WARNING messages shown.
    Summary: There were 4 ERROR messages shown, returning a non-zero exit code.
    [PSDKLA]>
    [PSDKLA]> Completed Yocto build at 2019年 01月 16日 星期三 17:40:53 CST
    [PSDKLA]>
  • Hi Fang,

    I was able to reproduce the issue that you reported and you can resolve the issue by using the following URL as a mirror on your Yocto.
    software-dl.ti.com/.../

    This has copies of the files that you are trying to fetch.

    Kindly try this at your end and it should resolve your problem.

    Regards
    Karthik
  • Hi Karthik,

    Thans for you help.There is a question I would like to ask, link "software-dl.ti.com/.../" I added it to which file, I added to build/local.conf there is no effective. I downloaded the libloki_0.1.7.orig.tar.gz file directly, and the verification error can be gone, but it will prompt ERROR: libloki-0.1.7-r0 do_fetch: Fetcher failure. The log as follows,

    NOTE: Preparing RunQueue
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    WARNING: libloki-0.1.7-r0 do_fetch: Failed to fetch URL libloki.sourcearchive.com/.../libloki_0.1.7.orig.tar.gz, attempting MIRRORS if available
    ERROR: libloki-0.1.7-r0 do_fetch: Fetcher failure: Fetch command failed with exit code 4, no output
    ERROR: libloki-0.1.7-r0 do_fetch: Function failed: Fetcher failure for URL: 'libloki.sourcearchive.com/.../libloki_0.1.7.orig.tar.gz'. Unable to fetch URL from any source.
    ERROR: Logfile of failure stored in: /home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/libloki/0.1.7-r0/temp/log.do_fetch.9129
    ERROR: Task 4988 (/home/linux/ti-processor-sdk-linux-automotive-dra7xx-evm-5_00_00_01/yocto-layers/sources/meta-arago/meta-arago-extras/recipes-support/loki/libloki_0.1.7.bb, do_fetch) failed with exit code '1'

    Best Regards

    Fang

  • Hi Fang,

    You will need to something like this in your local.conf for this mirror to take effect.

    echo "INHERIT += \"own-mirrors\"" >> conf/local.conf
    echo "SOURCE_MIRROR_URL = \"software-dl.ti.com/.../\"" >> conf/local.conf
    

    If you "tail -2 local.conf" it should read this way.

    INHERIT += "own-mirrors"
    SOURCE_MIRROR_URL = "http://software-dl.ti.com/processor-sdk-mirror/sources/"

    Please try this and share your results.

    Regards

    Karthik

  • Hi Karthik,

    I did what you said, and now I have successfully compiled yocto sdk. Thank you.

    Regards.

    Fang