no devices detection - both lsusb and lspci return nothing.

It seems that USB device interface on my Tx2 dev kit have stopped working. - probably many more but these are the ones that make it difficult to use the Tx2…

As you can see from below: $lsusb and $lspci return nothing. Since this issue, I was able to re-flash the the Tx2 using the miniUSB port- thus indicating that the USB port, at least the miniUSB2.0, works. Strangely enough I was able to also ssh over Ethernet and run all software updates but I feel I have hit a road block trying to debug this issue. Mainly because shouldnt I see the network controller device when running $lspci.

Also the HDMI output works and when booting everything looks normal, i.e. nothing in the boot terminal fails.

nvidia@tegra-ubuntu:~$ sudo apt-get install usbutils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
usbutils is already the newest version (1:007-4).
usbutils set to manually installed.
The following packages were automatically installed and are no longer required:
  apt-clone archdetect-deb dmeventd dmraid dpkg-repack gir1.2-timezonemap-1.0
  gir1.2-xkl-1.0 kpartx kpartx-boot libappstream3 libdebian-installer4
  libdevmapper-event1.02.1 libdmraid1.0.0.rc16 liblockfile-bin liblockfile1
  liblvm2app2.2 liblvm2cmd2.02 libparted-fs-resize0 libreadline5
  lockfile-progs lvm2 os-prober pmount python3-icu python3-pam rdate
  ubiquity-casper ubiquity-ubuntu-artwork ubuntu-core-launcher
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 29 not upgraded.
nvidia@tegra-ubuntu:~$ lsusb
nvidia@tegra-ubuntu:~$ sudo lspci -vvv
nvidia@tegra-ubuntu:~$ lsusb -vvv
nvidia@tegra-ubuntu:~$

Since you have some access do you see anything in error from:

sha1sum -c /etc/nv_tegra_release

Normally you won’t see anything on lspci unless you have something connected to it…even the bridge won’t show up until then. lsusb would normally show root_hub content even if nothing is connected. If a HUB is connected you might try direct connect with different devices (e.g., keyboard, mouse…one at a time) and check lsusb from direct connect.

During a connect or disconnect of a device monitor “dmesg --follow”.

Another thing is to check what you see from “dmesg | grep -i usb” after a fresh boot.

Thanks for the suggestions! If I plug anything into either ports, there is no power supplied to the device. A mouse wont even light up. I have also tried with a powered USB hub but devices still dont show up.

I was able to also swap/plugin a Tx1 module onto the same dev board and have the USB ports work just fine. So at least I know the physical connection are ok.

nvidia@tegra-ubuntu:~$ sha1sum -c /etc/nv_tegra_release 
/usr/lib/aarch64-linux-gnu/libv4l/plugins/libv4l2_nvvideocodec.so: OK
/usr/lib/aarch64-linux-gnu/libv4l/plugins/libv4l2_nvvidconv.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvomx.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnveglstreamproducer.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvtx_helper.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvddk_vic.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libglx.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libargus_socketserver.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvmmlite.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvddk_2d_v2.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvwinsys.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libargus.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvmm.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvjpeg.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvexif.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvdc.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvavp.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvtestresults.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libargus_socketclient.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvmm_utils.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvfnet.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvll.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvcameratools.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvapputil.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnveglstream_camconsumer.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvrm.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvcam_imageencoder.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libtegrav4l2.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvparser.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvtvmr.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvrm_gpu.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvtnr.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvcamerautils.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvidia-egl-wayland.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvfnetstoredefog.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvodm_imager.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvmmlite_utils.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvcolorutil.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvmmlite_video.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvmmlite_image.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvmm_contentpipe.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvimp.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvos.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvrm_graphics.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvmedia.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvfnetstorehdfx.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvomxilclient.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvcamlog.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvmm_parser.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libscf.so: OK
/usr/lib/aarch64-linux-gnu/tegra/libnvosd.so: OK
/usr/lib/xorg/modules/drivers/nvidia_drv.so: OK
/usr/lib/xorg/modules/extensions/libglx.so: FAILED
sha1sum: WARNING: 1 computed checksum did NOT match

Much of this return usbX phy is not available yet

