完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
Linux version 3.10.0
Android:5.1 USB OTG DTS配置,rk3288.dts u***0: u***@ff580000 { compatible = “rockchip,rk3288_u***20_otg”; reg = <0xff580000 0x40000>; interrupts = clocks = <&clk_gates13 4>, <&clk_gates7 4>; clock-names = “clk_u***phy0”, “hclk_u***0”; resets = <&reset RK3288_SOFT_RST_USBOTG_H>, <&reset RK3288_SOFT_RST_USBOTGPHY>, <&reset RK3288_SOFT_RST_USBOTGC>; reset-names = “otg_ahb”, “otg_phy”, “otg_controller”; /0 - Normal, 1 - Force Host, 2 - Force Device/ rockchip,u***-mode = <0>; }; 【调试过程】 RK3288上外接一个USB Host口,和另外一个USB OTG口 调试目标: USB OTG口既能作为Host连U盘,又能作为Device,连接PC进行调测; 1、使用USB Host口接U盘进行读写; 使用adb连接USB OTG进行调测 连接U盘前: shell@rk3288_box:/ # ls /dev/s —》无sdax节点 snd/ socket/ spi_misc_test sw_sync shell@rk3288_box:/ # busybox fdisk -l —》无分区信息 shell@rk3288_box:/ # ll /sys/bus/u***/devices —》显示USB设备 lrwxrwxrwx root root 2013-01-21 16:50 1-0:1.0 -> …/…/…/devices/ff500000.u***/u***1/1-0:1.0 lrwxrwxrwx root root 2013-01-21 16:50 2-0:1.0 -> …/…/…/devices/ff520000.u***/u***2/2-0:1.0 lrwxrwxrwx root root 2013-01-21 16:50 3-0:1.0 -> …/…/…/devices/ff580000.u***/u***3/3-0:1.0 lrwxrwxrwx root root 2013-01-21 16:50 u***1 -> …/…/…/devices/ff500000.u***/u***1 lrwxrwxrwx root root 2013-01-21 16:50 u***2 -> …/…/…/devices/ff520000.u***/u***2 lrwxrwxrwx root root 2013-01-21 16:50 u***3 -> …/…/…/devices/ff580000.u***/u***3 连接U盘后 shell@rk3288_box:/ # ls /dev/s —》查看未看到sda节点 sg0 snd/ socket/ spi_misc_test sw_sync shell@rk3288_box:/ # busybox fdisk -l —》无分区信息 shell@rk3288_box:/ # ll /sys/bus/u***/devices —》插入U盘日志 lrwxrwxrwx root root 2013-01-21 16:50 1-0:1.0 -> …/…/…/devices/ff500000.u***/u***1/1-0:1.0 lrwxrwxrwx root root 2013-01-21 16:54 1-1 -> …/…/…/devices/ff500000.u***/u***1/1-1 lrwxrwxrwx root root 2013-01-21 16:54 1-1:1.0 -> …/…/…/devices/ff500000.u***/u***1/1-1/1-1:1.0 lrwxrwxrwx root root 2013-01-21 16:50 2-0:1.0 -> …/…/…/devices/ff520000.u***/u***2/2-0:1.0 lrwxrwxrwx root root 2013-01-21 16:50 3-0:1.0 -> …/…/…/devices/ff580000.u***/u***3/3-0:1.0 lrwxrwxrwx root root 2013-01-21 16:50 u***1 -> …/…/…/devices/ff500000.u***/u***1 lrwxrwxrwx root root 2013-01-21 16:50 u***2 -> …/…/…/devices/ff520000.u***/u***2 lrwxrwxrwx root root 2013-01-21 16:50 u***3 -> …/…/…/devices/ff580000.u***/u***3 shell@rk3288_box:/ # shell@rk3288_box:/ # dmesg -c <6>[ 141.441252] EHCI: rk_ehci_hcd_enable, enable host controller <6>[ 141.662670] u*** 1-1: new high-speed USB device number 2 using rockchip_ehci_host <6>[ 141.817422] u*** 1-1: New USB device found, idVendor=0951, idProduct=1624 <6>[ 141.817446] u*** 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 <6>[ 141.817454] u*** 1-1: Product: DT 101 G2 <6>[ 141.817460] u*** 1-1: Manufacturer: Kingston <6>[ 141.817467] u*** 1-1: SerialNumber: 9BC40E00BFFF42B6 <6>[ 141.818333] u***-storage 1-1:1.0: USB Mass Storage device detected <6>[ 141.830676] scsi0 : u***-storage 1-1:1.0 <5>[ 142.851192] scsi 0:0:0:0: Direct-Access Kingston DT 101 G2 PMAP PQ: 0 ANSI: 4 <5>[ 142.852487] sd 0:0:0:0: Attached scsi generic sg0 type 0 <5>[ 144.851118] sd 0:0:0:0: [sda] 15646720 512-byte logical blocks: (8.01 GB/7.46 GiB) <5>[ 144.851717] sd 0:0:0:0: [sda] Write Protect is off <7>[ 144.851726] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00 <3>[ 144.852333] sd 0:0:0:0: [sda] No Caching mode page found <3>[ 144.852341] sd 0:0:0:0: [sda] Assuming drive cache: write through <3>[ 144.856265] sd 0:0:0:0: [sda] No Caching mode page found <3>[ 144.856277] sd 0:0:0:0: [sda] Assuming drive cache: write through <6>[ 144.880909] sda: sda1 <3>[ 144.896356] sd 0:0:0:0: [sda] No Caching mode page found <3>[ 144.896381] sd 0:0:0:0: [sda] Assuming drive cache: write through <5>[ 144.896404] sd 0:0:0:0: [sda] Attached SCSI removable disk 系统下为什么没有多出U盘分区信息? 这个问题需要与厂家交流,Todo 通过adb安装Nova_Launcher.apk/RootExplorer4.0.4P.apk应用后,进入RootExplorer应用, U盘挂载在了/mnt/u***_storage目录! 2、使用USB OTG连接U盘调测 【问题现象】:USB OTG口连上U盘后,dmesg无kernel日志输出,系统桌面通知栏无通知; root@rk3288:/ # cat /sys/bus/platform/drivers/u***20_otg/force_u***_mode 2 —》查询出强制设置为Device模式了!!! // force_u***_mode(0 - 正常模式,ID 决定 1 - Host 模式2 - Device 模式) root@rk3288:/ # echo 0 > /sys/bus/platform/drivers/u***20_otg/force_u***_mode 【Device设备】 (a)、通过typeC转USB的OTG线连接U盘; (b)、设置-》设备-》USB-》取消连接到PC勾选框; (c)、通过adb安装Nova_Launcher.apk/RootExplorer4.0.4P.apk应用后,进入RootExplorer应用,U盘挂载在了/mnt/u***_storage目录! 【Host设备】 (a)、通过typeC转USB线连接PC; (b)、设置-》设备-》USB-》打开连接到PC勾选框; (c)、使用adb看是否能够连上设备,并做常用调试(apk安装、shell、文件上传等) |
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
1548 浏览 0 评论
618 浏览 0 评论
Onenet云网关方案应用--基于米尔瑞芯微RK3576开发板
1188 浏览 0 评论
【幸狐Omni3576边缘计算套件试用体验】Redis最新8.0.2版本源码安装及性能测试
1897 浏览 0 评论
2087 浏览 0 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-7-14 08:02 , Processed in 0.387221 second(s), Total 37, Slave 32 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191