Nrfutil offline install not works

Hello everyone

I need to install Nrfutil offline, computers may not have access to the internet, i follow this istruction and prepare the offline directori whit the comand "nrfutil prepare-offline off_line", after copied this dircetory and the nrfutil.exe in an other directory, and in windows command line lounch the follow command "nrfutil install device --from-offline ./off_line" and i have the follow answer:

Error: Failed to prepare registry from offline source

Caused by:
    0: Failed to initialize intermediate package index
    1: config value 'safe.directory' was not found; class=Config (7); code=NotFound (-3)

in the same machine, if i digit "nrfutil install device", the packet is retrieved from the internet and everything installs correctly and works.

nrfutil 7.7.1 (25b8911 2024-02-07) on Windows 10

I can't understand where I'm wrong ... thanks in advance for reply

Sam

Parents
  • Hi, 

    I cannot reproduce the issue. Maybe the download package is not downloaded completely or for other reasons, but good to know you fixed the issue by installing via the Internet. 

    Regards,
    Amanda H. 

  • Hi

    thanks for reply, but i not resolveed my problem ... I absolutely need to install ""nrfutil  device" on machines that do not have an internet connection

  • Hi

    I think I have solved my problem, in practice I copy the .nrfutil folder into the Windows user folder (taken from a PC where the tools I need are already installed and functioning) and from the tests I have done this avoids the need to upgrade and installations with active internet connection.

    But is there an implementation, C or C++ or other languages, of nrfutil to include in your own executable?

  • Unfortunately, there are no such resources and currently no plans to provide that.

  • last thing, where can I find the Nrfutil license? Are there any limitations for its redistribution within third-party software?

  • Hi, 

    Sorry for the late reply. You can view the license by the command: nrfutil device --license

    $ nrfutil device --license
    Displaying contents of /home/user/.nrfutil/share/nrfutil-device/LICENSE
    
    Copyright (c) 2022 Nordic Semiconductor ASA
    All rights reserved.
    
    SPDX-License-Identifier: LicenseRef-Nordic-1-Clause
    
    This software may only be used in binary form, and it must not be redistributed,
    reverse engineered, decompiled, modified and/or disassembled.
    Changing configuration files for the software is permitted.
    
    THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
    OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    OF MERCHANTABILITY, NON-INFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
    DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
    GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    
    This software includes components from other Nordic Semiconductor projects whose licenses differ from that of nrfutil itself; their individual licenses are included below.
    
    (snip)
    
    $ nrfutil --version
    nrfutil 7.13.0 (8289424 2024-07-01)
    commit-hash: 82894242d19ff24a1541712312b3ea3af0ca8f85
    commit-date: 2024-07-01
    host: x86_64-unknown-linux-gnu
    build-timestamp: 2024-07-01T07:32:31.582129656Z
    classification: nrf-external

    Also here https://github.com/NordicSemiconductor/pc-nrfutil/blob/master/LICENSE 

    The answer based on the licensing terms is that it is not allowed to redistribute it. You could ask your user to download as this example instead of redistributing. 

    -Amanda H.

Reply
  • Hi, 

    Sorry for the late reply. You can view the license by the command: nrfutil device --license

    $ nrfutil device --license
    Displaying contents of /home/user/.nrfutil/share/nrfutil-device/LICENSE
    
    Copyright (c) 2022 Nordic Semiconductor ASA
    All rights reserved.
    
    SPDX-License-Identifier: LicenseRef-Nordic-1-Clause
    
    This software may only be used in binary form, and it must not be redistributed,
    reverse engineered, decompiled, modified and/or disassembled.
    Changing configuration files for the software is permitted.
    
    THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
    OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    OF MERCHANTABILITY, NON-INFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
    DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
    GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    
    This software includes components from other Nordic Semiconductor projects whose licenses differ from that of nrfutil itself; their individual licenses are included below.
    
    (snip)
    
    $ nrfutil --version
    nrfutil 7.13.0 (8289424 2024-07-01)
    commit-hash: 82894242d19ff24a1541712312b3ea3af0ca8f85
    commit-date: 2024-07-01
    host: x86_64-unknown-linux-gnu
    build-timestamp: 2024-07-01T07:32:31.582129656Z
    classification: nrf-external

    Also here https://github.com/NordicSemiconductor/pc-nrfutil/blob/master/LICENSE 

    The answer based on the licensing terms is that it is not allowed to redistribute it. You could ask your user to download as this example instead of redistributing. 

    -Amanda H.

Children
Related