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/PROCESSOR-SDK-AM65X: Arago build error

Part Number: PROCESSOR-SDK-AM65X

Tool/software: Linux

Hi,

I am trying to build  linux for AM65x using this steps.

In between I came across with this error.

ERROR: When reparsing /u/yocto/tisdk/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_configure, the basehash value changed from f2d4cf59f0735e926389cdb33c1812f1 to b3d016ab35a13c6491b48827a3dcb468. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /u/yocto/tisdk/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_compile, the basehash value changed from 992dfaaa1fed78ab75e1d63cdf83d713 to 5d5856cdadea75f4369b382d250fb28a. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /u/yocto/tisdk/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_configure, the basehash value changed from f2d4cf59f0735e926389cdb33c1812f1 to b3d016ab35a13c6491b48827a3dcb468. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /u/yocto/tisdk/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_compile, the basehash value changed from 992dfaaa1fed78ab75e1d63cdf83d713 to 5d5856cdadea75f4369b382d250fb28a. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /u/yocto/tisdk/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_configure, the basehash value changed from f2d4cf59f0735e926389cdb33c1812f1 to b3d016ab35a13c6491b48827a3dcb468. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /u/yocto/tisdk/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_compile, the basehash value changed from 992dfaaa1fed78ab75e1d63cdf83d713 to 5d5856cdadea75f4369b382d250fb28a. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /u/yocto/tisdk/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_configure, the basehash value changed from f2d4cf59f0735e926389cdb33c1812f1 to b3d016ab35a13c6491b48827a3dcb468. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /u/yocto/tisdk/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_compile, the basehash value changed from 992dfaaa1fed78ab75e1d63cdf83d713 to 5d5856cdadea75f4369b382d250fb28a. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /u/yocto/tisdk/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_configure, the basehash value changed from f2d4cf59f0735e926389cdb33c1812f1 to b3d016ab35a13c6491b48827a3dcb468. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /u/yocto/tisdk/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_compile, the basehash value changed from 992dfaaa1fed78ab75e1d63cdf83d713 to 5d5856cdadea75f4369b382d250fb28a. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /u/yocto/tisdk/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_configure, the basehash value changed from f2d4cf59f0735e926389cdb33c1812f1 to b3d016ab35a13c6491b48827a3dcb468. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /u/yocto/tisdk/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_compile, the basehash value changed from 992dfaaa1fed78ab75e1d63cdf83d713 to 5d5856cdadea75f4369b382d250fb28a. The metadata is not deterministic and this needs to be fixed.
ERROR: osal-rtos-01.00.00.14A-r0.0 do_configure: Taskhash mismatch 681e98f0f8facae9d7eabab0386a1b3d versus 1c7e520c1e69502029f8bfbc9749f1c9 for /u/yocto/tisdk/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_configure
ERROR: Taskhash mismatch 681e98f0f8facae9d7eabab0386a1b3d versus 1c7e520c1e69502029f8bfbc9749f1c9 for /u/yocto/tisdk/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_configure
ERROR: When reparsing /u/yocto/tisdk/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_configure, the basehash value changed from f2d4cf59f0735e926389cdb33c1812f1 to b3d016ab35a13c6491b48827a3dcb468. The metadata is not deterministic and this needs to be fixed.
ERROR: When reparsing /u/yocto/tisdk/sources/meta-ti/recipes-bsp/osal/osal-rtos_git.bb.do_compile, the basehash value changed from 992dfaaa1fed78ab75e1d63cdf83d713 to 5d5856cdadea75f4369b382d250fb28a. The metadata is not deterministic and this needs to be fixed.

I tried to resolve this error by using following commands

MACHINE=am65xx-evm bitbake ti-ipc-rtos osal-rtos -c cleanall

But still I am getting same error

Can you help me on this

Thanks and Regards,

