USB Camera (/dev/video0) will randomly disappear after reboot

I can go weeks at a time without this bug, but every once in a while /dev/video0 disappears on reboot and no amount of soft resets or unplugging the USB camera and inserting it in a different (or the same) USB port will bring it back.

I have also tried turning the Nano off and turning it back on.

Anyone got any ideas?
Last time I encountered this bug I just quit using the nano until I found a good time to flash a new SD image and pull my code back down from github… which fixed it for a few weeks until it happened again.

When I plug the same camera in now syslog shows the following:

Blockquote
Feb 7 19:57:01 jarvis kernel: [ 486.630891] tegra-xusb-padctl 7009f000.xusb_padctl: power on UTMI pads 1
Feb 7 19:57:01 jarvis kernel: [ 486.842773] usb 1-2.3: new low-speed USB device number 4 using tegra-xusb
Feb 7 19:57:01 jarvis kernel: [ 486.843921] usb 1-2.3: Device not responding to setup address.
Feb 7 19:57:01 jarvis kernel: [ 487.059948] usb 1-2.3: Device not responding to setup address.
Feb 7 19:57:01 jarvis kernel: [ 487.270795] usb 1-2.3: device not accepting address 4, error -71
Feb 7 19:57:01 jarvis kernel: [ 487.356279] usb 1-2.3: new low-speed USB device number 5 using tegra-xusb
Feb 7 19:57:01 jarvis kernel: [ 487.357523] usb 1-2.3: Device not responding to setup address.
Feb 7 19:57:02 jarvis kernel: [ 487.571827] usb 1-2.3: Device not responding to setup address.
Feb 7 19:57:02 jarvis kernel: [ 487.782769] usb 1-2.3: device not accepting address 5, error -71
Feb 7 19:57:02 jarvis kernel: [ 487.789651] usb 1-2-port3: attempt power cycle
Feb 7 19:57:03 jarvis kernel: [ 488.810758] tegra-xusb-padctl 7009f000.xusb_padctl: power down UTMI pad 1
Feb 7 19:57:03 jarvis kernel: [ 488.834883] usb 1-2: usb_suspend_both: status 0

Hi,
Do you observe the issue on developer kit or custom board? And please share your release version( $ head -1 /etc/nv_tegra_release )

Yes, devkit, 4Gb Jetson Nano.

R32 (release), REVISION: 4.4, GCID: 23942405, BOARD: t210ref, EABI: aarch64, DATE: Fri Oct 16 19:44:43 UTC 2020

Hi,
Could you try to connect embedded hub to a hub with external power supply, and connect to the camera? Probably the power is not stable and triggers enumeration failure.

I actually opened the camera.
Cheap unit I got off Amazon… cable was literally held in with a zip tie.
One of the USB wires would occasionally wiggle loose.
I jammed it back in as far as it would go and everything is working just fine.
Thanks for your assistance!