I have a brand new AGX Xavier Dev Kit and I can’t install JetPack. I also have a Xavier NX Dev Kit that I’ve been successfully working with for a few weeks. The AGX Xavier’s front USB-C port is connected to my Ubuntu 18.04 system using the cable that came with the dev kit. That’s the USB-C port next to the power indicator LED.
When I run SDK Manager (1.2.0.6738) and plug the Xavier NX into my Ubuntu dev system a L4T-README device appears on my Ubuntu desktop and SDK Manager says that it has detected Xavier NX target hardware. When I do the same thing with the AGX Xavier nothing appears on the Ubuntu desktop and no target hardware is detected in SDK Manager.
I can plug a USB keyboard into the AGX Xavier’s front USB-C port and the keyboard works, so the front USB-C port can act as a USB Host. I think my problem is that my Xavier’s front USB-C port is not able to act as a USB device and that’s required for SDK Manager to detect the AGX Xavier.
The tests that brought me to this conclusion are shown below. My question to the community is: do you agree with my diagnosis? If so I plan to return the AGX to NVidia for replacement under warranty.
Question: Is the USB-C cable faulty?
Test: I replaced the AGX Xavier’s USB-C cable with a different USB-C cable that is known to work - No Change
Conclusion: The USB-C cable is OK
Question: Does the Ubuntu system respond to the connection of the AGX Xavier at all?
Test: I used lsusb and dmesg to monitor what’s happening in the Ubuntu kernel when each Xavier is attached to my Ubuntu system. When the NX is attached there are new kernel messages about a USB device connection and lsusb shows a new “NVidia Corp.” USB device. When the AGX cable is attached there are no new kernel messages and lsusb does not show any new USB device.
Conclusion: The Ubuntu system does respond to the connection of the NX but not the AGX.
Question: Is it a USB version problem? Does the Ubuntu system respond to a different USB 3.0/3.1 device?
Test: I plugged a USB 3.0 webcam into the Ubuntu system and the kernel log and lsusb show that the Ubuntu system recognized that a webcam had been connected.
Conclusion: The Ubuntu system can respond correctly to a different USB 3.0 device.
Question: Will a completely different computer respond differently to the NX and AGX?
Test: I connected the Xavier NX and the AGX Xavier to my Windows 10 PC. The Windows PC recognizes a new L4T flash device when I plugged in the Xavier NX. The Windows PC didn’t react at all when I plugged in the AGX Xavier.
I have a second Ubuntu 18.04 system and I connected both the Xavier NX and the AGX Xavier to it. According to the kernel log and lsusb, the Xavier NX was recognized as a USB device and there was no response to the AGX Xavier.
Conclusion: Two Ubuntu systems and one Windows system recognize the Xavier NX as a USB device. None of the three systems recognize the AGX Xavier as being a USB device or of having been connected to it at all.
Question: What’s happening on each Xavier when I connect it to the Ubuntu computer?
Test: I connected the Ubuntu system to the NX and the NX kernel log shows that it recognized that something had been connected and appeared to set up communication with it. No new USB device showed up on the NX and a new “NVidia Corp” device appeared on the Ubuntu system.
I connected the Ubuntu system to the AGX and the AGX kernel log shows that it recognized that something had been connected. The connection process didn’t get as far as with the NX and ended in three suspicious-looking “Hard Reset Sent to Port Partner” messages. No new USB device appeared on the AGX or the Ubuntu system.
Conclusion: The Ubuntu system is a USB host and the Jetson is a USB device. The NX did connect as a USB device but the AGX did not. I’ve included the kernel messages and lsusb output below.
The following show the low-level Jetson response when connecting it to the Ubuntu system:
Ubuntu system connected to Xavier NX
jim@xavier-nx-1:~$ dmesg
[51327.133609] extcon-gpio-states external-connection:extcon@1: Cable state:1, cable id:1
[51327.133765] tegra-xudc-new 3550000.xudc: vbus state: 1
[51327.133781] tegra-xudc-new 3550000.xudc: exiting ELPG
[51327.135670] tegra-xudc-new 3550000.xudc: exiting ELPG done
[51327.135694] tegra-xudc-new 3550000.xudc: device mode on: 0
[51327.135715] tegra-xudc-new 3550000.xudc: active: 0 => 1
[51327.290930] android_work: did not send uevent (0 0 (null))
[51327.323958] android_work: sent uevent USB_STATE=CONNECTED
[51328.269963] android_work: sent uevent USB_STATE=DISCONNECTED
[51328.302584] android_work: sent uevent USB_STATE=CONNECTED
[51328.357620] android_work: sent uevent USB_STATE=DISCONNECTED
[51328.401532] android_work: sent uevent USB_STATE=CONNECTED
[51328.668488] android_work: sent uevent USB_STATE=DISCONNECTED
[51328.701058] android_work: sent uevent USB_STATE=CONNECTED
[51328.756085] android_work: sent uevent USB_STATE=DISCONNECTED
[51328.798919] android_work: sent uevent USB_STATE=CONNECTED
[51328.989158] configfs-gadget gadget: high-speed config #1: c
[51328.989197] tegra-xudc-new 3550000.xudc: ep 5 (type: 3, dir: in) enabled
[51328.989220] tegra-xudc-new 3550000.xudc: ep 3 (type: 2, dir: in) enabled
[51328.989233] tegra-xudc-new 3550000.xudc: ep 2 (type: 2, dir: out) enabled
[51328.989306] tegra-xudc-new 3550000.xudc: ep 9 (type: 3, dir: in) enabled
[51328.989319] tegra-xudc-new 3550000.xudc: ep 7 (type: 2, dir: in) enabled
[51328.989331] tegra-xudc-new 3550000.xudc: ep 4 (type: 2, dir: out) enabled
[51328.989450] tegra-xudc-new 3550000.xudc: ep 15 (type: 3, dir: in) enabled
[51328.989741] android_work: sent uevent USB_STATE=CONFIGURED
[51328.989776] tegra-xudc-new 3550000.xudc: ep 11 (type: 2, dir: in) enabled
[51328.989790] tegra-xudc-new 3550000.xudc: ep 6 (type: 2, dir: out) enabled
[51328.997456] tegra-xudc-new 3550000.xudc: ep 13 (type: 2, dir: in) enabled
[51328.997473] tegra-xudc-new 3550000.xudc: ep 8 (type: 2, dir: out) enabled
[51328.998539] tegra-xudc-new 3550000.xudc: ep 13 disabled
[51328.998670] tegra-xudc-new 3550000.xudc: ep 8 disabled
[51329.019869] tegra-xudc-new 3550000.xudc: ep 13 (type: 2, dir: in) enabled
[51329.019890] tegra-xudc-new 3550000.xudc: ep 8 (type: 2, dir: out) enabled
jim@xavier-nx-1:~$ lsusb
Bus 002 Device 002: ID 0bda:0489 Realtek Semiconductor Corp.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 13d3:3549 IMC Networks
Bus 001 Device 002: ID 0bda:5489 Realtek Semiconductor Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Ubuntu system connected to AGX Xavier
jim@xavier-agx-1:~$ dmesg
[ 96.339171] ucsi_ccg 1-0008: port0 evt: Type-C Port Connect Detected
[ 96.341185] ucsi_ccg 1-0008: [typec-port0] Cable state:1, cable id:1
[ 96.341273] tegra-xudc-new 3550000.xudc: vbus state: 1
[ 96.341291] tegra-xudc-new 3550000.xudc: exiting ELPG
[ 96.341944] tegra-xudc-new 3550000.xudc: exiting ELPG done
[ 96.341967] tegra-xudc-new 3550000.xudc: device mode on: 0
[ 96.341986] tegra-xudc-new 3550000.xudc: active: 0 => 1
[ 96.733244] ucsi_ccg 1-0008: port0 evt: Hard Reset Sent to Port Partner
[ 97.864607] ucsi_ccg 1-0008: port0 evt: Hard Reset Sent to Port Partner
[ 98.995868] ucsi_ccg 1-0008: port0 evt: Hard Reset Sent to Port Partner
jim@xavier-agx-1:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
Bus 001 Device 002: ID 046d:c31c Logitech, Inc. Keyboard K120
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub