[WIP] USB Host support (working) - Nook Touch Android Development

Hello!
I have been asked into looking for usb host support for nook touch. The hardware appears to be pretty similar to Nook Color, so there were no troubles in that area.
The kernel used by B&N for the Nook Touch is somewhat older than .32 kernel used for Nook Color, so the patch itself required some massage. Surprisingly B&N kernel already has usb host support compiled in, so you don't even need to change anything in kernel config, just apply the patch.
Just like in Nook Color, the id pin in the usb receptacle is not connected anywhere, so a special app is needed to switch the host mode on and off. The Nook Color usbhost switcher should work: https://github.com/verygreen/Nook-Color-usbhost-switcher though I cannot compile it for eclair, so I guess that needs some more massage and help here would be appreciated.
Meanwhile you can simply switch the mode from adb, type
Code:
echo host > /sys/devices/platform/musb_hdrc/mode
to enable usb host mode and type
Code:
echo peripheral > /sys/devices/platform/musb_hdrc/mode
to disable it.
The LED at the bottom that usually indicates charging status will light up in usb host mode even if the power is not connected.
The upside is you don't need a special OTG cable and can just use gender changer on your existing nook cable if you so desire.
Now, problems
I have not tracked why yet, but self powered mode only works when you try to enable it first with external power plugged in first.
The user-friendly tool for usbhost mode switching needs to be compiled for eclair
The self-powered mode is very faint. Keeps up with my keyboard, but not even with a simple usb hub.
Battery drain is significant, though not sure what part of it is attributed to the usbhost mode and what to adb over wifi
Eclair init is buggy so input devices are unusable without a patch, see commit 6405c6953fa02d41d9f6377f4cdb947604f481c4 in google tree to sytem/core/init. I am attaching recompiled init binary that works.
Attachments: binary.zip contains:
uImage - prebuilt 1.1 kernel with the patch
uRamdisk - root ramdisk with fixed init, adb over wifi
init - just recompiled init binary for those who might need it
usbhost_patch.zip - just the patch itself in it's current form.
THANKS TO:
andrewed, who asked me to do this and also provided me with a device. He is on a quest to touchtype on e-paper with a USB physical keyboard, all described here: Project: E-Paper Tablet (typable!)

Thats just awesome, thanks!

Now the only thing missing is a good ebook composer and publisher, and it becomes symetrical.

That is awesome! How about audio and serial ports?
Thanks!

bisbal said:
That is awesome! How about audio and serial ports?
Thanks!
Click to expand...
Click to collapse
Audio will most probably require external power source. Also to make audio work there would need to be some changes to the libaudio, likely similar in nature to stuff I did for Nook Color, only for this older release of Android.
Serial ports will likely work as is as I don't think they draw too much power. The kernel support for usbserial would need to be added of course.

Possibility for Bluetooth dongle? And thus audio?
Sent from my GT-I8150 using xda premium

Thiso said:
Possibility for Bluetooth dongle? And thus audio?
Click to expand...
Click to collapse
Should be possible, but would require external power for the bt dongle I would think.

Verygreen,
As of now, what is the use? Can I put an external keyboard as it is? Does it need a driver (or something of the sort) for that? Can I put a usb stick? Audio and BT, as I can see, need an extra effort...
Anyway, thank you for your effort. I thought I'd never see something like that for the STR.

apeine said:
Verygreen,
As of now, what is the use? Can I put an external keyboard as it is? Does it need a driver (or something of the sort) for that? Can I put a usb stick? Audio and BT, as I can see, need an extra effort...
Anyway, thank you for your effort. I thought I'd never see something like that for the STR.
Click to expand...
Click to collapse
You can use keyboard and mouse as is with just the files posted, no extra drivers need. Everything else would need more work at the android side.

for some phones it is possible to buy usb to audio jack converter, e.g.
http://www.amazon.com/Headphones-Ea...6?s=electronics&ie=UTF8&qid=1327504575&sr=1-6
I don't know how much effort and changes is needed on kernel side to make it work though.
---------- Post added at 04:26 PM ---------- Previous post was at 04:21 PM ----------
Do I need to copy all three binaries? Also, could you prepare uRamdisk with adb over usb (not wifi) enabled? Thank you in advance.

