This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

west update blocks and fails on mbedtls

It looks like mbedtls-2.13.1 tag does not exist from what I can see on github.  When I run west update, it is failing on mbedtls even if I have the repo already cloned.

PS C:\Projects\ncs\mbedtls> west update
=== updating fw-nrfconnect-zephyr (zephyr):
--- fw-nrfconnect-zephyr: fetching changes
--- fw-nrfconnect-zephyr: checked out 31529f68ec7fb266a4ec1761009e100ef9850ea5 as detached HEAD
=== updating nffs (modules\fs\nffs):
--- nffs: fetching changes
--- nffs: checked out bc62a2fa9d98ddb5d633c932ea199bc68e10f194 as detached HEAD
=== updating segger (modules\debug\segger):
--- segger: fetching changes
--- segger: checked out 6fcf61606d6012d2c44129edc033f59331e268bc as detached HEAD
=== updating fw-nrfconnect-mcuboot (mcuboot):
--- fw-nrfconnect-mcuboot: fetching changes
--- fw-nrfconnect-mcuboot: checked out 0a5c2987365abb0417610ecb7c2c7b5fb117159b as detached HEAD
=== updating fw-nrfconnect-mcumgr (modules\lib\mcumgr):
--- fw-nrfconnect-mcumgr: fetching changes
--- fw-nrfconnect-mcumgr: checked out c8f675a5fa7f62106b9d913844bd5ed6e16ae69e as detached HEAD
=== updating fw-nrfconnect-tinycbor (modules\lib\tinycbor):
--- fw-nrfconnect-tinycbor: fetching changes
--- fw-nrfconnect-tinycbor: checked out 543ecb7c8662580ef803d59ceda7bd3b8a84a11b as detached HEAD
=== updating nrfxlib (nrfxlib):
--- nrfxlib: fetching changes
--- nrfxlib: checked out a87551ba2e131ff17e0e1c796b73f7c37bbea9ec as detached HEAD
=== updating cmock (test\cmock):
--- cmock: fetching changes
--- cmock: checked out c243b9a7a7b3c471023193992b46cf1bd1910450 as detached HEAD
=== updating unity (test\cmock\vendor\unity):
--- unity: fetching changes
--- unity: checked out 031f3bbe45f8adf504ca3d13e6f093869920b091 as detached HEAD
=== updating mbedtls (mbedtls):
--- mbedtls: fetching changes
From github.com/.../mbedtls
* tag mbedtls-2.13.1 -> FETCH_HEAD
fatal: FETCH_HEAD^commit: not a valid SHA1
FATAL ERROR: Command 'update-ref refs/heads/manifest-rev FETCH_HEAD^{{commit}}' failed with code 128 for mbedtls (mbedtls)

Parents
  • Hi,

     

    I was not able to reproduce this.

    === updating mbedtls (mbedtls):
    --- mbedtls: fetching changes
    From https://github.com/ARMmbed/mbedtls
     * tag                   mbedtls-2.13.1 -> FETCH_HEAD
    --- mbedtls: checked out 53546ea099f6f53d0be653a64accd250e170337f as detached HEAD

     

    Could you try again and see if the problem still exists? If yes; try to pull everything in a "fresh folder"?

     

    Kind regards,

    Håkon

  • I deleted the mcuboot and mbedtls folders from my local drive and ran "west update".  The mcuboot was OK but the same issue occurs with mbedtls.

    PS C:\Projects\ncs> west update
    === updating fw-nrfconnect-zephyr (zephyr):
    --- fw-nrfconnect-zephyr: fetching changes
    --- fw-nrfconnect-zephyr: checked out 31529f68ec7fb266a4ec1761009e100ef9850ea5 as detached HEAD
    === updating nffs (modules\fs\nffs):
    --- nffs: fetching changes
    --- nffs: checked out bc62a2fa9d98ddb5d633c932ea199bc68e10f194 as detached HEAD
    === updating segger (modules\debug\segger):
    --- segger: fetching changes
    --- segger: checked out 6fcf61606d6012d2c44129edc033f59331e268bc as detached HEAD
    === updating fw-nrfconnect-mcuboot (mcuboot):
    --- fw-nrfconnect-mcuboot: cloning and initializing
    Initialized empty Git repository in /c/Projects/ncs/mcuboot/.git/
    --- fw-nrfconnect-mcuboot: fetching changes
    remote: Enumerating objects: 6066, done.
    Receiving objects:  94% (5703/6066), 1.92 MiB | 1.26 MiB/s   remote: Total 6066 (delta 0), reused 0 (delta 0), pack-reused 6066
    Receiving objects: 100% (6066/6066), 2.39 MiB | 1.26 MiB/s, done.
    Resolving deltas: 100% (3749/3749), done.
    From https://github.com/NordicPlayground/fw-nrfconnect-mcuboot
     * [new branch]      master           -> refs/west/master
     * [new tag]         v1.2.99-ncs1     -> v1.2.99-ncs1
     * [new tag]         v1.2.99-ncs1-rc1 -> v1.2.99-ncs1-rc1
     * [new tag]         v1.2.99-ncs2     -> v1.2.99-ncs2
     * [new tag]         v1.2.99-ncs2-rc1 -> v1.2.99-ncs2-rc1
     * [new tag]         v1.2.99-ncs2-rc2 -> v1.2.99-ncs2-rc2
     * [new tag]         v1.3.99-ncs1     -> v1.3.99-ncs1
     * [new tag]         v1.3.99-ncs1-rc1 -> v1.3.99-ncs1-rc1
     * [new tag]         v1.3.99-ncs1-rc2 -> v1.3.99-ncs1-rc2
    HEAD is now at 0a5c298... [nrf toup] cmake: sign parent image regardless of build strategy
    --- fw-nrfconnect-mcuboot: checked out 0a5c2987365abb0417610ecb7c2c7b5fb117159b as detached HEAD
    === updating fw-nrfconnect-mcumgr (modules\lib\mcumgr):
    --- fw-nrfconnect-mcumgr: fetching changes
    --- fw-nrfconnect-mcumgr: checked out c8f675a5fa7f62106b9d913844bd5ed6e16ae69e as detached HEAD
    === updating fw-nrfconnect-tinycbor (modules\lib\tinycbor):
    --- fw-nrfconnect-tinycbor: fetching changes
    --- fw-nrfconnect-tinycbor: checked out 543ecb7c8662580ef803d59ceda7bd3b8a84a11b as detached HEAD
    === updating nrfxlib (nrfxlib):
    --- nrfxlib: fetching changes
    --- nrfxlib: checked out a87551ba2e131ff17e0e1c796b73f7c37bbea9ec as detached HEAD
    === updating cmock (test\cmock):
    --- cmock: fetching changes
    --- cmock: checked out c243b9a7a7b3c471023193992b46cf1bd1910450 as detached HEAD
    === updating unity (test\cmock\vendor\unity):
    --- unity: fetching changes
    --- unity: checked out 031f3bbe45f8adf504ca3d13e6f093869920b091 as detached HEAD
    === updating mbedtls (mbedtls):
    --- mbedtls: fetching changes
    From https://github.com/ARMmbed/mbedtls
     * tag                   mbedtls-2.13.1 -> FETCH_HEAD
    fatal: FETCH_HEAD^commit: not a valid SHA1
    FATAL ERROR: Command 'update-ref refs/heads/manifest-rev FETCH_HEAD^{{commit}}' failed with code 128 for mbedtls (mbedtls)

Reply
  • I deleted the mcuboot and mbedtls folders from my local drive and ran "west update".  The mcuboot was OK but the same issue occurs with mbedtls.

    PS C:\Projects\ncs> west update
    === updating fw-nrfconnect-zephyr (zephyr):
    --- fw-nrfconnect-zephyr: fetching changes
    --- fw-nrfconnect-zephyr: checked out 31529f68ec7fb266a4ec1761009e100ef9850ea5 as detached HEAD
    === updating nffs (modules\fs\nffs):
    --- nffs: fetching changes
    --- nffs: checked out bc62a2fa9d98ddb5d633c932ea199bc68e10f194 as detached HEAD
    === updating segger (modules\debug\segger):
    --- segger: fetching changes
    --- segger: checked out 6fcf61606d6012d2c44129edc033f59331e268bc as detached HEAD
    === updating fw-nrfconnect-mcuboot (mcuboot):
    --- fw-nrfconnect-mcuboot: cloning and initializing
    Initialized empty Git repository in /c/Projects/ncs/mcuboot/.git/
    --- fw-nrfconnect-mcuboot: fetching changes
    remote: Enumerating objects: 6066, done.
    Receiving objects:  94% (5703/6066), 1.92 MiB | 1.26 MiB/s   remote: Total 6066 (delta 0), reused 0 (delta 0), pack-reused 6066
    Receiving objects: 100% (6066/6066), 2.39 MiB | 1.26 MiB/s, done.
    Resolving deltas: 100% (3749/3749), done.
    From https://github.com/NordicPlayground/fw-nrfconnect-mcuboot
     * [new branch]      master           -> refs/west/master
     * [new tag]         v1.2.99-ncs1     -> v1.2.99-ncs1
     * [new tag]         v1.2.99-ncs1-rc1 -> v1.2.99-ncs1-rc1
     * [new tag]         v1.2.99-ncs2     -> v1.2.99-ncs2
     * [new tag]         v1.2.99-ncs2-rc1 -> v1.2.99-ncs2-rc1
     * [new tag]         v1.2.99-ncs2-rc2 -> v1.2.99-ncs2-rc2
     * [new tag]         v1.3.99-ncs1     -> v1.3.99-ncs1
     * [new tag]         v1.3.99-ncs1-rc1 -> v1.3.99-ncs1-rc1
     * [new tag]         v1.3.99-ncs1-rc2 -> v1.3.99-ncs1-rc2
    HEAD is now at 0a5c298... [nrf toup] cmake: sign parent image regardless of build strategy
    --- fw-nrfconnect-mcuboot: checked out 0a5c2987365abb0417610ecb7c2c7b5fb117159b as detached HEAD
    === updating fw-nrfconnect-mcumgr (modules\lib\mcumgr):
    --- fw-nrfconnect-mcumgr: fetching changes
    --- fw-nrfconnect-mcumgr: checked out c8f675a5fa7f62106b9d913844bd5ed6e16ae69e as detached HEAD
    === updating fw-nrfconnect-tinycbor (modules\lib\tinycbor):
    --- fw-nrfconnect-tinycbor: fetching changes
    --- fw-nrfconnect-tinycbor: checked out 543ecb7c8662580ef803d59ceda7bd3b8a84a11b as detached HEAD
    === updating nrfxlib (nrfxlib):
    --- nrfxlib: fetching changes
    --- nrfxlib: checked out a87551ba2e131ff17e0e1c796b73f7c37bbea9ec as detached HEAD
    === updating cmock (test\cmock):
    --- cmock: fetching changes
    --- cmock: checked out c243b9a7a7b3c471023193992b46cf1bd1910450 as detached HEAD
    === updating unity (test\cmock\vendor\unity):
    --- unity: fetching changes
    --- unity: checked out 031f3bbe45f8adf504ca3d13e6f093869920b091 as detached HEAD
    === updating mbedtls (mbedtls):
    --- mbedtls: fetching changes
    From https://github.com/ARMmbed/mbedtls
     * tag                   mbedtls-2.13.1 -> FETCH_HEAD
    fatal: FETCH_HEAD^commit: not a valid SHA1
    FATAL ERROR: Command 'update-ref refs/heads/manifest-rev FETCH_HEAD^{{commit}}' failed with code 128 for mbedtls (mbedtls)

