rshell can't mkdir or cd into directory on ESP8266
Posted: Tue Jul 03, 2018 6:39 am
I'm just starting to use Micropython on ESP8266 and really enjoying it. I've been using rshell to copy files and run the REPL over USB.
I successfully connect rshell running on Mac to a D1 Mini Pro (ESP8266 by RobotDyn) using
`rshell -p /dev/cu.SLAB_USBtoUART --buffer-size 30`
I can list files using
`ls /pyboard` and copy files into that directory. I can use mkdir to create directories on the Mac filesystem but when I try `mkdir /pyboard/test` I get `Unable to create /pyboard/test`. However, I can create the directory from Micropython REPL using `uos.mkdir('test')`, and then I can copy files into that directory using rshell.
When I try to cd into a directory on the ESP, rshell crashes giving:
> cd /pyboard
Traceback (most recent call last):
File "//anaconda/bin/rshell", line 11, in <module>
load_entry_point('rshell==0.0.14', 'console_scripts', 'rshell')()
File "//anaconda/lib/python3.6/site-packages/rshell/command_line.py", line 4, in main
rshell.main.main()
File "//anaconda/lib/python3.6/site-packages/rshell/main.py", line 2712, in main
real_main()
File "//anaconda/lib/python3.6/site-packages/rshell/main.py", line 2695, in real_main
shell.cmdloop(cmd_line)
File "//anaconda/lib/python3.6/site-packages/rshell/main.py", line 1589, in cmdloop
cmd.Cmd.cmdloop(self)
File "//anaconda/lib/python3.6/cmd.py", line 138, in cmdloop
stop = self.onecmd(line)
File "//anaconda/lib/python3.6/site-packages/rshell/main.py", line 1619, in onecmd
self.onecmd_exec("".join(group))
File "//anaconda/lib/python3.6/site-packages/rshell/main.py", line 1630, in onecmd_exec
return cmd.Cmd.onecmd(self, line)
File "//anaconda/lib/python3.6/cmd.py", line 217, in onecmd
return func(arg)
File "//anaconda/lib/python3.6/site-packages/rshell/main.py", line 1914, in do_cd
auto(chdir, dirname)
File "//anaconda/lib/python3.6/site-packages/rshell/main.py", line 524, in auto
return dev.remote_eval(func, dev_filename, *args, **kwargs)
File "//anaconda/lib/python3.6/site-packages/rshell/main.py", line 1379, in remote_eval
return eval(self.remote(func, *args, **kwargs))
File "<string>", line 0
^
SyntaxError: unexpected EOF while parsing
Could the problem be related to the fact that I froze a bunch of libraries into the firmware (e.g., picoweb, uasyncio, etc.), increased irom0_0_seg in esp8266.ld to avoid overflow during building, and flashed with `esptool.py --port /dev/cu.SLAB_USBtoUART --baud 460800 write_flash -fm dio -fs 16MB 0 firmware-combined.bin 0xffc000 esp_init_data_default.bin` in order to be able to use 16MB of flash on the board?
I successfully connect rshell running on Mac to a D1 Mini Pro (ESP8266 by RobotDyn) using
`rshell -p /dev/cu.SLAB_USBtoUART --buffer-size 30`
I can list files using
`ls /pyboard` and copy files into that directory. I can use mkdir to create directories on the Mac filesystem but when I try `mkdir /pyboard/test` I get `Unable to create /pyboard/test`. However, I can create the directory from Micropython REPL using `uos.mkdir('test')`, and then I can copy files into that directory using rshell.
When I try to cd into a directory on the ESP, rshell crashes giving:
> cd /pyboard
Traceback (most recent call last):
File "//anaconda/bin/rshell", line 11, in <module>
load_entry_point('rshell==0.0.14', 'console_scripts', 'rshell')()
File "//anaconda/lib/python3.6/site-packages/rshell/command_line.py", line 4, in main
rshell.main.main()
File "//anaconda/lib/python3.6/site-packages/rshell/main.py", line 2712, in main
real_main()
File "//anaconda/lib/python3.6/site-packages/rshell/main.py", line 2695, in real_main
shell.cmdloop(cmd_line)
File "//anaconda/lib/python3.6/site-packages/rshell/main.py", line 1589, in cmdloop
cmd.Cmd.cmdloop(self)
File "//anaconda/lib/python3.6/cmd.py", line 138, in cmdloop
stop = self.onecmd(line)
File "//anaconda/lib/python3.6/site-packages/rshell/main.py", line 1619, in onecmd
self.onecmd_exec("".join(group))
File "//anaconda/lib/python3.6/site-packages/rshell/main.py", line 1630, in onecmd_exec
return cmd.Cmd.onecmd(self, line)
File "//anaconda/lib/python3.6/cmd.py", line 217, in onecmd
return func(arg)
File "//anaconda/lib/python3.6/site-packages/rshell/main.py", line 1914, in do_cd
auto(chdir, dirname)
File "//anaconda/lib/python3.6/site-packages/rshell/main.py", line 524, in auto
return dev.remote_eval(func, dev_filename, *args, **kwargs)
File "//anaconda/lib/python3.6/site-packages/rshell/main.py", line 1379, in remote_eval
return eval(self.remote(func, *args, **kwargs))
File "<string>", line 0
^
SyntaxError: unexpected EOF while parsing
Could the problem be related to the fact that I froze a bunch of libraries into the firmware (e.g., picoweb, uasyncio, etc.), increased irom0_0_seg in esp8266.ld to avoid overflow during building, and flashed with `esptool.py --port /dev/cu.SLAB_USBtoUART --baud 460800 write_flash -fm dio -fs 16MB 0 firmware-combined.bin 0xffc000 esp_init_data_default.bin` in order to be able to use 16MB of flash on the board?