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

Linux install Clone SDK tagged release fails

Using the current nRF connect v3.6.1 Getting Started Assistant I've managed to get everything installed to the point of using west to install the complete nRF Connect SDK tree but the next step is setting the SDK for a tagged release.

When I usethe direction from Getting Started Assistant

git cd ~/nrf/ncs
git checkout v1.4.2
fatal: not a git repository (or any of the parent directories): .git

of course it is not a git, west built it?

There needs to be documentation on setting the PATH after installing cmake and west and the DTC directions no longer work, Ubuntu has lost it, I found it at another location

wget  https://launchpad.net/ubuntu/+source/device-tree-compiler/1.4.7-1/+build/15279267/+files/device-tree-compiler_1.4.7-1_amd64.deb

sudo apt install ./device-tree-compiler_1.4.7-1_amd64.deb

Parents
  • Hi,

    West is just Zephyr's meta tool which was made to be able to work with multiple Git repositories. West’s multi-repo commands are meant to augment Git in minor ways for multi-repo work. When you use the command "west init -m github.com/.../sdk-nrf" you will clone and initialize a Git repository, so Git commands should work.

    I just tested this myself in Ubuntu and it worked as expected. Could you make sure that you installed it correctly? Also, the folder structure should be such that ncs is the top folder. It should look something like this after you have cloned the nrf folder and used west update:

    ncs
     |___ .west
     |___ bootloader
     |___ modules
     |___ nrf
     |___ nrfxlib
     |___ zephyr
     |___ ...

    In order to checkout another tag, you will have to use the "git checkout <ncs_tag>" command inside the nrf folder. Please note that if you get an error such as "'v1.4.2' did not match any file(s) known to git", then you must first use "git fetch origin" before you use "git checkout".

    Marte

Reply
  • Hi,

    West is just Zephyr's meta tool which was made to be able to work with multiple Git repositories. West’s multi-repo commands are meant to augment Git in minor ways for multi-repo work. When you use the command "west init -m github.com/.../sdk-nrf" you will clone and initialize a Git repository, so Git commands should work.

    I just tested this myself in Ubuntu and it worked as expected. Could you make sure that you installed it correctly? Also, the folder structure should be such that ncs is the top folder. It should look something like this after you have cloned the nrf folder and used west update:

    ncs
     |___ .west
     |___ bootloader
     |___ modules
     |___ nrf
     |___ nrfxlib
     |___ zephyr
     |___ ...

    In order to checkout another tag, you will have to use the "git checkout <ncs_tag>" command inside the nrf folder. Please note that if you get an error such as "'v1.4.2' did not match any file(s) known to git", then you must first use "git fetch origin" before you use "git checkout".

    Marte

Children
No Data
Related