FelipeMdeO opened a new pull request, #19405:
URL: https://github.com/apache/nuttx/pull/19405

   ## 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):
   
   ```console
   $ ./tools/configure.sh sim:dropbear
   $ grep -E 'NETUTILS_DROPBEAR=|NSH_DROPBEAR=|NSH_LOGIN_PASSWD=' .config
   CONFIG_NETUTILS_DROPBEAR=y
   CONFIG_NSH_DROPBEAR=y
   CONFIG_NSH_LOGIN_PASSWD=y
   $ make -j4
   ```
   
   Boot, with Dropbear started automatically by NSH and the preset address,
   then create a user:
   
   ```console
   $ 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:
   
   ```console
   $ ssh -p 2222 [email protected]
   [email protected]'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.
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to