maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   [Announce] USB hostmode beta release (https://talk.maemo.org/showthread.php?t=65232)

joerg_rw 2011-09-13 08:20

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by biketool (Post 1087244)
OK since you have it working and tested what is the short path to the fix? I tried the new booston and that didn't fix it, H-E-N no connect problem started with new KP48. Thanks

[2011-09-13 10:17:48] <psycho_oreos> power48 from extras-kernel? I have it working on my other N900 (with cssu maemo15 installed)
[2011-09-13 10:19:02] <psycho_oreos> yes, I have sandisk 32GB flash drive attached to my other N900 and it is working.. the flash drive is mounted and I could see the contents

/j

biketool 2011-09-13 08:24

Re: [Announce] USB hostmode beta release
 
Joerg,
First thanks for the work both here and on openmoko.
So new booston linked upthread is all that is required to get H-E-N working on KP48?

tuxsavvy 2011-09-13 08:44

Re: [Announce] USB hostmode beta release
 
haha I actually made an epic typo.. I meant extras-devel _not_extras-kernel. There's no such repository as extras-kernel and I'm sure t.m.o. regulars will pick that up in no time :)

joerg_rw 2011-09-13 10:08

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by biketool (Post 1087332)
Joerg,
First thanks for the work both here and on openmoko.
So new booston linked upthread is all that is required to get H-E-N working on KP48?

augmented booston is completely unrelated to PK48
/j

biketool 2011-09-13 11:27

Re: [Announce] USB hostmode beta release
 
So this is what I am getting now, I downgraded to Nokia kernel reboot and installed KP48 reboot, reinstalled HEN. I have two host cables and the flash drive works on my laptop. Previously H-E-N worked great, I use it quite a bit when cycling to upload pics form my camera SD card.
I am sure it is something simple but I don't know much about USB below the surface.
Code:

[  125.193084] usb usb1: usb resume
[  125.213806] hub 1-0:1.0: hub_resume
[  125.213867] hub 1-0:1.0: port 1: status 0101 change 0001
[  125.323211] hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000
[  125.323272] hub 1-0:1.0: port 1, status 0101, change 0000, 12 Mb/s
[  125.448242] usb 1-1: new high speed USB device using musb_hdrc and address 2
[  125.573242] usb 1-1: device descriptor read/64, error -71
[  125.807647] usb 1-1: device descriptor read/64, error -71
[  126.042114] usb 1-1: new high speed USB device using musb_hdrc and address 3
[  126.167541] usb 1-1: device descriptor read/64, error -71
[  126.401489] usb 1-1: device descriptor read/64, error -71
[  126.635803] usb 1-1: new high speed USB device using musb_hdrc and address 4
[  127.057739] usb 1-1: device not accepting address 4, error -71
[  127.182617] usb 1-1: new high speed USB device using musb_hdrc and address 5
[  127.604553] usb 1-1: device not accepting address 5, error -71
[  127.604705] hub 1-0:1.0: unable to enumerate USB device on port 1
[  127.604766] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[  127.604827] hub 1-0:1.0: port 1 enable change, status 00000501
[  130.224121] hub 1-0:1.0: hub_suspend
[  130.224212] usb usb1: bus auto-suspend
[  130.224243] musb_bus_suspend 2266: trying to suspend as a_host is_active=1
[  130.224304] usb usb1: bus suspend fail, err -16
[  130.224334] hub 1-0:1.0: hub_resume
[  130.225006] hub 1-0:1.0: port 1: status 0501 change 0000
[  130.225128] hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000
[  130.225189] hub 1-0:1.0: port 1, status 0501, change 0000, 480 Mb/s
[  130.346801] usb 1-1: new high speed USB device using musb_hdrc and address 6
[  130.471740] usb 1-1: device descriptor read/64, error -71
[  130.706115] usb 1-1: device descriptor read/64, error -71
[  130.940551] usb 1-1: new high speed USB device using musb_hdrc and address 7
[  131.065521] usb 1-1: device descriptor read/64, error -71
[  131.299896] usb 1-1: device descriptor read/64, error -71
[  131.534240] usb 1-1: new high speed USB device using musb_hdrc and address 8
[  131.956085] usb 1-1: device not accepting address 8, error -71
[  132.081329] usb 1-1: new high speed USB device using musb_hdrc and address 9
[  132.502960] usb 1-1: device not accepting address 9, error -71
[  132.503082] hub 1-0:1.0: unable to enumerate USB device on port 1
[  132.503143] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[  132.503204] hub 1-0:1.0: port 1 enable change, status 00000501
[  135.222015] hub 1-0:1.0: hub_suspend
[  135.222045] usb usb1: bus auto-suspend
[  135.222076] musb_bus_suspend 2266: trying to suspend as a_host is_active=1
[  135.222106] usb usb1: bus suspend fail, err -16
[  135.222106] hub 1-0:1.0: hub_resume
[  135.222167] hub 1-0:1.0: port 1: status 0501 change 0000
[  135.222229] hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000
[  135.222259] hub 1-0:1.0: port 1, status 0501, change 0000, 480 Mb/s
[  135.346740] usb 1-1: new high speed USB device using musb_hdrc and address 10
[  135.471740] usb 1-1: device descriptor read/64, error -71
[  135.706146] usb 1-1: device descriptor read/64, error -71
[  135.940429] usb 1-1: new high speed USB device using musb_hdrc and address 11
[  136.065429] usb 1-1: device descriptor read/64, error -71
[  136.300048] usb 1-1: device descriptor read/64, error -71
[  136.534301] usb 1-1: new high speed USB device using musb_hdrc and address 12
[  136.955963] usb 1-1: device not accepting address 12, error -71
[  137.081054] usb 1-1: new high speed USB device using musb_hdrc and address 13
[  137.502990] usb 1-1: device not accepting address 13, error -71
[  137.503143] hub 1-0:1.0: unable to enumerate USB device on port 1
[  137.503204] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[  137.503265] hub 1-0:1.0: port 1 enable change, status 00000501
[  140.221618] hub 1-0:1.0: hub_suspend
[  140.221679] usb usb1: bus auto-suspend
[  140.221679] musb_bus_suspend 2266: trying to suspend as a_host is_active=1
[  140.221710] usb usb1: bus suspend fail, err -16
[  140.221740] hub 1-0:1.0: hub_resume
[  140.221771] hub 1-0:1.0: port 1: status 0501 change 0000
[  140.221832] hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000
[  140.221862] hub 1-0:1.0: port 1, status 0501, change 0000, 480 Mb/s
[  140.346740] usb 1-1: new high speed USB device using musb_hdrc and address 14
[  140.471710] usb 1-1: device descriptor read/64, error -71
[  140.706024] usb 1-1: device descriptor read/64, error -71


Estel 2011-09-13 14:58

Re: [Announce] USB hostmode beta release
 
H-E-N works for me on KP48 with or without new booston (latest one). What You've experiencing seems to me as thing that I called unoficially "generic hostmode error", few posts ago.

Also, this may be "false alarm", but I don't see any indication of vboost on in Your log (tw4030_usb thing).

blue_led 2011-09-13 21:21

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by Estel (Post 1086924)
Huge thanks joerg_rw, but could You tell me - it was related to my device, or every "generic" user should get this problem? I.E, it was not reported, cause no one dared to test it before, or it's just fault of my configuration?

// Edit

with updated booston, hostmode works like a charm. Ho ever, for some reasons LED indicator doesn't show that device is in vboost mode - no matter if it's locked, unlocked but screen off etc.

I got correct (otherwise working, tested with LED Patterns editor) PatternVboost. It seems that it's just not used.

Anyway, here is my pattern, in case someone may find any error I wasn't able to spot:
Code:

PatternVboost=35;4;0;Rb;9d8040004817e0044807431e7e007e0042000000;9d804000e080421e431e0000

make sure you have added ;PatternVboost at the end of LEDPatterns=............. line
and stop and restart mce

Estel 2011-09-14 01:36

Re: [Announce] USB hostmode beta release
 
You're perfectly right blue_led, and it was my user fault (i've discovered it just few minutes ago, thanks to little talk with Pali on irc, about charging while hostmode is on ;) ) I've just forget to add ;PatternVboost to LEDPatterns=

After fixing that, LEDPattern works great, so thanks for that feature joerg_rw, and sorry for false alarm about this.

biketool 2011-09-14 05:58

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by Estel (Post 1087555)
Also, this may be "false alarm", but I don't see any indication of vboost on in Your log (tw4030_usb thing).

I do get power to the USB gadgets, lights come on and flash in patterns similar to when H-E-N worked, I suspect that it falls apart at the end of enumerate but like I said I don't know much about lower levels of the USB protocols.

joerg_rw 2011-09-14 08:01

Re: [Announce] USB hostmode beta release
 
I like to recommend a tool: http://maemo.org/packages/view/mceledpattern/ :-D

Code:

IroN900:~# mceledpattern --help
Usage:
  mceledpattern add[_vibra] <pattern_name> <pattern>
  mceledpattern remove[_vibra] <pattern_name>

  To replace existing pattern use add, to restore replaced
  pattern back to previous value use remove
IroN900:~#

/j


All times are GMT. The time now is 04:59.

vBulletin® Version 3.8.8