The Following 2 Users Say Thank You to egoshin For This Useful Post: | ||
![]() |
2010-05-11
, 08:15
|
Posts: 992 |
Thanked: 995 times |
Joined on Dec 2009
@ California
|
#822
|
The Following 8 Users Say Thank You to egoshin For This Useful Post: | ||
![]() |
2010-05-11
, 08:54
|
|
Posts: 2,355 |
Thanked: 5,249 times |
Joined on Jan 2009
@ Barcelona
|
#823
|
The Following 3 Users Say Thank You to javispedro For This Useful Post: | ||
![]() |
2010-05-11
, 09:06
|
Posts: 306 |
Thanked: 566 times |
Joined on Jan 2010
@ Romania
|
#824
|
@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.I
The Following 3 Users Say Thank You to blue_led For This Useful Post: | ||
![]() |
2010-05-11
, 09:09
|
Posts: 306 |
Thanked: 566 times |
Joined on Jan 2010
@ Romania
|
#825
|
The Following 2 Users Say Thank You to blue_led For This Useful Post: | ||
![]() |
2010-05-11
, 09:40
|
|
Posts: 2,355 |
Thanked: 5,249 times |
Joined on Jan 2009
@ Barcelona
|
#826
|
The Following 2 Users Say Thank You to javispedro For This Useful Post: | ||
![]() |
2010-05-11
, 16:13
|
Posts: 306 |
Thanked: 566 times |
Joined on Jan 2010
@ Romania
|
#827
|
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 (!?)
The Following 2 Users Say Thank You to blue_led For This Useful Post: | ||
![]() |
2010-05-11
, 17:26
|
Posts: 992 |
Thanked: 995 times |
Joined on Dec 2009
@ California
|
#828
|
The Following 2 Users Say Thank You to egoshin For This Useful Post: | ||
![]() |
2010-05-11
, 17:27
|
|
Posts: 2,222 |
Thanked: 12,651 times |
Joined on Mar 2010
@ SOL 3
|
#829
|
isn't this behavior otg selection mode ? a-end vs. b-end ?
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 !
The Following 4 Users Say Thank You to joerg_rw For This Useful Post: | ||
![]() |
2010-05-11
, 19:26
|
Posts: 306 |
Thanked: 566 times |
Joined on Jan 2010
@ Romania
|
#830
|
The Following 2 Users Say Thank You to blue_led For This Useful Post: | ||
![]() |
Tags |
awesomeness in the works, boulevard of broken deals, host, i am the dealbreaker, inspector gadget lies, mobidapter is a scam, nokia fanbois, otg, over 9000, usb, usbcontrol |
|
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.
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?"
Last edited by egoshin; 2010-05-11 at 06:26.