Skip to content
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

Coral USB on Proxmox LXC #1807

Closed
cigas4 opened this issue Sep 19, 2021 · 12 comments
Closed

Coral USB on Proxmox LXC #1807

cigas4 opened this issue Sep 19, 2021 · 12 comments

Comments

@cigas4
Copy link

cigas4 commented Sep 19, 2021

Hello,

Can't get Frigate working with Google Coral USB accelerator. I am running Proxmox 7.0, inside I have LXC container running Debian 10 turnkey core 16 image. Inside Debian I am running Frigate docker container.
In log files I allways get error "No EdgeTPU detected".

Proxmox shall:

root@proxmox:~# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 8087:0a2b Intel Corp. Bluetooth wireless interface
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 004: ID 1a6e:089a Global Unichip Corp.
Bus 004 Device 003: ID 05e3:0626 Genesys Logic, Inc. USB3.1 Hub
Bus 004 Device 002: ID 05e3:0626 Genesys Logic, Inc. USB3.1 Hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 003 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@proxmox:~# ls -al /dev/bus/usb/004/004
crw-rw-rw- 1 root plugdev 189, 387 Sep 19 11:15 /dev/bus/usb/004/004

Proxmox udev rule:

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"
root@proxmox:~# ls -al /dev/coral
lrwxrwxrwx 1 root root 15 Sep 19 11:54 /dev/coral -> bus/usb/004/004

LXC container config:

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
parent: Frigate_Neolink
rootfs: local-lvm:vm-102-disk-0,size=150G
searchdomain: 192.168.31.1
swap: 1024
lxc.apparmor.profile: unconfined
lxc.cgroup.devices.allow: a
lxc.cap.drop:
lxc.cgroup.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/coral dev/bus/usb/coral none bind,optional,create=file
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file

[Frigate_Neolink]
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
ostype: debian
rootfs: local-lvm:vm-102-disk-0,size=150G
searchdomain: 192.168.31.1
snaptime: 1631817381
swap: 1024
lxc.apparmor.profile: unconfined
lxc.cgroup.devices.allow: a
lxc.cap.drop:

Inside LXC container:

root@Frigate ~# ls -al /dev/bus/usb/coral
crw-rw-rw- 1 root plugdev 189, 387 Sep 19 08:54 /dev/bus/usb/coral

Config file
Include your full config file wrapped in triple back ticks.

version: '3.9'
services:
  frigate:
    container_name: frigate
    privileged: true
    restart: unless-stopped
    image: blakeblackshear/frigate:stable-amd64
    devices:
      - /dev/bus/usb:/dev/bus/usb
      - /dev/dri/renderD128
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /home/frigate/frigate.yml:/config/config.yml:ro
      - /media/frigate:/media/frigate
      - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
        target: /tmp/cache
        tmpfs:
          size: 1000000000
    ports:
      - '5000:5000'
      - '1935:1935'
    environment:
      FRIGATE_RTSP_PASSWORD: 'pass1'
    build:
      context: .
      shm_size: '256m'
    shm_size: '256m'

Config file
Include your full config file wrapped in triple back ticks.

detectors:
  coral:
    type: edgetpu
    device: usb
mqtt:
  host: 192.168.31.3
  port: 1883
  topic_prefix: frigate
  client_id: Frigate
  user: Frigate
  password: pass
  stats_interval: 60
ffmpeg:
  input_args:
    - -avoid_negative_ts
    - make_zero
    - -fflags
    -  - nobuffer
    - -flags
    - low_delay
    - -strict
    - experimental
    - -fflags
    - +genpts+discardcorrupt
    - -rw_timeout
    - "5000000"
    - -use_wallclock_as_timestamps
    - "1"
  hwaccel_args:
    - -hwaccel
    - qsv
    - -qsv_device
    - /dev/dri/renderD128
