Skip to content

boards/sim: add dropbear board configuration#19405

Merged
xiaoxiang781216 merged 2 commits into
apache:masterfrom
FelipeMdeO:feature/sim-dropbear-config
Jul 13, 2026
Merged

boards/sim: add dropbear board configuration#19405
xiaoxiang781216 merged 2 commits into
apache:masterfrom
FelipeMdeO:feature/sim-dropbear-config

Conversation

@FelipeMdeO

@FelipeMdeO FelipeMdeO commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR adds a sim:dropbear board configuration. Using this environment speedup development.

Depends on apache/nuttx-apps#3631: NETUTILS_DROPBEAR currently requires a hardware TRNG (ARCH_HAVE_RNG + DEV_RANDOM), which the simulator cannot satisfy — without that change the option is silently dropped at configure time. The logs below were produced with that PR applied.

Impact

  • Hardware: simulator only.
  • Documentation: new dropbear subsection in
    Documentation/platforms/sim/sim/boards/sim/index.rst.

Testing

Host: Ubuntu 24.04 (aarch64), GCC 13.3.0
Target: NuttX simulator, sim:dropbear (with apache/nuttx-apps#3631
applied):

$ ./tools/configure.sh sim:dropbear
$ make -j4

Boot, with Dropbear started automatically by NSH and the preset address,
then create a user:

$ sudo ./tools/simhostroute.sh eth0 on
$ ./nuttx
NuttShell (NSH) NuttX-12.6.0-RC1
nsh> [6] Jun 01 00:00:00 using NuttX passwd auth at /tmp/passwd
dropbear: listening on port 2222
nsh> useradd admin nuttx2026

Connect from the host into an interactive NSH session over SSH:

$ ssh -p 2222 admin@10.0.1.2
admin@10.0.1.2's password:
nsh> uname -a
NuttX  12.6.0-RC1 5ebe305b23 Jul 11 2026 18:43:50 sim sim
nsh> free
      total       used       free    maxused    maxfree  nused  nfree name
   67108864    2115832   64993032    2183104   64983816    138      5 Umem
nsh> exit
Connection to 10.0.1.2 closed.

Add config to use Dropbear in sim environment.

Signed-off-by: Felipe Moura <moura.fmo@gmail.com>
@github-actions github-actions Bot added Area: Documentation Improvements or additions to documentation Size: M The size of the change in this PR is medium Board: simulator labels Jul 11, 2026
@github-actions

github-actions Bot commented Jul 11, 2026

Copy link
Copy Markdown

MemBrowse Memory Report

No memory changes detected for:

@acassis

acassis commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

@FelipeMdeO please normalize the board config

@FelipeMdeO

Copy link
Copy Markdown
Contributor Author

@FelipeMdeO please normalize the board config

Hey Alan, the issue is dependence with apache/nuttx-apps#3631. After merge the apps I will request pipeline run again.

@linguini1 linguini1 changed the title boards/sim | Documentation/sim boards/sim: add dropbear board configuration Jul 12, 2026
@acassis

acassis commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

@FelipeMdeO I just merged the other PR from nuttx-apps, please rebase

Describe how to build and use the Dropbear SSH server configuration on
the simulator, including host TAP network setup, user creation and the
volatile /tmp host key/passwd caveat.

Signed-off-by: Felipe Moura <moura.fmo@gmail.com>
@FelipeMdeO FelipeMdeO force-pushed the feature/sim-dropbear-config branch from 803652e to 6e294e0 Compare July 12, 2026 19:06
@xiaoxiang781216 xiaoxiang781216 merged commit cd6ed0d into apache:master Jul 13, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Documentation Improvements or additions to documentation Board: simulator Size: M The size of the change in this PR is medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants