Project

General

Profile

Actions

新建 #196

open

rv1106 type-c 口改adb 模式

Added by 余 顺 about 1 year ago. Updated 30 days ago.

Status:
新建
Priority:
普通
Assignee:
-
Category:
其他
Target version:
Start date:
03/22/2023
Due date:
% Done:

0%

Estimated time:

Description

版型:rv1106

需求:修改type-c 支持usb adb模式

尝试修改:未生效


Files

Updated by 余 顺 about 1 year ago

以下为旧版sdk 修改

参考图片中修改sdk 内核源码,重新烧写固件即可

usb adb模式跟hub只能二选一,修改后单独引出的usb 接口无法使用,

原理图中的模拟开关被复用到另外一路,没有供电到hub 芯片,

Updated by 余 顺 30 days ago

新版sdk 请参考源码注释来操作
支持通过脚本实现切换对应type-c 口的模式

etc/init.d/S99_otg_def_host脚本中的
注释echo host > /sys/devices/platform/ff3e0000.usb2-phy/otg_mode
使用echo otg > /sys/devices/p latform/ff3e0000.usb2-phy/otg_mode

sdk源码修改位置sysdrv/rootfs_overlay/etc/init.d/S99_otg_def_host

未修改脚本内容如下:

Actions

Also available in: Atom PDF