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)

emotion 2013-02-01 20:03

Re: Announce: USB Mode (easy switch to USB host mode)
 
Thanks Pali for your advice. Now I read my HD. Great application!!!

pali 2013-02-01 20:24

Re: Announce: USB Mode (easy switch to USB host mode)
 
@emotion: Where was problem?

emotion 2013-02-01 20:43

Re: Announce: USB Mode (easy switch to USB host mode)
 
the problem was I very fast between vbus to enumerate. Now I wait 10 seconds, then press mount, maybe twice between 5 seconds and works for me...

pali 2013-02-01 20:51

Re: Announce: USB Mode (easy switch to USB host mode)
 
Note that automouting in usbmode does not working if you do not have CSSU installed.

emotion 2013-02-01 20:58

Re: Announce: USB Mode (easy switch to USB host mode)
 
Yes I have installed kernel power v51(r1), CSSU stable, mecledpattern and deb package usb mode

pali 2013-02-01 21:19

Re: Announce: USB Mode (easy switch to USB host mode)
 
@emotion:

Can you provide output of dmesg when using usmode?

And can you play more with usbmode? I'd like to set working timeouts between enumerate, vbus & mount.

All timeouts (in seconds) are in script /usr/sbin/usbmode.sh

You can find this part in that that file:
Code:

                charger_mode none
                sleep 1

  ...

                charger_mode boost
                sleep 4

                usb_enum
                sleep 1

Try to increase sleep timeouts if that helps.

pali 2013-02-03 14:22

Re: Announce: USB Mode (easy switch to USB host mode)
 
Now I changed sleep timeout after usb_enum from 1 to 3. This should fix some problems. New deb package is on same location.

emotion 2013-02-03 20:20

Re: Announce: USB Mode (easy switch to USB host mode)
 
1 Attachment(s)
Quote:

Originally Posted by pali (Post 1319983)
@emotion:

Can you provide output of dmesg when using usmode?

And can you play more with usbmode? I'd like to set working timeouts between enumerate, vbus & mount.

All timeouts (in seconds) are in script /usr/sbin/usbmode.sh

You can find this part in that that file:
Code:

                charger_mode none
                sleep 1

  ...

                charger_mode boost
                sleep 4

                usb_enum
                sleep 1

Try to increase sleep timeouts if that helps.

this is my output of dmesg when using usmode...

pali 2013-02-03 20:27

Re: Announce: USB Mode (easy switch to USB host mode)
 
So your HDD is correctly detected.

Code:

[  368.207550] scsi 0:0:0:0: Direct-Access    OEM      Ext Hard Disk    0000 PQ: 0 ANSI: 5
[  373.025085] sd 0:0:0:0: [sda] 244008886 4096-byte hardware sectors: (999 GB/930 GiB)
[  373.046905] sd 0:0:0:0: [sda] Write Protect is off
[  373.046966] sd 0:0:0:0: [sda] Mode Sense: 10 00 00 00
[  373.046997] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  373.085449] sd 0:0:0:0: [sda] 244008886 4096-byte hardware sectors: (999 GB/930 GiB)
[  373.107543] sd 0:0:0:0: [sda] Write Protect is off
[  373.107604] sd 0:0:0:0: [sda] Mode Sense: 10 00 00 00
[  373.107635] sd 0:0:0:0: [sda] Assuming drive cache: write through


emotion 2013-02-03 20:36

Re: Announce: USB Mode (easy switch to USB host mode)
 
yes pali, only I should wait 10 seconds between vbus and enumerate


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

vBulletin® Version 3.8.8