Closed slzatz closed 6 years ago
Not sure. I haven't yet tried rshell on the ESP32. Typically these are related to file system issues. When you do an ls /flash
command, rshell tries to execute os.stat('/')
followed by os.listdir('/')
followed by os.stat on each of the files returned by os.listdir.
It would be good to know what output you get when running those commands manually from the REPL.
If you run rshell with the -d option it will print out a bunch more info, including the commands being executed. It would be useful to find out exactly where its failing.
Dave, I used -d and it mirrored what you're going to see below taken directly from the REPL. Not sure why os.stat("/flash")
generates an exception.
>>> import os
>>> os.stat("/")
(16384, 0, 0, 0, 0, 0, 0, 0, 0, 0)
>>> os.stat("/flash")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 22] EINVAL
>>> os.listdir("/")
['flash']
>>> os.listdir("/flash")
['boot.py', 'iot_esp32_tft.py', 'topic', 'config.py', 'mqtt_id', 'main.py']
Thanks. That's a bug in the filesystem code, that was fixed quite a while ago, and the ESP32 fork probably doesn't have it.
I'll see about adding some code to rshell which causes it to deal with that error.
Dave, thanks for taking a look. I am using the @loboris ESP32 version and not sure whether the issue is fixed in the upstream micropython ESP32 port or not.
I updated the firmware to:
MicroPython ESP32_LoBo_v2.0.8 - 2017-11-04 on ESP32 board with ESP32
and everything works fine so the issue was not testing with the latest version.
I am using the @loboris micropython ESP32 port on an Adafruit Feather ESP32 and am running rshell on ubuntu 17.10. I start rshell with:
I can get to the repl through rshell with no problem
When I use the boards cmd I get:
but
results in
No such file or directory
andresults in this traceback.
Note that:
works fine with the same board and host set-up.
Dave, any thoughts?