summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/scripts/inisetup.py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-01-02 18:52:35 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-01-02 18:52:35 +0300
commit86d210951f32e029ab5138142c1a440088753636 (patch)
treece2354cf8dc85b27728fa299f3d499ff32c39284 /esp8266/scripts/inisetup.py
parent5efd6508ecb64e57d71845e265d7cead72496efe (diff)
downloadmicropython-86d210951f32e029ab5138142c1a440088753636.tar.gz
micropython-86d210951f32e029ab5138142c1a440088753636.zip
esp8266/scripts/inisetup: Dump FS starting sector/size on error.
Should allow to diagnose/try to recover FS easier.
Diffstat (limited to 'esp8266/scripts/inisetup.py')
-rw-r--r--esp8266/scripts/inisetup.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/esp8266/scripts/inisetup.py b/esp8266/scripts/inisetup.py
index 1cb9f0dd95..3930089db6 100644
--- a/esp8266/scripts/inisetup.py
+++ b/esp8266/scripts/inisetup.py
@@ -24,11 +24,12 @@ def fs_corrupted():
import time
while 1:
print("""\
-FAT filesystem appears to be corrupted. If you had important data there, you
-may want to make a flash snapshot to try to recover it. Otherwise, perform
-factory reprogramming of MicroPython firmware (completely erase flash, followed
-by firmware programming).
-""")
+The FAT filesystem starting at sector %d with size %d sectors appears to
+be corrupted. If you had important data there, you may want to make a flash
+snapshot to try to recover it. Otherwise, perform factory reprogramming
+of MicroPython firmware (completely erase flash, followed by firmware
+programming).
+""" % (bdev.START_SEC, bdev.blocks))
time.sleep(3)
def setup():