USB port can not find?

Hi all
I made the carrier board myself. After power on , UART0 can print message about tx2 , but input “ifconfig” ,the USB port did not find .
my board message :
nvidia@tegra-ubuntu:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:4b:a7:c7:c4
inet6 addr: fe80::204:4bff:fea7:c7c4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:307 errors:0 dropped:0 overruns:0 frame:0
TX packets:313 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:24438 (24.4 KB) TX bytes:21494 (21.4 KB)
Interrupt:42

eth0:avahi Link encap:Ethernet HWaddr 00:04:4b:a7:c7:c4
inet addr:169.254.10.128 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:42

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:2933 errors:0 dropped:0 overruns:0 frame:0
TX packets:2933 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:181064 (181.0 KB) TX bytes:181064 (181.0 KB)

wlan0 Link encap:Ethernet HWaddr 00:04:4b:a7:c7:c2
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:396 (396.0 B) TX bytes:540 (540.0 B)

nvidia@tegra-ubuntu:~$

nvidia board message:
nvidia@tegra-ubuntu:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:4b:a7:c7:c4
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:42

eth0:avahi Link encap:Ethernet HWaddr 00:04:4b:a7:c7:c4
inet addr:169.254.10.128 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
Interrupt:42

l4tbr0 Link encap:Ethernet HWaddr 2a:ef:d4:51:c5:a0
inet addr:192.168.55.1 Bcast:192.168.55.255 Mask:255.255.255.0
inet6 addr: fe80::e471:ccff:fead:8cf2/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:857 (857.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:237 errors:0 dropped:0 overruns:0 frame:0
TX packets:237 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:17533 (17.5 KB) TX bytes:17533 (17.5 KB)

usb0 Link encap:Ethernet HWaddr 8a:2a:3e:e4:26:22
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

usb1 Link encap:Ethernet HWaddr 2a:ef:d4:51:c5:a0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet HWaddr 00:04:4b:a7:c7:c2
inet addr:192.168.1.16 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::f07b:bfea:840:9739/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:460 errors:0 dropped:0 overruns:0 frame:0
TX packets:131 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:41072 (41.0 KB) TX bytes:12734 (12.7 KB)

why my board is not find USB port?

Not sure if this will answer or not, but on R28.2 with the developer carrier board the USB network device is not real hardware, it is the micro-OTG port in device mode using the Linux gadget framework to emulate a network interface card. This is entirely software setup (this seems to be demonstrating OTG port…a host connecting to this micro-USB with a type-B cable will see the Jetson as USB devices…one being network card, another being mass storage, so on). If the software changes the USB NIC will go away.

thanks linuxdev

log show the usb phy did not available.

how can i initial usb phy success?

Wake82 for irq=199
[ 5.111395] xhci-tegra 3530000.xhci: can’t get usb3-0 phy (-517)
[ 5.118959] input: gpio-keys as /devices/gpio-keys/input/input3
[ 5.125643] Wake76 for irq=199
[ 5.129024] Wake77 for irq=199
[ 5.132404] Wake78 for irq=199
[ 5.135784] Wake79 for irq=199
[ 5.139164] Wake80 for irq=199
[ 5.142544] Wake81 for irq=199
[ 5.145908] Wake82 for irq=199
[ 5.149346] tegra-xotg xotg: usb2 phy is not available yet
[ 5.155353] tegra-usb-cd usb_cd: otg phy is not available yet
[ 5.161416] tegra_rtc c2a0000.rtc: setting system clock to 2000-01-01 02:14:29 UTC (946692869)
[ 5.171181] tegra-xudc-new 3550000.xudc: usb2 phy is not available yet
[ 5.178215] tegra186-padctl 3520000.pinctrl: padctl mmio start 0x0000000003520000 end 0x0000000003520fff

and usb0 did not show in log

I can’t help on a custom board…someone else will need to comment on what wiring and device tree to check.

Beware that what shows up in dmesg will in part depend on whether the ID pin is detected (and whether it is a micro-A or micro-B cable), along with what is at the far end of the cable (e.g., a host, a device, or nothing connected). Depending on whether you have the gadget framework setup this too will change what you see in dmesg. I’m not sure how USB3 changes this since what I’m going by is the USB2 micro-USB port of the dev kit. You might want to mention what devices (or host) is connected during boot, along with any changes you may have made for the custom gadget device setup.

If I plug in the usb cable.the log show: nvidia@tegra-ubuntu:~$ [ 356.600665] extcon-gpio-states external-connection:extcon@1: Cable state 1

Nvidia board log show :

nvidia@tegra-ubuntu:~$ [ 47.183199] extcon-gpio-states external-connection:extcon@1: Cable state 1
[ 47.190158] tegra-xotg xotg: update_vbus_state: VBUS detected
[ 47.339057] tegra-usb-cd usb_cd: notification status (0x0, 0x1)
[ 47.345059] tegra-usb-cd usb_cd: set current 0ma
[ 47.349789] tegra-xudc-new 3550000.xudc: exiting ELPG
[ 47.357306] tegra-xudc-new 3550000.xudc: exiting ELPG done
[ 47.362885] tegra-xudc-new 3550000.xudc: device mode on

the tx2 is detect the usb cable ,but is not show usb at my board.
I must change DTB?

I can’t answer, but probably DTB is part of what is needed. Anything where USB is used as a device would probably need additional changes.