nvidia@tegra-ubuntu:~$ dmesg | grep -i usb
[    0.143692] node /plugin-manager/fragment-500-xusb-config match with board >=3310-1000-500
[    0.301003] usbcore: registered new interface driver usbfs
[    0.301088] usbcore: registered new interface driver hub
[    0.301206] usbcore: registered new device driver usb
[    0.363640] vdd-usb0-5v: 5000 mV 
[    0.363810] vdd-usb1-5v: 5000 mV 
[    2.943959] usbcore: registered new interface driver r8152
[    2.950173] usbcore: registered new interface driver asix
[    2.956281] usbcore: registered new interface driver ax88179_178a
[    2.963056] usbcore: registered new interface driver cdc_ether
[    2.969588] usbcore: registered new interface driver smsc95xx
[    2.987902] usbcore: registered new interface driver net1080
[    2.994226] usbcore: registered new interface driver cdc_subset
[    3.000811] usbcore: registered new interface driver zaurus
[    3.007056] usbcore: registered new interface driver cdc_ncm
[    3.038660] tegra-xotg xotg: usb2 phy is not available yet
[    3.045202] usbcore: registered new interface driver usb-storage
[    3.051811] usbcore: registered new interface driver usbserial
[    3.058131] usbcore: registered new interface driver ftdi_sio
[    3.064324] usbserial: USB Serial support registered for FTDI USB Serial Device
[    3.072509] usbcore: registered new interface driver option
[    3.078559] usbserial: USB Serial support registered for GSM modem (1-port)
[    3.086047] usbcore: registered new interface driver pl2303
[    3.092145] usbserial: USB Serial support registered for pl2303
[    3.098864] tegra-usb-cd usb_cd: otg phy is not available yet
[    3.107454] tegra-xudc-new 3550000.xudc: usb2 phy is not available yet
[    3.308677] usbcore: registered new interface driver gspca_zc3xx
[    3.370990] usbcore: registered new interface driver usbhid
[    3.370992] usbhid: USB HID core driver
[    3.427209] tegra186-padctl 3520000.pinctrl: FUSE_SKU_USB_CALIB_0 0x2cc095
[    3.427213] tegra186-padctl 3520000.pinctrl: FUSE_USB_CALIB_EXT_0 0x9
[    3.633641] xhci-tegra 3530000.xhci: can't get usb3-0 phy (-517)
[    3.635767] tegra-xotg xotg: usb2 phy is not available yet
[    3.635899] tegra-usb-cd usb_cd: otg phy is not available yet
[    3.636290] tegra-xudc-new 3550000.xudc: usb2 phy is not available yet
[    3.636756] tegra186-padctl 3520000.pinctrl: FUSE_SKU_USB_CALIB_0 0x2cc095
[    3.636758] tegra186-padctl 3520000.pinctrl: FUSE_USB_CALIB_EXT_0 0x9
[    3.639879] xhci-tegra 3530000.xhci: can't get usb3-0 phy (-517)
[    3.641228] tegra-xotg xotg: usb2 phy is not available yet
[    3.641351] tegra-usb-cd usb_cd: otg phy is not available yet
[    3.641710] tegra-xudc-new 3550000.xudc: usb2 phy is not available yet
[    3.642106] tegra186-padctl 3520000.pinctrl: FUSE_SKU_USB_CALIB_0 0x2cc095
[    3.642109] tegra186-padctl 3520000.pinctrl: FUSE_USB_CALIB_EXT_0 0x9
[    3.645037] xhci-tegra 3530000.xhci: can't get usb3-0 phy (-517)
[    3.710514] vdd-usb0-5v: disabling
[    3.710516] vdd-usb1-5v: disabling
[    3.720445] tegra-xotg xotg: usb2 phy is not available yet
[    3.720637] tegra-usb-cd usb_cd: otg phy is not available yet
[    3.721054] tegra-xudc-new 3550000.xudc: usb2 phy is not available yet
[    3.721522] tegra186-padctl 3520000.pinctrl: FUSE_SKU_USB_CALIB_0 0x2cc095
[    3.721525] tegra186-padctl 3520000.pinctrl: FUSE_USB_CALIB_EXT_0 0x9
[    3.724654] xhci-tegra 3530000.xhci: can't get usb3-0 phy (-517)
[    5.484542] tegra-xotg xotg: usb2 phy is not available yet
[    5.491028] tegra-usb-cd usb_cd: otg phy is not available yet
[    5.497834] tegra-xudc-new 3550000.xudc: usb2 phy is not available yet
[    5.547530] tegra186-padctl 3520000.pinctrl: FUSE_SKU_USB_CALIB_0 0x2cc095
[    5.554970] tegra186-padctl 3520000.pinctrl: FUSE_USB_CALIB_EXT_0 0x9
[    5.597875] xhci-tegra 3530000.xhci: can't get usb3-0 phy (-517)
[    5.732657] tegra-xotg xotg: usb2 phy is not available yet
[    6.205523] tegra-usb-cd usb_cd: otg phy is not available yet
[    6.206098] tegra-xudc-new 3550000.xudc: usb2 phy is not available yet
[    6.206611] tegra186-padctl 3520000.pinctrl: FUSE_SKU_USB_CALIB_0 0x2cc095
[    6.206614] tegra186-padctl 3520000.pinctrl: FUSE_USB_CALIB_EXT_0 0x9
[    6.209986] xhci-tegra 3530000.xhci: can't get usb3-0 phy (-517)
[    6.210373] tegra-xotg xotg: usb2 phy is not available yet
[    6.646184] tegra-usb-cd usb_cd: otg phy is not available yet
[    6.680000] tegra-xudc-new 3550000.xudc: usb2 phy is not available yet
[    6.693383] tegra186-padctl 3520000.pinctrl: FUSE_SKU_USB_CALIB_0 0x2cc095
[    6.693387] tegra186-padctl 3520000.pinctrl: FUSE_USB_CALIB_EXT_0 0x9
[    6.703239] xhci-tegra 3530000.xhci: can't get usb3-0 phy (-517)
[    6.703769] tegra-xotg xotg: usb2 phy is not available yet
[    7.015437] tegra-usb-cd usb_cd: otg phy is not available yet
[    7.179225] tegra-xudc-new 3550000.xudc: usb2 phy is not available yet
[    7.179946] tegra186-padctl 3520000.pinctrl: FUSE_SKU_USB_CALIB_0 0x2cc095
[    7.179950] tegra186-padctl 3520000.pinctrl: FUSE_USB_CALIB_EXT_0 0x9
[    7.281423] xhci-tegra 3530000.xhci: can't get usb3-0 phy (-517)
[    7.282497] tegra-xotg xotg: usb2 phy is not available yet
[    7.282717] tegra-usb-cd usb_cd: otg phy is not available yet
[    7.541349] tegra-xudc-new 3550000.xudc: usb2 phy is not available yet
[   7.544173] tegra186-padctl 3520000.pinctrl: FUSE_SKU_USB_CALIB_0 0x2cc095
[    7.544176] tegra186-padctl 3520000.pinctrl: FUSE_USB_CALIB_EXT_0 0x9
[    7.552138] xhci-tegra 3530000.xhci: can't get usb3-0 phy (-517)
[    7.552588] tegra-xotg xotg: usb2 phy is not available yet
[    7.552702] tegra-usb-cd usb_cd: otg phy is not available yet

