oh, we don't have these nice birds at home
even Diane's mom can still play plano
Patrick build an arduino based matrix, lower res than mine, but nicer build
docker run --device=/dev/ttyUSB0 -i -t --entrypoint /bin/bash --cap-add SYS_PTRACE debian:amd64I added SYS_PTRACE so that you can use
strace -e trace=file command
to debug access problems
docker run -v /dev/bus:/dev/bus:ro -v /dev/serial:/dev/serial:ro -i -t --entrypoint /bin/bash --cap-add SYS_PTRACE debian:amd64This will make /dev/bus and /dev/serial show up as bind mounts in your container. Yet you will find that _fastboot devices or adb_ will not work. Strace will show you permission denied. What you want instead is this:
docker run --device=/dev/bus -v /dev/serial:/dev/serial:ro -i -t --entrypoint /bin/bash --cap-add SYS_PTRACE debian:amd64See https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities This mounts /dev/bus in your container and gives you access to all the block/character devices in there. Now, fastboot will work. Well, it will work until...
docker run -v /dev/bus:/dev/bus:ro -v /dev/serial:/dev/serial:ro -i -t --entrypoint /bin/bash --cap-add SYS_PTRACE debian:amd64Then, grab the container ID in $A:
A=$( docker ps |awk '/bin.bash/ { print $1 }' )Note the major number of your device:
root@fuchsia-tests-x64-lab01-0002:/sys/fs/cgroup# l /dev/bus/usb/004/* | head -1 crw-rw-r-- 1 root root 189, 384 Dec 18 17:51 /dev/bus/usb/004/001Here it's 189. What changes it the minor number (384) when you plug/unplug devices. Finally, tell the linux container via an opaque cgroup interface, that all character devices of major number 189, are allowed:
root@fuchsia-tests-x64-lab01-0002:~# echo 'c 189:* rwm' > /sys/fs/cgroup/devices/docker/$A*/devices.allowAfter that, things should work.
root@fuchsia-tests-x64-lab01-0002:~# echo 'c 188:* rwm' > /sys/fs/cgroup/devices/docker/$A*/devices.allowThen inside the container, create them all:
root@f47dbbab392b:/dev# for i in $(seq 1 255); do mknod ttyUSB$i c 188 $i; doneHope this helps!
xhci_hcd 0000:00:14.0: Max number of devices this xHCI host supports is 32
?
Wait, you're saying, but USB should support 127 devices (which include hub ports), why only 32?06:04.0 USB controller: VIA Technologies, Inc. VT82xx/62xx UHCI USB 1.1 Controller (rev 62) 06:04.1 USB controller: VIA Technologies, Inc. VT82xx/62xx UHCI USB 1.1 Controller (rev 62) 06:04.2 USB controller: VIA Technologies, Inc. USB 2.0 (rev 65)Now, I found another interesting way to do this, on some motherboards you can reroute the USB ports to the USB2 chipset without changing the bios. See https://www.systutorials.com/241533/how-to-force-a-usb-3-0-port-to-work-in-usb-2-0-mode-in-linux
trying to fin the boat around to our buoy :)
our dive guides spent deco time doing bubble ring wars, this one could make them with his fin, awesome!
friendly looking leopard/zebra shark
I was able to spot a humphead parrotfish, rare in that area
lots of beer and sake bottles (sadly the corks failed and they were empty)
many doors taking us into the insides of the boats
lots of light bulbs somehow survived the water pressure
many light switches and plugs, it was tempting to try to turn them on :)
plane parts, including wings, and fuel barrels
Rio de Janeiro, formerly a cruise ship, was laying on its side
We had a fair amount of technical divers with proper dive gear, including rebreathers
I was deep enough (55m) that my computer gave me a PPO2 warning (oxygen toxicity) instead of my depth
ladder down to even deeper where I couldn't go without trimix
tank #2 and tank #3 on top of it
The founder of blue lagoon resort, a micronesian who documented what the Japanese did and started the first diving on those Japanese ships
A nice map of all the dive sites in our area
I got to see mud skippers for real, the coolest fish that can leave the water and hop on land
Lots of ruins left from the Japanese occupation