![]() |
Re: N900 does now allow USB hostmode!
@joerg:
I finally found a time and did tests. Without BME it doesn't work. But it seems that some application also listen VBUS signal because even with stopped BME a dbus server issues a note about vbus change (seen in syslog). Moreover, if I stop BME and set VBUS then after 3-5secs the N900 LED indicator goes to constant yellow and "battery filling icon" occurs in screen. Quote:
Quote:
Quote:
The exact sequence is: 1. Boot the modified kernel and wait until system set up. 2. connect USB to PC, answer on question as "PC suite mode" (not mass storage). 3. echo host >/sys/devices/platform/musb_hdrc/mode -- this command requests host operations in MUSB driver and it also switches VBUS on in TWL4030 because of my fixes. 4. echo H >/proc/drivers/musb_hdrc -- it activates a request for switching to hostmode in USB hardware 5. reconnect USB to self-powered external disk (in 5 secs). In this moment USB hardware is switched to suspend mode and hostmode is activated. After cable is attached a debug shows that signal about "new device is connected"/"session started" comes in and MUSB driver starts host-mode state machine and tries to enumerate a new device. At this moment syslog begins display "non supported" messages. I have also some debug print switched on and it shows me that there is "end-of-TX" interrupts. If it doesn't happen then - repeat the procedure. The check shows that in this case the request to hostmode is lost. I believe some daemon action causes it (DMCE ?). Now I switch to looking into kernel code "why it doesn't recognize a HUB?" |
Re: N900 will not allow USB OTG!
Last progress:
I edited a HUB table to support protocol version 2 (my hub has this protocol version !) and kernel now recognizes it, enumerates it and command 'lsusb' shows it ! (All of it - for self-powered hub, of course). But next stop is - "ignoring external hub". It needs some analysis - why it is chosen to ignore... Besides of that there is a lot of debug output which requires some analysis too. EDIT: It looks like I discovered the reason of unstable results - my USB female-2-female connector has preference which side to connect to N900 (!?) |
Re: N900 will not allow USB OTG!
Quote:
|
Re: N900 does now allow USB hostmode!
Quote:
battery icon prove there is another piece of software who read battery charging current through current sense resistor R1130 ( Gazoo chip ) |
Re: N900 will not allow USB OTG!
Quote:
|
Re: N900 will not allow USB OTG!
Quote:
|
Re: N900 will not allow USB OTG!
Quote:
check on happy ( cable ) end if there is a low resistance ( close to 0 ) between pin 4 and 5 . you don't cross otg border even n900 is acting as a host. anyway, congrats ! |
Re: N900 will not allow USB OTG!
Quote:
|
Re: N900 will not allow USB OTG!
Quote:
BTW depending on adapter type, there's most likely no 5th pin aka ID pin on the F-F adapter of egoshin. Standard size USB has only 4 pins. So it's quite obscure how such an adapter could show any asymmetry. (If it were a 5pole micro-F-F adapter then it would be useless anyway, as you could use such adapter with a OTG cable only, and it would not add any adapting function to the setup. Also even on OTG cables the 5th pin usually isn't connected to the cable and seen on the other end, means virtually *all* USB cables are 4-wire only) We really need to check why 'echo host >mode' seems to have no effect - evidence for the missing effect is the usage of the whitelist. Probably there are parts missing in the source, for handling plain vanilla hostmode. My suggestion would be to see how it's done in diablo for N810, and then copy&adapt the missing parts for the new hardware of N900 (i.e. 1707 PHY, twl4030 VBUS *detect*, bq24150 VBUS *supply*). I'd be happy to help on such effort, from the hardware side |
Re: N900 will not allow USB OTG!
Quote:
different connection is made first : ground , vbus and datalines and sometimes something go wrong |
All times are GMT. The time now is 07:14. |
vBulletin® Version 3.8.8