Skip to content

Commit f6547f6

Browse files
MrSurlydpgeorge
authored andcommitted
esp32: Move FAT FS to start at 0x200000 and increase size to 2MiB.
This allows for more room (up to 2MiB) for the firmware, and also gives a decent size filesystem. After using this patch one is required to rebuild their filesystem.
1 parent 30b5375 commit f6547f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

esp32/modesp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ STATIC mp_obj_t esp_flash_size(void) {
7777
STATIC MP_DEFINE_CONST_FUN_OBJ_0(esp_flash_size_obj, esp_flash_size);
7878

7979
STATIC mp_obj_t esp_flash_user_start(void) {
80-
return MP_OBJ_NEW_SMALL_INT(0x100000);
80+
return MP_OBJ_NEW_SMALL_INT(0x200000);
8181
}
8282
STATIC MP_DEFINE_CONST_FUN_OBJ_0(esp_flash_user_start_obj, esp_flash_user_start);
8383

esp32/modules/flashbdev.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ def ioctl(self, op, arg):
3131
bdev = None
3232
else:
3333
# for now we use a fixed size for the filesystem
34-
bdev = FlashBdev(256 * 1024 // FlashBdev.SEC_SIZE)
34+
bdev = FlashBdev(2048 * 1024 // FlashBdev.SEC_SIZE)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy