20240810将荣品RK3588S-AHD开发板的USB3.0口切换为HOST模式接鼠标和U盘

20240810将荣品RK3588S-AHD开发板的USB3.0口切换为HOST模式接鼠标和U盘
2024/8/10 19:53


买的荣品的 RK3588S AHD开发板 BC261
请问:
1、蓝色USB3.0接口插U盘和鼠标都不能用?请问本来就是 占位孔,还是损坏了?
2、刷机步骤?

RK3588S开发板上的蓝色口 请问是 USB3.0口吗?昨天查 U盘和鼠标 都不能识别?


具体是哪个USB3.0 ? OTG的话需要切换为host模式
步骤看群公告wiki
 OTG的话需要切换为host模式


usb 口 的主从模式不是自动切换的 只有在host模式才能接鼠标这些, 你要接鼠标的话 需要 写host模式对应 指令到节点下才行。前面不是有说明的 ,


https://doc.rpdzkj.cn/#/zh_cn/%E7%91%9E%E8%8A%AF%E5%BE%AE%E7%B3%BB%E5%88%97/rk3588-rk3588s/6.%E6%8E%A5%E5%8F%A3%E4%BD%BF%E7%94%A8
接口使用
USB
OTG模式切换
typeA 只能通过以下命令手动切换 host/device 模式

Linux 的 otg 口默认上电为 device 功能

查看当前模式

cat /sys/kernel/debug/usb/fe800000.usb/mode
复制Error已复制
typeA切换模式命令

切换至 host 模式,可接外设,如U盘鼠标

echo host > /sys/kernel/debug/usb/fc000000.usb/mode 
复制Error已复制
切换至 device,默认为ADB设备

echo device > /sys/kernel/debug/usb/fc000000.usb/mode  


默认USB端口号:
console:/ # 
console:/ # lsusb
Bus 003 Device 001: ID 1d6b:0001  
Bus 002 Device 002: ID 05e3:0610  
Bus 001 Device 001: ID 1d6b:0002  
Bus 004 Device 001: ID 1d6b:0001  
Bus 002 Device 001: ID 1d6b:0002  
console:/ #


console:/ # 
console:/ # [  286.315923][  T489] read descriptors
[  286.316055][  T489] read strings
[  286.317758][    T1] init: processing action (sys.usb.config=adb && sys.usb.configfs=1 && sys.usb.ffs.ready=1) from (/system/etc/init/hw/init.usb.configfs.rc:21)
console:/ # lsusb                                                              
Bus 005 Device 001: ID 1d6b:0002  
Bus 003 Device 001: ID 1d6b:0001  
Bus 002 Device 002: ID 05e3:0610  
Bus 001 Device 001: ID 1d6b:0002  
Bus 006 Device 001: ID 1d6b:0003  
Bus 004 Device 001: ID 1d6b:0001  
Bus 002 Device 001: ID 1d6b:0002  
Bus 006 Device 002: ID 0951:1666  
console:/ # 

console:/ # 
console:/ # [  487.700885][  T360] healthd: battery l=50 v=3 t=2.6 h=2 st=3 c=-1600 fc=100 chg=au

console:/ # lsusb[  488.406163][  T489] read descriptors                       
[  488.406281][  T489] read strings
[  488.408052][    T1] init: processing action (sys.usb.config=adb && sys.usb.configfs=1 && sys.usb.ffs.ready=1) from (/system/etc/init/hw/init.usb.configfs.rc:21)
[  488.410926][    T1] init: Command 'symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/b.1/f1' action=sys.usb.config=adb && sys.usb.configfs=1 && sys.usb.ffs.ready=1 (/system/etc/init/hw/init.usb.configfs.rc:23) took 0ms and failed: symlink() failed: File exists
[  488.412259][    T1] init: Command 'write /config/usb_gadget/g1/UDC ${sys.usb.controller}' action=sys.usb.config=adb && sys.usb.configfs=1 && sys.usb.ffs.ready=1 (/system/etc/init/hw/init.usb.configfs.rc:24) took 1ms and failed: Unable to write to file '/config/usb_gadget/g1/UDC': Unable to write file contents: Device or resource busy

Bus 005 Device 001: ID 1d6b:0002  
Bus 003 Device 001: ID 1d6b:0001  
Bus 002 Device 002: ID 05e3:0610  
Bus 001 Device 001: ID 1d6b:0002  
Bus 006 Device 001: ID 1d6b:0003  
Bus 004 Device 001: ID 1d6b:0001  
Bus 002 Device 003: ID 413c:301a  
Bus 002 Device 001: ID 1d6b:0002  
Bus 006 Device 002: ID 0951:1666  
console:/ # 

原始:

console:/ # 
console:/ # lsusb
Bus 003 Device 001: ID 1d6b:0001  
Bus 002 Device 002: ID 05e3:0610  
Bus 001 Device 001: ID 1d6b:0002  
Bus 004 Device 001: ID 1d6b:0001  
Bus 002 Device 001: ID 1d6b:0002  
console:/ #

查USB3.0的U盘:
console:/ # 
console:/ # lsusb                                                              
Bus 005 Device 001: ID 1d6b:0002  
Bus 003 Device 001: ID 1d6b:0001  
Bus 002 Device 002: ID 05e3:0610  
Bus 001 Device 001: ID 1d6b:0002  
Bus 006 Device 001: ID 1d6b:0003  
Bus 004 Device 001: ID 1d6b:0001  
Bus 002 Device 001: ID 1d6b:0002  
Bus 006 Device 002: ID 0951:1666  
console:/ # 

插USB2.0的鼠标:

console:/ # 
console:/ # lsusb
Bus 005 Device 001: ID 1d6b:0002  
Bus 003 Device 001: ID 1d6b:0001  
Bus 002 Device 002: ID 05e3:0610  
Bus 001 Device 001: ID 1d6b:0002  
Bus 006 Device 001: ID 1d6b:0003  
Bus 004 Device 001: ID 1d6b:0001  
Bus 002 Device 003: ID 413c:301a  
Bus 002 Device 001: ID 1d6b:0002  

Bus 006 Device 002: ID 0951:1666  
console:/ # 


参考资料:
https://item.taobao.com/item.htm?id=730875177486&ft=t&skuId=5237355371580
瑞芯微RK3588S开发板RK3588核心板rockchip八核8K荣品RK3588S-AHD

RD-RK3588S-AHD 4+32主板含核心板 BC261


 

  • 6
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值