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/AM3352: building the SDK fails

Part Number: AM3352

Tool/software: Linux

Hi

I am in the process of trying to bring my tools up to date.

As part of this I am trying to rebuild the SDK before creating a new rootfs

I have followed the instructions in: http://processors.wiki.ti.com/index.php/Processor_SDK_Building_The_SDK

This I have done on a fresh virtual box installation of Ubuntu (Xenial)

It proceeds find until the bitbake build itself which fails with the output:

richard@distro-upgrader:~/tisdk/build$ MACHINE=am335x-evm bitbake core-image-minimal
NOTE: Your conf/bblayers.conf has been automatically updated.
NOTE: Your conf/bblayers.conf has been automatically updated.
Parsing recipes: 100% |##########################################| Time: 0:04:53
Parsing of 2509 .bb files complete (0 cached, 2509 parsed). 3257 targets, 529 skipped, 0 masked, 0 errors.
WARNING: No recipes available for:
  /home/richard/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           = "am335x-evm"
DISTRO            = "arago"
DISTRO_VERSION    = "2017.06"
TUNE_FEATURES     = "arm armv7a vfp thumb neon       callconvention-hard"
TARGET_FPU        = "hard"
meta-processor-sdk = "HEAD:2b7f7b00654eb3faaea7c66271ebe508b9ffc019"
meta-arago-distro 
meta-arago-extras = "HEAD:8f49ed67d0627a04ac72fd388fda7756273ba2d7"
meta-browser      = "HEAD:08576b03af624b65ad949c410d84c11c7d1f2e39"
meta-openamp      = "HEAD:8a214032bfb7e8124bc1485c70c69f7d60abb819"
meta-qt5          = "HEAD:2c9f0e4eb0e9097f6f872ec1e1d81768a8ab5f1b"
meta-networking   
meta-ruby         
meta-python       
meta-oe           
meta-gnome        = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
meta-ti           = "HEAD:a18d57af8384ced25996739bb66d197c69efb77b"
meta-linaro-toolchain 
meta-optee        = "HEAD:49b0f32d7e955f250b0022d1b2f403f45a2c2d9c"
meta              = "HEAD:e3911133ee9aad7cc3ae89faea80a097f6614fab"

Initialising tasks: 100% |#######################################| Time: 0:00:04
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: quilt-native-0.64-r0 do_fetch: Checksum mismatch for local file /home/richard/tisdk/downloads/quilt-0.64.tar.gz
Cleaning and trying again.
WARNING: quilt-native-0.64-r0 do_fetch: Renaming /home/richard/tisdk/downloads/quilt-0.64.tar.gz to /home/richard/tisdk/downloads/quilt-0.64.tar.gz_bad-checksum_cacee90f72e7a0d0a7363c22f5a891b6
WARNING: quilt-native-0.64-r0 do_fetch: Checksum failure encountered with download of download.savannah.gnu.org/.../quilt-0.64.tar.gz - will attempt other sources if available
WARNING: quilt-native-0.64-r0 do_fetch: Checksum mismatch for local file /home/richard/tisdk/downloads/quilt-0.64.tar.gz
Cleaning and trying again.
WARNING: quilt-native-0.64-r0 do_fetch: Renaming /home/richard/tisdk/downloads/quilt-0.64.tar.gz to /home/richard/tisdk/downloads/quilt-0.64.tar.gz_bad-checksum_cacee90f72e7a0d0a7363c22f5a891b6
ERROR: quilt-native-0.64-r0 do_fetch: Checksum failure fetching download.savannah.gnu.org/.../quilt-0.64.tar.gz
ERROR: quilt-native-0.64-r0 do_fetch: Fetcher failure for URL: 'download.savannah.gnu.org/.../quilt-0.64.tar.gz'. Checksum mismatch!
File: '/home/richard/tisdk/downloads/quilt-0.64.tar.gz' has md5 checksum cacee90f72e7a0d0a7363c22f5a891b6 when fc0310db5868a0873d602d4332a76d43 was expected
File: '/home/richard/tisdk/downloads/quilt-0.64.tar.gz' has sha256 checksum 00cb26cec3635883fe3931e4dc4a6e03adf8ef27d2b64ff515dde07f6b6221f0 when c4bfd3282214a288e8d3e921ae4d52e73e24c4fead72b5446752adee99a7affd 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] = "cacee90f72e7a0d0a7363c22f5a891b6"
SRC_URI[sha256sum] = "00cb26cec3635883fe3931e4dc4a6e03adf8ef27d2b64ff515dde07f6b6221f0"
Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or otherwise unexpectedly modified.

ERROR: quilt-native-0.64-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/richard/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/quilt-native/0.64-r0/temp/log.do_fetch.11275
ERROR: Task (/home/richard/tisdk/sources/oe-core/meta/recipes-devtools/quilt/quilt-native_0.64.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2 tasks of which 0 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/richard/tisdk/sources/oe-core/meta/recipes-devtools/quilt/quilt-native_0.64.bb:do_fetch
Summary: There were 6 WARNING messages shown.
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
richard@distro-upgrader:~/tisdk/build$ 

Having made no changes to the cloned sources this is unexpected.

Any suggestions for what can be going wrong? and how to fix it?

Thanks in advance,

Richard

  • Hello Richard,

    The error you have to focus is this:

    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] = "cacee90f72e7a0d0a7363c22f5a891b6"
    SRC_URI[sha256sum] = "00cb26cec3635883fe3931e4dc4a6e03adf8ef27d2b64ff515dde07f6b6221f0"
    Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or otherwise unexpectedly modified.

    As a workaround click on download.savannah.gnu.org/.../quilt-0.64.tar.gz download the quilt-0.64.tar.gz through your WEB browser, put it on /home/richard/tisdk/downloads directory, execute touch quilt-0.64.tar.gz.done on /home/richard/tisdk/downloads
    Compare the checsums and bitbake:
    md5sum quilt-0.64.tar.gz
    sha256sum quilt-0.64.tar.gz

    They should be:
    MD5: fc0310db5868a0873d602d4332a76d43 quilt-0.64.tar.gz
    SHA256: c4bfd3282214a288e8d3e921ae4d52e73e24c4fead72b5446752adee99a7affd quilt-0.64.tar.gz

    Best regards,
    Kemal

  • Hi Kemal

    just clicking that link failed to find the file: it appears unable to resolve ftp.yzu.edu.tw

    a quick web search shows it available at a mirror: download-mirror.savannah.gnu.org/.../

    The MD5 and SHA256 for the file pulled from there match the values you provided so I am hopeful that the build I have just kicked off will have a better chance of completing.

    Does the location of the file in the source need to be updated?

    Thanks
    Richard
  • No, looks like the link uses geoip mirroring, when I click on that link it gets download from http://ftp.cc.uoc.gr.