Jetpack6.0 OTG连接

你好,
jetpack6.0 系统刷完之后,数据线连接OTG接口和主机,主机上不能ping 不通192.168.55.1 似乎没有连接,在jetpack5.1上是可以的,请问这是什么原因?谢谢

custom board的話麻煩檢查nv-l4t-usb-device-mode.service這個service的狀態
開不起來的話syslog裡應該會有error

这个服务正在active,如下:
● nv-l4t-usb-device-mode.service - Configure USB flashing port for device mode
Loaded: loaded (/etc/systemd/system/nv-l4t-usb-device-mode.service; enabled; vendor preset: enabled)
Active: active (exited) since Tue 2024-05-21 13:11:03 CST; 31min ago
Process: 393 ExecStart=/opt/nvidia/l4t-usb-device-mode/nv-l4t-usb-device-mode-start.sh (code=exited, status=0/SUCCESS)
Main PID: 393 (code=exited, status=0/SUCCESS)
CPU: 450ms

5月 21 13:10:31 nx-desktop systemd[1]: Starting Configure USB flashing port for device mode…
5月 21 13:10:32 nx-desktop nv-l4t-usb-device-mode-start.sh[393]: /
5月 21 13:11:02 nx-desktop nv-l4t-usb-device-mode-start.sh[877]: /sys/devices/platform/bus@0/3520000.padctl/usb2-0/usb_role/usb2-0-role-switch
5月 21 13:11:03 nx-desktop systemd[1]: Finished Configure USB flashing port for device mode.

dmesg:
[ 0.083273] usbcore: registered new interface driver usbfs
[ 0.083287] usbcore: registered new interface driver hub
[ 0.083301] usbcore: registered new device driver usb
[ 0.180114] usbcore: registered new interface driver usb-storage
[ 1.596134] usbcore: registered new interface driver usbhid
[ 1.596138] usbhid: USB HID core driver
[ 1.662624] usbcore: registered new interface driver snd-usb-audio
[ 1.769918] tegra-xusb 3610000.usb: Adding to iommu group 2
[ 1.784294] tegra-xusb 3610000.usb: Firmware timestamp: 2023-02-10 03:48:10 UTC
[ 1.784300] tegra-xusb 3610000.usb: xHCI Host Controller
[ 1.784309] tegra-xusb 3610000.usb: new USB bus registered, assigned bus number 1
[ 1.785034] tegra-xusb 3610000.usb: hcc params 0x0180ff05 hci version 0x120 quirks 0x0000000000010810
[ 1.785051] tegra-xusb 3610000.usb: irq 123, io mem 0x03610000
[ 1.785158] tegra-xusb 3610000.usb: xHCI Host Controller
[ 1.785162] tegra-xusb 3610000.usb: new USB bus registered, assigned bus number 2
[ 1.785165] tegra-xusb 3610000.usb: Host supports USB 3.1 Enhanced SuperSpeed
[ 2.125440] usb 1-2: new high-speed USB device number 2 using tegra-xusb
[ 2.405691] usb 2-1: new SuperSpeed USB device number 2 using tegra-xusb
[ 2.601272] usb 1-2.3: new high-speed USB device number 3 using tegra-xusb
[ 2.821262] usb 2-1.3: new SuperSpeed USB device number 3 using tegra-xusb
[ 3.414319] usb 2-1.3.3: new SuperSpeed USB device number 4 using tegra-xusb
[ 3.449210] usb-storage 2-1.3.3:1.0: USB Mass Storage device detected
[ 3.450101] scsi host0: usb-storage 2-1.3.3:1.0
[ 3.565517] usb 1-2.3.1: new low-speed USB device number 4 using tegra-xusb
[ 3.732227] input: PixArt USB Optical Mouse as /devices/platform/bus@0/3610000.usb/usb1/1-2/1-2.3/1-2.3.1/1-2.3.1:1.0/0003:093A:2510.0001/input/input1
[ 3.732290] hid-generic 0003:093A:2510.0001: input,hidraw0: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-3610000.usb-2.3.1/input0
[ 3.861441] usb 1-2.3.4: new low-speed USB device number 5 using tegra-xusb
[ 4.030311] input: Dell KB216 Wired Keyboard as /devices/platform/bus@0/3610000.usb/usb1/1-2/1-2.3/1-2.3.4/1-2.3.4:1.0/0003:413C:2113.0002/input/input2
[ 4.089867] hid-generic 0003:413C:2113.0002: input,hidraw1: USB HID v1.11 Keyboard [Dell KB216 Wired Keyboard] on usb-3610000.usb-2.3.4/input0
[ 4.095666] input: Dell KB216 Wired Keyboard System Control as /devices/platform/bus@0/3610000.usb/usb1/1-2/1-2.3/1-2.3.4/1-2.3.4:1.1/0003:413C:2113.0003/input/input3
[ 4.153320] input: Dell KB216 Wired Keyboard Consumer Control as /devices/platform/bus@0/3610000.usb/usb1/1-2/1-2.3/1-2.3.4/1-2.3.4:1.1/0003:413C:2113.0003/input/input4
[ 4.153364] hid-generic 0003:413C:2113.0003: input,hidraw2: USB HID v1.11 Device [Dell KB216 Wired Keyboard] on usb-3610000.usb-2.3.4/input1
[ 5.226366] tegra-xudc 3550000.usb: Adding to iommu group 4
[ 7.758128] usb0: HOST MAC c2:6e:13:83:94:80
[ 7.758133] usb0: MAC c2:6e:13:83:94:81
[ 7.811536] usb1: HOST MAC c2:6e:13:83:94:82
[ 7.811545] usb1: MAC c2:6e:13:83:94:83
[ 7.813759] tegra-xudc 3550000.usb: EP 0 (type: ctrl, dir: out) enabled
[ 7.823954] l4tbr0: port 1(usb0) entered blocking state
[ 7.824026] l4tbr0: port 1(usb0) entered disabled state
[ 7.824201] device usb0 entered promiscuous mode
[ 7.834787] l4tbr0: port 2(usb1) entered blocking state
[ 7.834805] l4tbr0: port 2(usb1) entered disabled state
[ 7.842710] device usb1 entered promiscuous mode