Vishhnu

  • Hello Vishhnu,

    Can you post the output of this command?

    MACHINE=am65xx-evm bitbake-diffsigs -t osal-rtos do_configure

    Best regards,
    Kemal

  • Hi kemal,

    test@lpz-jags-3:/u/yocto/tisdk/build$ MACHINE=am65xx-evm bitbake-diffsigs -t osal-rtos do_configure
    NOTE: Starting bitbake server...
    ERROR: No sigdata files found matching osal-rtos do_configure

    This is the output.

    Thanks and regards,

    Vishnu

  • Hi Kemal,

    Can you explain why we need to use

    export TOOLCHAIN_PATH_ARMV7=$HOME/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf
    export TOOLCHAIN_PATH_ARMV8=$HOME/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu

    I came across with another build step that is having only one export.

    export PATH=$HOME/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf

    I am using PDK 5.3.0

    Thanks and Regards,
    Vishnu


  • In the current latest Processor SDK 5.3.0 you need to export the two ARMV7 and ARMV8 toolchain paths. This is the new style.

    export TOOLCHAIN_PATH_ARMV7=$HOME/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf
    export TOOLCHAIN_PATH_ARMV8=$HOME/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu

    Can you also post the output of this command?

    cd /u/yocto/tisdk/sources/meta-ti/
    git status

  • Hi kemal,

    test@lpz-jags-3:/u/yocto/tisdk/sources/meta-ti$ git status
    HEAD detached at 02e852b
    nothing to commit, working directory clean
    test@lpz-jags-3:/u/yocto/tisdk/sources/meta-ti$

    Thanks and Regards,

    Vishnu

  • Hi Kemal,

    While doing through muiltiple threads, I found reason for this error. My files could be currupted. So I restarted the build.

    But now I am getting another error. Due to linaro toolchain

    test@lpz-jags-3:/u/yocto/tisdk/build$ MACHINE=am65xx-evm bitbake arago-base-tisdk-image
    WARNING: You have included the meta-virtualization layer, but 'virtualization' has not been enabled in your DISTRO_FEATURES. Some bbappend files may not take effect. See the meta-virtualization README for details on enabling virtualization support.
    Loading cache: 100% |###########################################################################################################| Time: 0:00:01
    Loaded 4198 entries from dependency cache.
    Parsing recipes: 100% |#########################################################################################################| Time: 0:00:15
    Parsing of 3277 .bb files complete (3274 cached, 3 parsed). 4201 targets, 523 skipped, 0 masked, 0 errors.
    WARNING: No recipes available for:
      /u/yocto/tisdk/sources/meta-processor-sdk/recipes-devtools/python/python3-native_3.5.2.bbappend
      /u/yocto/tisdk/sources/meta-processor-sdk/recipes-ti/devtools/ti-cgt-arm-native_16.9.2.bbappend
    NOTE: Resolving any missing task queue dependencies

    Build Configuration:
    BB_VERSION           = "1.36.0"
    BUILD_SYS            = "x86_64-linux"
    NATIVELSBSTRING      = "ubuntu-16.04"
    TARGET_SYS           = "aarch64-linux"
    MACHINE              = "am65xx-evm"
    DISTRO               = "arago"
    DISTRO_VERSION       = "2018.10"
    TUNE_FEATURES        = "aarch64"
    TARGET_FPU           = ""
    meta-processor-sdk   = "HEAD:f33a37ac6baa8155302fa1faea99f1be5461779e"
    meta-ros             = "HEAD:e2566402ab108a19634354a934788109422cf409"
    meta-arago-distro    
    meta-arago-extras    = "HEAD:d4bc00af838df7a77f4ddbd3546755c5bad5b880"
    meta-browser         = "HEAD:26d50665e2f7223c5f4ad7481a8d2431e7cb55fb"
    meta-qt5             = "HEAD:d8b531530fa42b59aa0a5b123d87a30d749cbcc4"
    meta-virtualization  = "HEAD:b704c689b67639214b9568a3d62e82df27e9434f"
    meta-networking      
    meta-python          
    meta-oe              
    meta-gnome           
    meta-multimedia      
    meta-filesystems     = "HEAD:eae996301d9c097bcbeb8046f08041dc82bb62f8"
    meta-ti              = "HEAD:02e852b1a069463f937ea594e13fe5f88ce9b74d"
    meta-linaro-toolchain
    meta-optee           = "HEAD:cd9ee776044a2d8943be4cb019f063271e9c684d"
    meta                 = "HEAD:3638cb32ba9ba32b4d498fc31ab7fdf82f0d2495"

    Initialising tasks: 100% |######################################################################################################| Time: 0:00:11
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    WARNING: external-linaro-toolchain-2017.11-r0.arago36 do_populate_lic: ${COREBASE}/LICENSE is not a valid license file, please use '${COMMON_LICENSE_DIR}/MIT' for a MIT License file in LIC_FILES_CHKSUM. This will become an error in the future
    ERROR: binutils-linaro-2.27-r2016.10 do_compile: oe_runmake failed
    ERROR: binutils-linaro-2.27-r2016.10 do_compile: Function failed: do_compile (log file is located at /u/yocto/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/binutils/linaro-2.27-r2016.10/temp/log.do_compile.28439)
    ERROR: Logfile of failure stored in: /u/yocto/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/binutils/linaro-2.27-r2016.10/temp/log.do_compile.28439


    Can you help me to rectify this error.

    Thanks and Regards,

    Vishnu

  •  Hi kemal,

    The above error was due to package corruption.  I made a bitbake cleansstate for that package. And build is working now

    Now I am  able to build the SDK. But in /deploy/image/am65xx-evm/ folder I am not able to find MLO 

    These are the files present in that folder.

    arago-base-tisdk-image-am65xx-evm-20190627052256.rootfs.cpio
    arago-base-tisdk-image-am65xx-evm-20190627052256.rootfs.cpio.xz
    arago-base-tisdk-image-am65xx-evm-20190627052256.rootfs.manifest
    arago-base-tisdk-image-am65xx-evm-20190627052256.rootfs.tar.xz
    arago-base-tisdk-image-am65xx-evm-20190627052256.rootfs.tar.xz.md5
    arago-base-tisdk-image-am65xx-evm-20190627052256.rootfs.wic.xz
    arago-base-tisdk-image-am65xx-evm-20190627052256.testdata.json
    arago-base-tisdk-image-am65xx-evm.cpio
    arago-base-tisdk-image-am65xx-evm.cpio.xz
    arago-base-tisdk-image-am65xx-evm.manifest
    arago-base-tisdk-image-am65xx-evm.tar.xz
    arago-base-tisdk-image-am65xx-evm.tar.xz.md5
    arago-base-tisdk-image-am65xx-evm.testdata.json
    arago-base-tisdk-image-am65xx-evm.wic.xz
    bl31.bin
    bl31.elf
    bl32.bin
    bl32.elf
    Image
    Image--4.14.79+git0+e669d52447-r0c.arago5.tisdk4.9-am65xx-evm-20190626115958.bin
    Image--4.14.79+git0+e669d52447-r0c.arago5.tisdk4.9-k3-am654-base-board-20190626115958.dtb
    Image--4.14.79+git0+e669d52447-r0c.arago5.tisdk4.9-k3-am654-evm-csi2-ov490-20190626115958.dtbo
    Image--4.14.79+git0+e669d52447-r0c.arago5.tisdk4.9-k3-am654-evm-oldi-lcd1evm-20190626115958.dtbo
    Image--4.14.79+git0+e669d52447-r0c.arago5.tisdk4.9-k3-am654-evm-tc358876-20190626115958.dtbo
    Image--4.14.79+git0+e669d52447-r0c.arago5.tisdk4.9-k3-am654-gp-20190626115958.dtbo
    Image--4.14.79+git0+e669d52447-r0c.arago5.tisdk4.9-k3-am654-idk-20190626115958.dtbo
    Image--4.14.79+git0+e669d52447-r0c.arago5.tisdk4.9-k3-am654-idk-interposer-20190626115958.dtbo
    Image--4.14.79+git0+e669d52447-r0c.arago5.tisdk4.9-k3-am654-pcie-usb2-20190626115958.dtbo
    Image--4.14.79+git0+e669d52447-r0c.arago5.tisdk4.9-k3-am654-pcie-usb3-20190626115958.dtbo
    Image-am65xx-evm.bin
    Image-k3-am654-base-board.dtb
    Image-k3-am654-evm-csi2-ov490.dtbo
    Image-k3-am654-evm-oldi-lcd1evm.dtbo
    Image-k3-am654-evm-tc358876.dtbo
    Image-k3-am654-gp.dtbo
    Image-k3-am654-idk.dtbo
    Image-k3-am654-idk-interposer.dtbo
    Image-k3-am654-pcie-usb2.dtbo
    Image-k3-am654-pcie-usb3.dtbo
    k3-am654-base-board.dtb
    k3-am654-evm-csi2-ov490.dtbo
    k3-am654-evm-oldi-lcd1evm.dtbo
    k3-am654-evm-tc358876.dtbo
    k3-am654-gp.dtbo
    k3-am654-idk.dtbo
    k3-am654-idk-interposer.dtbo
    k3-am654-pcie-usb2.dtbo
    k3-am654-pcie-usb3.dtbo
    modules--4.14.79+git0+e669d52447-r0c.arago5.tisdk4.9-am65xx-evm-20190626115958.tgz
    modules-am65xx-evm.tgz
    sysfw-2019.02.itb
    sysfw.itb
    tiboot3-am65xx-evm-2018.01+gitAUTOINC+313dcd69c2-r30.tisdk1.bin
    tiboot3-am65xx-evm.bin
    tiboot3.bin
    ti-sci-firmware-am65x-gp.bin
    tispl.bin
    tispl.bin-am65xx-evm
    tispl.bin-am65xx-evm-2018.01+gitAUTOINC+313dcd69c2-r30.tisdk1
    u-boot-am65xx-evm-2018.01+gitAUTOINC+313dcd69c2-r30.tisdk1.img
    u-boot-am65xx-evm.img
    u-boot.img
    vmlinux--4.14.79+git0+e669d52447-r0c.arago5.tisdk4.9-k3-am654-base-board-20190626115958.dtb
    vmlinux--4.14.79+git0+e669d52447-r0c.arago5.tisdk4.9-k3-am654-evm-csi2-ov490-20190626115958.dtbo
    vmlinux--4.14.79+git0+e669d52447-r0c.arago5.tisdk4.9-k3-am654-evm-oldi-lcd1evm-20190626115958.dtbo
    vmlinux--4.14.79+git0+e669d52447-r0c.arago5.tisdk4.9-k3-am654-evm-tc358876-20190626115958.dtbo
    vmlinux--4.14.79+git0+e669d52447-r0c.arago5.tisdk4.9-k3-am654-gp-20190626115958.dtbo
    vmlinux--4.14.79+git0+e669d52447-r0c.arago5.tisdk4.9-k3-am654-idk-20190626115958.dtbo
    vmlinux--4.14.79+git0+e669d52447-r0c.arago5.tisdk4.9-k3-am654-idk-interposer-20190626115958.dtbo
    vmlinux--4.14.79+git0+e669d52447-r0c.arago5.tisdk4.9-k3-am654-pcie-usb2-20190626115958.dtbo
    vmlinux--4.14.79+git0+e669d52447-r0c.arago5.tisdk4.9-k3-am654-pcie-usb3-20190626115958.dtbo
    vmlinux.gz
    vmlinux.gz--4.14.79+git0+e669d52447-r0c.arago5.tisdk4.9-am65xx-evm-20190626115958.bin
    vmlinux.gz-am65xx-evm.bin
    vmlinux-k3-am654-base-board.dtb
    vmlinux-k3-am654-evm-csi2-ov490.dtbo
    vmlinux-k3-am654-evm-oldi-lcd1evm.dtbo
    vmlinux-k3-am654-evm-tc358876.dtbo
    vmlinux-k3-am654-gp.dtbo
    vmlinux-k3-am654-idk.dtbo
    vmlinux-k3-am654-idk-interposer.dtbo
    vmlinux-k3-am654-pcie-usb2.dtbo
    vmlinux-k3-am654-pcie-usb3.dtbo

    Which all files should I need to copy to sd card.

    Thanks and Regards,

    Vishnu

  • Hello Vishhnu,

    See this thread.

    Best regards,
    Kemal

  • Hi Kemal,

    Thank for your quick reply.

    That was informative.

    I have one more doubt. Where will be the uEnv.txt present after building linux?

    in deploy/imgaes I could not find it.

    Thanks and Regards,

    Vishnu

  • It is not mandatory to have an uEnv.txt in your SD card. In Processor SDK you can find it in <Processor SDK>/board-support/prebuilt-images/ directory. In OE build system you can find the AM65xx platform uEnv.txt in <tisdk>/sources/meta-arago/meta-arago-distro/recipes-tisdk/tisdk-uenv/tisdk-uenv/k3/ directory.