cameras:
  parking:
    ffmpeg:
      inputs:
        - path: rtmp://192.168.x.x/bcs/channel0_main.bcs?channel=0&stream=0&user=admin&password=x
          roles:
            - clips
            - detect
    width: 2560
    height: 1920
    fps: 7
    objects:
      track:
        - person
        - car
        - dog
      filters:
        person:
          min_area: 1000
          min_score: 0.5
          threshold: 0.75
        car:
          min_area: 50000
          min_score: 0.5
          threshold: 0.75
        dog:
          min_area: 1000
          min_score: 0.5
          threshold: 0.75
    snapshots:
      enabled: True
      crop: True
      timestamp: False
      bounding_box: True
      retain:
        default: 14
    rtmp:
      enabled: False
    clips:
      enabled: True
      retain:
        default: 14
    motion:
      contour_area: 100
      threshold: 26
      mask:
        - 1628,0,1324,361,930,839,445,1518,842,1920,0,1920,0,0
        - 2560,1920,2560,988,2260,1838,1802,1838,1790,1920
  door:
    ffmpeg:
      inputs:
        - path: rtmp://192.168.x.x/bcs/channel0_main.bcs?channel=0&stream=0&user=admin&password=x
          roles:
            - clips
            - detect
    width: 2560
    height: 1920
    fps: 7
    objects:
      track:
        - person
        - dog
      filters:
        person:
          min_area: 500
          min_score: 0.5
          threshold: 0.75
        dog:
          min_area: 50
          min_score: 0.5
          threshold: 0.75
    snapshots:
      enabled: True
      timestamp: False
      crop: True
      bounding_box: True
      retain:
        default: 14
    rtmp:
      enabled: False
    clips:
      enabled: True
      retain:
        default: 14
    motion:
      contour_area: 100
      threshold: 26
      mask:
        - 726,402,463,731,315,944,0,1427,0,487,0,0,558,0,1079,0
        - 1727,0,2560,0,2560,1920,1288,1920,1401,1445,1707,1473,1738,949,1741,552,1740,347

Frigate container logs

Starting migrations
peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
peewee_migrate                 INFO    : There is nothing to migrate
frigate.mqtt                   INFO    : MQTT connected
detector.coral                 INFO    : Starting detection process: 34
frigate.app                    INFO    : Camera processor started for parking: 38
frigate.edgetpu                INFO    : Attempting to load TPU as usb
frigate.app                    INFO    : Camera processor started for door: 43
Process detector:coral:
frigate.edgetpu                INFO    : No EdgeTPU detected.
frigate.app                    INFO    : Camera processor started for entrance: 44
frigate.app                    INFO    : Capture process started for parking: 46
frigate.app                    INFO    : Capture process started for door: 51
frigate.app                    INFO    : Capture process started for entrance: 53
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/tflite_runtime/interpreter.py", line 152, in load_delegate
    delegate = Delegate(library, options)
  File "/usr/local/lib/python3.8/dist-packages/tflite_runtime/interpreter.py", line 111, in __init__
    raise ValueError(capture.message)
