https://harizanov.com/2015/06/firmware-over-the-air-fota-for-esp8266-soc/esp8266-fota-mem_layout_512/
ESP8266 FOTA memory layout 512MB SPI flash size