Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

大佬,请教下RK3399 USB的问题 #1

Closed
a520ass opened this issue Jun 17, 2023 · 6 comments
Closed

大佬,请教下RK3399 USB的问题 #1

a520ass opened this issue Jun 17, 2023 · 6 comments

Comments

@a520ass
Copy link

a520ass commented Jun 17, 2023

大佬,我有一个rk3399的安卓工控机板子,现在刷了官方sdk编译的ubuntu系统(官方的应该是安卓内核4.4),发现usb3.0接口工作不正常,一直工作在usb2.0模式下,这可能是什么问题啊?
没插入u盘是,是这样
QQ截图20230617150934
插入u盘后,是这样。(无论插入哪个usb接口,都是在这个hub下,2个usb3.0 ,2个usb2.0 ,1个micro usb otg)
QQ截图20230617150941

内核里面关于usb相关的日志是这些

root@ubuntu:~# dmesg | grep dwc3
[    2.417006] rockchip-dwc3 usb@fe800000: fail to get drvdata hcd
[    2.428286] rockchip-dwc3 usb@fe900000: fail to get drvdata hcd
[   10.700556] rockchip-dwc3 usb@fe800000: USB HOST connected
root@ubuntu:~# dmesg | grep usb
[    1.457308] usbcore: registered new interface driver usbfs
[    1.462838] usbcore: registered new interface driver hub
[    1.468244] usbcore: registered new device driver usb
[    1.795330] phy phy-ff770000.syscon:usb2-phy@e450.0: Looking up phy-supply from device tree
[    1.795348] phy phy-ff770000.syscon:usb2-phy@e450.0: Looking up phy-supply property in node /syscon@ff770000/usb2-phy@e450/otg-port failed
[    1.795647] phy phy-ff770000.syscon:usb2-phy@e450.0: Looking up vbus-supply from device tree
[    1.795661] phy phy-ff770000.syscon:usb2-phy@e450.0: Looking up vbus-supply property in node /syscon@ff770000/usb2-phy@e450/otg-port failed
[    1.795676] phy phy-ff770000.syscon:usb2-phy@e450.0: Failed to get VBUS supply regulator
[    1.804171] phy phy-ff770000.syscon:usb2-phy@e450.1: Looking up phy-supply from device tree
[    1.804292] vcc5v0_host: could not add device link phy-ff770000.syscon:usb2-phy@e450.1 err -2
[    1.804889] phy phy-ff770000.syscon:usb2-phy@e460.2: Looking up phy-supply from device tree
[    1.804904] phy phy-ff770000.syscon:usb2-phy@e460.2: Looking up phy-supply property in node /syscon@ff770000/usb2-phy@e460/otg-port failed
[    1.805153] phy phy-ff770000.syscon:usb2-phy@e460.2: Looking up vbus-supply from device tree
[    1.805167] phy phy-ff770000.syscon:usb2-phy@e460.2: Looking up vbus-supply property in node /syscon@ff770000/usb2-phy@e460/otg-port failed
[    1.805182] phy phy-ff770000.syscon:usb2-phy@e460.2: Failed to get VBUS supply regulator
[    1.813396] phy phy-ff770000.syscon:usb2-phy@e460.3: Looking up phy-supply from device tree
[    1.813458] vcc5v0_host: could not add device link phy-ff770000.syscon:usb2-phy@e460.3 err -2
[    1.815716] phy phy-ff800000.phy.6: Looking up phy-supply property in node /phy@ff800000/usb3-port failed
[    2.366756] usbcore: registered new interface driver rndis_wlan
[    2.377953] usbcore: registered new interface driver rtl8150
[    2.383656] usbcore: registered new interface driver r8152
[    2.389179] usbcore: registered new interface driver cdc_ether
[    2.395051] usbcore: registered new interface driver rndis_host
[    2.401033] usbcore: registered new interface driver cdc_ncm
[    2.406742] usbcore: registered new interface driver cdc_mbim
[    2.417006] rockchip-dwc3 usb@fe800000: fail to get drvdata hcd
[    2.428286] rockchip-dwc3 usb@fe900000: fail to get drvdata hcd
[    2.455474] ehci-platform fe380000.usb: EHCI Host Controller
[    2.461315] ehci-platform fe380000.usb: new USB bus registered, assigned bus number 1
[    2.469274] ehci-platform fe380000.usb: irq 28, io mem 0xfe380000
[    2.480946] ehci-platform fe380000.usb: USB 2.0 started, EHCI 1.00
[    2.487295] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.494095] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.501324] usb usb1: Product: EHCI Host Controller
[    2.506211] usb usb1: Manufacturer: Linux 4.4.126 ehci_hcd
[    2.511701] usb usb1: SerialNumber: fe380000.usb
[    2.528472] ehci-platform fe3c0000.usb: EHCI Host Controller
[    2.534311] ehci-platform fe3c0000.usb: new USB bus registered, assigned bus number 2
[    2.542246] ehci-platform fe3c0000.usb: irq 30, io mem 0xfe3c0000
[    2.553947] ehci-platform fe3c0000.usb: USB 2.0 started, EHCI 1.00
[    2.560281] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    2.567082] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.574309] usb usb2: Product: EHCI Host Controller
[    2.579196] usb usb2: Manufacturer: Linux 4.4.126 ehci_hcd
[    2.584686] usb usb2: SerialNumber: fe3c0000.usb
[    2.609827] ohci-platform fe3a0000.usb: Generic Platform OHCI controller
[    2.616702] ohci-platform fe3a0000.usb: new USB bus registered, assigned bus number 3
[    2.624662] ohci-platform fe3a0000.usb: irq 29, io mem 0xfe3a0000
[    2.685082] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
[    2.691880] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.699117] usb usb3: Product: Generic Platform OHCI controller
[    2.705043] usb usb3: Manufacturer: Linux 4.4.126 ohci_hcd
[    2.710533] usb usb3: SerialNumber: fe3a0000.usb
[    2.723956] ohci-platform fe3e0000.usb: Generic Platform OHCI controller
[    2.730844] ohci-platform fe3e0000.usb: new USB bus registered, assigned bus number 4
[    2.738764] ohci-platform fe3e0000.usb: irq 31, io mem 0xfe3e0000
[    2.799120] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
[    2.805927] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.813154] usb usb4: Product: Generic Platform OHCI controller
[    2.819078] usb usb4: Manufacturer: Linux 4.4.126 ohci_hcd
[    2.824576] usb usb4: SerialNumber: fe3e0000.usb
[    2.838435] usbcore: registered new interface driver cdc_acm
[    2.852164] usbcore: registered new interface driver cdc_wdm
[    2.857881] usbcore: registered new interface driver uas
[    2.863305] usbcore: registered new interface driver usb-storage
[    2.869390] usbcore: registered new interface driver usbserial
[    2.875260] usbcore: registered new interface driver usbserial_generic
[    2.881826] usbserial: USB Serial support registered for generic
[    2.887874] usbcore: registered new interface driver cp210x
[    2.893483] usbserial: USB Serial support registered for cp210x
[    2.899472] usbcore: registered new interface driver ftdi_sio
[    2.902946] usb 2-1: new high-speed USB device number 2 using ehci-platform
[    2.912222] usbserial: USB Serial support registered for FTDI USB Serial Device
[    2.919666] usbcore: registered new interface driver keyspan
[    2.925366] usbserial: USB Serial support registered for Keyspan - (without firmware)
[    2.933221] usbserial: USB Serial support registered for Keyspan 1 port adapter
[    2.940572] usbserial: USB Serial support registered for Keyspan 2 port adapter
[    2.947907] usbserial: USB Serial support registered for Keyspan 4 port adapter
[    2.955261] usbcore: registered new interface driver option
[    2.960867] usbserial: USB Serial support registered for GSM modem (1-port)
[    2.968025] usbcore: registered new interface driver oti6858
[    2.973716] usbserial: USB Serial support registered for oti6858
[    2.979761] usbcore: registered new interface driver pl2303
[    2.985370] usbserial: USB Serial support registered for pl2303
[    2.991343] usbcore: registered new interface driver qcserial
[    2.997120] usbserial: USB Serial support registered for Qualcomm USB modem
[    3.004137] usbcore: registered new interface driver sierra
[    3.009745] usbserial: USB Serial support registered for Sierra USB modem
[    3.016600] usbcore: registered new interface driver cdc_xr_usb_serial
[    3.020893] usb 2-1: New USB device found, idVendor=0bda, idProduct=f179
[    3.020899] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.020905] usb 2-1: Product: 802.11n
[    3.020910] usb 2-1: Manufacturer: Realtek
[    3.020914] usb 2-1: SerialNumber: 48D890F320FB
[    3.049278] xr_usb_serial_common: Exar USB UART (serial port) driver
[    3.055687] usbcore: registered new interface driver ch341
[    3.061205] usbserial: USB Serial support registered for ch341-uart
[    3.068608] usbcore: registered new interface driver usbtouchscreen
[    3.360071] usbcore: registered new interface driver uvcvideo
[    3.416589] usbcore: registered new interface driver bfusb
[    3.422141] usbcore: registered new interface driver btusb
[    3.636962] phy phy-ff770000.syscon:usb2-phy@e450.0: charger = USB_SDP_CHARGER
[    3.770833] usbcore: registered new interface driver usbhid
[    3.776416] usbhid: USB HID core driver
[    3.799606] usbcore: registered new interface driver snd-usb-audio
[    6.311201] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002
[    6.318002] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.325229] usb usb5: Product: xHCI Host Controller
[    6.330107] usb usb5: Manufacturer: Linux 4.4.126 xhci-hcd
[    6.335597] usb usb5: SerialNumber: xhci-hcd.7.auto
[    6.362361] usb usb6: We don't know the algorithms for LPM for this host, disabling LPM.
[    6.370494] usb usb6: New USB device found, idVendor=1d6b, idProduct=0003
[    6.377284] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.384507] usb usb6: Product: xHCI Host Controller
[    6.389388] usb usb6: Manufacturer: Linux 4.4.126 xhci-hcd
[    6.394875] usb usb6: SerialNumber: xhci-hcd.7.auto
[    6.413592] usb usb6: USB disconnect, device number 1
[    6.464094] usb usb5: USB disconnect, device number 1
[    6.507690] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002
[    6.514517] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.521761] usb usb5: Product: xHCI Host Controller
[    6.526651] usb usb5: Manufacturer: Linux 4.4.126 xhci-hcd
[    6.532137] usb usb5: SerialNumber: xhci-hcd.8.auto
[    6.558775] usb usb6: We don't know the algorithms for LPM for this host, disabling LPM.
[    6.566966] usb usb6: New USB device found, idVendor=1d6b, idProduct=0003
[    6.573758] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.580974] usb usb6: Product: xHCI Host Controller
[    6.585854] usb usb6: Manufacturer: Linux 4.4.126 xhci-hcd
[    6.591356] usb usb6: SerialNumber: xhci-hcd.8.auto
[    6.849967] usb 5-1: new high-speed USB device number 2 using xhci-hcd
[    6.977170] usb 5-1: New USB device found, idVendor=0424, idProduct=2517
[    6.983893] usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    7.315116] usb 5-1.6: new full-speed USB device number 3 using xhci-hcd
[    7.403270] usb 5-1.6: New USB device found, idVendor=1a86, idProduct=7523
[    7.410228] usb 5-1.6: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[    7.417565] usb 5-1.6: Product: USB Serial
[    7.483007] usb 5-1.6: ch341-uart converter now attached to ttyUSB20
[   10.698467] usb usb7: New USB device found, idVendor=1d6b, idProduct=0002
[   10.698474] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   10.698481] usb usb7: Product: xHCI Host Controller
[   10.698487] usb usb7: Manufacturer: Linux 4.4.126 xhci-hcd
[   10.698493] usb usb7: SerialNumber: xhci-hcd.7.auto
[   10.699778] usb usb8: We don't know the algorithms for LPM for this host, disabling LPM.
[   10.699849] usb usb8: New USB device found, idVendor=1d6b, idProduct=0003
[   10.699857] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   10.699864] usb usb8: Product: xHCI Host Controller
[   10.699869] usb usb8: Manufacturer: Linux 4.4.126 xhci-hcd
[   10.699875] usb usb8: SerialNumber: xhci-hcd.7.auto
[   10.700556] rockchip-dwc3 usb@fe800000: USB HOST connected
[   21.847676] usbcore: registered new interface driver rtl8188fu
@cm9vdA
Copy link
Owner

