mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 10:06:07 +01:00
To be able to store more images and never worry about running out of storage again we are adding support of SDCards. We are faced with two options: 1) Remove the LittleFS code 2) Allow for both FSs but increase the app partition as we run out of space. We have opted for 2 for two reasons: 1) Unformated SDCards can be initialized from the littleFS 2) If the SDCard and the flasher share the same SPI pins the SDCard needs to be completely disconnected so there needs to be a FS in that rare case. Performance wise the SDCard is not slowing the system down. Writing the AP db with 70 APs takes 2.5 seconds, on the SD only 800ms. This however is SD and setup depending. By default the SDCard is expected on pins 18,19,23 however this is configurable via preprocessor defines. Globally we replace LittleFS with a new pointer to the currently used FS allowing for hotswapping where the FS pointer is not saved. One case which is therefore not working is the SPIFSEditor which copies the FS interally. Signed-off-by: Mimoja <git@mimoja.de>
304 B
304 B
| 1 | # Name | Type | SubType | Offset | Size | Flags |
|---|---|---|---|---|---|---|
| 2 | nvs | data | nvs | 0x9000 | 0x5000 | |
| 3 | otadata | data | ota | 0xe000 | 0x2000 | |
| 4 | app0 | app | ota_0 | 0x10000 | 0x150000 | |
| 5 | app1 | app | ota_1 | 0x160000 | 0x150000 | |
| 6 | spiffs | data | spiffs | 0x2B0000 | 0x140000 | |
| 7 | coredump | data | coredump | 0x3F0000 | 0x10000 |