The raspberrypi3-debian-python image cannot detect the usb devices.

I get an error when running the raspberrypi3-debian-python image with the following command:

docker run -it -v /dev:/dev balenalib/raspberrypi3-debian-python:latest /bin/bash
lsusb

And the error is:
lsusb: …/…/libusb/libusbi.h:497: usbi_get_monotonic_time: Assertion `clock_gettime(1, tp) == 0’ failed.
Aborted (core dumped)

Is it the command I’m using that needs to be improved, or the image doesn’t support usb device recognition?

Hi, this seems to work fine on mine, even without explicitly mounting the device dir (kinda surprised there).

thijs@tjvv-pi3:~/balena $ docker run --rm -it balenalib/raspberrypi3-debian-python:latest /bin/bash
root@5b6d6eaa5e8f:/# lsusb
Bus 001 Device 004: ID 059f:106f LaCie, Ltd P9233
Bus 001 Device 003: ID 0424:ec00 Microchip Technology, Inc. (formerly SMSC) SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Microchip Technology, Inc. (formerly SMSC) SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Can you see your devices normally when you run the command in your host OS?

Something you can try, is to run your container with the following flags: --privileged -e UDEV=on.

Very thanks for your reply. I will try it.

TJvV via balenaForums <notifications@balena.discoursemail.com> 于2022年7月11日周一 15:50写道:

Hi @oyamingo did you manage to get it work?
Thanks,