firstïŒyour device hardware not support otg/gadget at allïŒOK ?
thenïŒlet me tell you about Android gadgetïŒAndroid gadget configfsïŒ
1) kernel .config
CONFIG_USB_CONFIGFS=y
CONFIG_USB_CONFIGFS_SERIAL=y
CONFIG_USB_CONFIGFS_ACM=y
CONFIG_USB_CONFIGFS_OBEX=y
CONFIG_USB_CONFIGFS_NCM=y
CONFIG_USB_CONFIGFS_ECM=y
CONFIG_USB_CONFIGFS_ECM_SUBSET=y
CONFIG_USB_CONFIGFS_RNDIS=y
CONFIG_USB_CONFIGFS_EEM=y
CONFIG_USB_CONFIGFS_PHONET=y
CONFIG_USB_CONFIGFS_MASS_STORAGE=y
CONFIG_USB_CONFIGFS_F_LB_SS=y
CONFIG_USB_CONFIGFS_F_FS=y
CONFIG_USB_CONFIGFS_F_MTP=y
CONFIG_USB_CONFIGFS_F_PTP=y
CONFIG_USB_CONFIGFS_F_ACC=y
CONFIG_USB_CONFIGFS_F_AUDIO_SRC=y
CONFIG_USB_CONFIGFS_UEVENT=y
CONFIG_USB_CONFIGFS_F_UAC1=y
CONFIG_USB_CONFIGFS_F_UAC1_LEGACY=y
CONFIG_USB_CONFIGFS_F_UAC2=y
CONFIG_USB_CONFIGFS_F_MIDI=y
CONFIG_USB_CONFIGFS_F_HID=y
CONFIG_USB_CONFIGFS_F_PRINTER=y
2) Android init.rc or on init.android_x86.rc
on boot
# USB gadget configuration
setprop sys.usb.configfs 1
mkdir /config/usb_gadget/g1
mkdir /config/usb_gadget/g1/strings/0x409
mkdir /config/usb_gadget/g1/configs/b.1
mkdir /config/usb_gadget/g1/configs/b.1/strings/0x409
mkdir /config/usb_gadget/g1/functions/ffs.adb
mkdir /config/usb_gadget/g1/functions/mtp.gs0
mkdir /config/usb_gadget/g1/functions/ptp.gs1
mkdir /config/usb_gadget/g1/functions/accessory.gs2
mkdir /config/usb_gadget/g1/functions/audio_source.gs3
mkdir /config/usb_gadget/g1/functions/rndis.gs4
mkdir /config/usb_gadget/g1/functions/midi.gs5
setprop sys.usb.controller dwc3.3.auto
mkdir /dev/usb-ffs 0770 shell shell
mkdir /dev/usb-ffs/adb 0770 shell shell
mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=2000
or
on boot
# USB gadget configuration
setprop sys.usb.configfs 1
mkdir /config/usb_gadget/g1
mkdir /config/usb_gadget/g1/strings/0x409
mkdir /config/usb_gadget/g1/configs/b.1
mkdir /config/usb_gadget/g1/configs/b.1/strings/0x409
mkdir /config/usb_gadget/g1/functions/ffs.adb
mkdir /config/usb_gadget/g1/functions/ffs.mtp
mkdir /config/usb_gadget/g1/functions/ffs.ptp
mkdir /config/usb_gadget/g1/functions/accessory.gs2
mkdir /config/usb_gadget/g1/functions/audio_source.gs3
mkdir /config/usb_gadget/g1/functions/rndis.gs4
mkdir /config/usb_gadget/g1/functions/midi.gs5
setprop sys.usb.controller dwc3.3.auto
mkdir /dev/usb-ffs 0775 shell shell
mkdir /dev/usb-ffs/adb 0770 shell shell
mkdir /dev/usb-ffs/mtp 0770 mtp mtp
mkdir /dev/usb-ffs/ptp 0770 mtp mtp
mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=2000
mount functionfs mtp /dev/usb-ffs/mtp
rmode=0770,fmode=0660,uid=1024,gid=1024,no_disconnect=1
mount functionfs ptp /dev/usb-ffs/ptp
rmode=0770,fmode=0660,uid=1024,gid=1024,no_disconnect=1
åš 2018幎10æ30æ¥ææäº UTC+8äžå10:03:55ïŒUniCavåéïŒ
Post by UniCavAt some point during testing distro boots I had disabled xHCI in the BIOS.
Reenabled that now but it still will not allow me to select MTP in the
Developer Options.
Settings App crashes and Select USB Configuration returns to Charging.
I'm also finding now that after I leave the tablet on and plugged up all
night to charge the battery that when I come in the next day, as reported
earlier the screen is not off it's simply blanked, and even though it will
show the lock screen when I push the power button it will not recognize a
swipe on the screen. I have to force power off and back on.
Post by youling 257do you know host and peripheral modesïŒhost and gadgetïŒ
xhci used for hostïŒotg used for peripheralïŒ
i'm not say micro otgïŒnot say plug in micro otgïŒ
00:14.0 USB xHCI only can used for host mode.
åš 2018幎10æ30æ¥ææäº UTC+8äžå12:32:35ïŒUniCavåéïŒ
Post by UniCavI'm not able to find much info through the terminal. So far this is all
I'm getting
CPU is
Intel(R) Atom(TM) CPU Z3740D
dmesg is nothing but this error repeated. I believe this even comes up during boot
[ 1841.256394] ACPI Error: Invalid zero data length in transfer buffer (20180531/exfield-400)
[ 1841.256407] ACPI Error: Method parse/execution failed \x5c_SB.GPO2._L08, AE_AML_BUFFER_LENGTH (20180531/psparse-516)
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 015: ID 046d:c31c
Bus 001 Device 002: ID 8087:07e6
Bus 001 Device 016: ID 046d:c077
Bus 001 Device 014: ID 1a40:0201
00:00.0 Class 060000: 8086:0f00
00:1a.0 Class 108000: 8086:0f18
00:1d.0 Class 0c0320: 8086:0f34
00:02.0 Class 030000: 8086:0f31
00:1f.0 Class 060100: 8086:0f1c
From the page -
http://www.studioteabag.com/science/dell-venue-pro-linux/#power_management
This is what the actual hardware should be, but I still see nothing
about OTG
The only reason I was looking for MTP/OTG was to be able to access the
device from adb terminal to make it easier to debug what's missing on the
unit
00:00.0 Host bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series SoC Transaction Register (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display (rev 09)
00:14.0 USB controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series USB xHCI (rev 09)
00:1a.0 Encryption controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Trusted Execution Engine (rev 09)
00:1f.0 ISA bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Power Control Unit (rev 09)
lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
I have a perfect install up and running on my Dell Venue 8 Pro 5830.
Overall seems responsive and functional.
Chrome, Google Play, Youtube working fine.
Sound seems fine
Wifi is workiing, but indicator shows no signal and details show Poor
Signal even though it's getting perfect signal
Battery indicator always shows Charging, details always say 100% up to
the point the battery dies and the tablet goes dead.
Screen does not actually go off in sleep mode, just blanks out.
Occasionally pops back on by itself. kills the battery.
Are Atheros ath6kl, and the other libraries and firmware for the Dell
Venue in this release?
--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.