UBOOT 下的 RNDIS 功能工作异常
-
(如下 log 获取自 orangepi_one, 基于H61X 的 orangepi zero3, zero2w 也有一样的问题)
我在最新的uboot 上,尝试使用 RNDIS 功能,
uboot 中做了如下设置,setenv ethact usb_ether setenv ipaddr 192.168.2.100 setenv serverip 192.168.2.1
然后尝试使用
tftpboot zImage
来获取文件, 工作正常=> tftpboot zImage sun8i_emac_eth_start: Timeout musb-hdrc: peripheral reset irq lost! high speed config #2: 2 mA, Ethernet Gadget, using RNDIS USB RNDIS network up! Using usb_ether device TFTP from server 192.168.2.1; our IP address is 192.168.2.100 Filename 'zImage'. Load address: 0x42000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ######################################################## 7.5 MiB/s done Bytes transferred = 4624880 (4691f0 hex)
相应的 host 上的 kernel log 如下,
May 19 18:43:07 home-hp kernel: [165318.600356] usb 1-4.4: new high-speed USB device number 96 using xhci_hcd May 19 18:43:07 home-hp kernel: [165318.800933] usb 1-4.4: config 1 has 0 interfaces, different from the descriptor's value: 1 May 19 18:43:07 home-hp kernel: [165318.801104] usb 1-4.4: New USB device found, idVendor=1f3a, idProduct=1010, bcdDevice= 3.15 May 19 18:43:07 home-hp kernel: [165318.801113] usb 1-4.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0 May 19 18:43:07 home-hp kernel: [165318.801118] usb 1-4.4: Product: RNDIS/Ethernet Gadget May 19 18:43:07 home-hp kernel: [165318.801123] usb 1-4.4: Manufacturer: Allwinner Technology May 19 18:43:07 home-hp kernel: [165318.808655] rndis_host 1-4.4:2.0 eth0: register 'rndis_host' at usb-0000:00:14.0-4.4, RNDIS device, f8:dc:7a:00:00:01
但是, 如果我再一次尝试下载文件, 就会出现如下问题,
=> tftpboot zImage The remote end did not respond in time.sun8i_emac_eth_start: Timeout =>
相应的 host 上的 kernel log 如下,
May 19 18:43:14 home-hp kernel: [165326.024807] usb 1-4.4: new high-speed USB device number 97 using xhci_hcd May 19 18:43:14 home-hp kernel: [165326.205127] usb 1-4.4: device descriptor read/64, error -71 May 19 18:43:15 home-hp kernel: [165326.493131] usb 1-4.4: device descriptor read/64, error -71 May 19 18:43:15 home-hp kernel: [165326.780864] usb 1-4.4: new high-speed USB device number 98 using xhci_hcd May 19 18:43:15 home-hp kernel: [165326.961192] usb 1-4.4: device descriptor read/64, error -71 May 19 18:43:15 home-hp kernel: [165327.248946] usb 1-4.4: device descriptor read/64, error -71 May 19 18:43:15 home-hp kernel: [165327.357290] usb 1-4-port4: attempt power cycle May 19 18:43:16 home-hp kernel: [165328.061235] usb 1-4.4: new high-speed USB device number 99 using xhci_hcd May 19 18:43:16 home-hp kernel: [165328.061391] usb 1-4.4: Device not responding to setup address. May 19 18:43:16 home-hp kernel: [165328.269369] usb 1-4.4: Device not responding to setup address. May 19 18:43:17 home-hp kernel: [165328.477045] usb 1-4.4: device not accepting address 99, error -71
以后再次尝试也无法恢复, 除非重启
在网上找了很久,没有线索,是不是和 auto suspend 有关?
各位有遇到这种情况的吗?
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号