case about nRF Connect SDK install on ubuntu 22.04.5 server

Hi,

1. Using VS Code plugin remote ssh to access the nRF Connect SDK environment on ubuntu server on windows, the board cannot be found.
2. Please help me troubleshoot the settings configuration file on ubuntu and see how to configure it correctly
3. The ncs version is v2.9.0

The error message is as follows. I think this is the problem

Kind regards,
Peter.Min

Parents
  • Hi, 

    Please provide the Support log via the right top in the Welcome view.

    Regards,
    Amanda H.

  • peter.min said:
    If the owner of the /opt/ncs directory is changed to root, no boards found is displayed for both ubuntu and ubuntu2 Board target users

    Maybe you can set the permission to 777 for all users. If you still have permission issues on Ubuntu, please contact your IT.

  • Hi Amanda Hsieh,

    1. I have changed the permission of directory /opt/ncs to 777, but the following problem still occurs: no boards found is displayed for both ubuntu and ubuntu2 Board target users

    user:ubuntu

    user:ubuntu

    // IMPORTANT: The following data can contain sensitive or confidential information about your environment.
    // If you do not want others to see this information, make sure to remove it before sharing the data.
    
    // For help and support, visit Nordic Semiconductor's DevZone at https://devzone.nordicsemi.com/.
    
    {
      "platform": {
        "os": "linux",
        "osVersion": "#53~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jan 15 19:18:46 UTC 2",
        "osKernel": "6.8.0-52-generic",
        "vscode": "1.97.2",
        "node": "v20.18.1",
        "name": "Ubuntu",
        "id": "ubuntu",
        "version": "22.04.5 LTS (Jammy Jellyfish)",
        "versionId": "22.04"
      },
      "system": {
        "date": "2025-02-21T01:23:46.497Z",
        "vscodeRoot": "/home/ubuntu/.vscode-server/cli/servers/Stable-e54c774e0add60467559eb0d1e229c6452cf8447/server",
        "nrfConnectForDesktopInstalled": "unknown",
        "vscodeUptime": "00:00:31",
        "osUptime": "00:10:05",
        "cpu": "Intel(R) Core(TM) i5 CPU       M 480  @ 2.67GHz"
      },
      "workspace": {
        "name": "v2.9.0 [SSH: 192.168.3.11-ubuntu]",
        "workspaceFile": null,
        "folders": [
          "/opt/ncs/v2.9.0"
        ]
      },
      "sdks": [
        {
          "version": "v2.9.0",
          "path": "/opt/ncs/v2.9.0"
        }
      ],
      "apps": [
        {
          "workspace": "/opt/ncs/v2.9.0",
          "uri": "/opt/ncs/v2.9.0/peter/hello_world",
          "buildConfigurations": []
        }
      ],
      "toolchains": [
        {
          "version": "2.9.0",
          "path": "/opt/ncs/toolchains/b77d8c1312"
        }
      ],
      "connectedDevices": [],
      "tools": {
        "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc": "0.17.0",
        "/opt/SEGGER/JLink/JLinkExe": "7.94i",
        "/usr/local/bin/nrfjprog": "10.24.2",
        "/opt/ncs/downloads/nrfutil": "7.12.0",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/cmake": "3.21.0",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/west": "1.2.0",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/python3": "3.12.4",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/ninja": "1.10.2",
        "/opt/ncs/toolchains/b77d8c1312/usr/bin/gperf": "3.1",
        "/opt/ncs/toolchains/b77d8c1312/usr/bin/dtc": "1.5.0",
        "/opt/ncs/toolchains/b77d8c1312/opt/bin/gn": "2132",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/git": "2.37.3",
        "arm-gdbPath": "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb",
        "riscv-gdbPath": "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/riscv64-zephyr-elf/bin/riscv64-zephyr-elf-gdb"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.7.9",
          "binPath": "/home/ubuntu/.vscode-server/extensions/nordic-semiconductor.nrf-connect-2025.1.127-linux-x64/platform/nrfutil/bin/nrfutil-device",
          "jlinkInfo": {
            "name": "JlinkARM",
            "version": "JLink_V7.94i",
            "versionFormat": "string"
          }
        },
        "nrfutil-toolchain-manager": {
          "version": "0.14.4",
          "binPath": "/home/ubuntu/.vscode-server/extensions/nordic-semiconductor.nrf-connect-2025.1.127-linux-x64/platform/nrfutil/bin/nrfutil-toolchain-manager"
        }
      },
      "environment": {
        "westEnv": {
          "GIT_EXEC_PATH": "/opt/ncs/toolchains/b77d8c1312/usr/local/libexec/git-core",
          "HOME": "/home/ubuntu",
          "PATH": "/opt/ncs/toolchains/b77d8c1312/usr/bin:/opt/ncs/toolchains/b77d8c1312/usr/bin:/opt/ncs/toolchains/b77d8c1312/usr/local/bin:/opt/ncs/toolchains/b77d8c1312/opt/bin:/opt/ncs/toolchains/b77d8c1312/opt/nanopb/generator-bin:/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin:/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/riscv64-zephyr-elf/bin:/home/ubuntu/.vscode-server/cli/servers/Stable-e54c774e0add60467559eb0d1e229c6452cf8447/server/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/ncs/downloads:/home/ubuntu/.vscode-server/cli/servers/Stable-e54c774e0add60467559eb0d1e229c6452cf8447/server/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/ncs/downloads",
          "ZEPHYR_BASE": "/opt/ncs/v2.9.0/zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk",
          "PYTHONPATH": "/opt/ncs/toolchains/b77d8c1312/usr/local/lib/python3.12:/opt/ncs/toolchains/b77d8c1312/usr/local/lib/python3.12/site-packages",
          "USER": "ubuntu"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "/home/ubuntu",
          "PATH": "/home/ubuntu/.vscode-server/cli/servers/Stable-e54c774e0add60467559eb0d1e229c6452cf8447/server/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/ncs/downloads",
          "USER": "ubuntu"
        }
      },
      "terminal": {
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "",
          "toolchain": {
            "path": ""
          },
          "ozonePath": "",
          "applications": [
            "${workspaceFolder}/peter/hello_world"
          ],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "taskBindings": {},
          "buildTerminal": {
            "condensedProgress": true
          },
          "debugging": {
            "flash": true,
            "bindings": {},
            "justMyCode": false
          },
          "activeAppFollowActiveEditor": true,
          "flash": {
            "softreset": false,
            "erase": false,
            "recover": false
          },
          "enableTelemetry": true,
          "thirdpartyIntegration": {},
          "toolchainManager": {
            "indexURL": null,
            "installDirectory": "/opt/ncs"
          },
          "nrfutil": {
            "home": null
          },
          "defaultOpenAction": "ask",
          "terminalProfile": {
            "shell": null
          }
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        }
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2025.1.127",
            "path": "/home/ubuntu/.vscode-server/extensions/nordic-semiconductor.nrf-connect-2025.1.127-linux-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2024.9.14",
            "path": "/home/ubuntu/.vscode-server/extensions/nordic-semiconductor.nrf-terminal-2024.9.14",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2024.12.15",
            "path": "/home/ubuntu/.vscode-server/extensions/nordic-semiconductor.nrf-devicetree-2024.12.15",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2024.12.13",
            "path": "/home/ubuntu/.vscode-server/extensions/nordic-semiconductor.nrf-kconfig-2024.12.13",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": null,
          "ms-vscode.cpptools": "1.23.6",
          "ms-vscode.js-debug": "1.97.1",
          "ms-vscode.vscode-js-profile-table": "1.0.10",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17"
        }
      }
    }
    
    

    user:ubuntu2

    user:ubuntu2

    // IMPORTANT: The following data can contain sensitive or confidential information about your environment.
    // If you do not want others to see this information, make sure to remove it before sharing the data.
    
    // For help and support, visit Nordic Semiconductor's DevZone at https://devzone.nordicsemi.com/.
    
    {
      "platform": {
        "os": "linux",
        "osVersion": "#53~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jan 15 19:18:46 UTC 2",
        "osKernel": "6.8.0-52-generic",
        "vscode": "1.97.2",
        "node": "v20.18.1",
        "name": "Ubuntu",
        "id": "ubuntu",
        "version": "22.04.5 LTS (Jammy Jellyfish)",
        "versionId": "22.04"
      },
      "system": {
        "date": "2025-02-21T01:28:27.111Z",
        "vscodeRoot": "/home/ubuntu2/.vscode-server/cli/servers/Stable-e54c774e0add60467559eb0d1e229c6452cf8447/server",
        "nrfConnectForDesktopInstalled": "unknown",
        "vscodeUptime": "00:00:29",
        "osUptime": "00:14:46",
        "cpu": "Intel(R) Core(TM) i5 CPU       M 480  @ 2.67GHz"
      },
      "workspace": {
        "name": "v2.9.0 [SSH: 192.168.3.11-ubuntu2]",
        "workspaceFile": null,
        "folders": [
          "/opt/ncs/v2.9.0"
        ]
      },
      "sdks": [
        {
          "version": "v2.9.0",
          "path": "/opt/ncs/v2.9.0"
        }
      ],
      "apps": [
        {
          "workspace": "/opt/ncs/v2.9.0",
          "uri": "/opt/ncs/v2.9.0/peter/hello_world",
          "buildConfigurations": []
        }
      ],
      "toolchains": [
        {
          "version": "2.9.0",
          "path": "/opt/ncs/toolchains/b77d8c1312"
        }
      ],
      "connectedDevices": [],
      "tools": {
        "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc": "0.17.0",
        "/opt/SEGGER/JLink/JLinkExe": "7.94i",
        "/usr/local/bin/nrfjprog": "10.24.2",
        "/opt/ncs/downloads/nrfutil": "7.12.0",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/cmake": "3.21.0",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/west": "1.2.0",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/python3": "3.12.4",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/ninja": "1.10.2",
        "/opt/ncs/toolchains/b77d8c1312/usr/bin/gperf": "3.1",
        "/opt/ncs/toolchains/b77d8c1312/usr/bin/dtc": "1.5.0",
        "/opt/ncs/toolchains/b77d8c1312/opt/bin/gn": "2132",
        "/opt/ncs/toolchains/b77d8c1312/usr/local/bin/git": "2.37.3",
        "arm-gdbPath": "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb",
        "riscv-gdbPath": "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/riscv64-zephyr-elf/bin/riscv64-zephyr-elf-gdb"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.7.9",
          "binPath": "/home/ubuntu2/.vscode-server/extensions/nordic-semiconductor.nrf-connect-2025.1.127-linux-x64/platform/nrfutil/bin/nrfutil-device",
          "jlinkInfo": {
            "name": "JlinkARM",
            "version": "JLink_V7.94i",
            "versionFormat": "string"
          }
        },
        "nrfutil-toolchain-manager": {
          "version": "0.14.4",
          "binPath": "/home/ubuntu2/.vscode-server/extensions/nordic-semiconductor.nrf-connect-2025.1.127-linux-x64/platform/nrfutil/bin/nrfutil-toolchain-manager"
        }
      },
      "environment": {
        "westEnv": {
          "GIT_EXEC_PATH": "/opt/ncs/toolchains/b77d8c1312/usr/local/libexec/git-core",
          "HOME": "/home/ubuntu2",
          "PATH": "/opt/ncs/toolchains/b77d8c1312/usr/bin:/opt/ncs/toolchains/b77d8c1312/usr/bin:/opt/ncs/toolchains/b77d8c1312/usr/local/bin:/opt/ncs/toolchains/b77d8c1312/opt/bin:/opt/ncs/toolchains/b77d8c1312/opt/nanopb/generator-bin:/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin:/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/riscv64-zephyr-elf/bin:/home/ubuntu2/.vscode-server/cli/servers/Stable-e54c774e0add60467559eb0d1e229c6452cf8447/server/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/ncs/downloads:/home/ubuntu2/.vscode-server/cli/servers/Stable-e54c774e0add60467559eb0d1e229c6452cf8447/server/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/ncs/downloads",
          "ZEPHYR_BASE": "/opt/ncs/v2.9.0/zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "/opt/ncs/toolchains/b77d8c1312/opt/zephyr-sdk",
          "PYTHONPATH": "/opt/ncs/toolchains/b77d8c1312/usr/local/lib/python3.12:/opt/ncs/toolchains/b77d8c1312/usr/local/lib/python3.12/site-packages",
          "USER": "ubuntu2"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "/home/ubuntu2",
          "PATH": "/home/ubuntu2/.vscode-server/cli/servers/Stable-e54c774e0add60467559eb0d1e229c6452cf8447/server/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/ncs/downloads",
          "USER": "ubuntu2"
        }
      },
      "terminal": {
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "",
          "toolchain": {
            "path": ""
          },
          "ozonePath": "",
          "applications": [
            "${workspaceFolder}/peter/hello_world"
          ],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "taskBindings": {},
          "buildTerminal": {
            "condensedProgress": true
          },
          "debugging": {
            "flash": true,
            "bindings": {},
            "justMyCode": false
          },
          "activeAppFollowActiveEditor": true,
          "flash": {
            "softreset": false,
            "erase": false,
            "recover": false
          },
          "enableTelemetry": true,
          "thirdpartyIntegration": {},
          "toolchainManager": {
            "indexURL": null,
            "installDirectory": "/opt/ncs"
          },
          "nrfutil": {
            "home": null
          },
          "defaultOpenAction": "ask",
          "terminalProfile": {
            "shell": null
          }
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        }
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2025.1.127",
            "path": "/home/ubuntu2/.vscode-server/extensions/nordic-semiconductor.nrf-connect-2025.1.127-linux-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2024.9.14",
            "path": "/home/ubuntu2/.vscode-server/extensions/nordic-semiconductor.nrf-terminal-2024.9.14",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2024.12.15",
            "path": "/home/ubuntu2/.vscode-server/extensions/nordic-semiconductor.nrf-devicetree-2024.12.15",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2024.12.13",
            "path": "/home/ubuntu2/.vscode-server/extensions/nordic-semiconductor.nrf-kconfig-2024.12.13",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": null,
          "ms-vscode.cpptools": "1.23.6",
          "ms-vscode.js-debug": "1.97.1",
          "ms-vscode.vscode-js-profile-table": "1.0.10",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17"
        }
      }
    }
    
    

    The IT you're talking about is me

    3. Please feedback this problem to the developer to see if there is a solution.

    Kind regards,
    Peter.Min

  • Hi Amanda Hsieh,

    any update?

    Kind regards,
    Peter.Min

  • Is there a reason why it is set as the following figure? 


Reply Children
Related