I fire up the container using:
docker run --rm -v $(pwd):/workspaces/pio-workspace -w /workspaces/pio-workspace --mount source=/dev,target=/dev,type=bind,consistency=consistent --device-cgroup-rule='c 189:* rmw' -p 4444:4444 dimdm/openocd openocd -f /workspaces/pio-workspace/test.scr
Its connected to my target and has opened ports.
telnet it on 4444
Info : Listening on port 4444 for telnet connections
and I forwarden this Port from host to container (see above command)
But when I tried to connect the connetcion is refused. I tried also on gdb port (changing the forward).
If I fire up a shell instead of openocd however and use netcat to bind to a port
sh -c "while true; do { echo 'HTTP/1.1 200 OK\r\n'; echo 'smallest http server'; } | nc -l -p 4444; done"
I can connect from the host, so this might be related to the tcl runtime? If I fire up openocd from the shell and put in in the backgroud, I can use telnet to connect (container->container) I tried different base Images, this one and some ubuntu based where also the ARM build Environment is installed. No Success. No important Info when openocd is used with "-d3"....
I fire up the container using:
docker run --rm -v $(pwd):/workspaces/pio-workspace -w /workspaces/pio-workspace --mount source=/dev,target=/dev,type=bind,consistency=consistent --device-cgroup-rule='c 189:* rmw' -p 4444:4444 dimdm/openocd openocd -f /workspaces/pio-workspace/test.scr
Its connected to my target and has opened ports. telnet it on 4444Info : Listening on port 4444 for telnet connections
and I forwarden this Port from host to container (see above command) But when I tried to connect the connetcion is refused. I tried also on gdb port (changing the forward). If I fire up a shell instead of openocd however and use netcat to bind to a portsh -c "while true; do { echo 'HTTP/1.1 200 OK\r\n'; echo 'smallest http server'; } | nc -l -p 4444; done"
I can connect from the host, so this might be related to the tcl runtime? If I fire up openocd from the shell and put in in the backgroud, I can use telnet to connect (container->container) I tried different base Images, this one and some ubuntu based where also the ARM build Environment is installed. No Success. No important Info when openocd is used with "-d3"....