Code: Select all
while :
do
expect -c 'send \003\003\003\003\003\003\003\003\003\003\003\003\003\003\003' > /dev/ttyS4
expect -c 'send "\rimport uos\r";' > /dev/ttyS4
s="\ruos.remove('main.py')\r"
expect -c "send ${s};" > /dev/ttyS4
expect -c 'send \004\004\004' > /dev/ttyS4
done
Manually calling main() from prompt is the obvious answer to that.
Anyway, all 129 directories have the same name and inode:
Code: Select all
('\x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00', 16384, 0, 4294967295)
anyway,
Code: Select all
uos.rmdir('\x00\x00\x00\x00\x00\x00\x00\x00.\x00\x00\x00')
I can flash the thingy, but my MP build is currently broken and, well, I'm lazy (obviously). Anyway, this is all what I call exploratory testing.. I'm learning a lot just by writing this topic.
So, my question is: can I reset/format the filesystem without flashing the device?
Sorry about the rambling explanation..
Cheers,
Bitrat