ML-dev-crypto commented on issue #19504:
URL: https://github.com/apache/nuttx/issues/19504#issuecomment-5048788191
@acassis I reproduced this locally, and it looks like `/dev/rtc0` is
registered before `clock_inittime()` runs, so its inode ends up with a zero
timestamp.also `nsh` only prints the timestamp when `st_mtime != 0`, which
seems to explain why the date is missing.
fix should be on the kernel side so the inode gets a valid timestamp rather
than changing `nsh`. One possible approach could be to ensure the inode is
timestamped after the clock has been synchronized, but but I'm not sure which
approach would be preferred.
--
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]