summaryrefslogtreecommitdiff
path: root/esp8266/scripts/flashbdev.py
AgeCommit message (Collapse)Author
2016-04-26esp8266/scripts/flashbdev: Use all available Flash for filesystem.Paul Sokolovsky
All Flash sans firmware at the beginning and 16K SDK param block at the end is used for filesystem (and that's calculated depending on the Flash size).
2016-04-20esp8266/scripts/flashbdev: Correct bootloader flash size to match real size.Paul Sokolovsky
Flash size as seen by vendor SDK doesn't depend on real size, but rather on a particular value in firmware header, as put there by flash tool. That means it's user responsibility to know what flash size a particular device has, and specify correct parameters during flashing. That's not end user friendly however, so we try to make it "flash and play" by detecting real size vs from-header size mismatch, and correct the header accordingly.
2016-04-20esp8266/scripts/flashbdev: Disable debug output/checks.Paul Sokolovsky
2016-04-18esp8266/scripts: Don't try to create filesystem on 512KB devices or less.Paul Sokolovsky
There's no space for it.
2016-04-18esp8266/scripts/flashbdev: Use all available space in 1MB FlashROM for FS.Paul Sokolovsky
2016-04-12esp8266: Add Python modules for initial configuration.Paul Sokolovsky
Main entry point is _boot.py which checks whether FAT FS in flash mountable, and if so, mounts it. Otherwise, it checks if flash is empty, and if so, performs initial module setup: makes FAT FS, configures default AP name, etc. As a last option, if flash is not empty, and could not be mounted, it means filesystem corruption, and warning message with instructions is printed in an infinite loop.