First you’ll want to correct where the GPU driver was overwritten by a different package:

sudo cp -f /usr/lib/aarch64-linux-gnu/tegra/libglx.so /usr/lib/xorg/modules/extensions/

This would cause a failure of the GUI and probably some CUDA applications, but would not change USB…even so, it’d probably be best to correct this before dealing with USB.

Having PHY not available yet is normal up to a point, but here it diverges from what should happen:

xhci-tegra 3530000.xhci: can't get usb3-0 phy

Has the board been flashed? This could be related to something being misconfigured after an update (which shouldn’t happen…the libglx.so is actually the only issue for any update, and this is rare), but about the only way to be sure is to flash. It takes significant time, but you could clone the rootfs if you need to save a reference. The alternative is that the hardware has failed.

Thanks again for your help. Accepting linuxdev answer due to the possible cause of the original problem. i.e “Has the board been flashed? This could be related to something being misconfigured after an update (which shouldn’t happen…the libglx.so is actually the only issue for any update, and this is rare), but about the only way to be sure is to flash”

Solution:

I was able to fix the USB issue by reflahsing the Tx2 Dev Kit a second time. I had flashed the board prior to starting this thread hoping that the problem would be fixed, but I also had some files in the directory from flashing a custom carrier board that I guess got picked up while flashing the Dev Kit the first time.

After removing all the files for the custom carrier from the host machine, I downloaded a clean version of JetPack3.2 and flashed the Dev Tx2 a second time, the USB ports came back.

I still dont know what caused the issues in the first place. I was using the Tx2 Dev Kit with no problems and out of the blue, the USB ports stopped working. Then this snow ball of events took place. Perhaps it was due to some configuration after an update…