PROCESSOR-SDK-J721E: basehash value changed - errors when building

Part Number: PROCESSOR-SDK-J721E

Tool/software:

Working with ti-processor-sdk-linux-adas-j721e0evm11_00_00_00_08.  Have followed all the documentation to setup and build for our J721e-EVM board. The first time I was able to build the tisdk-base-image target. Then I was working on applying a patch and things would not build.  

I went back to clean and build the whole image again to see if wouild still build and I get basehash value changed errors.

MACHINE="j721e-evm" bitbake -c cleanall tisdk-base-image
MACHINE="j721e-evm" bitbake -k tisdk-base-image

ERROR: When reparsing /home/rstjohn/Repos/NTS2/ti-processor-sdk-linux-adas-j721e-evm11_00_00_00_08/yocto-build/sources/meta-arago/meta-arago-distro/recipes-core/images/tisdk-base-image.bb:do_image_tar, the basehash value changed from 74fe2d39fdc05688dae1a287b081c5ad07e353a93121deac7eb790b1b32122c4 to 6fca6af9e7ac6867f57a6d56fba09b124b16557fc81071f6d882037c07fa203e. The metadata is not deterministic and this needs to be fixed.
ERROR: The following commands may help:
ERROR: $ bitbake tisdk-base-image -cdo_image_tar -Snone
ERROR: Then:
ERROR: $ bitbake tisdk-base-image -cdo_image_tar -Sprintdiff

ERROR: When reparsing /home/rstjohn/Repos/NTS2/ti-processor-sdk-linux-adas-j721e-evm11_00_00_00_08/yocto-build/sources/meta-arago/meta-arago-distro/recipes-core/images/tisdk-base-image.bb:do_image_wic, the basehash value changed from 091887fbbcaa53e43bfe4c46db0698f50aabc7a45b406de0ffeb81c494cd7bdc to 2a9ced51b70d975aa65cb0d228add0ad001a07c0b45deeb85c7fa8fec1a548a0. The metadata is not deterministic and this needs to be fixed.
ERROR: The following commands may help:
ERROR: $ bitbake tisdk-base-image -cdo_image_wic -Snone
ERROR: Then:
ERROR: $ bitbake tisdk-base-image -cdo_image_wic -Sprintdiff

