summaryrefslogtreecommitdiff
path: root/esp8266/scripts/_boot.py
AgeCommit message (Collapse)Author
2016-06-29esp8266: Enable frozen bytecode, with scripts in modules/ subdir.Damien George
To start with, the critical scripts _boot.py and flashbdev.py are frozen to improve performance and reduce RAM consumption. Saves about 1000 bytes of heap RAM for a bare boot with filesystem.
2016-04-29esp8266/scripts/_boot: builtins is no longer used.Paul Sokolovsky
2016-04-29esp8266/scripts: Move all of initial setup to inisetup module.Paul Sokolovsky
2016-04-20esp8266/scripts/_boot: Print notice when initial setup is executed.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-14esp8266/scripts/_boot: Mount block device on "" instead of "/".Damien George
"" is the correct name of the root directory when mounting a device there (as opposed to "/"). One can now do os.listdir('/') and open('/abc'), as well as os.listdir() and open('abc').
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.