This is what ioreg says:
+-o Root <class IORegistryEntry, id 0x100000100, retain 37>
+-o AppleT6000USBXHCI@00000000 <class AppleT6000USBXHCI, id 0x1000005cb, registered, matched, active, busy 0 (755 ms), retain 74>
+-o AppleT6000USBXHCI@02000000 <class AppleT6000USBXHCI, id 0x1000005ba, registered, matched, active, busy 0 (14 ms), retain 39>
+-o AppleT6000USBXHCI@01000000 <class AppleT6000USBXHCI, id 0x10000067f, registered, matched, active, busy 0 (927 ms), retain 73>
+-o USB JTAG/serial debug unit@01100000 <class IOUSBHostDevice, id 0x10000982f, registered, matched, active, busy 0 (219 ms), ret$
And when I start flashing I get this output from client:
root@cda52c637ee9:/code/led-blink# idf.py -p rfc2217://host.docker.internal:4000?ign_set_control flash
Executing action: flash
Running ninja in directory /code/led-blink/build
Executing "ninja flash"...
[1/1] cd /code/led-blink/build/bootloa...-blink/build/bootloader/bootloader.bin
Bootloader binary size 0x54d0 bytes. 0x6b30 bytes (56%) free.
[4/10] Performing build step for 'chip_gn'
ninja: no work to do.
[7/8] cd /code/led-blink/build/esp-idf...le.bin /code/led-blink/build/light.bin
light.bin binary size 0x28f80 bytes. Smallest app partition is 0x1e0000 bytes. 0x1b7080 bytes (91%) free.
[7/8] cd /root/esp/esp-idf/components/...nents/esptool_py/run_serial_tool.cmake
esptool.py --chip esp32c6 -p rfc2217://host.docker.internal:4000?ign_set_control -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 4MB 0x0 bootloader/bootloader.bin 0x20000 light.bin 0xc000 partition_table/partition-table.bin 0x1d000 ota_data_initial.bin
esptool.py v4.7.0
Serial port rfc2217://host.docker.internal:4000?ign_set_control
Connecting...
Device PID identification is only supported on COM and /dev/ serial ports.
..............................
A serial exception error occurred: timeout while waiting for option 'purge'
Note: This error originates from pySerial. It is likely not a problem with esptool, but with the hardware connection or drivers.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
CMake Error at run_serial_tool.cmake:66 (message):
/root/.espressif/python_env/idf5.2_py3.10_env/bin/python;;/root/esp/esp-idf/components/esptool_py/esptool/esptool.py;--chip;esp32c6
failed.
FAILED: CMakeFiles/flash /code/led-blink/build/CMakeFiles/flash
cd /root/esp/esp-idf/components/esptool_py && /usr/local/lib/python3.10/dist-packages/cmake/data/bin/cmake -D IDF_PATH=/root/esp/esp-idf -D "SERIAL_TOOL=/root/.espressif/python_env/idf5.2_py3.10_env/bin/python;;/root/esp/esp-idf/components/esptool_py/esptool/esptool.py;--chip;esp32c6" -D "SERIAL_TOOL_ARGS=--before=default_reset;--after=hard_reset;write_flash;@flash_args" -D WORKING_DIRECTORY=/code/led-blink/build -P /root/esp/esp-idf/components/esptool_py/run_serial_tool.cmake
ninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the /code/led-blink/build/log/idf_py_stderr_output_8022 and /code/led-blink/build/log/idf_py_stdout_output_8022
And this is the output from the server:
ejeklint@Pers-MacBook-Pro-2021 swift-matter-examples % esp_rfc2217_server.py -v -p 4000 /dev/tty.usbmodem1101
INFO:root:RFC 2217 TCP/IP to Serial redirector - type Ctrl-C / BREAK to quit
INFO:root:Serving serial port: /dev/tty.usbmodem1101
INFO:root:TCP/IP port: 4000
INFO:root:Connected by 127.0.0.1:61042
INFO:rfc2217.server:client accepts RFC 2217
INFO:rfc2217.server:NOTIFY_MODEMSTATE: False
INFO:rfc2217.server:client accepts RFC 2217
INFO:rfc2217.server:NOTIFY_MODEMSTATE: False
INFO:rfc2217.server:set baud rate: 9600
INFO:rfc2217.server:set data size: 8
INFO:rfc2217.server:set parity: N
INFO:rfc2217.server:set stop bits: 1
INFO:rfc2217.server:changed flow control to None
INFO:rfc2217.server:Activating reset in thread
INFO:rfc2217.server:purge in
INFO:rfc2217.server:purge out
INFO:rfc2217.server:set baud rate: 115200
INFO:rfc2217.server:set data size: 8
INFO:rfc2217.server:set parity: N
INFO:rfc2217.server:set stop bits: 1
INFO:rfc2217.server:changed flow control to None
INFO:rfc2217.server:set baud rate: 115200
INFO:rfc2217.server:set data size: 8
INFO:rfc2217.server:set parity: N
INFO:rfc2217.server:set stop bits: 1
INFO:rfc2217.server:changed flow control to None
INFO:rfc2217.server:purge in
INFO:rfc2217.server:Activating reset in thread
INFO:rfc2217.server:purge in
INFO:rfc2217.server:purge out
INFO:rfc2217.server:set baud rate: 115200
INFO:rfc2217.server:set data size: 8
INFO:rfc2217.server:set parity: N
INFO:rfc2217.server:set stop bits: 1
INFO:rfc2217.server:changed flow control to None
INFO:rfc2217.server:set baud rate: 115200
And so on until it times out.