crownstone / bluenet

Bluenet is the in-house firmware on Crownstone hardware. Functions: switching, dimming, energy monitoring, presence detection, indoor localization, switchcraft.
https://crownstone.rocks
91 stars 62 forks source link

nrfutil not installed #76

Closed PaulWondel closed 4 years ago

PaulWondel commented 4 years ago

When following the install instructions, I got an error "make[3]: nrfutil: Command not found" at the step "make build_bootloader_settings".

mrquincle commented 4 years ago

Then the installation did not succeed. You can see that nrfutil should have been installed in https://github.com/crownstone/bluenet/blob/master/CMakeLists.txt. Note that the installation requires sudo. If you run the installation and you have not entered your password this is a tell that something went wrong during the INSTALL step of nrfutil. Run make clean and make again in the build directory and make sure everything gets installed.

PaulWondel commented 4 years ago

I have done the make clean and make in the build folder. nrfutil is still not installed. In the installation it says:

"[ 67%] Creating directories for 'nrfutil' [ 69%] Performing download step (download, verify and extract) for 'nrfutil' -- verifying file... file='/home/gmprincep/gitfiles/bluenet/downloads/archive.tar' -- File already exists and hash match (skip download): file='/home/gmprincep/gitfiles/bluenet/downloads/archive.tar' MD5='545df3556fc1a70da7a99926fb426eb3' -- extracting... src='/home/gmprincep/gitfiles/bluenet/downloads/archive.tar' dst='/home/gmprincep/gitfiles/bluenet/tools/nrfutil' -- extracting... [tar xf] -- extracting... [analysis] -- extracting... [rename] -- extracting... [clean up] -- extracting... done [ 71%] No patch step for 'nrfutil' [ 73%] No update step for 'nrfutil' [ 75%] Performing configure step for 'nrfutil' Skipping configure step. [ 77%] Performing build step for 'nrfutil' Skipping build step. [ 79%] Performing install step for 'nrfutil' (Reading database ... 377042 files and directories currently installed.) Preparing to unpack .../nRF-Command-Line-Tools_10_3_0_Linux-amd64.deb ... Unpacking nrf-command-line-tools (10.3.0) over (10.3.0) ... Setting up nrf-command-line-tools (10.3.0) ... Processing triggers for libc-bin (2.27-3ubuntu1) ... [ 81%] Completed 'nrfutil' [ 81%] Built target nrfutil [ 83%] Build micro-eec micro-ecc not found! Let's pull it from HEAD. Cloning into 'micro-ecc'..."

The installation finishes installing the "[ 83%] Built target micro_eec" but doesn't show if nrfutil is installed or not.

mrquincle commented 4 years ago

Use VERBOSE=1 make and find out the exact command for installing nrfutil. Run that command separately and see where it installs the files. Run sudo updated && locate nrfutil to see where it went.

On Wed, Oct 16, 2019, 14:10 Paul Wondel notifications@github.com wrote:

I have done the make clean and make in the build folder. nrfutil is still not installed. In the installation it says:

"[ 67%] Creating directories for 'nrfutil' [ 69%] Performing download step (download, verify and extract) for 'nrfutil' -- verifying file... file='/home/gmprincep/gitfiles/bluenet/downloads/archive.tar' -- File already exists and hash match (skip download): file='/home/gmprincep/gitfiles/bluenet/downloads/archive.tar' MD5='545df3556fc1a70da7a99926fb426eb3' -- extracting... src='/home/gmprincep/gitfiles/bluenet/downloads/archive.tar' dst='/home/gmprincep/gitfiles/bluenet/tools/nrfutil' -- extracting... [tar xf] -- extracting... [analysis] -- extracting... [rename] -- extracting... [clean up] -- extracting... done [ 71%] No patch step for 'nrfutil' [ 73%] No update step for 'nrfutil' [ 75%] Performing configure step for 'nrfutil' Skipping configure step. [ 77%] Performing build step for 'nrfutil' Skipping build step. [ 79%] Performing install step for 'nrfutil' (Reading database ... 377042 files and directories currently installed.) Preparing to unpack .../nRF-Command-Line-Tools_10_3_0_Linux-amd64.deb ... Unpacking nrf-command-line-tools (10.3.0) over (10.3.0) ... Setting up nrf-command-line-tools (10.3.0) ... Processing triggers for libc-bin (2.27-3ubuntu1) ... [ 81%] Completed 'nrfutil' [ 81%] Built target nrfutil [ 83%] Build micro-eec micro-ecc not found! Let's pull it from HEAD. Cloning into 'micro-ecc'..."

The installation finishes installing the "[ 83%] Built target micro_eec" but doesn't show if nrfutil is installed or not.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/crownstone/bluenet/issues/76?email_source=notifications&email_token=AAK4Y2KVQ6LDXBFPRYWGLNLQO4ADXA5CNFSM4JBI4DJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBMHTTY#issuecomment-542669263, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAK4Y2OBGOUHL6G7YSZZEYLQO4ADXANCNFSM4JBI4DJA .

PaulWondel commented 4 years ago

It looks like this installs nrfjprog, not nrfutil.

mrquincle commented 4 years ago

Ah! Solved in commit https://github.com/crownstone/bluenet/commit/091d6cd075377e5f9ae66c80d3c24cb0f9628ee7

mrquincle commented 4 years ago

Note that I haven't added an explicit check on pip yet. Make sure you have in your system.

mrquincle commented 4 years ago

In latest commit pip3 is used to be future proof. With this version of cmake the python (or pip) dependencies are hard to catch. For now, only messages will be shown.

The main CMakeLists.txt in https://github.com/crownstone/bluenet/commit/01a0afef9b81484895fabd20bab0f3a68aff674b is now defined with NONE to remove compiler requirements. You should not need gcc or build-essentials anymore.