ValueError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/opt/frigate/frigate/edgetpu.py", line 124, in run_detector
    object_detector = LocalObjectDetector(tf_device=tf_device, num_threads=num_threads)
  File "/opt/frigate/frigate/edgetpu.py", line 63, in __init__
    edge_tpu_delegate = load_delegate('libedgetpu.so.1.0', device_config)
  File "/usr/local/lib/python3.8/dist-packages/tflite_runtime/interpreter.py", line 154, in load_delegate
    raise ValueError('Failed to load delegate from {}\n{}'.format(
ValueError: Failed to load delegate from libedgetpu.so.1.0

Computer Hardware

  • NUC8i7HVK
  • OS: Debian
  • Install method: Docker Compose
  • Virtualization: Proxmox LXC
  • Coral Version: USB
  • Network Setup: Wired

Camera Info:

  • Manufacturer: Reolink
  • Model: RLC-520
  • Resolution: 2k
  • FPS: 7
@cigas4
Copy link
Author

cigas4 commented Sep 19, 2021

I see that error is actualy same what I get if I just run test model on Edge TPU. Means issue is already in LXC container itself.

root@Frigate ~# cd coral/pycoral
root@Frigate ~/coral/pycoral# python3 examples/classify_image.py \
el test_d> --model test_data/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite \
st_dat> --labels test_data/inat_bird_labels.txt \
t_dat> --input test_data/parrot.jpg

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 160, in load_delegate
    delegate = Delegate(library, options)
  File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 119, in __init__
    raise ValueError(capture.message)
ValueError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "examples/classify_image.py", line 121, in <module>
    main()
  File "examples/classify_image.py", line 71, in main
    interpreter = make_interpreter(*args.model.split('@'))
  File "/usr/lib/python3/dist-packages/pycoral/utils/edgetpu.py", line 87, in make_interpreter
    delegates = [load_edgetpu_delegate({'device': device} if device else {})]
  File "/usr/lib/python3/dist-packages/pycoral/utils/edgetpu.py", line 52, in load_edgetpu_delegate
    return tflite.load_delegate(_EDGETPU_SHARED_LIB, options or {})
  File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 163, in load_delegate
    library, str(e)))
ValueError: Failed to load delegate from libedgetpu.so.1

@blakeblackshear
Copy link
Owner

Did you see this? #1111

@cigas4
Copy link
Author

cigas4 commented Sep 19, 2021

Did you see this? #1111

Hi, Yes I have tried adjusting my LXC config according to this post, but I still have same error message as earlier.

Now my config looks like this

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.apparmor.profile: unconfined
lxc.cgroup2.devices.allow: a
lxc.cap.drop:
lxc.cgroup2.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/bus/usb/004/ dev/bus/usb/002/ none bind,optional,create=dir 0, 0
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file 0, 0
lxc.mount.auto: cgroup:rw

@cigas4
Copy link
Author

cigas4 commented Sep 19, 2021

After millios retries just got it working with following LXC config:

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/004 dev/bus/usb/004 none bind,optional,create=dir 0, 0
lxc.cap.drop:
lxc.mount.auto: cgroup:rw

Running test model:

root@Frigate ~# cd coral/pycoralroot@Frigate ~/coral/pycoral# python3 examples/classify_image.py --model test_data/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite --labels test_data/inat_bird_labels.txt --input test_data/parrot.jpg

----INFERENCE TIME----
Note: The first inference on Edge TPU is slow because it includes loading the model into Edge TPU memory.
13.1ms
4.4ms
4.5ms
4.4ms
4.4ms
-------RESULTS--------
Ara macao (Scarlet Macaw): 0.75781

Frigate logs:

 * Starting nginx nginx
   ...done.
Starting migrations
peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
peewee_migrate                 INFO    : There is nothing to migrate
frigate.mqtt                   INFO    : MQTT connected
detector.coral                 INFO    : Starting detection process: 36
frigate.app                    INFO    : Camera processor started for parking: 39
frigate.app                    INFO    : Camera processor started for door: 42
frigate.app                    INFO    : Camera processor started for entrance: 47
frigate.app                    INFO    : Capture process started for parking: 51
frigate.app                    INFO    : Capture process started for door: 52
frigate.app                    INFO    : Capture process started for entrance: 53
frigate.edgetpu                INFO    : Attempting to load TPU as usb
frigate.edgetpu                INFO    : TPU found

Unfortunately, as soon as some motion appears, live cam stream inside frigate gets stuck, in logs I find this:

