esp8266/scripts/inisetup: Dump FS starting sector/size on error.
Should allow to diagnose/try to recover FS easier.
This commit is contained in:
parent
5efd6508ec
commit
86d210951f
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user