maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Thread for problems getting USB hostmode working. (https://talk.maemo.org/showthread.php?t=65570)

obhishap 2010-12-26 15:33

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by jurop88 (Post 904626)
Hi Obhishap,
what does ls /dev/sd* outputs?



Sorry I am not getting it. Did you mean the list in /dev ??? if yes, then there is no sd or sda1 exist in dev directory. Looking ahead to your reply. Thanks.

BTW, I saw a broken symlink in the dev directory which is named "core".

jurop88 2010-12-26 16:00

Re: Thread for problems getting USB hostmode working.
 
I am not a kernel developer but the broken symlink shouldn't matter.
It sounds strange you don't have any /dev/sda kind of file, the log says clearly the kernel is going to file your verbatim under /dev/sda...
Just to be sure, did you check the existance of /dev/sda AFTER having enumerated your verbatim usb stick? The device is created on the fly by the kernel, it is not a dir you have to create

obhishap 2010-12-26 16:16

Re: Thread for problems getting USB hostmode working.
 
Got it working man thanks a lot. I checked for sda instead of sda1 and I got it right a way....Now I am so happy. Thanks jurop88 and all of you who helped me.

Temporal 2010-12-29 16:31

Re: Thread for problems getting USB hostmode working.
 
Hi everybody,

something strange is happening here:
A while ago I asked about a problem that happened when moving files bigger than 200mb (and promptly answered by joerg that is a maemo bug).

And I had another problem of time while working with h-e-n: sometime after started, it said in dmesg something like usb1:suspend, and then the link was lost. I use to use the hub (cp-h420mp) - the only one I have that works, all my other [cheap] self powered hubs just won't - because direct link between mouse-n900 just doesn't work.

And the problem with self suspend was true UNTIL I plugged together another gadget called Gemei x760+, that I planed to use as a SD reader (and that have another memory with 4GB that isn't auto mounted but is easy to mount - it is recognized).

And the problem with the files of more than 200mb was solved too!! Now I can move and copy anything without problems and having to run fdisk to fix things.

Is there any explanation for that?

Thanks.

Dark_Angel85 2010-12-30 07:12

Re: Thread for problems getting USB hostmode working.
 
my problem:

Trying to find that darn USB female-female converter....

Darn shops ain't got nothin in em

deny_winarto 2010-12-31 05:35

Re: Thread for problems getting USB hostmode working.
 
Hello, i'm getting this error when running male to female cable with USB Visipro 8GB

Quote:


[31587.611602] hub 1-0:1.0: port 1 not reset yet, waiting 50ms
[31587.674224] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31587.885101] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31588.096008] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31588.096069] hub 1-0:1.0: port_wait_reset: err = -16
[31588.096099] hub 1-0:1.0: port 1 not enabled, trying reset again...
[31588.306884] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31588.517913] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31588.728942] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31588.728973] hub 1-0:1.0: port_wait_reset: err = -16
[31588.729003] hub 1-0:1.0: port 1 not enabled, trying reset again...
[31588.939849] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31589.150878] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31589.361724] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31589.361755] hub 1-0:1.0: port_wait_reset: err = -16
[31589.361785] hub 1-0:1.0: port 1 not enabled, trying reset again...
[31589.572662] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31589.783599] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31589.994476] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31589.994537] hub 1-0:1.0: port_wait_reset: err = -16
[31589.994567] hub 1-0:1.0: port 1 not enabled, trying reset again...
[31590.205474] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31590.416473] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31590.627441] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31590.627471] hub 1-0:1.0: port_wait_reset: err = -16
[31590.627502] hub 1-0:1.0: port 1 not enabled, trying reset again...
[31590.627532] hub 1-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[31590.627624] hub 1-0:1.0: logical disconnect on port 1
[31590.627716] hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000
[31590.627777] hub 1-0:1.0: port 1, status 0501, change 0000, 480 Mb/s
[31590.627807] usb 1-1: USB disconnect, address 24
[31590.627899] usb 1-1: unregistering device
[31590.627929] usb 1-1: usb_disable_device nuking all URBs
[31590.627960] usb 1-1: unregistering interface 1-1:1.0
[31590.663116] scsi 4:0:0:0: rejecting I/O to dead device
[31590.663269] scsi 4:0:0:0: rejecting I/O to dead device
[31590.663391] scsi 4:0:0:0: rejecting I/O to dead device
[31590.663482] scsi 4:0:0:0: rejecting I/O to dead device
[31590.663513] scsi 4:0:0:0: [sda] READ CAPACITY failed
[31590.663543] scsi 4:0:0:0: [sda] Result: hostbyte=0x01 driverbyte=0x00
[31590.663604] scsi 4:0:0:0: [sda] Sense not available.
[31590.663665] scsi 4:0:0:0: rejecting I/O to dead device
[31590.663757] scsi 4:0:0:0: [sda] Write Protect is off
[31590.663787] scsi 4:0:0:0: [sda] Mode Sense: 00 00 00 00
[31590.663818] scsi 4:0:0:0: [sda] Assuming drive cache: write through
[31590.663909] scsi 4:0:0:0: rejecting I/O to dead device
[31590.664001] scsi 4:0:0:0: rejecting I/O to dead device
[31590.664093] scsi 4:0:0:0: rejecting I/O to dead device
[31590.664184] scsi 4:0:0:0: rejecting I/O to dead device
[31590.664245] scsi 4:0:0:0: [sda] READ CAPACITY failed
[31590.664276] scsi 4:0:0:0: [sda] Result: hostbyte=0x01 driverbyte=0x00
[31590.664306] scsi 4:0:0:0: [sda] Sense not available.
[31590.664367] scsi 4:0:0:0: rejecting I/O to dead device
[31590.664428] scsi 4:0:0:0: [sda] Write Protect is off
[31590.664459] scsi 4:0:0:0: [sda] Mode Sense: 00 00 00 00
[31590.664489] scsi 4:0:0:0: [sda] Assuming drive cache: write through
[31590.667572] usb 1-1:1.0: uevent
[31590.668914] usb 1-1: uevent
[31590.729156] hub 1-0:1.0: port 1 not reset yet, waiting 50ms
[31590.791351] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31591.002227] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31591.214202] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31591.214233] hub 1-0:1.0: port_wait_reset: err = -16
[31591.214263] hub 1-0:1.0: port 1 not enabled, trying reset again...
[31591.424163] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31591.635040] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31591.846008] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31591.846038] hub 1-0:1.0: port_wait_reset: err = -16
[31591.846038] hub 1-0:1.0: port 1 not enabled, trying reset again...
[31592.056945] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31592.268066] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31592.478973] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31592.479003] hub 1-0:1.0: port_wait_reset: err = -16
[31592.479034] hub 1-0:1.0: port 1 not enabled, trying reset again...
[31592.689849] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31592.900787] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31593.111724] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31593.111755] hub 1-0:1.0: port_wait_reset: err = -16
[31593.111785] hub 1-0:1.0: port 1 not enabled, trying reset again...
[31593.322662] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31593.533599] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31593.744598] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31593.744628] hub 1-0:1.0: port_wait_reset: err = -16
[31593.744659] hub 1-0:1.0: port 1 not enabled, trying reset again...
[31593.744689] hub 1-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[31593.806915] hub 1-0:1.0: port 1 not reset yet, waiting 50ms
[31593.869384] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31594.080474] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31594.291412] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31594.291442] hub 1-0:1.0: port_wait_reset: err = -16
[31594.291473] hub 1-0:1.0: port 1 not enabled, trying reset again...
[31594.502349] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31594.713287] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31594.924285] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31594.924316] hub 1-0:1.0: port_wait_reset: err = -16
[31594.924346] hub 1-0:1.0: port 1 not enabled, trying reset again...
[31595.135162] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31595.346130] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31595.556945] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31595.557006] hub 1-0:1.0: port_wait_reset: err = -16
[31595.557037] hub 1-0:1.0: port 1 not enabled, trying reset again...
[31595.768005] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31595.978912] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31596.189910] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31596.189941] hub 1-0:1.0: port_wait_reset: err = -16
[31596.189971] hub 1-0:1.0: port 1 not enabled, trying reset again...
[31596.400848] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31596.611724] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31596.822540] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31596.822570] hub 1-0:1.0: port_wait_reset: err = -16
[31596.822601] hub 1-0:1.0: port 1 not enabled, trying reset again...
[31596.822631] hub 1-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[31596.885192] hub 1-0:1.0: port 1 not reset yet, waiting 50ms
[31596.947784] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31597.158599] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31597.369415] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31597.369445] hub 1-0:1.0: port_wait_reset: err = -16
[31597.369476] hub 1-0:1.0: port 1 not enabled, trying reset again...
[31597.580474] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31597.791412] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31598.002410] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31598.002441] hub 1-0:1.0: port_wait_reset: err = -16
[31598.002471] hub 1-0:1.0: port 1 not enabled, trying reset again...
[31598.213348] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31598.424346] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31598.635162] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31598.635192] hub 1-0:1.0: port_wait_reset: err = -16
[31598.635223] hub 1-0:1.0: port 1 not enabled, trying reset again...
[31598.846069] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31599.056945] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31599.268157] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31599.268188] hub 1-0:1.0: port_wait_reset: err = -16
[31599.268218] hub 1-0:1.0: port 1 not enabled, trying reset again...
[31599.479095] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31599.689849] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31599.900787] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31599.900817] hub 1-0:1.0: port_wait_reset: err = -16
[31599.900848] hub 1-0:1.0: port 1 not enabled, trying reset again...
[31599.900878] hub 1-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[31599.963287] hub 1-0:1.0: port 1 not reset yet, waiting 50ms
[31600.025878] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31600.236724] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31600.447662] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31600.447692] hub 1-0:1.0: port_wait_reset: err = -16
[31600.447723] hub 1-0:1.0: port 1 not enabled, trying reset again...
[31600.658660] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31600.869537] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31601.080352] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31601.080383] hub 1-0:1.0: port_wait_reset: err = -16
[31601.080413] hub 1-0:1.0: port 1 not enabled, trying reset again...
[31601.291412] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31601.502349] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31601.713287] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31601.713317] hub 1-0:1.0: port_wait_reset: err = -16
[31601.713348] hub 1-0:1.0: port 1 not enabled, trying reset again...
[31601.924224] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31602.135162] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31602.346099] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31602.346130] hub 1-0:1.0: port_wait_reset: err = -16
[31602.346160] hub 1-0:1.0: port 1 not enabled, trying reset again...
[31602.557037] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31602.768096] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31602.978912] hub 1-0:1.0: port 1 not reset yet, waiting 200ms
[31602.978942] hub 1-0:1.0: port_wait_reset: err = -16
[31602.978973] hub 1-0:1.0: port 1 not enabled, trying reset again...
[31602.979003] hub 1-0:1.0: Cannot enable port 1. Maybe the USB cable is bad?
[31602.979095] hub 1-0:1.0: unable to enumerate USB device on port 1
[31604.978973] hub 1-0:1.0: hub_suspend
[31604.979034] usb usb1: bus auto-suspend
[31844.648956] usb usb1: usb resume
[31844.666229] hub 1-0:1.0: hub_resume
[31844.666290] hub 1-0:1.0: port 1: status 0101 change 0001
[31844.775817] hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000
[31844.775909] hub 1-0:1.0: port 1, status 0101, change 0000, 12 Mb/s
[31844.900878] usb 1-1: new high speed USB device using musb_hdrc and address 29
[31845.025787] usb 1-1: device descriptor read/64, error -19
[31845.260162] usb 1-1: device descriptor read/64, error -19
[31845.494537] usb 1-1: new high speed USB device using musb_hdrc and address 30
[31845.619689] usb 1-1: device descriptor read/64, error -19
[31845.854003] usb 1-1: device descriptor read/64, error -19
[31846.088378] usb 1-1: new high speed USB device using musb_hdrc and address 31
[31846.510131] usb 1-1: device not accepting address 31, error -19
[31846.635253] usb 1-1: new high speed USB device using musb_hdrc and address 32
[31847.057006] usb 1-1: device not accepting address 32, error -19
[31847.057098] hub 1-0:1.0: unable to enumerate USB device on port 1
[31847.057159] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[31847.057220] hub 1-0:1.0: port 1 enable change, status 00000501
[31849.767883] hub 1-0:1.0: hub_suspend
[31849.767944] usb usb1: bus auto-suspend
[31934.570831] usb usb1: usb resume
[31934.588623] hub 1-0:1.0: hub_resume
[31934.588775] hub 1-0:1.0: port 1: status 0101 change 0001
[31934.697723] hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000
[31934.697814] hub 1-0:1.0: port 1, status 0101, change 0000, 12 Mb/s
[31934.822570] usb 1-1: new high speed USB device using musb_hdrc and address 33
[31934.973297] usb 1-1: default language 0x0409
[31934.975708] usb 1-1: uevent
[31934.975921] usb 1-1: usb_probe_device
[31934.975952] usb 1-1: configuration #1 chosen from 1 choice
[31934.979858] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[31934.980194] usb 1-1:1.0: uevent
[31934.980468] libusual 1-1:1.0: usb_probe_interface
[31934.980529] libusual 1-1:1.0: usb_probe_interface - got id
[31934.980712] usb-storage 1-1:1.0: usb_probe_interface
[31934.980773] usb-storage 1-1:1.0: usb_probe_interface - got id
[31935.075317] scsi5 : SCSI emulation for USB Mass Storage devices
[31935.101623]
/home/builder2/maemo-fremantle-armel-extras-devel/work/kernel-power-2.6.28/drivers/usb/core/inode.c:
creating file '033'
[31935.102325] usb 1-1: New USB device found, idVendor=0951, idProduct=1624
[31935.102386] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[31935.102416] usb 1-1: Product: DataTraveler G2
[31935.102447] usb 1-1: Manufacturer: Kingston
[31935.102478] usb 1-1: SerialNumber: 001372982918A961A62D0044
[31935.102508] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[31935.102600] hub 1-0:1.0: port 1 enable change, status 00000503
[31935.109130] usb-storage: device found at 33
[31935.109161] usb-storage: waiting for device to settle before scanning
[31940.105743] usb-storage: device scan complete
[31940.166442] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[31940.228912] usb 1-1: reset high speed USB device using musb_hdrc and address 33
[31940.291534] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[31940.439910] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[31940.502349] usb 1-1: reset high speed USB device using musb_hdrc and address 33
[31940.564788] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[31940.713378] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[31940.776245] usb 1-1: reset high speed USB device using musb_hdrc and address 33
[31940.838348] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[31940.986846] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[31941.049133] usb 1-1: reset high speed USB device using musb_hdrc and address 33
[31941.111755] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002</p>
Could anyone help me?
Any known solution for this?

peterleinchen 2010-12-31 15:28

Re: Thread for problems getting USB hostmode working.
 
Hey Dark_Angel.

I do not know , where You are from, but check this out:
http://cgi.ebay.de/USB-2-0-Adapter-A...item4aa75879a0
or
http://cgi.ebay.de/USB-2-0-Adapter-B...583254572#shId

Both send to Germany for free. And both have good reputation (from me ;)).


@all
Wouldn't it be much more convenient for all to put the outputs of dmesg or similar into a small txt file and attach it with the post? Instead of "spamming" the thread with such long listings, making it hard to read?

blue_led 2010-12-31 15:51

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by WhiteWolf (Post 894174)
The problem we suffer is to mount USB drives. The script does not work.

Always properly enumerate my devices.

Completely assembled manually.


please read post #604 in hostmode thread. the problem is solved

joerg_rw 2010-12-31 20:17

Re: Thread for problems getting USB hostmode working.
 
Hi Deny_winarto,
this looks like your cable isn't good for highspeed. Try a better cable, or try connecting with fullspeed.

cheers
jOERG

deny_winarto 2011-01-01 05:22

Re: Thread for problems getting USB hostmode working.
 
@peterleinchen : sorry I'll do that next time

@joerg_rw ; thanks, so what cable/adapter combination would you recommend? I bought that cable because someone on the other thread managed to get it working on a HDD.

http://talk.maemo.org/showpost.php?p...&postcount=553

and what actually determines the success rate of hostmode? is it the quality of male pinout or the female pinout?


All times are GMT. The time now is 15:23.

vBulletin® Version 3.8.8