cceerrtt said:
for some phones it is possible to buy usb to audio jack converter, e.g.
http://www.amazon.com/Headphones-Ea...6?s=electronics&ie=UTF8&qid=1327504575&sr=1-6
I don't know how much effort and changes is needed on kernel side to make it work though.
Click to expand...
Click to collapse
Those are not applicable, since they aren't actually connected to the USB port. On some phones, the USB "plug" is modified to connect with extra pins -- which carry audio signal.

cceerrtt said:
Do I need to copy all three binaries? Also, could you prepare uRamdisk with adb over usb (not wifi) enabled? Thank you in advance.
Click to expand...
Click to collapse
You need the kernel uImage and uRamdisk files, init is already included.
As far as adb over usb is concerned, it's a bit pointless since there is only one usb receptacle, so you can either connect with adb over usb or connect some usb device, but not both at the same time.
That's why wifi makes more sense.

verygreen said:
Should be possible, but would require external power for the bt dongle I would think.
Click to expand...
Click to collapse
BT USB dongle consumes almost same as USB mouse
http://www.tomsguide.com/us/squeezing-more-life-out-of-your-notebook,review-583-26.html
Since USB mouse is working, BT USB might be feasible as well...

verygreen said:
You need the kernel uImage and uRamdisk files, init is already included.
As far as adb over usb is concerned, it's a bit pointless since there is only one usb receptacle, so you can either connect with adb over usb or connect some usb device, but not both at the same time.
That's why wifi makes more sense.
Click to expand...
Click to collapse
My point is that you don't need wireless access point with adb over usb. It is also more secure than adb over wifi with lower power consumption. Whenewer I need adb over wifi, I can enable it using one adb command. Moreover, using both adb and keyboard attached to nook would not be very frequent scenario (at least in my case).

Thiso said:
BT USB dongle consumes almost same as USB mouse
http://www.tomsguide.com/us/squeezing-more-life-out-of-your-notebook,review-583-26.html
Since USB mouse is working, BT USB might be feasible as well...
Click to expand...
Click to collapse
I've tried a few BT dongles and they can be detected without external power, but I have yet to figure out if BT communications can be driven without external power as well.

USB Host Mode Swicth for Nook Simple Touch
Attached is a Nook Simple Touch version of verygreens USB Host Mode switching app.
Requires properly installed "su" in /system/bin
Let me know if there are problems.

Let's hope so. But I have good hopes as BT intention is to be low power communication. In the post I was referring to earlier, the power communication of BT in use was similar to USB mouse in use...
Sent from my GT-I8150 using xda premium

Would this cable work for host? I've had cables refuse to work with other devices for no apparent reason before, and I don't really want to order something that won't work.
http://www.amazon.com/female-Micro-male-Cable-Adapter/dp/B005GI2VMG/ref=pd_vtp_e_77

TorimuNooter
I'll try to get this included in my TorimuNooter root! Maybe version 0.5 I'm working on 0.4 right now and I can't include your USB host support because it's not yet complete, but I will try to implement it as soon as I can.
Good work!

@Googie2149: Any standard USB cable will work as well as any other.
The ID pin on the micro USB connector on the Nook is not going anywhere so a special OTG cable is not required.
I loaded in the new uImage and uRamdisk and things act more consistently, but I still can't get a keyboard to work.
Neither of the two utilities out there seem to work correctly for me. I do have su installed. I have had more success with simple commands
Code:
echo host > /sys/devices/platform/musb_hdrc/mode
echo peripheral > /sys/devices/platform/musb_hdrc/mode
cat /sys/devices/platform/musb_hdrc/mode
One thing is clear; the Nook adheres to the USB standard for supplying power, that is, it supplies it for 100 millisecs and if the peripheral signals back correctly it continues to supply it. Issuing a host command cause the red LED to flash for about a 1/10 of a second. Supplying power on the red wire is not necessary for host communication.
My setup has a powered hub and a cable with the red lead not carried through. I can issue a host command but it never seems to communicate. The status reads back "a_wait_vrise".
Does anybody have any insight into the FSM to say what is going on?

Related

Bluetooth enabled IDE peripherals... possible?

