blob: ce057981aba88bbeedace9b8e80d00c9f74e4b3e [file] [log] [blame]
Damien George6bec36a2025-03-01 17:22:03 +11001/* 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
10MEMORY
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 */
Damien Georged5aeca22025-03-11 13:23:50 +110020_micropy_hw_romfs_part0_start = ORIGIN(FLASH_ROMFS);
21_micropy_hw_romfs_part0_size = LENGTH(FLASH_ROMFS);
Damien George6bec36a2025-03-01 17:22:03 +110022
23/* define common sections and symbols */
24INCLUDE boards/esp8266_common.ld