![]() |
Re: N900 will not allow USB OTG!
first i want to thank everyone for their hard work to make this possible. But the talk her is too technical i couldn't understand everything and the wiki didn't help a lot. I have a few questions, where exactly have you reached guys in making OTG easy to use for everyone? will a normall cable (mini usb - USB) work?
|
Re: N900 will not allow USB OTG!
well can we have a tutorial on this? step by step? please
tenQ |
Re: N900 will not allow USB OTG!
Quote:
Quote:
So please stay calm and patient, we're working on it. The previous posts might suggest there's more than we actually got, but we are close [edit] The HowTo will be very simple btw (just the package is still missing ;-D ): Quote:
|
Re: N900 will not allow USB OTG!
1 Attachment(s)
I used some perl magic to grant DocScrutinizers wish of having DBG-statements in every function in usb/.
just call the attached perl-script with a parameter (either a single .c file or a directory => it will recursively process each .c file). the script makes a backup of each .c file and adds DBG-statements in every function and before every return-statement or end of function. ATTENTION: the script uses the program "indent" to generate homogeneous code to avoid parsing errors (the "parser" is not very foolproof). The program must thus be installed, and the line-numbers may not be the same as in the original source-files. |
Re: N900 will not allow USB OTG!
2 Attachment(s)
I am typing this in from a USB keyboard hooked up to an external hub that I got working with just force host. It was not via the HNP trick.
I have tried different hubs connected directly. I can also unplug the keyboard, plug one hub into the other, plug in the keyboard to the cascaded hub, and use it from there. Unfortunately detecting disconnects / connects after initial enumeration is not 100%reliable. Mass storage doesnt seem to be working for reasons I dont know yet. Mass storage devices are detected as shown with lsusb. I have had a keyboard and a keyboard/touchpad plugged in and operating at the same time - this is what I have available right bow other than the mass storage. I tried connecting my keyboard directly without the hub and it showed up in lsusb but did not work, no characters typed showed up on the screen. I am using a power injection cable. It also works with the bq power instead of power injection, but a powered hub still seems to be required. The additional changes to what I did before that seem relevant are disable usbcore autosuspend and then making the musb SUSPEND interrupt a noop when forcing host mode. Also, disabling the usb whitelist appears to causes issues with the gadget driver, grep your syslog for "cut". So for now it seems better to leave whitelist configured but really allow everything. The switch to host is not 100% reliable, probably due to ulpi timeouts. These happen for reasons I don't know. [edit] As it stands host mode only works with connecting the id pin first. The interrupts that happen when applying power first cause a session to be opened as a peripheral, which interferes. Working on it. |
Re: N900 will not allow USB OTG!
sarahn
extremely encouraging results, indeed. :-) You have any idea why we need a hardware ID_GND and can not fake it? would you mind posting a proper diff so we can know what exactly you patched in kernel and also which kernel that is based on, please. A super nice-to-have of course would be if you could apply hcm's pearl script to the whole usb folder (of course after you created the diff), and also supply the result of that, so we finally get an idea what's happening in detail when forcing host mode, function by function - kind like a trace. many thanks jOERG |
Re: N900 will not allow USB OTG!
I think you guys should see this:
http://img14.imageshack.us/img14/5870/40775082.png http://img139.imageshack.us/img139/7259/64147687.png It is still in beta stages... |
Re: N900 will not allow USB OTG!
Quote:
http://talk.maemo.org/showthread.php?t=31921&page=91 |
Re: N900 will not allow USB OTG!
Quote:
|
Re: N900 will not allow USB OTG!
Quote:
|
All times are GMT. The time now is 13:02. |
vBulletin® Version 3.8.8