File tree 3 files changed +38
-1
lines changed
3 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 17
17
"variants" : {
18
18
"OTA" : " OTA compatible" ,
19
19
"FLASH_1M" : " 1MiB flash" ,
20
- "FLASH_512K" : " 512kiB flash"
20
+ "FLASH_512K" : " 512kiB flash" ,
21
+ "FLASH_2M_ROMFS" : " 2MiB flash with ROMFS"
21
22
},
22
23
"vendor" : " Espressif"
23
24
}
Original file line number Diff line number Diff line change
1
+ LD_FILES = boards/esp8266_2MiB_ROMFS.ld
2
+
3
+ MICROPY_PY_ESPNOW ?= 1
4
+ MICROPY_PY_BTREE ?= 1
5
+ MICROPY_VFS_FAT ?= 1
6
+ MICROPY_VFS_LFS2 ?= 1
7
+
8
+ # Add asyncio and extra micropython-lib packages (in addition to the port manifest).
9
+ FROZEN_MANIFEST ?= $(BOARD_DIR ) /manifest_2MiB.py
10
+
11
+ # Configure mpconfigboard.h.
12
+ CFLAGS += -DMICROPY_ESP8266_2M -DMICROPY_VFS_ROM=1
Original file line number Diff line number Diff line change
1
+ /* GNU linker script for ESP8266 with 2M or more flash, and includes a ROMFS partition
2
+
3
+ Flash layout :
4
+ 0x40200000 36k header + iram/dram init
5
+ 0x40209000 668k firmware (irom0)
6
+ 0x402c0000 320k ROMFS
7
+ 0x40300000 1M+ filesystem (not memory mapped)
8
+ */
9
+
10
+ MEMORY
11
+ {
12
+ dport0_0_seg : org = 0x3ff00000, len = 16
13
+ dram0_0_seg : org = 0x3ffe8000, len = 80K
14
+ iram1_0_seg : org = 0x40100000, len = 32K
15
+ irom0_0_seg : org = 0x40209000, len = 1M - 36K - 320K
16
+ FLASH_ROMFS : org = 0x402b0000, len = 320K
17
+ }
18
+
19
+ /* define ROMFS extents */
20
+ _micropy_hw_romfs_start = ORIGIN (FLASH_ROMFS);
21
+ _micropy_hw_romfs_size = LENGTH (FLASH_ROMFS);
22
+
23
+ /* define common sections and symbols */
24
+ INCLUDE boards/esp8266_common.ld
You can’t perform that action at this time.
0 commit comments