-
Notifications
You must be signed in to change notification settings - Fork 951
Open
Description
$ docker run -it --rm --device=/dev/ttyUSB0 -v $(pwd)/esp_wifi_repeater:/home/esp/esp_wifi_repeater martinfger/iot_devel:1.0
docker: Error response from daemon: error gathering device information while adding custom device "C": not a device node.
Removing the --device option allows me to start the docker image but when flashing I get
esp@292d2c4c18bd:~/esp_wifi_repeater$ make flash
/home/esp/esp_wifi_repeater/../esp-open-sdk/xtensa-lx106-elf/bin/esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash -ff 40m -fm dio -fs 32m 0x00000 firmware/0x00000.bin 0x02000 firmware/0x02000.bin
esptool.py v1.2
Traceback (most recent call last):
File "/home/esp/esp_wifi_repeater/../esp-open-sdk/xtensa-lx106-elf/bin/esptool.py", line 1270, in <module>
main()
File "/home/esp/esp_wifi_repeater/../esp-open-sdk/xtensa-lx106-elf/bin/esptool.py", line 1179, in main
esp = ESPROM(args.port, initial_baud)
File "/home/esp/esp_wifi_repeater/../esp-open-sdk/xtensa-lx106-elf/bin/esptool.py", line 71, in __init__
self._port = serial.serial_for_url(port)
File "/usr/local/lib/python2.7/dist-packages/serial/__init__.py", line 90, in serial_for_url
instance.open()
File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 325, in open
raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
Makefile:160: recipe for target 'flash' failed
make: *** [flash] Error 1
I guess I have to pass the approriate --device option but how should it look like?
Metadata
Metadata
Assignees
Labels
No labels