Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Placeholder: Setup partition scheme for larger flash devices and better handling of Device UI bins #116

Open
thebentern opened this issue Oct 29, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@thebentern
Copy link
Contributor

No description provided.

@thebentern thebentern added the enhancement New feature or request label Oct 29, 2024
@thebentern thebentern self-assigned this Oct 29, 2024
@mverch67
Copy link

mverch67 commented Nov 14, 2024

Current 4MB partitioning:

# This is a layout for 4MB of flash
# Name,   Type, SubType, Offset,  Size, Flags
nvs,      data, nvs,     0x009000, 0x005000,
otadata,  data, ota,     0x00e000, 0x002000,
app,      app,  ota_0,   0x010000, 0x250000,  <== firmware.bin
flashApp, app,  ota_1,   0x260000, 0x0A0000,  <== bleota.bin
spiffs,   data, spiffs,  0x300000, 0x100000   <== littlefs.bin

8MB (Indicator):

# Name,   Type, SubType, Offset,  Size, Flags
nvs,      data, nvs,     0x9000,  0x5000,
otadata,  data, ota,     0xe000,  0x2000,
app0,     app,  ota_0,   0x10000, 0x330000,  <== currently 464kB free until littlefs gets in the way
app1,     app,  ota_1,   0x340000,0x330000,  <== bleota-s3.bin should go here
spiffs,   data, spiffs,  0x670000,0x180000,  <== littlefs.bin designated address
coredump, data, coredump,0x7F0000,0x10000

16MB (T-Deck and others):

# Name,   Type, SubType, Offset,  Size, Flags
nvs,      data, nvs,     0x9000,  0x5000,
otadata,  data, ota,     0xe000,  0x2000,
app0,     app,  ota_0,   0x10000, 0x640000,   <== currently 314kB free until littlefs gets in the way
app1,     app,  ota_1,   0x650000,0x640000,,  <== bleota-s3.bin should go here
spiffs,   data, spiffs,  0xc90000,0x360000,   <== littlefs.bin designated address
coredump, data, coredump,0xFF0000,0x10000

@mverch67
Copy link

Bundling the .cvs file with the firmware zip would allow a completely generic approach, that works for all future variations without the need for device type specific adaptations or other related maintenance. If no .csv included assume 4MB layout.

@mverch67
Copy link

Alternative to csv files: use a manifest file, e.g. as described here:
https://github.com/esphome/esp-web-tools

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants