maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Announce: USB Mode (easy switch to USB host mode) [in Extras-Devel] (https://talk.maemo.org/showthread.php?t=85658)

biketool 2013-04-07 13:07

Re: Announce: USB Mode (easy switch to USB host mode)
 
just loaded KP52 and latest USB host mode, I can't connect now I get a charger attached error even if nothing is plugged in. I suspect it is KP52 related as HEN wont connect either.

pali 2013-04-07 15:15

Re: Announce: USB Mode (easy switch to USB host mode) [in Extras-Devel]
 
New version 1.0-4 is in Extras-Devel. It needs kernel-power v52.

biketool 2013-04-07 15:20

Re: Announce: USB Mode (easy switch to USB host mode) [in Extras-Devel]
 
Pali's new fix fixed it!

7thd 2013-05-27 19:25

Re: Announce: USB Mode (easy switch to USB host mode) [in Extras-Devel]
 
hi there
first try with usbmode. thx 4 wonderful program tho i cannot get it going.
problem: My WD harddisks don't get mounted. i'm unaware why.
The n900 ends up in periphal mode with boost tho the device was connected. i see no activity afterwards so i'd guess sth went fatally wrong.

high speed mode problem?
driver problem?

(i'm on kp v52 and have latest version of usbmode)

thx in advance 4 any help you'd b prepared to give

dmesg output:
Code:

[10634.970947] usb 1-1: Manufacturer: Western Digital
[10634.970977] usb 1-1: SerialNumber: 575844314137324D38383637
[10634.971038] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[10634.971130] hub 1-0:1.0: port 1 enable change, status 00000503
[10634.980529] usb-storage: device found at 9
[10634.980590] usb-storage: waiting for device to settle before scanning
[10638.378936] bq27x00-battery 2-0055: battery is not calibrated! ignoring capacity values
[10639.978637] usb-storage: device scan complete
[10640.071594] Forced hostmode error: a high-speed device attached but not high-speed mode selected
[10640.071685] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[10640.134063] usb 1-1: reset high speed USB device using musb_hdrc and address 9
[10640.196563] Forced hostmode error: a high-speed device attached but not high-speed mode selected
[10640.196685] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[10640.259124] usb 1-1: device descriptor read/64, error -19
[10640.430999] Forced hostmode error: a high-speed device attached but not high-speed mode selected
[10640.431121] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[10640.493499] usb 1-1: device descriptor read/64, error -19
[10640.665527] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[10640.727874] usb 1-1: reset high speed USB device using musb_hdrc and address 9
[10640.790313] Forced hostmode error: a high-speed device attached but not high-speed mode selected
[10640.790435] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[10640.852996] usb 1-1: device descriptor read/64, error -19
[10641.024749] Forced hostmode error: a high-speed device attached but not high-speed mode selected
[10641.024902] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[10641.087310] usb 1-1: device descriptor read/64, error -19
[10641.259124] Forced hostmode error: a high-speed device attached but not high-speed mode selected
[10641.259277] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[10641.322387] usb 1-1: reset high speed USB device using musb_hdrc and address 9
[10641.743621] usb 1-1: device not accepting address 9, error -19
[10641.743743] hub 1-0:1.0: logical disconnect on port 1
[10641.743835] hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0002
[10641.743927] hub 1-0:1.0: port 1, status 0501, change 0002, 480 Mb/s
[10641.743957] usb 1-1: USB disconnect, address 9
[10641.744049] usb 1-1: unregistering device
[10641.744079] usb 1-1: usb_disable_device nuking all URBs
[10641.744110] usb 1-1: unregistering interface 1-1:1.0
[10641.767150] usb 1-1:1.0: uevent
[10641.768585] usb 1-1: uevent
[10641.923278] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x501
[10641.985748] Forced hostmode error: a high-speed device attached but not high-speed mode selected
[10642.048217] usb 1-1: new high speed USB device using musb_hdrc and address 10
[10642.110717] Forced hostmode error: a high-speed device attached but not high-speed mode selected
[10642.173400] usb 1-1: device descriptor read/64, error -19
[10642.345214] Forced hostmode error: a high-speed device attached but not high-speed mode selected
[10642.407592] usb 1-1: device descriptor read/64, error -19
[10642.579437] Forced hostmode error: a high-speed device attached but not high-speed mode selected
[10642.642150] usb 1-1: new high speed USB device using musb_hdrc and address 11
[10642.704620] Forced hostmode error: a high-speed device attached but not high-speed mode selected
[10642.767059] usb 1-1: device descriptor read/64, error -19
[10642.939086] Forced hostmode error: a high-speed device attached but not high-speed mode selected
[10643.001525] usb 1-1: device descriptor read/64, error -19
[10643.173339] Forced hostmode error: a high-speed device attached but not high-speed mode selected
[10643.235931] usb 1-1: new high speed USB device using musb_hdrc and address 12
[10643.657745] usb 1-1: device not accepting address 12, error -19
[10643.720214] Forced hostmode error: a high-speed device attached but not high-speed mode selected
[10643.782592] usb 1-1: new high speed USB device using musb_hdrc and address 13
[10644.204559] usb 1-1: device not accepting address 13, error -19
[10644.204711] hub 1-0:1.0: unable to enumerate USB device on port 1
[10644.204772] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[10644.204833] hub 1-0:1.0: port 1 enable change, status 00000501
[10644.657196] bq27x00-battery 2-0055: battery is not calibrated! ignoring capacity values
[10674.660919] bq27x00-battery 2-0055: battery is not calibrated! ignoring capacity values
[10704.663116] bq27x00-battery 2-0055: battery is not calibrated! ignoring capacity values
[10734.684753] bq27x00-battery 2-0055: battery is not calibrated! ignoring capacity values
[10764.678283] bq27x00-battery 2-0055: battery is not calibrated! ignoring capacity values
[10794.685577] bq27x00-battery 2-0055: battery is not calibrated! ignoring capacity values
[10824.676300] bq27x00-battery 2-0055: battery is not calibrated! ignoring capacity values
[10854.688842] bq27x00-battery 2-0055: battery is not calibrated! ignoring capacity values
[10884.682403] bq27x00-battery 2-0055: battery is not calibrated! ignoring capacity values
[10914.689453] bq27x00-battery 2-0055: battery is not calibrated! ignoring capacity values
[10944.677886] bq27x00-battery 2-0055: battery is not calibrated! ignoring capacity values
[10974.693023] bq27x00-battery 2-0055: battery is not calibrated! ignoring capacity values
[11004.678894] bq27x00-battery 2-0055: battery is not calibrated! ignoring capacity values
[11034.660278] bq27x00-battery 2-0055: battery is not calibrated! ignoring capacity values
[11038.385620] musb_hdrc musb_hdrc: remove, state 1
[11038.385650] musb_hdrc musb_hdrc: roothub graceful disconnect
[11038.385711] usb usb1: USB disconnect, address 1
[11038.385711] usb usb1: unregistering device
[11038.385742] usb usb1: usb_disable_device nuking all URBs
[11038.385742] musb_hdrc musb_hdrc: shutdown urb ce9a0800 ep1in-intr
[11038.385772] usb usb1: unregistering interface 1-0:1.0
[11038.388458] usb 1-0:1.0: uevent
[11038.395172] usb usb1: uevent
[11038.396545] musb_hdrc musb_hdrc: USB bus 1 deregistered
[11041.749053] g_file_storage gadget: File-backed Storage Gadget, version: 7 August 2007
[11041.749084] g_file_storage gadget: Number of LUNs=2 Number of buffers=16
[11041.749267] musb_hdrc musb_hdrc: MUSB HDRC host driver
[11041.753265] drivers/usb/core/inode.c: creating file 'devices'
[11041.753326] drivers/usb/core/inode.c: creating file '001'
[11041.757537] musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
[11041.757690] usb usb1: default language 0x0409
[11041.758148] usb usb1: uevent
[11041.761596] usb usb1: usb_probe_device
[11041.761596] usb usb1: configuration #1 chosen from 1 choice
[11041.761688] usb usb1: adding 1-0:1.0 (config #1, interface 0)
[11041.761840] usb 1-0:1.0: uevent
[11041.763732] hub 1-0:1.0: usb_probe_interface
[11041.763763] hub 1-0:1.0: usb_probe_interface - got id
[11041.763763] hub 1-0:1.0: USB hub found
[11041.763885] hub 1-0:1.0: 1 port detected
[11041.763916] hub 1-0:1.0: standalone hub
[11041.763916] hub 1-0:1.0: individual port power switching
[11041.763916] hub 1-0:1.0: no over-current protection
[11041.763946] hub 1-0:1.0: power on to power good time: 10ms
[11041.763977] hub 1-0:1.0: local power source is good
[11041.764007] hub 1-0:1.0: enabling power on all ports
[11041.771453] drivers/usb/core/inode.c: creating file '001'
[11041.773620] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[11041.773651] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[11041.773651] usb usb1: Product: MUSB HDRC host driver
[11041.773681] usb usb1: Manufacturer: Linux 2.6.28.10-power52 musb-hcd
[11041.773681] usb usb1: SerialNumber: musb_hdrc
[11041.860687] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000
[11043.860595] hub 1-0:1.0: hub_suspend
[11043.860656] usb usb1: bus auto-suspend
[11044.333801] bq2415x-charger 2-006b: driver unregistered
[11045.432861] bq27x00-battery 2-0055: battery is not calibrated! ignoring capacity values
[11049.950256] twl4030_usb twl4030_usb: HW_CONDITIONS 0x50/80; link 1
[11049.950683] regulator_disable: not in use by this consumer
[11049.950714] regulator_disable: not in use by this consumer
[11094.806152] slide (GPIO 71) is now open
[11099.138366] twl4030_keypad twl4030_keypad: Spurious key event 4-2
[11099.295257] twl4030_keypad twl4030_keypad: Spurious key event 4-2


chill 2013-06-19 05:24

Re: Announce: USB Mode (easy switch to USB host mode) [in Extras-Devel]
 
Thanks for your work, pali and comment posters. I attach my USB cabled mouse and it works with Host mode with boost, but after I go back to Peripheral mode, disconnect the mouse, and reconnect it again (using Host mode with boost again), the mouse is not recognized. Similarly, if instead of a mouse I connect a wall charger (to charge after draining the battery with the mouse), the charging will not start (no notification, that is). The solution is to unplug the charger and plug it in again. After that, reconnecting the mouse (after charging the battery) works. Note, however, that this seems to be happening regardless of the battery level. Is there a way for me to start charging or reconnect the mouse without having to do plug and unplug a charger first?

pali 2013-06-19 08:00

Re: Announce: USB Mode (easy switch to USB host mode) [in Extras-Devel]
 
@chill: I do not know. There are HW problems which caused that Nokia told us that there is no way for host mode on n900. But these problems needs (SW) hacks for fixing and I think there is no other way to change something.... If your usb device working if you do something (e.g. plug/unplug...) then you can be happy that it working!

chill 2013-06-19 20:52

Re: Announce: USB Mode (easy switch to USB host mode) [in Extras-Devel]
 
1 Attachment(s)
Thanks for your reply. Here is another observation. I can put the device into a "Peripheral mode with boost". It's not documented on the first page, was it intended? It doesn't seem like on would want peripheral with boost. I did it by connecting the mouse, going back to peripheral and trying unsuccessfully to reconnect. The device switched from Host mode with boost to Peripheral mode with boost on its own after I exited the program. Screenshot attached.

pali 2013-06-20 07:20

Re: Announce: USB Mode (easy switch to USB host mode) [in Extras-Devel]
 
this looks like a bug, peripheral mode with boost should not be possible to enable

Estel 2013-06-20 12:27

Re: Announce: USB Mode (easy switch to USB host mode) [in Extras-Devel]
 
Pali, if you remember, I reported the same half a year ago (or even more) ;)

chill 2013-07-27 03:03

Re: Announce: USB Mode (easy switch to USB host mode) [in Extras-Devel]
 
Quote:

Originally Posted by pali (Post 1353131)
@chill: I do not know. There are HW problems which caused that Nokia told us that there is no way for host mode on n900. But these problems needs (SW) hacks for fixing and I think there is no other way to change something.... If your usb device working if you do something (e.g. plug/unplug...) then you can be happy that it working!

Actually, the unplug/plug workaround is necessary even if you don't plug in a device. Just go to host mode with boost (BME is stopped), then back to peripheral with charging (BME is started), and when you plug in a charger, it won't charge unless you unplug it again. Sorry to sound pesky...I am kind of reluctant to keep plugging/unplugging into my non-reinforced USB slot on the N900.


All times are GMT. The time now is 16:52.

vBulletin® Version 3.8.8