Encrypted flash but plain text SPIFFS
Posted: Wed Sep 25, 2019 6:19 am
Hello ESP32-Community,
this is my first post at this form.
Project: Webserver with spiffs that holds the websites.
Flash partitions:
The program is stored at app0 and the website is stored spiffs. without flash encryption everything works fine.
As I mention, data partitions will be handled as non-encrypted. My idea: writing program encryped and webdata as plain text:
The encryped app starts, but with this Problem:
I do not understand the problem.
One solutions is to use spiffs as nvs - but I am not sure if that is working with about 10MByte and how to program it.
Thank you.
this is my first post at this form.
Project: Webserver with spiffs that holds the websites.
Flash partitions:
Code: Select all
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0xA000, 0x5000,
otadata, data, ota, 0xF000, 0x2000,
app0, app, ota_0, 0x20000, 0x140000,
app1, app, ota_1, 0x160000,0x140000,
eeprom, data, 0x99, 0x2A0000,0x1000,
spiffs, data, spiffs, 0x2A1000,0x15F000,
As I mention, data partitions will be handled as non-encrypted. My idea: writing program encryped and webdata as plain text:
Code: Select all
esptool.py --chip esp32 --port COM4 --baud 921600 write_flash 0x20000 \Release\prog_encrypted.bin 0x2A1000 website.bin
Code: Select all
SPIFFS: spiffs partition could not be found
One solutions is to use spiffs as nvs - but I am not sure if that is working with about 10MByte and how to program it.
Thank you.