Starting migrations
peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
peewee_migrate                 INFO    : There is nothing to migrate
frigate.mqtt                   INFO    : MQTT connected
detector.coral                 INFO    : Starting detection process: 35
frigate.app                    INFO    : Camera processor started for parking: 41
frigate.edgetpu                INFO    : Attempting to load TPU as usb
frigate.app                    INFO    : Camera processor started for door: 45
frigate.edgetpu                INFO    : TPU found
frigate.app                    INFO    : Camera processor started for entrance: 46
frigate.app                    INFO    : Capture process started for parking: 47
frigate.app                    INFO    : Capture process started for door: 51
frigate.app                    INFO    : Capture process started for entrance: 56
frigate.watchdog               INFO    : Detection appears to be stuck. Restarting detection process...
root                           INFO    : Waiting for detection process to exit gracefully...
root                           INFO    : Detection process didnt exit. Force killing...
detector.coral                 INFO    : Starting detection process: 187
frigate.edgetpu                INFO    : Attempting to load TPU as usb
frigate.edgetpu                INFO    : TPU found
frigate.watchdog               INFO    : Detection appears to be stuck. Restarting detection process...
root                           INFO    : Waiting for detection process to exit gracefully...
root                           INFO    : Detection process didnt exit. Force killing...
detector.coral                 INFO    : Starting detection process: 228
frigate.edgetpu                INFO    : Attempting to load TPU as usb
frigate.edgetpu                INFO    : TPU found
frigate.watchdog               INFO    : Detection appears to be stuck. Restarting detection process...
root                           INFO    : Waiting for detection process to exit gracefully...
root                           INFO    : Detection process didnt exit. Force killing...
detector.coral                 INFO    : Starting detection process: 268
frigate.edgetpu                INFO    : Attempting to load TPU as usb
frigate.edgetpu                INFO    : No EdgeTPU detected.
Process detector:coral:
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/tflite_runtime/interpreter.py", line 152, in load_delegate
    delegate = Delegate(library, options)
  File "/usr/local/lib/python3.8/dist-packages/tflite_runtime/interpreter.py", line 111, in __init__
    raise ValueError(capture.message)
