mongoose-os icon indicating copy to clipboard operation
mongoose-os copied to clipboard

feat(esp32): added option to add partition before app_0

Open daadu opened this issue 3 years ago • 4 comments

Some use-case for having partition before app_0:

  • storing factory data at fixed offset irrespective of flash size

daadu avatar Dec 28 '21 06:12 daadu

Any update on this? should be renamed to ESP_IDF_EXTRA_PARTITION_BEFORE_APP ??

daadu avatar Jan 12 '22 06:01 daadu

storing factory data at fixed offset irrespective of flash size

ok, i understand the need. but there's still one problem here: the NVS size. if it ever needs to be changed, for whatever reason, it's a problem. so, let's move it to the very top, even before nvs and OTA state, and call the variable something else... ESP_IDF_EXTRA_PARTITION_TOP, perhaps, but if you have a better name - feel free.

rojer avatar Jan 12 '22 22:01 rojer

If we move this "extra part" at top - then if some one wants to configure it, he has to shift all three default offsets - NVS_ADDR, OTA_DATA_ADDR and APP_OFFSET. In current case only have to shift APP_OFFSET.

Maybe can keep this as well as add "TOP" one?

daadu avatar Jan 13 '22 06:01 daadu

Or do you think this "shifting" should be handled by MGOS? That is a bit non-trivial - as have make sure that the offset is "aligned" as per ESP spec.

daadu avatar Jan 13 '22 06:01 daadu