Kaben123 opened a new pull request, #18323: URL: https://github.com/apache/nuttx/pull/18323
Log data is stored to the mtd device, independent of the file system. - Log data is appended, and the new log overwrites the old log. - The logs recorded after each power on belong to the same log group. - Support to iterate over all log entries, support to iterate over all log groups. - Block information and log entry information are protected using CRC. *Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).* ## Summary This PR introduces a new MTD log driver (mtdlog) for Apache NuttX. The mtdlog driver enables direct storage of log data on MTD devices, independent of any file system. Key features include: - Log data is appended to the MTD device, and new logs overwrite old logs when the storage is full. - Logs recorded after each power-on are grouped together, supporting log group iteration. - Provides APIs to iterate over all log entries and log groups. - Both block information and log entry information are protected using CRC to ensure data integrity. - Includes new Kconfig, build, and IOCTL definitions for easy integration and configuration. ## Impact - Adds a new driver and public API for MTD-based log storage. - No impact on existing drivers or applications unless the new driver is enabled via Kconfig. - Improves logging capabilities for systems using raw MTD devices. ## Testing - The driver has been built and integrated with the NuttX build system. - Basic log write, read, and iteration operations have been verified on supported hardware. - CRC protection for log and block information has been validated. -- 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]