Hi guys! I don't know if this thing belongs here, but since I'm an owner of a Blue Angel device, I'll put it here anyway. Is it possible to create a simple device which has the following components:
- An IDE adaptor (don't know if this is the right term, but what I mean is a cable which can be connected to standard HDDs', CDROMs', etc.)
- A power input to provide external power to the HDD or CDROM connected to it.
- A bluetooth radio allowing a device (PDA, cellphone, laptop) which is bluetooth enabled (like my Blue Angel) to connect to it via bluetooth. I think the directory bowsing profile, or network profile should be supported.
The purpose of such a device is to allow my Blue Angel to read CDs' and copy data from hard drives. I know it would mean carrying an extra device, but considering the advantages it would give me (reading CD's and HDD's without the need for a PC) I would surely consider adding it to my gadget bag.
Does such a device exist? If not, is it possible to make something like this?
Sorry, but it can't be done. The Blue Angel's USB port is only a USB Slave port, meaning it only works if plugged into a computer.
I dont think a bluetooth drive adapter exists, but maybe something wireless could be used??
e.g.
http://uk.asus.com/products/communication/wireless/wl-hdd25/overview.htm
Alan
I would also suggest WIFI. Bluetooth is way too slow
Toshiba used to sell a Bluetooth hard drive called the "HopBit". I don't think it was ever sold in the US but Dynamism imported it for a while. It seems to be discontinued though.

USB OTG host mode (ANY USB keyboard support!) TUT

USE ANY USB KEYBOARD WITH YOUR USB OTG SUPPORTED ANDROID DEVICE!!!!
I've been experimenting with Wifi cards and the samsung galaxy sII
and realized people where having the same problem as i was having with plugging in usb keyboards.
turns out it all has to do with a vendors permission issue. if your device is not in the list, it will seen as "unknown".
As it turns out you can simply add your device and it'll work. mind you it was to be a simple input device and will have the power constraints of 100mW. But if u can compile a driver and splice in dc power.... skies the limit!
steps:
1. Android must be rooted (not going over that) and must support USB OTG (on-the-go)
2. You can either buy a USB OTG micro to female adapter on ebay for like 4 bucks. i decided to make one myself since i have lots of spare parts.
Heads up: a simple micro usb to female usb connector IS NOT THE SAME AS A USB OTG CABLE, they may look the same but the OTG cable has Pin 4 grounded to pin 5 on the micro usb side. This is how the device distinguishes aach type of cable. WARNING: IF MAKING THIS YOURSELF DO NOT CROSS BLACK AND RED, this WILL fry your PHONE.if you don't know you rway around a soldering iron, just buy one
3. Check what manufacturer your device is on this chart, if it's not there, check on the internet or plug the usb device into a linux box and run "lsusb" in the command promt and look for your device, the number will look like this:
Bus ### Device ###:ID <THIS ONE!>:<more numbers> " Company"
here's the chart: (taken from here :http://developer.android.com/guide/developing/device.html)
Code:
Company USB Vendor ID
Acer 0502
ASUS 0b05
Dell 413c
Foxconn 0489
Garmin-Asus 091E
Google 18d1
HTC 0bb4
Huawei 12d1
K-Touch 24e3
KT Tech 2116
Kyocera 0482
Lenevo 17EF
LG 1004
Motorola 22b8
NEC 0409
Nook 2080
Nvidia 0955
OTGV 2257
Pantech 10A9
Philips 0471
PMC-Sierra 04da
Qualcomm 05c6
SK Telesys 1f53
Samsung 04e8
Sharp 04dd
Sony Ericsson 0fce
Toshiba 0930
ZTE 19D2
eg my keyboard is lenovo , so code is 17EF, you get it
4. log in as root, mount system as read-writeable, Create this file: /etc/udev/rules.d/51-android.rules
if its already there, then just append the command you want after.
if you dont have root explorer or otherwise installed here is how to in bash:
Code:
su
su
mount -o remount,rw system /system
mkdir -p /etc/udev/rules.d/
cd /etc/udev/rules.d/
now in the "51-android.rules" file add this line (or more for more device support):
SUBSYSTEM=="usb_device", SYSFS{idVendor}=="<VENDOR CODE>", MODE "0666", NAME=="<VENDOR>"
my example with my lenovo keyboard:
SUBSYSTEM=="usb_device", SYSFS{idVendor}=="17EF", MODE "0666", NAME=="lenovo"
save.
5. plug in the USB OTG cable and plug in your keyboard or other device. it sould say "usb host cable" then "usb device".
on some keyboards the numlock light wont work, due to the fact of power contraints on the phone, you can add support by plicing in 5v DC in to the line (soldering needed) or you can probably jsut attach a powered usb hub
And thats IT, now you can actually type documents at a reasonable pace, without paying an arm and a leg for a supported bluetooth keyboard!!!
-td8f4
* to moderators i know i have less than 50 posts hopefully i dont get banned, i thought this was considered dev*
Wow, really nice work - I wonder if some kindly ROM devs could just bake in support for all in their ROMs?
NZtechfreak said:
Wow, really nice work - I wonder if some kindly ROM devs could just bake in support for all in their ROMs?
Click to expand...
Click to collapse
wow really good work.
just another info on the price of an BT keyboard:
http://www.amazon.de/s?ie=UTF8&search-type=ss&index=ce-de&field-keywords=CHIN FAI
40 euro are not an arm and a leg
and this i ok to type on
Indeed, you can get some BT keyboards quite cheaply. I already have one, but I'd still like full USB keyboard support (I don't always have my keyboard on me, but lots of people have USB keyboards).
I tested this on an unrooted SGS (Logitech K340 unifying keyboard) and it worked fine without having to change any settings. Just plugged it into the USB OTG adapter and then plugged the adapter into the phone. It said the device was unknown but the keyboard worked when I went to type in the apps. Mice also worked. The logitech MX Performance worked fine. A bit weird seeing a mouse pointer on the phone though.
How about keyboard remapping?
Sent from my GT-I9100 using XDA Premium App
At first I thought:
"1) plug in OTG cable, 2) plug in USB keyb., 3) use"
*lol*
No, seriously, this information is VERY usefull and might open up the way not only for keyboard (as the OP stated, "get a driver compiled and the sky is the limit".
Will definitaly bookmark this thread and when I'm done with some other tinkerings try to "get the drivers compiled"
*clicksthanks*
reply
my ultimate goal is to have a external usb wifi adapter plugged into my phone so i can use it to pentest with a Backtrack 5 chroot session.
i'm working on cross compiling the RTL8187 driver for the ARM architecture.
look here for updates
HTML:
http://forum.xda-developers.com/showthread.php?p=16333147
and @ karl999999
40 euro are not an arm and a leg
and this i ok to type on
Click to expand...
Click to collapse
i know it's not expensive, but i'd really rather use something i already have, i've got a small flexible usb keyboard which works great.
As I'm trying to add joystick support on SGSII, I tried to add an xbox 360 controller and my device was not recognized. I tried this method and added "045E" as vendor but no luck, still not recognized... Any idea ?
Thanks
alx5962 said:
As I'm trying to add joystick support on SGSII, I tried to add an xbox 360 controller and my device was not recognized. I tried this method and added "045E" as vendor but no luck, still not recognized... Any idea ?
Thanks
Click to expand...
Click to collapse
Also interested in this... Sadly I dont have the skills to compile a driver myself...
Sent from my GT-I9100 using XDA Premium App
Thanks. This is so cool and I gotta try it at home later (Tried 2 different keyboards at home before but didn't work). Hopefully you could find a way to use PS3 joystick as well.
Maybe we collect a list of device code and update it a single file. Then rom developer can incorporate it into their roms.
Don't worry about post counts. The is definitively a very good finding and development progress for S2.
alx5962 said:
As I'm trying to add joystick support on SGSII, I tried to add an xbox 360 controller and my device was not recognized. I tried this method and added "045E" as vendor but no luck, still not recognized... Any idea ?
Thanks
Click to expand...
Click to collapse
We might have more luck with generic USB gamepads. I think all we need is someone who has the required knowledge to compile joydev.ko for our kernel.
testando said:
Also interested in this... Sadly I dont have the skills to compile a driver myself...
Sent from my GT-I9100 using XDA Premium App
Click to expand...
Click to collapse
My skill is quite limited too but with some reading it's not that hard (and I can give some help too).
I am looking for support for my Plantronics USB Headset. I am able to control volume through the headset when connected to OTG, but can't route audio through them.
I believe we do need generic drivers for USB Headsets. Hope one of the elite developers can help us. I will be happy to donate 5 euros for the same
Also, my Microsoft Wireless combo (Desktop 6000 v3) do not work while my wireless mouse 1000 do work absolutely fine on the Phone.
I am also looking for NTFS Mass Storage support which seems to be currently limited to FAT32 (and possibly FAT16) only.
Prankey said:
I am looking for support for my Plantronics USB Headset. I am able to control volume through the headset when connected to OTG, but can't route audio through them.
I believe we do need generic drivers for USB Headsets. Hope one of the elite developers can help us. I will be happy to donate 5 euros for the same
Also, my Microsoft Wireless combo (Desktop 6000 v3) do not work while my wireless mouse 1000 do work absolutely fine on the Phone.
I am also looking for NTFS Mass Storage support which seems to be currently limited to FAT32 (and possibly FAT16) only.
Click to expand...
Click to collapse
There is a solution for that already. Search ntfs-3g or posts started by me.
Just tried my logitech wireless keyboard but doesn't work. May need to dig out some old wired keyboard to try later.
somebody can get the USB ID of EuroCase? i can't get it from the internet
takato23 said:
somebody can get the USB ID of EuroCase? i can't get it from the internet
Click to expand...
Click to collapse
Actually, you may found the id by S2 itself. Just install a terminal emulator and do the same lsusb command.
jackleung said:
Actually, you may found the id by S2 itself. Just install a terminal emulator and do the same lsusb command.
Click to expand...
Click to collapse
Okay i could get the usb id from eurocase (i've a keyboard+mouse 2.4ghz pack) It's 1D57. Now when i connect the recivier, says "connected a usb device". But when i try to use mouse or keyboard it get stuck on one letter. I've try with a genius keyboard also (ID 0566) and it does the same... the only device that it works is a Razer mouse (without doing a thing)
My Microsoft Wireless Mouse 1000 works perfectly fine. However my other Microsoft Wireless Desktop combo (6000 v3) doesn't.
Also, I am looking for a way to use my USB headsets. I am able to control volume through it, but can't route audio through it.
Hope one of the devs here would be generous enough to help us get our devices working
Writing a driver and firmware from scrarch is quite a bit more arguous than finding one that works with linux. Look for one.
Once I get this porting business figured out ill post a tut on porting. Maybe even a small vm of the ubuntu box, to avoid rebuilding the setup
Sent from my GT-I9100 using XDA App

Nook as USB external display for better battery saving (need help to improve)

Already we can use the Nook as an external display by connecting over WiFi to a VNC server.
However, that negates the battery saving of doing so. It would be better if we could connect directly over USB to view a display.
There are a number ways this could be achieved that I can think about:
1) USB networking. Sounds like hard work to me.
2) Keep taking screenshots on the desktop, write these to the Nook and get the Nook to show them onscreen. This would be very cross platform and accessible. However, this would require the ability of the Nook to both act as a USB drive and also be able to read from the same dismounted area, this wouldn't be possible AFAIK.
3) The same as (2) but using adb. I don't think adb over USB is fast enough for this?
4) Something more low level?
For scenarios (2) & (3) we would need an app that can watch a jpg and reload it every ~1sec. No faster is needed as eink update is pretty slow without the norefresh mode. Can you help me find an app like that, or something that watches a folder and shows the most recent file?
I will look into ported linux commands as these can do it with scripting; watch, & commandline image viewers.
edit update:
(2) might actually be possible, seen this thread:
http://forum.xda-developers.com/showthread.php?t=1756506
But would it be unreliable?
jago25_98 said:
Already we can use the Nook as an external display by connecting over WiFi to a VNC server.
However, that negates the battery saving of doing so. It would be better if we could
Click to expand...
Click to collapse
If you're going to be plugged in to USB, you've got external power. Why not use wifi while plugged in? You gain mobility if you want to move around, and battery life is still good.
What are you displaying? If what you want to monitor can use a network interface, would a syslog server on the NST suffice? A twitter feed? Photostream? If you need some interaction, a web page might work.
A USB-serial terminal might be useful for some applications.
I think the "right" answer will depend on what you're trying to display!
bobstro said:
If you're going to be plugged in to USB, you've got external power.
Click to expand...
Click to collapse
What about "Reverse tethering"?
Tethering is the ability to surf on your pc using the 3g of your phone
Reverse tethering is the opposite : surf on your phone using the ADSL of your PC.
http://forum.xda-developers.com/showthread.php?t=793102
http://forum.xda-developers.com/showthread.php?t=1371345
Thanks The reverse tether is even more useful than what I was hoping for!
I'm thinking of linking it to a Netbook, shutting the LCD display up and using it as a low power, sunlight readable navigation display. I wonder how I can make the USB connector more durable though....
jago25_98 said:
I wonder how I can make the USB connector more durable though....
Click to expand...
Click to collapse
You better off with Micro USB Cable - A to Right Angle Micro B than.

OTG Cables and HOV

My buddy gave me what I assume to ba a cheap OTG cable and when I Try to use a mouse to scroll on screen it's no bueno.....any suggestions or maybe phone doesn't support it? Kernel issue though doubtful? Thanks to ANY responses
You have power source support???.....cuz One v doesn't support power to USB otg.....
Sent from my HTC One V using xda premium
handryg555 said:
You have power source support???.....cuz One v doesn't support power to USB otg.....
Sent from my HTC One V using xda premium
Click to expand...
Click to collapse
Thanks I didn't know this........ thought I was crazy or just a cheap otg cable.......
The right kernal for otg to work
if i wanted to use custom kernal that supports the use of otg and exacting how to flash-install the virgin moble cdma primo c..and what r the dangers of doing this..and is there a easier way to do all this.? i'm only after the use of OTG for some games..
aaronrw said:
Thanks I didn't know this........ thought I was crazy or just a cheap otg cable.......
Click to expand...
Click to collapse
Dude there's always thanks button.....
Sent from my HTC One V using xda premium
handryg555 said:
Dude there's always thanks button.....
Sent from my HTC One V using xda premium
Click to expand...
Click to collapse
All out for the day I guess. Seriously:what:
sentfromybrain
I'm trying to get USB Host mode working on my CDMA HTC One V (PrimoC) too. I've read that the GSM version of the HTC One V (PrimoU) supports USB Host Mode with the Titanium-KISS kernel, but unfortunately there is not a CDMA version of that kernel. I'm trying the SuperSick kernel on my PrimoC but haven't had any luck with USB Host Mode yet.
The first thing to do is make sure you have the right cable setup. From what I've researched, you need a setup like in this thread:
http://forum.xda-developers.com/showthread.php?t=1820375
The USB Y cable approach sounds likeliest to work. They have two USB Type A male connectors (the type that plugs into a computer USB port) on one end and either a USB Type A female connector or a USB Type B/Mini-B male connector on the other end. These sometimes come with external USB hard drives that need more power than one USB port can provide. You plug the main Type A male connector into your USB OTG adapter and plug the second Type A male connector into a power source like the charger that comes with the HTC One V. You connect the other end of the cable to your device (mouse / keyboard / hub / etc). As far as I know, the power pins on all the connectors on such a cable are all connected together (+ to +, - to -) so that power flows from your external power source into the phone and your connected device.
There is also mention of using USB hubs that are externally powered. Supposedly some of these also supply power back to the phone, which I'm guessing is necessary but I'm not sure. None of the powered hubs I have seem to power the source USB connection, and actually have an internal diode that probably prevents this from being possible without modification.
Of course, you still need to have a kernel with USB Host Mode support.
Apparently there is a subtle terminology difference between "USB OTG" and "USB Host Mode", mainly with regards to the fact that the HTC One V doesn't output power to the USB power pins as far as I know. See:
http://forum.xda-developers.com/showthread.php?t=1771135
lanigera said:
Supposedly some of these also supply power back to the phone, which I'm guessing is necessary but I'm not sure.
Click to expand...
Click to collapse
If you have such a hub it will make the y-cable unneccessary
to allow charging of your HOV while using USB host mode
To make USB devices work you also need to load the required
kernel modules e.g. HID, mass storage, ....
Depends on the kernel creator if it includes those into the kernel or
as separate modules
For my PrimoU kernels you will find here http://forum.xda-developers.com/showpost.php?p=28599248&postcount=2
some scripts that will load the required kernel modules.
You MUST do this before attaching the USB host cable
maxwen said:
For my PrimoU kernels you will find here http://forum.xda-developers.com/showpost.php?p=28599248&postcount=2
some scripts that will load the required kernel modules.
You MUST do this before attaching the USB host cable
Click to expand...
Click to collapse
I'm starting to wish I had bought a PrimoU instead of a PrimoC so I could just use your kernel.
I looked at your USB scripts, and I think something may be slightly different / missing in the kernel I am using (latest SickKernel) which prevents them from working for me.
I mounted /sys/kernel/debug/ and it seems I have some an msm_otg driver loaded, but there is no "/sys/kernel/debug/msm_otg/mode" control file, just two other control files.
There is a read/write "/sys/kernel/debug/msm_otg/aca" which says "disabled" that I can set to "enabled". But, I still get an empty "/sys/bus/usb/devices/" directory when I plug in my hub.
There is also a read-only "/sys/kernel/debug/msm_otg/chg_type" that says "USB_SDP_CHARGER" when my hub is plugged in and "INVALID_CHARGER" when nothing is attached.
The usbhid.ko, usb-storage.ko, and hid-topseed.ko kernel modules (which I assume depend on msm_otg working) are nowhere to be found, so I'm guessing their functionality is either built into the kernel or not included yet.
I'm tempted to try compiling & modifying the kernel source myself, but I can't until I upgrade my computer.