cm9vdA commented Jun 25, 2023

看起来USB3.0是打开的状态,rk3399一般只要启用对应的USB接口就可以用了。 目前看不出什么问题,能不能提取下你的dtb给我看下?

@a520ass
Copy link
Author

a520ass commented Jun 26, 2023

看起来USB3.0是打开的状态,rk3399一般只要启用对应的USB接口就可以用了。 目前看不出什么问题,能不能提取下你的dtb给我看下?

这个是dtb,大佬帮忙看一下,谢谢了
boot.img-second.dump.zip

@cm9vdA
Copy link
Owner

cm9vdA commented Jun 27, 2023

single.zip
我把另一路usb3.0接口也打开了,你试试看有没有效果

@a520ass
Copy link
Author

a520ass commented Jun 27, 2023

single.zip 我把另一路usb3.0接口也打开了,你试试看有没有效果

好的,大佬,我去测试一下。不过这个要怎么弄进去啊,之前只玩过主线的,这个rk非主线的dtb不知道怎么弄,好像是要生成安卓boot.img

@cm9vdA
Copy link
Owner

cm9vdA commented Jun 27, 2023

那你发给我的那个zip是怎么提取的?

dtb所在分区是用rsce格式打包的,解包以后就是你发我的那个样子,里边有rk-kernel.dtb和开机logo三个文件,我知道用 https://github.com/Evsio0n/rsce-go 可以解包和打包,至于怎么刷回去,我也不知道了

@a520ass
Copy link
Author

a520ass commented Jun 28, 2023

我是用这个软件解包的,也打包了,测试好像也没用,估计是硬件问题吧
image

@a520ass a520ass closed this as completed Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants