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

nrfjprog installation under LINUX (Mint 19.1) doesn't work correctly

It's my  third installation on a (VB-) linux machine but the first one which didn't come to a successful end.
The calling of "nrfjprog" works wheras the calling of "nrfjprog -parameters" didn't work.

After the installation of "nrfutil" I installed "JLink_Linux_V652e_x86_64.deb" and then
"nRF-Command-Line-Tools_10_4_0_Linux-amd64.deb".

In /usr/bin the following link can be found:

"nrfjprog -> /opt/nrfjprog/nrfjprog".

The folder /opt/nrfjprog contains the following files:

drwxr-xr-x 2 root root 4096 Okt 28 15:13 .
drwxr-xr-x 8 root root 4096 Okt 28 15:12 ..
-rw-r--r-- 1 root root 10789 Okt 2 16:50 DllCommonDefinitions.h
-rw-r--r-- 1 root root 70337 Okt 2 16:50 highlevelnrfjprogdll.h
-rw-r--r-- 1 root root 124920 Okt 2 16:50 jlinkarm_nrf51_nrfjprogdll.h
-rw-r--r-- 1 root root 146596 Okt 2 16:50 jlinkarm_nrf52_nrfjprogdll.h
-rw-r--r-- 1 root root 133134 Okt 2 16:50 jlinkarm_nrf91_nrfjprogdll.h
-rw-r--r-- 1 root root 45235 Okt 2 16:50 jlinkarm_unknown_nrfjprogdll.h
-rw-r--r-- 1 root root 1433480 Okt 2 16:50 libhighlevelnrfjprog.so
-rw-r--r-- 1 root root 1355680 Okt 2 16:50 libjlinkarm_nrf51_nrfjprogdll.so
-rw-r--r-- 1 root root 1376160 Okt 2 16:50 libjlinkarm_nrf52_nrfjprogdll.so
-rw-r--r-- 1 root root 1388448 Okt 2 16:50 libjlinkarm_nrf91_nrfjprogdll.so
-rw-r--r-- 1 root root 1351584 Okt 2 16:50 libjlinkarm_unknown_nrfjprogdll.so
-rw-r--r-- 1 root root 3731328 Okt 2 16:50 libnrfdfudll.so
-rw-r--r-- 1 root root 1240864 Okt 2 16:50 libnrfjprogdll.so
-rw-r--r-- 1 root root 1916 Okt 2 16:50 LICENSE.txt
-rw-r--r-- 1 root root 12408 Okt 2 16:50 nrfdfu.h
-rwxr-xr-x 1 root root 1350472 Okt 2 16:50 nrfjprog
-rw-r--r-- 1 root root 19164 Okt 2 16:50 nrfjprogdll.h
-rw-r--r-- 1 root root 11436 Okt 2 16:50 nrfjprog.h
-rw-r--r-- 1 root root 611 Okt 2 16:50 nrfjprog.ini
-rw-r--r-- 1 root root 75591 Okt 2 16:50 nrfjprog_release_notes.txt
-rw-r--r-- 1 root root 2344 Okt 2 16:50 QspiDefault.ini

The calling of  "strace nrfjprog -v"

delivers the following output:

execve("/usr/bin/nrfjprog", ["nrfjprog", "-v"], 0x7fff45c13248 /* 52 vars */) = 0
brk(NULL) = 0x55777d46f000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "'$/'/tls/x86_64/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "'$/'/tls/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "'$/'/tls/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "'$/'/tls/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "'$/'/x86_64/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "'$/'/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "'$/'/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "'$/'/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=87690, ...}) = 0
mmap(NULL, 87690, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f36e46b0000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\16\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=14560, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f36e46ae000
mmap(NULL, 2109712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f36e429b000
mprotect(0x7f36e429e000, 2093056, PROT_NONE) = 0
mmap(0x7f36e449d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f36e449d000
close(3) = 0
openat(AT_FDCWD, "'$/'/tls/x86_64/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "'$/'/tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "'$/'/tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "'$/'/tls/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "'$/'/x86_64/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "'$/'/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "'$/'/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "'$/'/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\34\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2030544, ...}) = 0
mmap(NULL, 4131552, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f36e3eaa000
mprotect(0x7f36e4091000, 2097152, PROT_NONE) = 0
mmap(0x7f36e4291000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e7000) = 0x7f36e4291000
mmap(0x7f36e4297000, 15072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f36e4297000
close(3) = 0
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f36e46ab000
arch_prctl(ARCH_SET_FS, 0x7f36e46ab740) = 0
mprotect(0x7f36e4291000, 16384, PROT_READ) = 0
mprotect(0x7f36e449d000, 4096, PROT_READ) = 0
mprotect(0x55777c1de000, 32768, PROT_READ) = 0
mprotect(0x7f36e46c6000, 4096, PROT_READ) = 0
munmap(0x7f36e46b0000, 87690) = 0
brk(NULL) = 0x55777d46f000
brk(0x55777d490000) = 0x55777d490000
stat("nrfjprog.ini", 0x7fff807c5320) = -1 ENOENT (No such file or directory)
write(2, "ERROR: nrfjprog.ini not found. P"..., 57ERROR: nrfjprog.ini not found. Please reinstall nrfjprog.) = 57
write(2, "\n", 1
) = 1
exit_group(25) = ?
+++ exited with 25 +++

It's terrible, I spent a lot of time but haven't found a solution for this problem. Hope that anybody can
help me to find a way out.

Parents Reply Children
No Data
Related