Where is the USB ADB/Fastbook port of the connected car system?

Pretty much what the title says - I have a FlyAudio G8II system and I've been able to get it to Fastboot mode (which I need because I want to tinker with it a little and need a way of recovery if I screw something up) but I can't seem to find any way of actually connecting it to a computer via ADB - The system has a single type A USB connector, intended to be used for audio playback from USB drives, though peripherals such as physical keyboards also work. I thought that maybe if I try a nonstandard USB A-A cable I may be able to get it to act as a USB device but that didn't work.
My second thought was that maybe it has an additional USB port on the back but I only see a frightening bundle of wires, most of which I have no idea what they are used for.
Is there someone who has a little understanding of this? If I upload a photo of the backside of the system would anyone be able to figure whether indeed one of these wires can be used as an ADB compatible USB port?
Thanks!
NiQ1 said:
Pretty much what the title says - I have a FlyAudio G8II system and I've been able to get it to Fastboot mode (which I need because I want to tinker with it a little and need a way of recovery if I screw something up) but I can't seem to find any way of actually connecting it to a computer via ADB - The system has a single type A USB connector, intended to be used for audio playback from USB drives, though peripherals such as physical keyboards also work. I thought that maybe if I try a nonstandard USB A-A cable I may be able to get it to act as a USB device but that didn't work.
My second thought was that maybe it has an additional USB port on the back but I only see a frightening bundle of wires, most of which I have no idea what they are used for.
Is there someone who has a little understanding of this? If I upload a photo of the backside of the system would anyone be able to figure whether indeed one of these wires can be used as an ADB compatible USB port?
Thanks!
Click to expand...
Click to collapse
Can you change the USB type setting to "PTP"?
NiQ1 said:
Pretty much what the title says - I have a FlyAudio G8II system and I've been able to get it to Fastboot mode (which I need because I want to tinker with it a little and need a way of recovery if I screw something up) but I can't seem to find any way of actually connecting it to a computer via ADB - The system has a single type A USB connector, intended to be used for audio playback from USB drives, though peripherals such as physical keyboards also work. I thought that maybe if I try a nonstandard USB A-A cable I may be able to get it to act as a USB device but that didn't work.
My second thought was that maybe it has an additional USB port on the back but I only see a frightening bundle of wires, most of which I have no idea what they are used for.
Is there someone who has a little understanding of this? If I upload a photo of the backside of the system would anyone be able to figure whether indeed one of these wires can be used as an ADB compatible USB port?
Thanks!
Click to expand...
Click to collapse
Did you ever have any luck with this?

Categories

Resources