找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 833|回复: 2

已解决,openwrt固件时,如何判断usb接口是否正常?U盘识别异常否?

[复制链接]
本帖最后由 evolutionboy 于 2023-5-3 21:07 编辑


最新更新:破案了,原来是竞斗云这设置的USB接口处在硬盘上焊的不对,可能 是为挖矿特别设计成这样的。所以USB3.0接口默认只能有USB2.0的效果,并且,不能插太快了,插太快了,就是接的USB3.0,偏功能又不全,所以就会导致识别不了,要是慢点插就识别了,当然是以USB2.0模式运行。
,,,
想更快就要主板上焊了。
,,,
疑问?如何判断usb接口是否正常?U盘识别异常否?
因为这台竞斗云的usb接口我从来都没有正常使用过,按网上的一些方法也试了下,可是从来没有与网上提到的相应的反馈信息,所以才有此问。

,,
23/5/2最新更新

https://vlieo.com/post/GDOCK-Repair-hardware-bug/
从这链接处的文章里有这一段。
,,,,,,,,,,
2020-03-03 · 2 min read
矿渣
修复无法使用USB3.0,恢复MINI-PCIE功能

竞斗云2.0的硬件设计有一些缺陷,导致无法使用USB3.0以及内置的MINI-PCIE接口,需要对硬件进行一些修复才能正常使用其功能。TF卡只需要固件里有驱动就可以使用,没有硬件问题。

USB
USB部分有两个电容点位被焊成了电阻,同时缺少部分供电,需要替换成电容,并补上供电的电阻。

C7、C8在PCB上被焊接成了0欧电阻,需要替换成0.1uF(104)电容,封装为0402.
R790原本为空焊位,需要补上0欧电阻,或者直接短接。
修复后的USB就可以正常使用USB3.0设备了,但是USB3.0会对2.4G信号产生影响,在连接使用USB3.0设备的时候,2.4G信号会变差。
,,,,,,,,,,,,,,,
所以可能 就是这里的问题导致的,看来是设计上本来就有问题,这里也有解决办法。。恩。我会试试。汗。看样子,我还得找个机会买些工具,学学再开工
,,,,,,,,,,,,,
https://www.right.com.cn/forum/thread-8287754-1-1.html



因为这篇帖子的原因。我发现我连这这两个都不太确定,所以想请教下。


lsusb


这是插了USB后的结果 ,
[root@OpenWrt:09:24 AM ~] # lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux 5.15.108 xhci-hcd xHCI Host Controller
Bus 004 Device 001: ID 1d6b:0003 Linux 5.15.108 xhci-hcd xHCI Host Controller
Bus 001 Device 001: ID 1d6b:0002 Linux 5.15.108 xhci-hcd xHCI Host Controller
Bus 003 Device 001: ID 1d6b:0002 Linux 5.15.108 xhci-hcd xHCI Host Controller

[root@OpenWrt:10:24 AM /dev/bus/usb/001] # lsusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/0p, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
从这个信息判断还是有USB的这些口的,看样子是两个usb2.0,两个usb3.0,但这是主板或相关usb模块的位置的信息,
不清楚是不是因为接触 不好导致的。可是又可以让U盘发热。也不太可能 是触 接问题样。
,,,

[root@OpenWrt:11:00 AM /dev/bus/usb/001] # lsusb -v

Bus 002 Device 001: ID 1d6b:0003 Linux 5.15.108 xhci-hcd xHCI Host Controller
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.00
  bDeviceClass            9
  bDeviceSubClass         0
  bDeviceProtocol         3
  bMaxPacketSize0         9
  idVendor           0x1d6b
  idProduct          0x0003
  bcdDevice            5.15
  iManufacturer           3 Linux 5.15.108 xhci-hcd
  iProduct                2 xHCI Host Controller
  iSerial                 1 xhci-hcd.0.auto
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x001f
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12
        bMaxBurst               0
Hub Descriptor:
  bLength              12
  bDescriptorType      42
  nNbrPorts             1
  wHubCharacteristic 0x000a
    No power switching (usb 1.0)
    Per-port overcurrent protection
  bPwrOn2PwrGood       50 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  bHubDecLat          0.0 micro seconds
  wHubDelay             0 nano seconds
  DeviceRemovable    0x00
Hub Port Status:
   Port 1: 0000.02a0 5Gbps power Rx.Detect
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x000f
  bNumDeviceCaps          1
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x02
      Latency Tolerance Messages (LTM) Supported
    wSpeedsSupported   0x0008
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat           0 micro seconds
    bU2DevExitLat           0 micro seconds
Device Status:     0x0001
  Self Powered

Bus 004 Device 001: ID 1d6b:0003 Linux 5.15.108 xhci-hcd xHCI Host Controller
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.00
  bDeviceClass            9
  bDeviceSubClass         0
  bDeviceProtocol         3
  bMaxPacketSize0         9
  idVendor           0x1d6b
  idProduct          0x0003
  bcdDevice            5.15
  iManufacturer           3 Linux 5.15.108 xhci-hcd
  iProduct                2 xHCI Host Controller
  iSerial                 1 xhci-hcd.1.auto
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x001f
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12
        bMaxBurst               0
Hub Descriptor:
  bLength              12
  bDescriptorType      42
  nNbrPorts             0
  wHubCharacteristic 0x000a
    No power switching (usb 1.0)
    Per-port overcurrent protection
  bPwrOn2PwrGood       50 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  bHubDecLat          0.0 micro seconds
  wHubDelay             0 nano seconds
  DeviceRemovable    0x00
Hub Port Status:
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x000f
  bNumDeviceCaps          1
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x02
      Latency Tolerance Messages (LTM) Supported
    wSpeedsSupported   0x0008
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat           0 micro seconds
    bU2DevExitLat           0 micro seconds
Device Status:     0x0001
  Self Powered

Bus 001 Device 001: ID 1d6b:0002 Linux 5.15.108 xhci-hcd xHCI Host Controller
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9
  bDeviceSubClass         0
  bDeviceProtocol         1
  bMaxPacketSize0        64
  idVendor           0x1d6b
  idProduct          0x0002
  bcdDevice            5.15
  iManufacturer           3 Linux 5.15.108 xhci-hcd
  iProduct                2 xHCI Host Controller
  iSerial                 1 xhci-hcd.0.auto
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0019
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             1
  wHubCharacteristic 0x000a
    No power switching (usb 1.0)
    Per-port overcurrent protection
    TT think time 8 FS bits
  bPwrOn2PwrGood       10 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
Hub Port Status:
   Port 1: 0000.0100 power
Device Status:     0x0001
  Self Powered

Bus 003 Device 001: ID 1d6b:0002 Linux 5.15.108 xhci-hcd xHCI Host Controller
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9
  bDeviceSubClass         0
  bDeviceProtocol         1
  bMaxPacketSize0        64
  idVendor           0x1d6b
  idProduct          0x0002
  bcdDevice            5.15
  iManufacturer           3 Linux 5.15.108 xhci-hcd
  iProduct                2 xHCI Host Controller
  iSerial                 1 xhci-hcd.1.auto
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0019
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             1
  wHubCharacteristic 0x000a
    No power switching (usb 1.0)
    Per-port overcurrent protection
    TT think time 8 FS bits
  bPwrOn2PwrGood       10 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
Hub Port Status:
   Port 1: 0000.0100 power
Device Status:     0x0001
  Self Powered


,,,,,,,,,,,,,,,,,
[root@OpenWrt:09:24 AM ~] # lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
mtdblock0    31:0    0  128M  0 disk
mtdblock1    31:1    0  256K  1 disk
mtdblock2    31:2    0  128K  1 disk
mtdblock3    31:3    0  384K  1 disk
mtdblock4    31:4    0   64K  1 disk
mtdblock5    31:5    0   64K  1 disk
mtdblock6    31:6    0   64K  1 disk
mtdblock7    31:7    0  512K  1 disk
mtdblock8    31:8    0   64K  1 disk
zram0       253:0    0  164M  0 disk [SWAP]
ubiblock0_1 254:0    0 39.5M  0 disk /rom
这算没识别?
[root@OpenWrt:09:48 AM ~] # dmesg |grep -i usb
[    0.051207] usbcore: registered new interface driver usbfs
[    0.051289] usbcore: registered new interface driver hub
[    0.051352] usbcore: registered new device driver usb
[    1.385796] tcsr 194b000.tcsr: setting usb hs phy mode select = e700e7
[    8.189491] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.455052] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    8.482505] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    8.487821] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[    8.500788] hub 1-0:1.0: USB hub found
[    8.506157] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    8.510308] hub 2-0:1.0: USB hub found
[    8.525523] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[    8.553971] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[    8.559238] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[    8.568464] hub 3-0:1.0: USB hub found
[    8.577594] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    8.581763] hub 4-0:1.0: USB hub found
[    8.597710] usbcore: registered new interface driver usb-storage
[    8.601609] usbcore: registered new interface driver uas
[   18.648685] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   18.662286] uhci_hcd: USB Universal Host Controller Interface driver
[   22.389001] usbcore: registered new interface driver ums-alauda
[   22.390397] usbcore: registered new interface driver ums-cypress
[   22.395283] usbcore: registered new interface driver ums-datafab
[   22.401322] usbcore: registered new interface driver ums-freecom
[   22.407455] usbcore: registered new interface driver ums-isd200
[   22.413493] usbcore: registered new interface driver ums-jumpshot
[   22.419011] usbcore: registered new interface driver ums-karma
[   22.425569] usbcore: registered new interface driver ums-sddr09
[   22.431051] usbcore: registered new interface driver ums-sddr55
[   22.437070] usbcore: registered new interface driver ums-usbat
插上u盘和取下U盘。上面信息都无变化,试了易驱线和DC电源供电下的2.5寸机械硬盘,但上面的命令结果仍无变化。


这算没识别?看样子没变化,是没识别的样子,
dmesg    这个查的信息也没变。这不像是个实时的状态,而像是重启时的一个底层日志。

  U盘和2.5寸500G的机械硬盘,应该不存在供电不足,另外,我也有外接的DC 12V 2A的电源 适配器插在易驱线上以给硬盘供电。用易驱线给硬盘供电的。

https://blog.desdelinux.net/zh-C ... %E4%B9%88%E5%8A%9E/
https://zhuanlan.zhihu.com/p/142403866

正在按上面链接处的方法排查。








请千万不要发布任何涉及时事政 治以及涉政涉爆涉恐类的内容,切记!切记!切记! | 我的恩山、我的无线The best wifi forum is right here.
lsusb
请千万不要发布任何涉及时事政 治以及涉政涉爆涉恐类的内容,切记!切记!切记! | 我的恩山、我的无线The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
本帖最后由 evolutionboy 于 2023-5-2 09:51 编辑

httpcom126 发表于 2023-5-2 09:15
lsusb


这是插了USB后的结果 ,
[root@OpenWrt:09:24 AM ~] # lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux 5.15.108 xhci-hcd xHCI Host Controller
Bus 004 Device 001: ID 1d6b:0003 Linux 5.15.108 xhci-hcd xHCI Host Controller
Bus 001 Device 001: ID 1d6b:0002 Linux 5.15.108 xhci-hcd xHCI Host Controller
Bus 003 Device 001: ID 1d6b:0002 Linux 5.15.108 xhci-hcd xHCI Host Controller
[root@OpenWrt:09:24 AM ~] # lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
mtdblock0    31:0    0  128M  0 disk
mtdblock1    31:1    0  256K  1 disk
mtdblock2    31:2    0  128K  1 disk
mtdblock3    31:3    0  384K  1 disk
mtdblock4    31:4    0   64K  1 disk
mtdblock5    31:5    0   64K  1 disk
mtdblock6    31:6    0   64K  1 disk
mtdblock7    31:7    0  512K  1 disk
mtdblock8    31:8    0   64K  1 disk
zram0       253:0    0  164M  0 disk [SWAP]
ubiblock0_1 254:0    0 39.5M  0 disk /rom
这算没识别?


[root@OpenWrt:09:48 AM ~] # dmesg |grep -i usb
[    0.051207] usbcore: registered new interface driver usbfs
[    0.051289] usbcore: registered new interface driver hub
[    0.051352] usbcore: registered new device driver usb
[    1.385796] tcsr 194b000.tcsr: setting usb hs phy mode select = e700e7
[    8.189491] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.455052] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    8.482505] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    8.487821] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[    8.500788] hub 1-0:1.0: USB hub found
[    8.506157] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    8.510308] hub 2-0:1.0: USB hub found
[    8.525523] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[    8.553971] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[    8.559238] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[    8.568464] hub 3-0:1.0: USB hub found
[    8.577594] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    8.581763] hub 4-0:1.0: USB hub found
[    8.597710] usbcore: registered new interface driver usb-storage
[    8.601609] usbcore: registered new interface driver uas
[   18.648685] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   18.662286] uhci_hcd: USB Universal Host Controller Interface driver
[   22.389001] usbcore: registered new interface driver ums-alauda
[   22.390397] usbcore: registered new interface driver ums-cypress
[   22.395283] usbcore: registered new interface driver ums-datafab
[   22.401322] usbcore: registered new interface driver ums-freecom
[   22.407455] usbcore: registered new interface driver ums-isd200
[   22.413493] usbcore: registered new interface driver ums-jumpshot
[   22.419011] usbcore: registered new interface driver ums-karma
[   22.425569] usbcore: registered new interface driver ums-sddr09
[   22.431051] usbcore: registered new interface driver ums-sddr55
[   22.437070] usbcore: registered new interface driver ums-usbat


请千万不要发布任何涉及时事政 治以及涉政涉爆涉恐类的内容,切记!切记!切记! | 我的恩山、我的无线The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-5-7 21:48

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表