Google Coral USB changing ID/Vendor

bluepr0

Well-Known Member
Mar 1, 2019
71
5
48
69
Hello!

I have a container setup with Frigate and I'm experiencing a weird issue where my USB ID and Vendor ID are changing after setting up UDEV rules

If I do an lsusb I get
Code:
Bus 002 Device 002: ID 1a6e:089a Global Unichip Corp.

Then I configure the USB using the previous information
Code:
root@proxmox:~# nano /etc/udev/rules.d/98-coral.rules

SUBSYSTEMS=="usb", ATTRS{idVendor}=="1a6e", ATTRS{idProduct}=="089a", OWNER="root", SYMLINK+="coral", MODE="0666", GROUP="plugdev"

Container config
Code:
root@proxmox:~# nano /etc/pve/lxc/102.conf

GNU nano 5.4                                                         
arch: amd64
cores: 4
features: nesting=1
hostname: Frigate
memory: 8192
nameserver: 192.168.31.1
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=22:AA:3E:DC:53:0C,ip=dhcp,ip6=dhcp,type=veth
onboot: 1
ostype: debian
rootfs: local-lvm:vm-102-disk-0,size=150G
searchdomain: 192.168.31.1
swap: 1024
lxc.cgroup2.devices.allow: c 226:0 rwm
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.cgroup2.devices.allow: c 29:0 rwm
lxc.cgroup2.devices.allow: c 189:* rwm
lxc.apparmor.profile: unconfined
lxc.cgroup2.devices.allow: a
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file 0, 0
lxc.mount.entry: /dev/bus/usb/002 dev/bus/usb/002 none bind,optional,create=dir 0, 0
lxc.cap.drop:
lxc.mount.auto: cgroup:rw

I restart the server and when it's back and I do a lsusb I get
Code:
Bus 002 Device 003: ID 18d1:9302 Google Inc.

I have to edit the UDEV rule again and then it works fine. But sometimes when I turn off the server or restart it. it goes back to the previous ID and I have to repeat the process.

Any ideas on what's going on? Thanks!
 
Exact same issue here but restarts don't seem to be "initialising" the Coral. Would love some ideas to try.
 
@Rebem here's an idea the guys from Coral suggested https://github.com/google-coral/edgetpu/issues/536 haven't tried it yet but let me know if it helps fix it!
Thanks bluepr0 - I should have given more context for my use case - this is correct for a VM but I'm using it in an LXC. However I've found that the problem is linked to first initialisation of the Coral like that article says. Embarrassingly I think my issue was I passed through USB Bus 4 instead of 3 and now it's working fine! :)