|
发表于 2016-5-18 00:42:37
只看该作者
11#
本帖最后由 baoxuegui 于 2016-5-18 00:46 编辑
我这边(rockchip reload)貌似也遇到类似你的问题。只不过我这边使用的本地编译的版本。
操作步骤:使用新下载sync到最新代码,然后修改支持lcd,tp,sensor部分代码;编译烧写版本, Android 5.1;
sudo rkflashkit flash @boot boot.img @kernel kernel.img @recovery recovery.img @system system.img reboot
现象:连接PC,弹出“unfortunately, device test has stopped”,发现usb的功能mtp,adb都无法使用;
log分析:
[ 14.594318] type=1400 audit(1293883310.150:5): avc: denied { write } for pid=1107 comm="chip.devicetest" name="force_usb_mode" dev="sysfs" ino=12399 scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[ 14.596165] force_usb_mode_store 0->1
[ 14.694723] Using Buffer DMA mode
[ 14.694760] Periodic Transfer Interrupt Enhancement - disabled
[ 14.694776] Multiprocessor Interrupt Enhancement - disabled
[ 14.694792] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 14.694805] ^^^^^^^^^^^^^^^^^^Host Mode
[ 14.696004] android_work: sent uevent USB_STATE=DISCONNECTED
[ 14.739487] Init: Power Port (0)
[ 14.739515] rk_battery_charger_detect_cb , battery_charger_detect 5
[ 14.739565] ff580000.usb resume, HPRT0:0x1000
[ 14.739654] ff580000.usb suspend, HPRT0:0x1000
[ 16.020661] force_usb_mode_store 1->1
[ 23.592695] dhd_set_suspend: Remove extra suspend setting
[ 23.641479] dhd_set_suspend: force extra Suspend setting
[ 24.340653] rk3288-lcdc lcdc0: blank mode:4
[ 24.347854] suspend_flag=1
[ 24.351484] IRQ110 no longer affine to CPU1
[ 24.353070] CPU1: shutdown
正常流程:
[ 11.466467] type=1400 audit(1293906662.960:17): avc: denied { write } for pid=1029 comm="chip.devicetest" name="force_usb_mode" dev="sysfs" ino=12399 scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[ 11.466876] force_usb_mode_store 0->1
[ 11.565381] Using Buffer DMA mode
[ 11.565393] Periodic Transfer Interrupt Enhancement - disabled
[ 11.565400] Multiprocessor Interrupt Enhancement - disabled
[ 11.565408] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 11.565414] ^^^^^^^^^^^^^^^^^^Host Mode
[ 11.565647] android_work: sent uevent USB_STATE=DISCONNECTED
[ 11.610309] Init: Power Port (0)
[ 11.610322] rk_battery_charger_detect_cb , battery_charger_detect 5
[ 11.610386] ff580000.usb resume, HPRT0:0x1000
[ 11.610465] ff580000.usb suspend, HPRT0:0x1000
[ 11.755088] force_usb_mode_store 1->0
[ 13.246662] force_usb_mode_store 0->1
[ 13.246695] dwc_otg_force_host,already in A_HOST mode,everest
[ 15.441312] force_usb_mode_store 1->0
[ 15.441383] PortPower off
[ 15.441416] rk_battery_charger_detect_cb , battery_charger_detect 6
[ 15.538721] rk_battery_charger_detect_cb , battery_charger_detect 1
[ 15.639321] Using Buffer DMA mode
[ 15.639373] Periodic Transfer Interrupt Enhancement - disabled
[ 15.639403] Multiprocessor Interrupt Enhancement - disabled
[ 15.639433] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 15.639458] ^^^^^^^^^^^^^^^^^Device Mode
[ 15.930232] ***************vbus detect*****************
[ 16.109379] Using Buffer DMA mode
[ 16.109404] Periodic Transfer Interrupt Enhancement - disabled
[ 16.109413] Multiprocessor Interrupt Enhancement - disabled
[ 16.109422] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 16.109430] ^^^^^^^^^^^^^^^^^Device Mode
[ 16.109471] *******************soft connect!!!*******************
[ 16.232678] USB RESET
[ 16.343425] android_work: sent uevent USB_STATE=CONNECTED
[ 16.346772] USB RESET
[ 16.470633] android_usb gadget: high-speed config #1: android
[ 16.471151] android_work: sent uevent USB_STATE=CONFIGURED
由此,usb没切换到device mode导致的问题。
问题:请问下rockchip reload的板子usb otg的driver文件主要是哪几个? |
|