apache / nuttx

Apache NuttX is a mature, real-time embedded operating system (RTOS)
https://nuttx.apache.org/
Apache License 2.0
2.83k stars 1.17k forks source link

Report more info through mtd_geometry_s and geometry #8376

Open xiaoxiang781216 opened 1 year ago

xiaoxiang781216 commented 1 year ago

https://github.com/apache/nuttx/pull/4320 add model info to mtd_geometry_s and geometry, the next step is:

  1. Move erase state to mtd_geometry_s and remove MTDIOC_ERASESTATE
  2. Add more useful info to mtd_geometry_s and geometry
  3. Rename mtd_geometry_s/geometry to a more general name
gustavonihei commented 1 year ago
  1. Move erase state to mtd_geometry_s and remove MTDIOC_ERASESTATE

Please, note that the NuttX port of MCUboot makes use of MTDIOC_ERASESTATE: https://github.com/mcu-tools/mcuboot/blob/5047f032c93fd8957be6529f8f1ad7a3fe626057/boot/nuttx/src/flash_map_backend/flash_map_backend.c#L302-L303