I did see some other similiar posts about this error and they suggested doing a clean and then building again. So i did that, as show above, and I still get the same errors.

  • Hi Randy,

    Then I was working on applying a patch and things would not build.  

    What do you mean by this? Were you editing the sources while the build was happening?

    Did you execute the commands recommended by bitbake? Can I see the results of those?

    Best,
    Jared

  • I was following guides and instructions to add a patch for a *.dtso file. I was not doing it while the build was happening. Matter of fact, I never got to editing the code because part of the steps to add a patch is to use "devtool" and the layer I was trying to patch "linux-ti-staging" would not suceed.

    devtool modify linux-ti-staging

    ERROR: Importing patch '0001-arm64-dts-ti-Add-DTB-overlay-for-vision-apps.patch' with striplevel '1'
    FileNotFoundError(2, 'No such file or directory')
    ERROR: Logfile of failure stored in: /home/rstjohn/Repos/NTS2/ti-processor-sdk-linux-adas-j721e-evm11_00_00_00_08/yocto-build/build/arago-tmp-default-glibc/work/j721e_evm-oe-linux/linux-ti-staging/6.12.17+git/devtooltmp-p2jz_v23/temp/log.do_patch.451230
    NOTE: Tasks Summary: Attempted 114 tasks of which 110 didn't need to be rerun and 1 failed.
    NOTE: Writing buildhistory
    NOTE: Writing buildhistory took: 8 seconds
    NOTE: Writing buildhistory
    NOTE: Writing buildhistory took: 4 seconds
    ERROR: Extracting source for linux-ti-staging failed


    So then I tried to build the whole image like I had previously done and it was failing with the bashhash error show above.

    So I so I did the cleans as recommdend, which seemd to suceed. But the full image build still gives me the bashhash errors.

    Here are the commands and outputs of the "clean" commands I ran.


     MACHINE="j721e-evm" bitbake tisdk-base-image -c cleansstate
    NOTE: Started PRServer with DBfile: /home/rstjohn/Repos/NTS2/ti-processor-sdk-linux-adas-j721e-evm11_00_00_00_08/yocto-build/build/cache/prserv.sqlite3, Address: 127.0.0.1:36611, PID: 446277
    Loading cache: 100% |####################################################################################################################################################################| Time: 0:00:06
    Loaded 11102 entries from dependency cache.
    Parsing recipes: 100% |##################################################################################################################################################################| Time: 0:00:02
    Parsing of 6982 .bb files complete (6980 cached, 2 parsed). 11104 targets, 1641 skipped, 0 masked, 0 errors.
    NOTE: Resolving any missing task queue dependencies
    NOTE: Resolving any missing task queue dependencies
    NOTE: Resolving any missing task queue dependencies
    NOTE: Resolving any missing task queue dependencies
    NOTE: Resolving any missing task queue dependencies
    NOTE: Resolving any missing task queue dependencies
    
    Build Configuration (mc:default):
    BB_VERSION           = "2.8.0"
    BUILD_SYS            = "x86_64-linux"
    NATIVELSBSTRING      = "ubuntu-22.04"
    TARGET_SYS           = "aarch64-oe-linux"
    MACHINE              = "j721e-evm"
    DISTRO               = "arago"
    DISTRO_VERSION       = "2025.01"
    TUNE_FEATURES        = "aarch64"
    TARGET_FPU           = ""
    meta-arago-distro
    meta-arago-extras
    meta-arago-test      = "HEAD:c04e85dd207dd24387edac10526b9ec971df9496"
    meta-qt6             = "HEAD:fce7cf8c3aa54b3650a30a79dce705838c32f3c3"
    meta-virtualization  = "HEAD:9e040ee8dd6025558ea60ac9db60c41bfeddf221"
    meta-networking
    meta-python
    meta-oe
    meta-gnome
    meta-filesystems
    meta-multimedia      = "HEAD:e92d0173a80ea7592c866618ef5293203c50544c"
    meta-ti-extras
    meta-ti-bsp          = "HEAD:a98a2e1029870b25e117d4c9410e75bfd955f35a"
    meta-arm
    meta-arm-toolchain   = "HEAD:8e0f8af90fefb03f08cd2228cde7a89902a6b37c"
    meta-clang           = "HEAD:eaa08939eaec9f620b14742ff3ac568553683034"
    meta                 = "HEAD:b214cc84a922f7a3fb7ebbc501189ce25e8bd2bd"
    meta-ti-foundational = "HEAD:1f96dccc01f10c73295e0bac6a15a97d3d4562fd"
    meta-edgeai          = "HEAD:81d1b80b2a314814c6d900e82ea2da93eee3f57d"
    workspace            = "HEAD:600ca93fd9effa1c9d1c406f4fc5ee7b32ee628c"
    
    
    Build Configuration:
    BB_VERSION           = "2.8.0"
    BUILD_SYS            = "x86_64-linux"
    NATIVELSBSTRING      = "ubuntu-22.04"
    TARGET_SYS           = "arm-oe-eabi"
    MACHINE              = "j721e-evm-k3r5"
    DISTRO               = "arago"
    DISTRO_VERSION       = "2025.01"
    TUNE_FEATURES        = "arm armv7a vfp thumb callconvention-hard"
    TARGET_FPU           = "hard"
    meta-arago-distro
    meta-arago-extras
    meta-arago-test      = "HEAD:c04e85dd207dd24387edac10526b9ec971df9496"
    meta-qt6             = "HEAD:fce7cf8c3aa54b3650a30a79dce705838c32f3c3"
    meta-virtualization  = "HEAD:9e040ee8dd6025558ea60ac9db60c41bfeddf221"
    meta-networking
    meta-python
    meta-oe
    meta-gnome
    meta-filesystems
    meta-multimedia      = "HEAD:e92d0173a80ea7592c866618ef5293203c50544c"
    meta-ti-extras
    meta-ti-bsp          = "HEAD:a98a2e1029870b25e117d4c9410e75bfd955f35a"
    meta-arm
    meta-arm-toolchain   = "HEAD:8e0f8af90fefb03f08cd2228cde7a89902a6b37c"
    meta-clang           = "HEAD:eaa08939eaec9f620b14742ff3ac568553683034"
    meta                 = "HEAD:b214cc84a922f7a3fb7ebbc501189ce25e8bd2bd"
    meta-ti-foundational = "HEAD:1f96dccc01f10c73295e0bac6a15a97d3d4562fd"
    meta-edgeai          = "HEAD:81d1b80b2a314814c6d900e82ea2da93eee3f57d"
    workspace            = "HEAD:600ca93fd9effa1c9d1c406f4fc5ee7b32ee628c"
    
    Sstate summary: Wanted 0 Local 0 Mirrors 0 Missed 0 Current 0 (0% match, 0% complete)###################################################################################                 | ETA:  0:00:00
    Initialising tasks: 100% |###############################################################################################################################################################| Time: 0:00:02
    NOTE: No setscene tasks
    NOTE: Executing Tasks
    NOTE: Tasks Summary: Attempted 2 tasks of which 0 didn't need to be rerun and all succeeded.
    NOTE: Writing buildhistory
    NOTE: Writing buildhistory took: 4 seconds
    NOTE: Writing buildhistory
    NOTE: Writing buildhistory took: 3 seconds

    MACHINE="j721e-evm" bitbake -c cleanall tisdk-base-image
    NOTE: Started PRServer with DBfile: /home/rstjohn/Repos/NTS2/ti-processor-sdk-linux-adas-j721e-evm11_00_00_00_08/yocto-build/build/cache/prserv.sqlite3, Address: 127.0.0.1:37843, PID: 447717
    Loading cache: 100% |####################################################################################################################################################################| Time: 0:00:06
    Loaded 11102 entries from dependency cache.
    Parsing recipes: 100% |##################################################################################################################################################################| Time: 0:00:02
    Parsing of 6982 .bb files complete (6980 cached, 2 parsed). 11104 targets, 1641 skipped, 0 masked, 0 errors.
    NOTE: Resolving any missing task queue dependencies
    NOTE: Resolving any missing task queue dependencies
    NOTE: Resolving any missing task queue dependencies
    NOTE: Resolving any missing task queue dependencies
    NOTE: Resolving any missing task queue dependencies
    NOTE: Resolving any missing task queue dependencies
    
    Build Configuration (mc:default):
    BB_VERSION           = "2.8.0"
    BUILD_SYS            = "x86_64-linux"
    NATIVELSBSTRING      = "ubuntu-22.04"
    TARGET_SYS           = "aarch64-oe-linux"
    MACHINE              = "j721e-evm"
    DISTRO               = "arago"
    DISTRO_VERSION       = "2025.01"
    TUNE_FEATURES        = "aarch64"
    TARGET_FPU           = ""
    meta-arago-distro
    meta-arago-extras
    meta-arago-test      = "HEAD:c04e85dd207dd24387edac10526b9ec971df9496"
    meta-qt6             = "HEAD:fce7cf8c3aa54b3650a30a79dce705838c32f3c3"
    meta-virtualization  = "HEAD:9e040ee8dd6025558ea60ac9db60c41bfeddf221"
    meta-networking
    meta-python
    meta-oe
    meta-gnome
    meta-filesystems
    meta-multimedia      = "HEAD:e92d0173a80ea7592c866618ef5293203c50544c"
    meta-ti-extras
    meta-ti-bsp          = "HEAD:a98a2e1029870b25e117d4c9410e75bfd955f35a"
    meta-arm
    meta-arm-toolchain   = "HEAD:8e0f8af90fefb03f08cd2228cde7a89902a6b37c"
    meta-clang           = "HEAD:eaa08939eaec9f620b14742ff3ac568553683034"
    meta                 = "HEAD:b214cc84a922f7a3fb7ebbc501189ce25e8bd2bd"
    meta-ti-foundational = "HEAD:1f96dccc01f10c73295e0bac6a15a97d3d4562fd"
    meta-edgeai          = "HEAD:81d1b80b2a314814c6d900e82ea2da93eee3f57d"
    workspace            = "HEAD:600ca93fd9effa1c9d1c406f4fc5ee7b32ee628c"
    
    
    Build Configuration:
    BB_VERSION           = "2.8.0"
    BUILD_SYS            = "x86_64-linux"
    NATIVELSBSTRING      = "ubuntu-22.04"
    TARGET_SYS           = "arm-oe-eabi"
    MACHINE              = "j721e-evm-k3r5"
    DISTRO               = "arago"
    DISTRO_VERSION       = "2025.01"
    TUNE_FEATURES        = "arm armv7a vfp thumb callconvention-hard"
    TARGET_FPU           = "hard"
    meta-arago-distro
    meta-arago-extras
    meta-arago-test      = "HEAD:c04e85dd207dd24387edac10526b9ec971df9496"
    meta-qt6             = "HEAD:fce7cf8c3aa54b3650a30a79dce705838c32f3c3"
    meta-virtualization  = "HEAD:9e040ee8dd6025558ea60ac9db60c41bfeddf221"
    meta-networking
    meta-python
    meta-oe
    meta-gnome
    meta-filesystems
    meta-multimedia      = "HEAD:e92d0173a80ea7592c866618ef5293203c50544c"
    meta-ti-extras
    meta-ti-bsp          = "HEAD:a98a2e1029870b25e117d4c9410e75bfd955f35a"
    meta-arm
    meta-arm-toolchain   = "HEAD:8e0f8af90fefb03f08cd2228cde7a89902a6b37c"
    meta-clang           = "HEAD:eaa08939eaec9f620b14742ff3ac568553683034"
    meta                 = "HEAD:b214cc84a922f7a3fb7ebbc501189ce25e8bd2bd"
    meta-ti-foundational = "HEAD:1f96dccc01f10c73295e0bac6a15a97d3d4562fd"
    meta-edgeai          = "HEAD:81d1b80b2a314814c6d900e82ea2da93eee3f57d"
    workspace            = "HEAD:600ca93fd9effa1c9d1c406f4fc5ee7b32ee628c"
    
    Sstate summary: Wanted 0 Local 0 Mirrors 0 Missed 0 Current 0 (0% match, 0% complete)###################################################################################                 | ETA:  0:00:00
    Initialising tasks: 100% |###############################################################################################################################################################| Time: 0:00:02
    NOTE: No setscene tasks
    NOTE: Executing Tasks
    NOTE: Tasks Summary: Attempted 3 tasks of which 0 didn't need to be rerun and all succeeded.
    NOTE: Writing buildhistory
    NOTE: Writing buildhistory took: 3 seconds
    NOTE: Writing buildhistory
    NOTE: Writing buildhistory took: 3 seconds

  • Hi Randy,

    I see the devtool modify issue as well. Though, why are you trying to edit ti-linux-staging?

    Best,
    Jared

  • I want to edit a dtso file, or add my own as an overlay to mux out some different signals form the chip to the GESI board. We need I2C5 and some GPIOS to go to the GESI board that are not in the default build. We need to edit uEnv.txt to add the overlay as well.

    I have just done it manually in the board_support directory but I was trying to learn how to apply a patch to the yocto build so in the future we could do stuff like this.

    Is what we are doing unique? We are using the dev baord(s) to help us figure out what our custom HW will need to be and what interfaces and peripherals will work for us.

  • Hi Randy,

    To add your own overlay, you could add a patch in your own custom meta-layer: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1303384/sk-am62-using-custom-kernel-in-local-workspace-for-yocto-ti-sdk/4953153#4953153

    You can also look at the Yocto documentation: https://docs.yoctoproject.org/kernel-dev/common.html#using-devtool-to-patch-the-kernel 

    To edit the uEnv.txt you would add a tisdk-uenv.bbappend, or modify tisdk-uenv.

    Best,
    Jared

  • Yes, all that is what I was trying to do when I got the errors. I was following creating my own meta-layer. But the patch in the layer has to know which recipe it is patching. In mine it seemed to point to ti-linux-staging to patch the k3-j721e-gesi-exp-board.dtso to add some GPIO muxing.

    While doing all this is when I encountered the errors that prompted this forum question.

    As an aside: I did try to patch the uEnv.txt with the bbappend method but I could not tell what recipie to patch that was applying the tisdk-uenv.bbappend file. In most of my Yocto experience the biggest difficulty I have had is trying to figure out which layers/recipies need to be modified.

  • HI Randy,

    In mine it seemed to point to ti-linux-staging to patch the k3-j721e-gesi-exp-board.dtso to add some GPIO muxing.

    Below is an example of a directory structure for adding patches to ti-linux-staging. The example is for the j721s2-evm and Linux 6.6, so you'll have change the MACHINE and version number, but it should translate.

    meta-jared
    ├── conf
    │   ├── distro
    │   │   └── jared.conf
    │   └── layer.conf
    ├── recipes-kernel
    │   └── linux
    │       ├── linux-ti-staging-6.6
    │       │   ├── j721s2-evm
    │       │   │   ├── 0001-arm64-dts-ti-k3-j721s2-common-proc-board-Edit-bootar.patch
    │       │   │   └── 0002-arm64-dts-ti-k3-j721s2-common-proc-board-Disable-unn.patch
    │       └── linux-ti-staging_6.6.bbappend

    linux-ti-staging_6.6.bbappend

    FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.6:"
    
    SRC_URI += "\
    	file://0001-arm64-dts-ti-k3-j721s2-common-proc-board-Edit-bootar.patch \
    	file://0002-arm64-dts-ti-k3-j721s2-common-proc-board-Disable-unn.patch \
    "

    As an aside: I did try to patch the uEnv.txt with the bbappend method but I could not tell what recipie to patch that was applying the tisdk-uenv.bbappend file. In most of my Yocto experience the biggest difficulty I have had is trying to figure out which layers/recipies need to be modified.

    The tisdk-uenv.bbappend edits the tisdk-uenv.bb recipe.

    Best,
    Jared

  • Jared,

    That is helpful and is something I had tried before but without sucess. I will try again later. I am currently investigating some other things but will get back to it.

    However, What can I do to get my kernel building again? Do I need to delete and start from scratch?

  • Hi Randy,

    You can remove the workspace from the bblayers.conf

    Best,
    Jared

  • That worked. Any reason that was in there or any reason I will need to put it back in?

  • Hi Randy,

    Not unless you make changes within the workspace, no.

    Best,
    Jared