Re: USB Host Mode

Kevin <lists-rlw6wC9k61x8UrSeD/[email protected]> Thu, 21 Dec 2006 08:22:07 -0500
Newsgroups gmane.comp.handhelds.openzaurus.user
Message-ID <[email protected]>
Justin Patrin wrote:
> On 12/20/06, Kevin <lists-rlw6wC9k61x8UrSeD/[email protected]> wrote:
>> Step 1 of:
>> http://wiki.openzaurus.org/HowTos/UsbEthernetAdapterSupportOnUsbHost
>> reads:
>> "make sure that USB host mode is activated"
>>
>> How do I do that?
>>
>> When I ask in #zaurus, I get told that I need to go back to the Sharp ROM
>> which I suspect is not true.
>>
> 
> Try #openzaurus.

Ok.  Thanks.  Didn't know about #openzaurus

> 
> Do a lsmod after you plug in your host cable and device. See what
> modules are running.

This is the list of modules from before I plug in the device:

Module                  Size  Used by
uinput                  7680  1
ohci_hcd               20100  0
usbcore               113740  2 ohci_hcd
mousedev                9948  0
rfcomm                 35576  2
pxaficp_ir              9440  0
ircomm_tty             21352  0
ircomm                 11940  1 ircomm_tty
irda                  116840  3 pxaficp_ir,ircomm_tty,ircomm
ipv6                  258812  10
hidp                   12736  0
l2cap                  22724  6 rfcomm,hidp
bluetooth              46044  5 rfcomm,hidp,l2cap
snd_soc_spitz           5552  0
snd_soc_pxa2xx_i2s      3800  1 snd_soc_spitz
snd_soc_wm8750         17956  1 snd_soc_spitz
snd_soc_pxa2xx          4736  1 snd_soc_spitz
snd_soc_core           28288  3 snd_soc_spitz,snd_soc_wm8750,snd_soc_pxa2xx
snd_pcm_oss            56064  0
snd_pcm                91848  3 snd_soc_pxa2xx,snd_soc_core,snd_pcm_oss
snd_timer              23172  1 snd_pcm
snd_page_alloc          6792  1 snd_pcm
snd_mixer_oss          15296  1 snd_pcm_oss
snd                    51192  7
snd_soc_spitz,snd_soc_wm8750,snd_soc_core,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore               8324  1 snd

And the list is the same afterwards.

> There are special usb host modules.

The only module file I have that looks appropriate is this one:
/lib/modules/2.6.16/kernel/drivers/usb/host/ohci-hcd.ko
which seems to be already inserted into the kernel before I plug in the
device.  (I rebooted the Z before doing this, just to make sure I had a
clean slate.)

So is that how one activates USB host mode?  By inserting a module?  Is this
one that I listed here the right module?

> I believe
> udev already has rules in place to take care of this. Then run dmesg
> and check its output. If you're over the power limit it *should* say
> something.

There's nothing in dmesg output about a power limit, and only two lines that
get added to the dmesg buffer after inserting the device:

usb 1-2: new full speed USB device using pxa27x-ohci and address X
usb 1-2: no configuration chosen from 1 choice

X here starts at 2 and is incremented every time I unplug (which gives me
dmesg output below) and replug in the device.

usb 1-2: USB disconnect, address X

where X here is the same as in the previous dmesg entry.

Does this look right?

I also checked contents of the System Info application under the Devices tab
and the USB adapter does seem to be correctly identified.

-Kevin

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV