The Following 7 Users Say Thank You to SpeedEvil For This Useful Post: | ||
![]() |
2010-05-16
, 22:50
|
Posts: 946 |
Thanked: 1,650 times |
Joined on Oct 2009
@ Germany
|
#872
|
![]() |
2010-05-17
, 00:41
|
|
Posts: 2,355 |
Thanked: 5,249 times |
Joined on Jan 2009
@ Barcelona
|
#873
|
The Following 26 Users Say Thank You to javispedro For This Useful Post: | ||
![]() |
2010-05-17
, 06:28
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#874
|
The Following User Says Thank You to qole For This Useful Post: | ||
![]() |
2010-05-17
, 17:24
|
Posts: 946 |
Thanked: 1,650 times |
Joined on Oct 2009
@ Germany
|
#875
|
If you want repeat a test, some detailed explanation is here:
C. Connect to PC and answer "PC Suite" to mode question.
D. echo host >/sys/devices/platform/musb_hdrc/mode
You should see in /var/log/syslog a message "twl4030_set_host() after 4030 OTG_CTRL=0x26" - the '2' is a significant.
E. echo H >/proc/drivers/musb_hdrc
F. reattach USB cable from PC to self powered USB hub with memory stick or to external hard disk.
E. Look into /var/log/syslog - You can see a lot of messages and two are most valuable - "Initializing USB Mass Storage driver" and "
USB Mass Storage support registered". And in between you may see "scsi0 : SCSI emulation for USB Mass Storage devices".
The Following 2 Users Say Thank You to titan For This Useful Post: | ||
![]() |
2010-05-17
, 17:37
|
|
Posts: 2,355 |
Thanked: 5,249 times |
Joined on Jan 2009
@ Barcelona
|
#876
|
apparently superheroes can be on multiple teams at the same time.
The Following 3 Users Say Thank You to javispedro For This Useful Post: | ||
![]() |
2010-05-17
, 17:52
|
Posts: 992 |
Thanked: 995 times |
Joined on Dec 2009
@ California
|
#877
|
The Following User Says Thank You to egoshin For This Useful Post: | ||
![]() |
2010-05-17
, 17:59
|
Posts: 992 |
Thanked: 995 times |
Joined on Dec 2009
@ California
|
#878
|
Using egoshin's idea, I got a DisplayLink device working:
This is the same USB monitor shown at the DisplayLink homepage, connected to a N900, in dual screen "clone" mode (more accurately x11vnc, vnc2dl and libdlo, all on the N900). vnc2dl seems to have a 1280x1024 forced resolution.
Basically the requirement of connecting the N900 to a host previously is the key. If you play your cards well you don't even need to patch the kernel (Y-cable, or fully self powered bug, etc.).
I initially though that this requirement came from a g_mass_storage bug that seemingly also happens on the beagleboard, but I was wrong.
Seemingly, DocScrutinizer is right: for some reason after repeating egoshin's steps the N900 seems incapable of closing any USB session, and thus after you unplug it from the host it still believes it's plugged into it, keeping everything powered on. This tricks the driver's OTG state machine into some weirdo state where something starts moving.
Also, with this method you cannot unplug the hub from the N900, as per the above the N900 will keep on thinking it's still connected to it, thus causing mayhem on the kernel.
The Following 2 Users Say Thank You to egoshin For This Useful Post: | ||
![]() |
2010-05-17
, 18:03
|
|
Posts: 2,355 |
Thanked: 5,249 times |
Joined on Jan 2009
@ Barcelona
|
#879
|
To return back from host mode state to normal just do:
echo peripheral >/sys/devices/platform/musb_hdrc/mode
It will cancel VBUS and it immediately stops a session.
![]() |
2010-05-17
, 18:15
|
Posts: 75 |
Thanked: 78 times |
Joined on Jan 2010
@ Germany
|
#880
|
The Following 3 Users Say Thank You to hcm 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 |
|
the current exposed by the bq27200 needs multiplied by (20/3.57)mA to get a current.
It's a raw value from the chip.
the '20' is arguable - but is at least more or less reasonable.
This is as the chip really reads out in units of 3.57uV, and the resistor the battery current is applied across is 20mR in the datasheet recommendation.