Zepp-Hanzj opened a new pull request, #19048:
URL: https://github.com/apache/nuttx/pull/19048

   Fixes apache/nuttx-apps#3410
   
   ## Problem
   
   `sim:nsh` has no `CONFIG_RTC` enabled, which causes `NSH_DISABLE_DATE` to be 
auto-enabled (its default is `DEFAULT_SMALL || !RTC`). As a result, the `date` 
command is not compiled in, and the system time defaults to a hardcoded value 
instead of syncing with the host.
   
   ## Fix
   
   Add `CONFIG_RTC=y`, `CONFIG_RTC_DRIVER=y`, and `CONFIG_RTC_ARCH=y` to 
`boards/sim/sim/sim/configs/nsh/defconfig`. This enables the `date` command 
automatically via the `NSH_DISABLE_DATE` dependency.
   
   ## Verification
   
   ```
   $ make distclean && ./tools/configure.sh sim:nsh && make -j
   $ ./nuttx
   NuttShell (NSH) NuttX-3.6.1
   nsh> date
   Fri, Jun 05 13:58:33 2026
   ```
   
   Before fix: `nsh: date: command not found`
   After fix: `Fri, Jun 05 13:58:33 2026` (correct host time)


-- 
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