msm8916的OTG接鼠标可以使用,但是接U盘无法识别。
时间:10-02
整理:3721RD
点击:
MSM8916平台,通过OTG线连接鼠标可以使用,但是连接U盘无法识别,换了多个U盘都不行,而且这些U盘在别的手机上可以识别到。
接入U盘时,log如下:
[ 402.227738] get_bam_type_fROM_core_name: invalid BAM name()
[ 402.232381] usb_bam_get_connection_idx: Invalid bam, type=-22, name=
[ 402.239050] msm_bam_device_lpm_ok: Going to LPM now
[ 429.369397] scsi 0:0:0:0: Direct-Access Generic Flash Disk 8.07 PQ: 0 ANSI: 4
[ 429.385494] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 429.390564] sd 0:0:0:0: [sda] 31457280 512-byte logical blocks: (16.1 GB/15.0 GiB)
[ 429.399888] sd 0:0:0:0: [sda] Write Protect is off
[ 429.405034] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 429.445011] sd 0:0:0:0: [sda] Attached SCSI removable disk
源码storage_list.xml中:
<storage android:mountPoint="/storage/usbotg"
android:storageDescription="@string/storage_usb"
android:primary="false"
android:emulated="false"
android:removable="true"
android:allowMassStorage="false" />
init.qcom.rc中:
mkdir /mnt/media_rw/usbotg 0700 media_rw media_rw
mkdir /storage/usbotg 0700 root root
service fuse_usbotg /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/usbotg /storage/usbotg
class late_start
disabled
fstab.qcom中:
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
/dev/block/bootdevice/by-name/system /system ext4 ro,barrier=1,discard wait
/dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,barrier=1,noauto_da_alloc,discard wait,check,encryptable=footer
/devices/soc.0/7864900.sdhci/mmc_host /storage/sdcard1 vfat nosuid,nodev wait,volDMAnaged=sdcard1:auto,noemulatedsd
/dev/block/zram0 none swap defaults zramsize=536870912
vold.fstab中:
dev_mount sdcard /storage/sdcard1 auto /devices/msm_sdcc.2/mmc_host
请问有哪位调试过相关问题吗
接入U盘时,log如下:
[ 402.227738] get_bam_type_fROM_core_name: invalid BAM name()
[ 402.232381] usb_bam_get_connection_idx: Invalid bam, type=-22, name=
[ 402.239050] msm_bam_device_lpm_ok: Going to LPM now
[ 429.369397] scsi 0:0:0:0: Direct-Access Generic Flash Disk 8.07 PQ: 0 ANSI: 4
[ 429.385494] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 429.390564] sd 0:0:0:0: [sda] 31457280 512-byte logical blocks: (16.1 GB/15.0 GiB)
[ 429.399888] sd 0:0:0:0: [sda] Write Protect is off
[ 429.405034] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 429.445011] sd 0:0:0:0: [sda] Attached SCSI removable disk
源码storage_list.xml中:
<storage android:mountPoint="/storage/usbotg"
android:storageDescription="@string/storage_usb"
android:primary="false"
android:emulated="false"
android:removable="true"
android:allowMassStorage="false" />
init.qcom.rc中:
mkdir /mnt/media_rw/usbotg 0700 media_rw media_rw
mkdir /storage/usbotg 0700 root root
service fuse_usbotg /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/usbotg /storage/usbotg
class late_start
disabled
fstab.qcom中:
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
/dev/block/bootdevice/by-name/system /system ext4 ro,barrier=1,discard wait
/dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,barrier=1,noauto_da_alloc,discard wait,check,encryptable=footer
/devices/soc.0/7864900.sdhci/mmc_host /storage/sdcard1 vfat nosuid,nodev wait,volDMAnaged=sdcard1:auto,noemulatedsd
/dev/block/zram0 none swap defaults zramsize=536870912
vold.fstab中:
dev_mount sdcard /storage/sdcard1 auto /devices/msm_sdcc.2/mmc_host
请问有哪位调试过相关问题吗
看一看
路过帮顶
顶起!
顶上!