-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mbed-tool detect doesn't detect mbed devices inside docker #308
Comments
@ARMmbed/mbed-os-core A difference between container and host is the USB mount (from which we extract device info) is mounted to a user specified destination? Could it be that mbed-tools's detection algorithm makes certain assumptions on path to mount point? (Just my suspicion - I'm not familiar with this part of mbed-tools). |
The problem seems to be that
A workaround here would be to mount |
@saheerb Did the suggestion above fix the problem? Can we close this issue? |
Yes, mbed-tools detect works if /run/udev is mounted on to the docker image. Ran ctests too inside docker image. All good. Step to run (for reference):
|
Describe the bug
docker environment will become the common method to execute tests against mbed devices, especially when H/W testing is moved to LAVA in CI. A linux host machine will run docker, and mbed devices will be passed through to docker as explained here
Though the detection of devices work in mbed-cli-v1 (mbedls), mbed-tools detect doesn't list any device.
To Reproduce
Steps to reproduce the behavior:
In Linux host machine (USB pass through will work only in Linux host): install docker if not already present. Connect an mbed device, for example, K64F.
In Linux host machine, run docker container:
docker run -it --privileged -v /dev/disk/by-id:/dev/disk/by-id -v /dev/serial/by-id:/dev/serial/by-id ghcr.io/armmbed/mbed-os-env:master-latest
mount usb device and execute mbed-ls
mount /dev/sdb /mnt
Expected behavior
mbed-tools detect the mbed device.
Desktop (please complete the following information):
Any linux host that can run docker
Mbed (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: