• Recent
    • Docs
    • Github
    • 百度网盘
    • Onedrive
    • Official
    • Shop
    • Register
    • Login

    4b的两个usb3.0是独立的么

    Scheduled Pinned Locked Moved Pi 4B
    15 Posts 3 Posters 735 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 大法师大
      大法师 @shengxia
      last edited by

      @shengxia 是独立的。

      jack@cool-pi.com

      S 1 Reply Last reply Reply Quote 0
      • S
        shengxia @大法师
        last edited by

        @大法师 4b上边这个usb3.0的端口是不是默认是otg模式?
        这块我不太懂哈。我自己的测试是:
        1 我是连接的海康工业相机,相机接口是micro usb3.0
        2 使用一个micro usb3.0转typec (母口)
        3 最后就是一个typec 转 公口a的 线

        试了一下
        1 如果typec线是连接在下边这个usb3.0口上,我typec口正反 出现的是 high speed 和 super speed,所以我只要确保正确的typec插入面就行
        2 但如果typec线是连接在上边这个usb3.0口上,我发现正反出现的,一面完全识别不出来(是不是就是走在了otg模式下?),另一面就是high speed。

        我期望的是 上边这个也能super speed。

        是不是需要做些设置?也就是默认上边这个也在host模式下。

        大法师大 1 Reply Last reply Reply Quote 0
        • 大法师大
          大法师 @shengxia
          last edited by 大法师

          @shengxia 默认配置是host模式。正反插提供dmesg 日志看看,另外插拔重新识别有无变化,也可以再试试单独U3 U盘在上层端口能不能识别到super speed

          jack@cool-pi.com

          S 1 Reply Last reply Reply Quote 0
          • S
            shengxia @大法师
            last edited by shengxia

            @大法师

            case 1 upper usb3.0 port when corret side:

            [ 357.413202] usb 5-1: new high-speed USB device number 7 using xhci-hcd
            [ 357.553797] usb 5-1: New USB device found, idVendor=2bdf, idProduct=0001, bcdDevice= 1.00
            [ 357.553809] usb 5-1: New USB device strings: Mfr=5, Product=3, SerialNumber=6
            [ 357.553814] usb 5-1: Product: MV-CB060-10UC-S
            [ 357.553819] usb 5-1: Manufacturer: Hikrobot
            [ 357.553824] usb 5-1: SerialNumber: DA0836501

            case 2 upper usb3.0 port when can another side:

            [ 473.072871] usb 5-1: new high-speed USB device number 13 using xhci-hcd
            [ 482.548003] usb 5-1: new high-speed USB device number 14 using xhci-hcd
            [ 499.069584] usb 5-1: new high-speed USB device number 15 using xhci-hcd
            [ 505.317101] usb 5-1: new high-speed USB device number 16 using xhci-hcd
            [ 518.915140] usb 5-1: new high-speed USB device number 17 using xhci-hcd
            [ 520.436671] usb 5-1: unable to get BOS descriptor or descriptor too short
            [ 520.443786] usb 5-1: unable to read config index 0 descriptor/start: -71
            [ 520.450540] usb 5-1: can't read configurations, error -71

            bottom usb3.0 port when same with case2:
            [ 571.381329] usb 8-1: new SuperSpeed Gen 1 USB device number 2 using xhci-hcd
            [ 571.398489] usb 8-1: LPM exit latency is zeroed, disabling LPM.
            [ 571.398974] usb 8-1: New USB device found, idVendor=2bdf, idProduct=0001, bcdDevice= 1.00
            [ 571.398984] usb 8-1: New USB device strings: Mfr=5, Product=3, SerialNumber=6
            [ 571.398990] usb 8-1: Product: MV-CB060-10UC-S
            [ 571.398997] usb 8-1: Manufacturer: Hikrobot
            [ 571.399003] usb 8-1: SerialNumber: DA0836501

            bottom usb3.0 port when same with case1:
            [ 620.548377] usb 8-1: USB disconnect, device number 2
            [ 630.498274] usb 2-1: new high-speed USB device number 2 using ehci-platform
            [ 630.646174] usb 2-1: New USB device found, idVendor=2bdf, idProduct=0001, bcdDevice= 1.00
            [ 630.646182] usb 2-1: New USB device strings: Mfr=5, Product=3, SerialNumber=6
            [ 630.646185] usb 2-1: Product: MV-CB060-10UC-S
            [ 630.646188] usb 2-1: Manufacturer: Hikrobot
            [ 630.646191] usb 2-1: SerialNumber: DA0836501

            and when use my nvme to usb drvier:
            bottom usb3.0 port:
            [ 1102.508666] usb 8-1: new SuperSpeed Gen 1 USB device number 3 using xhci-hcd
            [ 1102.535828] usb 8-1: New USB device found, idVendor=0bda, idProduct=9210, bcdDevice=f0.01
            [ 1102.535841] usb 8-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
            [ 1102.535848] usb 8-1: Product: RTL9210B-CG
            [ 1102.535854] usb 8-1: Manufacturer: Realtek
            [ 1102.535861] usb 8-1: SerialNumber: 012345678920

            [ 1111.256388] usb 8-1: USB disconnect, device number 3

            [ 1118.412550] usb 8-1: new SuperSpeed Gen 1 USB device number 4 using xhci-hcd
            [ 1118.440143] usb 8-1: New USB device found, idVendor=0bda, idProduct=9210, bcdDevice=f0.01
            [ 1118.440155] usb 8-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
            [ 1118.440161] usb 8-1: Product: RTL9210B-CG
            [ 1118.440167] usb 8-1: Manufacturer: Realtek
            [ 1118.440174] usb 8-1: SerialNumber: 012345678920
            [ 1133.719982] usb 8-1: USB disconnect, device number 4

            it seems each typec side would indicate superspeed.

            upper usb3.0 port:
            [ 1139.635200] usb 5-1: new high-speed USB device number 19 using xhci-hcd
            [ 1139.785355] usb 5-1: New USB device found, idVendor=0bda, idProduct=9210, bcdDevice=f0.01
            [ 1139.785418] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
            [ 1139.785431] usb 5-1: Product: RTL9210B-CG
            [ 1139.785443] usb 5-1: Manufacturer: Realtek
            [ 1139.785455] usb 5-1: SerialNumber: 012345678920
            [ 1139.817346] usb-storage 5-1:1.0: USB Mass Storage device detected
            [ 1139.818118] scsi host0: usb-storage 5-1:1.0

            [ 1168.483865] usb 5-1: USB disconnect, device number 19
            [ 1173.394412] usb 5-1: new high-speed USB device number 20 using xhci-hcd
            [ 1173.544047] usb 5-1: New USB device found, idVendor=0bda, idProduct=9210, bcdDevice=f0.01
            [ 1173.544060] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
            [ 1173.544067] usb 5-1: Product: RTL9210B-CG
            [ 1173.544073] usb 5-1: Manufacturer: Realtek
            [ 1173.544080] usb 5-1: SerialNumber: 012345678920
            [ 1173.568513] usb-storage 5-1:1.0: USB Mass Storage device detected
            [ 1173.569906] scsi host0: usb-storage 5-1:1.0

            all recognized but all is highspeed(usb2.0)

            1 Reply Last reply Reply Quote 0
            • S
              shengxia
              last edited by

              补充一下
              1 为了排除供电问题,我有插在可以独立供电的hub上,效果是一样的
              2 我昨晚往sd卡刷了全新的6月的ubuntu22的系统,进去后试了一下,连我的nvme转usb这个,一面直接没法连接,另一面试了几次,最终也无法连接

              大法师大 1 Reply Last reply Reply Quote 0
              • 大法师大
                大法师 @shengxia
                last edited by

                @shengxia 建议U3设备直连测试看看情况。外挂转接NVME有供电要求

                jack@cool-pi.com

                S 1 Reply Last reply Reply Quote 0
                • S
                  shengxia @大法师
                  last edited by shengxia

                  @大法师 这里主要是同样的设备,线材,下边这个是没问题的,就只有上边这个有问题呢。所以我理解没必要单独找一个设备吧,我海康的直连我也是试过的。现象是一样的。

                  PS:百度网盘里的ubuntu系统我试了一下密码貌似 都不是coolpi诶,我是后来用emmc系统进去后,然后chroot了一把sd的 改了一下密码。

                  大法师大 1 Reply Last reply Reply Quote 0
                  • 大法师大
                    大法师 @shengxia
                    last edited by

                    @shengxia 新打包的ubuntu系统密码123 用户名coolpi

                    jack@cool-pi.com

                    大法师大 1 Reply Last reply Reply Quote 0
                    • 大法师大
                      大法师 @大法师
                      last edited by 大法师

                      USB移动硬盘插入上层U3端口

                      未插入
                      root@openkylin:/home/openkylin# lsusb -t
                      /:  Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
                      /:  Bus 07.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
                      /:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
                      /:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
                      /:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
                      /:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
                      /:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
                      /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
                          |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
                              |__ Port 3: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
                              |__ Port 3: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
                              |__ Port 4: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
                      root@openkylin:/home/openkylin# 
                      root@openkylin:/home/openkylin# 
                      root@openkylin:/home/openkylin# 
                      
                      插入后
                      root@openkylin:/home/openkylin# lsusb -t
                      /:  Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
                      /:  Bus 07.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
                      /:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
                          |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M
                      /:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
                      /:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
                      /:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
                      /:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
                      /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
                          |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
                              |__ Port 3: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
                              |__ Port 3: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
                              |__ Port 4: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
                      root@openkylin:/home/openkylin# 
                      
                      dmesg信息
                      [   56.683651] usb 6-1: new SuperSpeed Gen 1 USB device number 2 using xhci-hcd
                      [   56.701732] usb 6-1: New USB device found, idVendor=174c, idProduct=1153, bcdDevice= 1.00
                      [   56.701748] usb 6-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
                      [   56.701757] usb 6-1: Product: Ugreen Storage Device
                      [   56.701765] usb 6-1: Manufacturer: Ugreen
                      [   56.701774] usb 6-1: SerialNumber: 26A1EE834B3A
                      [   56.709642] scsi host0: uas
                      [   56.710868] scsi 0:0:0:0: Direct-Access     KINGSTON  SA400S37240G    0    PQ: 0 ANSI: 6
                      [   56.712594] sd 0:0:0:0: [sda] 468862128 512-byte logical blocks: (240 GB/224 GiB)
                      [   56.712710] sd 0:0:0:0: [sda] Write Protect is off
                      [   56.712715] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
                      [   56.712923] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
                      [   56.713180] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes
                      [   56.756728]  sda: sda1
                      [   56.785263] sd 0:0:0:0: [sda] Attached SCSI disk
                      [   56.831716] sd 0:0:0:0: Attached scsi generic sg0 type 0
                      

                      拔出移动硬盘,再插入下层U3端口

                      [  220.995566] usb 6-1: USB disconnect, device number 2 
                      [  221.010564] sd 0:0:0:0: [sda] Synchronizing SCSI cache
                      [  221.210217] sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=0x07 driverbyte=0x00
                      [  225.563625] usb 8-1: new SuperSpeed Gen 1 USB device number 2 using xhci-hcd
                      [  225.581932] usb 8-1: New USB device found, idVendor=174c, idProduct=1153, bcdDevice= 1.00
                      [  225.581940] usb 8-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
                      [  225.581944] usb 8-1: Product: Ugreen Storage Device
                      [  225.581947] usb 8-1: Manufacturer: Ugreen
                      [  225.581951] usb 8-1: SerialNumber: 26A1EE834B3A
                      [  225.585374] scsi host0: uas
                      [  225.586402] scsi 0:0:0:0: Direct-Access     KINGSTON  SA400S37240G    0    PQ: 0 ANSI: 6
                      [  225.587603] sd 0:0:0:0: Attached scsi generic sg0 type 0
                      [  225.588405] sd 0:0:0:0: [sda] 468862128 512-byte logical blocks: (240 GB/224 GiB)
                      [  225.588539] sd 0:0:0:0: [sda] Write Protect is off
                      [  225.588545] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
                      [  225.588766] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
                      [  225.588997] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes
                      [  225.623173]  sda: sda1
                      [  225.654381] sd 0:0:0:0: [sda] Attached SCSI disk
                      
                      root@openkylin:/home/openkylin# lsusb  -t
                      /:  Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
                          |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M
                      /:  Bus 07.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
                      /:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
                      /:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
                      /:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
                      /:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
                      /:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
                      /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
                          |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
                              |__ Port 3: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
                              |__ Port 3: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
                              |__ Port 4: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
                      root@openkylin:/home/openkylin#
                      

                      可以替换试试
                      4b内核驱动安装包

                      jack@cool-pi.com

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        shengxia @大法师
                        last edited by

                        @大法师 嗯,我其实内心里是知道上下应该没啥区别的,但我这个板子的确上边这个表现很奇怪,我刚和客服说寄回去,让售后工程师辛苦看下了。我本人对这块没啥经验,也就只有简单的排查能力。

                        G 大法师大 2 Replies Last reply Reply Quote 0
                        • G
                          george @shengxia
                          last edited by

                          @shengxia 昨天有提交了一个USB3.0的修改,你可以同步最新代码测试。我手上几个盘都可以使用。

                          1 Reply Last reply Reply Quote 0
                          • 大法师大
                            大法师 @shengxia
                            last edited by

                            @shengxia 你的主板我们同事看了,usb3上下层端口都没有问题。用相同的tf卡openkylin系统加usb nvme、usb ssd测试都可以识别到super speed。需要注意部分型号nvme转接板有自动休眠功能、供电需单独5V/2A

                            (你寄的nvme转接盒没有带盘)

                            jack@cool-pi.com

                            S 1 Reply Last reply Reply Quote 0
                            • S
                              shengxia @大法师
                              last edited by

                              @大法师 能用Ubuntu22 或者ub20那个镜像测一下么?我主要用ub环境开发哈

                              大法师大 1 Reply Last reply Reply Quote 0
                              • 大法师大
                                大法师 @shengxia
                                last edited by

                                @shengxia ok!

                                jack@cool-pi.com

                                1 Reply Last reply Reply Quote 0
                                • 1 / 1
                                • First post
                                  Last post