Children
  • I found the issue.  I had previously installed github desktop on my computer.  Even after following the instructions and using chocalaty to install the latest version of git, it was still using the older version.  I changed my system path to use the new version which is installed in C:\Program Files\Git\bin.  It fixed the issue.

    PS C:\WINDOWS\system32> git --version
    git version 2.21.0.windows.1
    PS C:\WINDOWS\system32> cd C:\Projects\ncs
    PS C:\Projects\ncs> west update
    === updating fw-nrfconnect-zephyr (zephyr):
    --- fw-nrfconnect-zephyr: fetching changes
    --- fw-nrfconnect-zephyr: checked out 31529f68ec7fb266a4ec1761009e100ef9850ea5 as detached HEAD
    === updating nffs (modules\fs\nffs):
    --- nffs: fetching changes
    --- nffs: checked out bc62a2fa9d98ddb5d633c932ea199bc68e10f194 as detached HEAD
    === updating segger (modules\debug\segger):
    --- segger: fetching changes
    --- segger: checked out 6fcf61606d6012d2c44129edc033f59331e268bc as detached HEAD
    === updating fw-nrfconnect-mcuboot (mcuboot):
    --- fw-nrfconnect-mcuboot: fetching changes
    --- fw-nrfconnect-mcuboot: checked out 0a5c2987365abb0417610ecb7c2c7b5fb117159b as detached HEAD
    === updating fw-nrfconnect-mcumgr (modules\lib\mcumgr):
    --- fw-nrfconnect-mcumgr: fetching changes
    --- fw-nrfconnect-mcumgr: checked out c8f675a5fa7f62106b9d913844bd5ed6e16ae69e as detached HEAD
    === updating fw-nrfconnect-tinycbor (modules\lib\tinycbor):
    --- fw-nrfconnect-tinycbor: fetching changes
    --- fw-nrfconnect-tinycbor: checked out 543ecb7c8662580ef803d59ceda7bd3b8a84a11b as detached HEAD
    === updating nrfxlib (nrfxlib):
    --- nrfxlib: fetching changes
    --- nrfxlib: checked out a87551ba2e131ff17e0e1c796b73f7c37bbea9ec as detached HEAD
    === updating cmock (test\cmock):
    --- cmock: fetching changes
    --- cmock: checked out c243b9a7a7b3c471023193992b46cf1bd1910450 as detached HEAD
    === updating unity (test\cmock\vendor\unity):
    --- unity: fetching changes
    --- unity: checked out 031f3bbe45f8adf504ca3d13e6f093869920b091 as detached HEAD
    === updating mbedtls (mbedtls):
    --- mbedtls: fetching changes
    From https://github.com/ARMmbed/mbedtls
     * tag                   mbedtls-2.13.1 -> FETCH_HEAD
    HEAD is now at 53546ea09 Update library version number to 2.13.1
    --- mbedtls: checked out 53546ea099f6f53d0be653a64accd250e170337f as detached HEAD
    PS C:\Projects\ncs>

  • Glad to hear that you found the root cause of the issue!

    Let me know if any other issues or questions should pop up.

     

    Cheers,

    Håkon

Related