|
发表于 2021-4-22 17:26:14
只看该作者
5#
1、在预编译固件里面没有找到您说到的:connect to pc,只有File Transfer。
2、为了保证效果,在刷预编译固件之前首先擦除了EMMC!
主要LOG:
(刷机重启之后)
console:/sys/devices/platform/ff770000.syscon/ff770000.syscon:usb2-phy@e450 $
cat otg_mode
host
(USB配置为File Transfer之后)
console:/sys/devices/platform/ff770000.syscon/ff770000.syscon:usb2-phy@e450 $
[ 1098.503563] init: processing action (sys.usb.config=none && sys.usb.configfs=1) from (/vendor/etc/init/hw/init.rk30board.usb.rc:93)
[ 1098.515377] init: processing action (sys.usb.config=none && sys.usb.configfs=1) from (/init.usb.configfs.rc:1)
[ 1098.516839] android_work: did not send uevent (0 0 (null))
[ 1098.527444] init: Sending signal 9 to service 'adbd' (pid 3356) process group...
[ 1098.533684] libprocessgroup: Successfully killed process cgroup uid 0 pid 3356 in 5ms
[ 1098.534102] init: Service 'adbd' (pid 3356) received signal 9
[ 1098.547663] init: processing action (init.svc.adbd=stopped) from (/vendor/etc/init/hw/init.rk30board.usb.rc:97)
[ 1098.548251] init: processing action (init.svc.adbd=stopped) from (/init.usb.configfs.rc:14)
[ 1098.555794] init: processing action (sys.usb.config=mtp,adb && sys.usb.configfs=1) from (/vendor/etc/init/hw/init.rk30board.usb.rc:105)
[ 1098.559141] init: processing action (sys.usb.config=mtp,adb && sys.usb.configfs=1) from (/init.usb.configfs.rc:32)
[ 1098.559342] init: starting service 'adbd'...
[ 1098.586926] read descriptors
[ 1098.586970] read strings
[ 1098.590129] dwc3 fe800000.dwc3: failed to enable ep0out
console:/sys/devices/platform/ff770000.syscon/ff770000.syscon:usb2-phy@e450 $
(强制配置otg_mode为OTG模式)
console:/sys/devices/platform/ff770000.syscon/ff770000.syscon:usb2-phy@e450 $
echo otg >> otg_mode
[ 1143.161529] type=1400 audit(1619075386.143:171): avc: denied { getattr } for comm="memtrack@1.0-se" path="/sys/kernel/debug/mali0/ctx/1128_3/mem_profile" dev="debugfs" ino=26239 scontext=u:r:hal_memtrack_default:s0 tcontext=u:object_r:debugfs:s0 tclass=file permissive=1
[ 1143.161658] type=14console:/sys/devices/platform/ff770000.syscon/ff770000.syscon:usb2-phy@e450 $
0 audit(1619075465.531:172): avc: denied { append } for comm="sh" name="otg_mode" dev="sysfs" ino=14185 scontext=u:r:shell:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[ 1143.162248] type=1400 audit(1619075465.531:172): avc: denied { append } for comm="sh" name="otg_mode" dev="sysfs" ino=14185 scontext=u:r:shell:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[ 1143.162322] type=1400 audit(1619075465.531:173): avc: denied { open } for comm="sh" path="/sys/devices/platform/ff770000.syscon/ff770000.syscon:usb2-phy@e450/otg_mode" dev="sysfs" ino=14185 scontext=u:r:shell:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[ 1143.167964] xhci-hcd xhci-hcd.5.auto: remove, state 4
[ 1143.168033] usb usb8: USB disconnect, device number 1
[ 1143.173778] xhci-hcd xhci-hcd.5.auto: USB bus 8 deregistered
[ 1143.175089] xhci-hcd xhci-hcd.5.auto: remove, state 4
[ 1143.175233] usb usb7: USB disconnect, device number 1
[ 1143.182390] xhci-hcd xhci-hcd.5.auto: USB bus 7 deregistered
console:/sys/devices/platform/ff770000.syscon/ff770000.syscon:usb2-phy@e450 $
console:/sys/devices/platform/ff770000.syscon/ff770000.syscon:usb2-phy@e450 $
[ 1144.458672] phy phy-ff770000.syscon:usb2-phy@e450.2: charger = USB_SDP_CHARGER
[ 1144.775359] android_work: sent uevent USB_STATE=CONNECTED
[ 1144.848388] configfs-gadget gadget: high-speed config #1: b
[ 1144.848693] android_work: sent uevent USB_STATE=CONFIGURED
console:/sys/devices/platform/ff770000.syscon/ff770000.syscon:usb2-phy@e450 $
console:/sys/devices/platform/ff770000.syscon/ff770000.syscon:usb2-phy@e450 $
console:/sys/devices/platform/ff770000.syscon/ff770000.syscon:usb2-phy@e450 $
console:/sys/devices/platform/ff770000.syscon/ff770000.syscon:usb2-phy@e450 $
(确认配置otg_mode为otg模式了!)
console:/sys/devices/platform/ff770000.syscon/ff770000.syscon:usb2-phy@e450 $
cat otg_mode
otg
[ 1190.569679] type=1400 audit(1619075465.531:173): avc: denied { open } for comm="sh" path="/sys/devices/platform/ff770000.syscon/ff770000.syscon:usb2-phy@e450/otg_mode" dev="sysfs" ino=14console:/sys/devices/platform/ff7780000.syscon/ff770000.syscon:usb2-phy@e450 $
5 scontext=u:r:shell:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[ 1190.569812] type=1400 audit(1619075512.939:174): avc: denied { read } for comm="cat" name="otg_mode" dev="sysfs" ino=14185 scontext=u:r:shell:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
console:/sys/devices/platform/ff770000.syscon/ff770000.syscon:usb2-phy@e450 $
可以看见WIN10找到AIO-3399J。
使用贵司的SDK编译也是同样的效果!
|
-
03OTG.png
(204.7 KB, 下载次数: 2337)
-
10不能OTG.png
(196.01 KB, 下载次数: 2181)
-
11OTG.png
(230.17 KB, 下载次数: 2222)
-
01.png
(165.29 KB, 下载次数: 2250)
-
02.png
(245.26 KB, 下载次数: 2216)
-
Screenshot_20210422-070650.png
(37.36 KB, 下载次数: 2176)
-
Screenshot_20210422-070716.png
(71.37 KB, 下载次数: 2151)
-
Screenshot_20210422-070728.png
(77.91 KB, 下载次数: 2193)
-
Screenshot_20210422-070744.png
(86.49 KB, 下载次数: 2197)
-
Screenshot_20210422-070754.png
(86.1 KB, 下载次数: 2186)
-
Screenshot_20210422-070805.png
(85.92 KB, 下载次数: 2129)
-
Screenshot_20210422-070814.png
(83.92 KB, 下载次数: 2228)
-
Screenshot_20210422-070825.png
(82.37 KB, 下载次数: 2169)
-
Screenshot_20210422-070835.png
(61.37 KB, 下载次数: 2153)
-
Screenshot_20210422-070848.png
(75.21 KB, 下载次数: 2204)
-
Screenshot_20210422-070900.png
(80.04 KB, 下载次数: 2257)
-
Screenshot_20210422-070930.png
(112.49 KB, 下载次数: 2133)
-
Screenshot_20210422-071001.png
(51.85 KB, 下载次数: 2188)
-
Screenshot_20210422-071026.png
(51.24 KB, 下载次数: 2218)
-
Screenshot_20210422-070544.png
(475.1 KB, 下载次数: 2296)
-
Screenshot_20210422-070557.png
(164.66 KB, 下载次数: 2265)
-
Screenshot_20210422-070607.png
(82.15 KB, 下载次数: 2185)
-
Screenshot_20210422-070618.png
(82.23 KB, 下载次数: 2178)
-
Screenshot_20210422-070629.png
(60.16 KB, 下载次数: 2189)
-
Screenshot_20210422-070640.png
(63.99 KB, 下载次数: 2216)
|