Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
86d21095
Commit
86d21095
authored
Jan 02, 2017
by
Paul Sokolovsky
Browse files
esp8266/scripts/inisetup: Dump FS starting sector/size on error.
Should allow to diagnose/try to recover FS easier.
parent
5efd6508
Changes
1
Show whitespace changes
Inline
Side-by-side
esp8266/scripts/inisetup.py
View file @
86d21095
...
@@ -24,11 +24,12 @@ def fs_corrupted():
...
@@ -24,11 +24,12 @@ def fs_corrupted():
import
time
import
time
while
1
:
while
1
:
print
(
"""
\
print
(
"""
\
FAT filesystem appears to be corrupted. If you had important data there, you
The FAT filesystem starting at sector %d with size %d sectors appears to
may want to make a flash snapshot to try to recover it. Otherwise, perform
be corrupted. If you had important data there, you may want to make a flash
factory reprogramming of MicroPython firmware (completely erase flash, followed
snapshot to try to recover it. Otherwise, perform factory reprogramming
by firmware programming).
of MicroPython firmware (completely erase flash, followed by firmware
"""
)
programming).
"""
%
(
bdev
.
START_SEC
,
bdev
.
blocks
))
time
.
sleep
(
3
)
time
.
sleep
(
3
)
def
setup
():
def
setup
():
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment