From f9ecd484bbd698c0f85a3f40f391afeb01940052 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 27 Jan 2017 15:16:08 +1100 Subject: esp8266: Change to use new generic VFS sub-system. The VFS sub-system supports mounting of an arbitrary number of devices (limited only by available RAM). The internal flash is now mounted at "/flash". --- esp8266/scripts/inisetup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'esp8266/scripts/inisetup.py') diff --git a/esp8266/scripts/inisetup.py b/esp8266/scripts/inisetup.py index 3930089db6..29421e7923 100644 --- a/esp8266/scripts/inisetup.py +++ b/esp8266/scripts/inisetup.py @@ -37,8 +37,10 @@ def setup(): print("Performing initial setup") wifi() uos.VfsFat.mkfs(bdev) - vfs = uos.VfsFat(bdev, "") - with open("/boot.py", "w") as f: + vfs = uos.VfsFat(bdev) + uos.mount(vfs, '/flash') + uos.chdir('/flash') + with open("boot.py", "w") as f: f.write("""\ # This file is executed on every boot (including wake-boot from deepsleep) #import esp -- cgit v1.2.3