主机上还是没有l4t-readme,还是ping不通 192.168.55.1

能請你分享全整的dmesg然後附成一個檔案嗎?

demsg:
dmesg.log (67.0 KB)

你這不是NV devkit吧?

是的 属于custom board。

看來device tree沒改過? usb device mode沒triggered.

以前jp5.1能動大概也是巧合, 在usb上很常見

是的,device tree没有改动,那么我需要修改设备树上哪里呢?应该怎么修改呢?谢谢!

https://docs.nvidia.com/jetson/archives/r36.3/DeveloperGuide/HR/JetsonModuleAdaptationAndBringUp/JetsonAgxOrinSeries.html?highlight=adaptation#porting-the-universal-serial-bus

查看完文档,需要修改的也就是添加connector,同时,也参考了jetpack5.1的设备树设置,在usb2_0节点下添加节点:
connector {
compatible = “usb-b-connector”, “gpio-usb-b-connector”;
label = “micro-USB”;
type = “micro”;
vbus-gpio = <&gpio TEGRA234_MAIN_GPIO(Z,1) GPIO_ACTIVE_LOW>;
};
编译出的设备树替换到设备后并没有解决问题,请问还需要添加或者修改哪里吗?谢谢

基本上你問也沒辦法給你答案

device tree是要搭配硬體線路圖才知道有沒有寫對…
我們不知道你的板子是設計成怎樣

你好 WayneWWW
我们是刷完jetpack6.0系统之后,orin nx 已经进入到系统中,正常情况下,这个时候主机与orin nx 通过数据线连接后,主机可以通过ping 命令,ping 通orin nx 的IP192.168.55.1,但是,现在orin nx 开机后,通过数据线与主机连接,主机ping不通。我们的custom board的OTG在xavier nx ,nano 模块上都是正常使用的。但是安装完jetpack6.0系统后,这个接口就不行了,麻烦提供一下帮助,谢谢

請問你重複一次問題的意思是什麼?
前面不是已經解釋過你的問題所在了?

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

而且這句話到底在講什麼? 正常情況下可以動, 開機後不能動.
所以開機不是正常情況?