ValueError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/opt/frigate/frigate/edgetpu.py", line 124, in run_detector
    object_detector = LocalObjectDetector(tf_device=tf_device, num_threads=num_threads)
  File "/opt/frigate/frigate/edgetpu.py", line 63, in __init__
    edge_tpu_delegate = load_delegate('libedgetpu.so.1.0', device_config)
  File "/usr/local/lib/python3.8/dist-packages/tflite_runtime/interpreter.py", line 154, in load_delegate
    raise ValueError('Failed to load delegate from {}\n{}'.format(
ValueError: Failed to load delegate from libedgetpu.so.1.0

frigate.watchdog               INFO    : Detection appears to have stopped. Exiting frigate...
frigate.app                    INFO    : Stopping...
frigate.object_processing      INFO    : Exiting object processor...
frigate.events                 INFO    : Exiting event processor...
frigate.events                 INFO    : Exiting event cleanup...
frigate.stats                  INFO    : Exiting watchdog...
frigate.watchdog               INFO    : Exiting watchdog...
frigate.record                 INFO    : Exiting recording maintenance...
peewee.sqliteq                 INFO    : writer received shutdown request, exiting.
root                           INFO    : Waiting for detection process to exit gracefully...
frigate.video                  INFO    : door: exiting subprocess

USB devices logs

root@Frigate ~/coral/pycoral# dmesg | grep usb

[70856.092370] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 4 using xhci_hcd
[70857.992772] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 4 using xhci_hcd
[70858.016885] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[70858.016900] usb 4-2.4: device firmware changed
[70858.018092] usb 4-2.4: USB disconnect, device number 4
[70858.351229] usb 4-2.4: new SuperSpeed Gen 1 USB device number 5 using xhci_hcd
[70858.372851] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[70858.373855] usb 4-2.4: New USB device found, idVendor=18d1, idProduct=9302, bcdDevice= 1.00
[70858.373876] usb 4-2.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[70874.433246] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 5 using xhci_hcd
[70874.452969] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[70879.379877] usb 4-2.4: USB disconnect, device number 5
[70880.050980] usb 4-2.4: new SuperSpeed Gen 1 USB device number 6 using xhci_hcd
[70880.072935] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[70880.073871] usb 4-2.4: New USB device found, idVendor=18d1, idProduct=9302, bcdDevice= 1.00
[70880.073874] usb 4-2.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[70885.257306] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 6 using xhci_hcd
[70885.280964] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[71276.200927] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 6 using xhci_hcd
[71276.220314] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[71299.476901] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 6 using xhci_hcd
[71299.496113] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[71852.659824] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 6 using xhci_hcd
[71852.679251] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[72033.403315] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 6 using xhci_hcd
[72033.422877] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[72122.003147] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 6 using xhci_hcd
[72122.022682] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[72632.466328] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 6 using xhci_hcd
[72632.485598] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[72682.518255] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 6 using xhci_hcd
[72682.537538] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[72732.577804] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 6 using xhci_hcd
[72732.597507] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[72782.633814] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 6 using xhci_hcd
[72782.653602] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[72832.677822] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 6 using xhci_hcd
[72832.697382] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[72882.721600] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 6 using xhci_hcd
[72882.741078] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[72932.777614] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 6 using xhci_hcd
[72932.797320] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[72982.829398] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 6 using xhci_hcd
[72982.848969] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[73029.984130] usb 4-2.4: USB disconnect, device number 6
[73030.659318] usb 4-2.4: new SuperSpeed Gen 1 USB device number 7 using xhci_hcd
[73030.680931] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[73030.681932] usb 4-2.4: New USB device found, idVendor=18d1, idProduct=9302, bcdDevice= 1.00
[73030.681934] usb 4-2.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[73073.779686] usb 4-2.4: USB disconnect, device number 7
[73074.451049] usb 4-2.4: new SuperSpeed Gen 1 USB device number 8 using xhci_hcd
[73074.473071] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[73074.474070] usb 4-2.4: New USB device found, idVendor=18d1, idProduct=9302, bcdDevice= 1.00
[73074.474072] usb 4-2.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[73161.449272] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 8 using xhci_hcd
[73161.469095] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[73211.533214] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 8 using xhci_hcd
[73211.552646] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[73256.469286] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 8 using xhci_hcd
[73256.488533] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[73258.324983] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 8 using xhci_hcd
[73258.344539] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[73276.209352] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 8 using xhci_hcd
[73276.228640] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[73277.659405] usb 4-2.4: USB disconnect, device number 8
[73278.326861] usb 4-2.4: new SuperSpeed Gen 1 USB device number 9 using xhci_hcd
[73278.348389] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[73278.349367] usb 4-2.4: New USB device found, idVendor=18d1, idProduct=9302, bcdDevice= 1.00
[73278.349370] usb 4-2.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[73289.085167] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 9 using xhci_hcd
[73289.108401] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[73362.949116] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 9 using xhci_hcd
[73362.972413] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[73375.433028] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 9 using xhci_hcd
[73375.456305] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[73544.332712] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 9 using xhci_hcd
[73544.351870] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[73546.008685] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 9 using xhci_hcd
[73546.032191] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[73596.228293] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 9 using xhci_hcd
[73596.247846] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[73646.272385] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 9 using xhci_hcd
[73646.298515] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[73696.332239] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 9 using xhci_hcd
[73696.351738] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[73746.392136] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 9 using xhci_hcd
[73746.411705] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[73772.120060] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 9 using xhci_hcd
[73772.139540] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[73832.211899] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 9 using xhci_hcd
[73832.235512] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[74360.231285] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 9 using xhci_hcd
[74360.250688] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[74386.343143] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 9 using xhci_hcd
[74386.362914] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[74436.410957] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 9 using xhci_hcd
[74436.430507] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[74486.466837] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 9 using xhci_hcd
[74486.486467] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[74536.526797] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 9 using xhci_hcd
[74536.546407] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[74562.814753] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 9 using xhci_hcd
[74562.834285] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[74564.678628] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 9 using xhci_hcd
[74564.698521] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[74614.722673] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 9 using xhci_hcd
[74614.742154] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[74664.100904] usb 4-2.4: USB disconnect, device number 9
[74664.772265] usb 4-2.4: new SuperSpeed Gen 1 USB device number 10 using xhci_hcd
[74664.794098] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[74664.795095] usb 4-2.4: New USB device found, idVendor=18d1, idProduct=9302, bcdDevice= 1.00
[74664.795098] usb 4-2.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[74708.886845] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 10 using xhci_hcd
[74708.906116] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[74758.974309] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 10 using xhci_hcd
[74758.994049] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[74809.026200] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 10 using xhci_hcd
[74809.045647] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[74816.302425] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 10 using xhci_hcd
[74816.326038] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[74865.719379] usb 4-2.4: USB disconnect, device number 10
[74866.387877] usb 4-2.4: new SuperSpeed Gen 1 USB device number 11 using xhci_hcd
[74866.409621] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[74866.410618] usb 4-2.4: New USB device found, idVendor=18d1, idProduct=9302, bcdDevice= 1.00
[74866.410620] usb 4-2.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[74925.894257] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 11 using xhci_hcd
[74925.913644] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[74957.690121] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 11 using xhci_hcd
[74957.709928] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[75007.777999] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 11 using xhci_hcd
[75007.797754] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[75057.825846] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 11 using xhci_hcd
[75057.845440] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[75107.880580] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 11 using xhci_hcd
[75107.901356] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[75157.933607] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 11 using xhci_hcd
[75157.957363] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[75207.292262] usb 4-2.4: USB disconnect, device number 11
[75207.963457] usb 4-2.4: new SuperSpeed Gen 1 USB device number 12 using xhci_hcd
[75207.985359] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[75207.986286] usb 4-2.4: New USB device found, idVendor=18d1, idProduct=9302, bcdDevice= 1.00
[75207.986288] usb 4-2.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[75275.981453] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 12 using xhci_hcd
[75276.001102] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[75280.529640] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 12 using xhci_hcd
[75280.549107] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[75282.277670] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 12 using xhci_hcd
[75282.297133] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[75282.333210] usb 4-2.4: usbfs: process 479819 (python3) did not claim interface 0 before use
[75285.152039] usb 4-2.4: USB disconnect, device number 12
[75285.827155] usb 4-2.4: new SuperSpeed Gen 1 USB device number 13 using xhci_hcd
[75285.849172] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[75285.850115] usb 4-2.4: New USB device found, idVendor=18d1, idProduct=9302, bcdDevice= 1.00
[75285.850119] usb 4-2.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[75298.437324] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 13 using xhci_hcd
[75298.460919] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[75302.549442] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 13 using xhci_hcd
[75302.569286] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[75306.817407] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 13 using xhci_hcd
[75306.836891] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[75311.013342] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 13 using xhci_hcd
[75311.033040] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[75315.337294] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 13 using xhci_hcd
[75315.356937] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[75319.421254] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 13 using xhci_hcd
[75319.441238] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[75325.751714] usb 4-2.4: USB disconnect, device number 13
[75326.423086] usb 4-2.4: new SuperSpeed Gen 1 USB device number 14 using xhci_hcd
[75326.444944] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[75326.445942] usb 4-2.4: New USB device found, idVendor=18d1, idProduct=9302, bcdDevice= 1.00
[75326.445945] usb 4-2.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[75363.417576] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 14 using xhci_hcd
[75363.436961] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[75599.921084] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 14 using xhci_hcd
[75599.940373] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[75676.629091] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 14 using xhci_hcd
[75676.648490] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[75776.736488] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 14 using xhci_hcd
[75776.756249] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[75826.110646] usb 4-2.4: USB disconnect, device number 14
[75826.786196] usb 4-2.4: new SuperSpeed Gen 1 USB device number 15 using xhci_hcd
[75826.812283] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[75826.813209] usb 4-2.4: New USB device found, idVendor=18d1, idProduct=9302, bcdDevice= 1.00
[75826.813212] usb 4-2.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[77333.950248] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 15 using xhci_hcd
[77333.969401] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[77362.881870] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 15 using xhci_hcd
[77362.901265] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[77407.881848] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 15 using xhci_hcd
[77407.901542] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[77425.073680] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 15 using xhci_hcd
[77425.097188] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[77523.169408] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 15 using xhci_hcd
[77523.193065] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[77573.261410] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 15 using xhci_hcd
[77573.284981] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[77605.413412] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 15 using xhci_hcd
[77605.432921] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[77655.513207] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 15 using xhci_hcd
[77655.532893] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[77705.565234] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 15 using xhci_hcd
[77705.584852] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[77754.931928] usb 4-2.4: USB disconnect, device number 15
[77755.602811] usb 4-2.4: new SuperSpeed Gen 1 USB device number 16 using xhci_hcd
[77755.624760] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[77755.625757] usb 4-2.4: New USB device found, idVendor=18d1, idProduct=9302, bcdDevice= 1.00
[77755.625760] usb 4-2.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[77828.464936] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 16 using xhci_hcd
[77828.488880] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.
[77878.564965] usb 4-2.4: reset SuperSpeed Gen 1 USB device number 16 using xhci_hcd
[77878.584517] usb 4-2.4: LPM exit latency is zeroed, disabling LPM.

@cigas4
Copy link
Author

cigas4 commented Sep 27, 2021

I have removed Coral USB stick from USB hub and put it directly to NUC, this solved my issue that Coral USB was disconnected repeatedly.

@cigas4 cigas4 closed this as completed Sep 27, 2021
@jcastro
Copy link

jcastro commented Jan 6, 2022

@cigas4 I have been fighting with this for hours and just found out this post AND GOT IT WORKING! Actually I'm on the same setup, Proxmox > LXC > docker. Thanks a lot for posting this, really appreciate it!

@jcastro
Copy link

jcastro commented Jan 25, 2022

I'm setting up the Coral USB as it's being shown by the lsusbcommand
Bus 002 Device 002: ID 1a6e:089a Global Unichip Corp.
Then I restart to apply the changes and the ID/Vendor changes as
Bus 002 Device 003: ID 18d1:9302 Google Inc.
Is anyone experiencing a similar issue or knows what's happening?

@simone-desantis
Copy link

@jcastro yes I am too and many others. Is it normal?

@jcastro
Copy link

jcastro commented Feb 10, 2022

Someone from the Coral support team send me this link, I still need to look at this but wanted to share in case anyone is able to fix it https://www.reddit.com/r/Proxmox/comments/nmsknx/proxmox_vm_ubuntu_2004_connect_google_coral_usb/ (look for the comment with the solution, not the main comment)

@printplaatreparatie
Copy link
Contributor

Due to issues with IOMMU (no support for IOMMU groups) I'm not able to use pci passthrough. Does anyone know an alternate solution where I can use just usb3 passthrough?

@clangren
Copy link

clangren commented Sep 8, 2022

@jcastro Not sure this helps, but my understanding is the Coral shows as Global Unichip Corp without the drivers installed and as Google Inc. with drivers installed.

Link to where I read it: https://coral.ai/docs/accelerator/get-started/#requirements

@ristomatti
Copy link

@jcastro Not sure this helps, but my understanding is the Coral shows as Global Unichip Corp without the drivers installed and as Google Inc. with drivers installed.

Old thread but to me it seems to show as Global Unichip Corp after reboot or disconnect of the device. It changes to Google Inc. after the first usage (e.g. running the example inference script).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants