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)

joerg_rw 2011-10-25 21:57

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

Originally Posted by Estel (Post 1111927)
I've observed other thing, while using charging during hostmode. Randomly, devices connected to USB and powered externally, may become "unavailable" - only re-enabling vbus and enumerating (and boostoff/charge, if we want to charge while hostmode again) fixes that. It's hard to reproduce - sometimes, it happens few times during a 30 minutes, other day You don't get any problems for hours.

I've experienced this using very low-current devices (like generic USB keyboard), and on very reliable power sources - in fact, tested this with whole range, from regular 5V 2A ones, through stabilized ones, to ATX's modified to serve as power sources.

Talking about keyboard, when it happens, no LED's (like caps lock) works, device is literally disconnected on software level.

joerg_rw, any clues? It isn't high priority problem (well, unless it happens also with externally powered HDDs, during file transfer...) and I can live with that. Still, I would like to make it more reliable, if it's possible.

// Edit

Of course everything was done through Y-cable, so faulty powered HUB is filtered out.


Might be related to bus suspend. Enable full debugging (sorry I can't recall off top of my head what you may want to do besides dmesg -n 6 or sth - even this might be nonsense) and see if you can find correlations between the moment the kbd becomes unavailable and any msgs in syslog/dmesg. Basically I'd think USB bus shouldn't suspend, but seems it does and maybe this causes peripheral to not come back up unless power gets cycled, or even musb_hdrc freaks out or locks up.
logs, logs, logs - or there's just so much that can be done.

thanks for reporting
/j

blue_led 2011-10-25 22:20

Re: Thread for problems getting USB hostmode working.
 
check for consecutive
twl4030_usb .......HW_CONDITIONS ... LINK 1
twl4030_usb .......HW_CONDITIONS ... LINK 2

in dmesg list.
this mean drop ( glitch ) of vbus below a valid value and phy will ... "go in the bush"
without vbus, the phy loose host mode, resulting hadware and software level missfit

Estel 2011-10-26 04:11

Re: Thread for problems getting USB hostmode working.
 
@joerg_rw
Will do, and report back

Quote:

Originally Posted by blue_led (Post 1113652)
check for consecutive
twl4030_usb .......HW_CONDITIONS ... LINK 1
twl4030_usb .......HW_CONDITIONS ... LINK 2

in dmesg list.
this mean drop ( glitch ) of vbus below a valid value and phy will ... "go in the bush"
without vbus, the phy loose host mode, resulting hadware and software level missfit

sorry if I'm gonna say total nonsense, but isn't vbus value drop irrelevant, if I'm using external power source, with boostoff executed? Or we're talking about totally different things, and I'm indeed talking nonsense?

/Estel

joerg_rw 2011-10-27 00:34

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

Originally Posted by Estel (Post 1113731)
sorry if I'm gonna say total nonsense, but isn't vbus value drop irrelevant, if I'm using external power source, with boostoff executed? Or we're talking about totally different things, and I'm indeed talking nonsense?

/Estel

Well, yes and no. Yes, vbus value (actually voltage) drop should not happen when you're on a stable external power source. No, it's not irrelevant as it actually will mess up things if voltage drops nevertheless (for whatever reasons), and you can check for that in the way blue_led explained.

/j

@mod: could you move the last 3 posts to http://talk.maemo.org/showthread.php?t=65232 please? Thanks! :-D

hirenpatel 2011-10-29 03:16

Re: Thread for problems getting USB hostmode working.
 
after installing CSSU, H-E-N stops working

Estel 2011-10-29 04:10

Re: Thread for problems getting USB hostmode working.
 
Negative. No problem with HEN and CSSU here.

blue_led 2011-10-31 18:40

Re: Thread for problems getting USB hostmode working.
 
1 Attachment(s)
i compiled cd drivers for power_kernel_47
cdrom.ko, sr_mod.ko ( see attachment )

generic how to http://wiki.maemo.org/USB_CDROM

sg.ko is not mandatory
cdrom node is /dev/sr0

mount /dev/sr0 /media/cdrom -t iso9660
or mount /dev/sr0 /cdrom -t iso9660 ( alternate location, work fine )

Estel 2011-12-20 04:50

Re: Thread for problems getting USB hostmode working.
 
Using kp49 and HEN with augmented booston by joerg_rw, I've tried connecting my DVD-RW writer (desktop PC internal one), via (S)ATA to USB adapter (with external power source for writer). HEN recognizes and enumerates device without problem (latest dmesg message is:
Code:

[ 9841.854827] scsi 13:0:0:0: CD-ROM            ATAPI    DVD DD 2X16X4X16 G7H9 PQ: 0 ANSI: 0
Ho ever, I got troubles mounting it. Of course, auto-mounting doesn't work, but while trying to mount it manually, I can't find sr* under /dev/. So, basically, I've no idea what to mount.

Also, unlike - for example - pendrives and HDD's, dmesg doesn't show any info about /dev/ (after connecting pendrive, one line says "[sda] sda1" or something like that.

Any hints, how to get access to my data on optical drive, connected via such setup?

---

Additional question, hence I left it alone until I can actually get working read access - any way of using writing capabilities of DVD recorder (via program under Easy Debian, for example - but, what about drivers? I've no idea, if current kernel-modules support writing).

Thanks in advance.

/Estel

// Edit

It turned out, that using kp49, i don't have cdrom.ko, sr_mod.ko and sg.ko modules (same situation, as with kp47). thanks for blue_led about pointing me about checking that. Will leave info in kp49 thread.

Mr Wolf 2012-01-06 11:49

Re: Thread for problems getting USB hostmode working.
 
Hi to all! I have a problem mounting hard drives with 2 partitions (both NTFS). They're not recognized.
Is it a common issue?

botski 2012-01-08 02:00

Re: Thread for problems getting USB hostmode working.
 
hi. am newbie guys. can anyone help me out?


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

vBulletin® Version 3.8.8