博客
关于我
20210426瑞芯微RK3399在Android10下的ADB连接
阅读量:220 次
发布时间:2019-02-28

本文共 3655 字,大约阅读时间需要 12 分钟。

20210426瑞芯微RK3399在Android10下的ADB连接

开发板:中山市天启智能科技有限公司AIO-3399J

https://www.t-firefly.com/doc/download/31.html

SDK:版本号Android10.0

adb工具下载地址:
https://developer.android.google.cn/studio/releases/platform-tools?hl=en

But if you want just these command-line tools, use the following links:

Download SDK Platform-Tools for Windows

Download SDK Platform-Tools for Mac
Download SDK Platform-Tools for Linux

31.0.2 (April 2021)

adb
Support forwarding to vsock on linux.
Fix bug in adb track-devices where devices over wireless debugging wouldn't immediately receive updates.
Implement preliminary support for mDNS device discovery without a separately installed mDNS service. This is currently disabled by default, and can be enabled by setting the environment variable ADB_MDNS_OPENSCREEN to 1 when starting the adb server.
fastboot
Don't fail when unable to get boot partition size.
Derive device locked state from property instead of parsing the kernel command line.

图片

adb shell

图片

console:/ $

console:/ $ [ 3258.571344] type=1400 audit(1619416953.712:120): avc: denied { getattr } for comm="ndroid.settings" path="/sys/devices/platform/ff770000.syscon/ff770000.syscon:usb2-phy@e450/otg_mode" dev="sysfs" ino=14198 scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1

[ 3258.571416] type=1400 audit(1619416960.643:121): avc: denied { write } for comm="Thread-2" name="otg_mode" dev="sysfs" ino=14198 scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1

[ 3258.581380] xhci-hcd xhci-hcd.5.auto: remove, state 4

[ 3258.581462] usb usb8: USB disconnect, device number 1

[ 3258.584348] xhci-hcd xhci-hcd.5.auto: USB bus 8 deregistered

[ 3258.589484] xhci-hcd xhci-hcd.5.auto: remove, state 4

[ 3258.589538] usb usb7: USB disconnect, device number 1

[ 3258.591488] xhci-hcd xhci-hcd.5.auto: USB bus 7 deregistered

[ 3259.852864] phy phy-ff770000.syscon:usb2-phy@e450.2: charger = USB_SDP_CHARGER

[ 3260.169861] android_work: sent uevent USB_STATE=CONNECTED

[ 3260.187385] configfs-gadget gadget: high-speed config #1: b

[ 3260.187895] android_work: sent uevent USB_STATE=CONFIGURED

console:/ $

图片

adb shell

图片

PC(WIN10)的电脑发现AIO-3399J开发板:

图片

设备已准备就绪:

图片

点击右下角可以:弹出MTP

图片

往上拖:

图片

Settings

图片

Connected devices

图片

Connect to PC

图片

USB连接模式:(默认:Charging this device)

图片

请选择:(USE USB FOR)File Transfer

图片

选中:(USE USB FOR)File Transfer
图片

参考资料:
https://www.it610.com/article/1289353098845822976.htm
https://blog.csdn.net/yhm2046/article/details/104782144/
rk3399 android10 usb不识别解决办法
yhm2046 2020-03-10 20:25:44  2292  收藏 1

现象:usb3.0接口用usb线连接电脑无法识别

原因:android10使用kernel4.19和android9使用kernel4.4的dts设置有区别:

1. DWC3 的power-domains属性,resets 属性,extcon 属性 引用位置不同。在Linux-4.4内核,这

三个属性是放在 DWC3 控制器的父节点(usbdrd3),而在Linux-4.19内核,这三个属性移到了
DWC3 控制器的子节点(usbdrd_dwc3)。
2. 在配置 Type-C to Type-A USB 2.0/3.0 OTG DTS 时,Linux-4.19内核需要在USB 控制器子节点
(usbdrd_dwc3)中增加 extcon 属性的配置,才能支持软件切换OTG 模式,而Linux-4.4 内核无
此要求。

修改代码:

V:\rk3399_q_test\kernel\arch\arm64\boot\dts\rockchip\rk3399-tve-ind3399a.dtsi

&usbdrd_dwc3_0 {

    status = "okay";
    dr_mode = "otg";
    extcon = <&u2phy0>;    //加这一句
};
V:\rk3399_q_test\device\rockchip\rk3399\init.rk3399.rc

 # update cpusets feature nodes for rk3399 tablet

    write /dev/cpuset/foreground/cpus 0-5
    write /dev/cpuset/foreground/boost/cpus 4-5
    write /dev/cpuset/background/cpus 0
    write /dev/cpuset/system-background/cpus 0-3
    write /dev/cpuset/top-app/cpus 0-5
    write /sys/devices/system/cpu/cpufreq/policy4/interactive/target_loads "65 1008000:70 1200000:75 1416000:80 1608000:90"
    write /sys/devices/platform/ff770000.syscon/ff770000.syscon:usb2-phy@e450/otg_mode otg//加这一句
参考:Rockchip_RK3399_Developer_Guide_USB_DTS_CN_V1.3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

你可能感兴趣的文章
mysql中kill掉所有锁表的进程
查看>>
mysql中like % %模糊查询
查看>>
MySql中mvcc学习记录
查看>>
mysql中null和空字符串的区别与问题!
查看>>
MySQL中ON DUPLICATE KEY UPDATE的介绍与使用、批量更新、存在即更新不存在则插入
查看>>
MYSQL中TINYINT的取值范围
查看>>
MySQL中UPDATE语句的神奇技巧,让你操作数据库如虎添翼!
查看>>
Mysql中varchar类型数字排序不对踩坑记录
查看>>
MySQL中一条SQL语句到底是如何执行的呢?
查看>>
MySQL中你必须知道的10件事,1.5万字!
查看>>
MySQL中使用IN()查询到底走不走索引?
查看>>
Mysql中使用存储过程插入decimal和时间数据递增的模拟数据
查看>>
MySql中关于geometry类型的数据_空的时候如何插入处理_需用null_空字符串插入会报错_Cannot get geometry object from dat---MySql工作笔记003
查看>>
mysql中出现Incorrect DECIMAL value: '0' for column '' at row -1错误解决方案
查看>>
mysql中出现Unit mysql.service could not be found 的解决方法
查看>>
mysql中出现update-alternatives: 错误: 候选项路径 /etc/mysql/mysql.cnf 不存在 dpkg: 处理软件包 mysql-server-8.0的解决方法(全)
查看>>
Mysql中各类锁的机制图文详细解析(全)
查看>>