OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: dolcex on April 17, 2006, 05:19:36 pm

Title: Usb Ethernet
Post by: dolcex on April 17, 2006, 05:19:36 pm
OZ 3.5.4.1 Alpha2 / C1000

1.  I just bought a USB Lan adapter (Linksys) for a wired ethernet connection, and the appropriate cables for my C1000 - the mini A to make Zaurus a host.  When I plug anything into the USB adapter, nothing happens.  No power goes to the USB device, and the Z does nothing.  Nothing shows up in dmesg either.  Could it be that I don't have the appropriate modules loaded?  Also, 'lsusb' isn't recognized as a command.

2.  Can I expect USB/ethernet to work without much tweaking?
Title: Usb Ethernet
Post by: CoreDump on April 17, 2006, 05:27:30 pm
Quote
OZ 3.5.4.1 Alpha2 / C1000

1.  I just bought a USB Lan adapter (Linksys) for a wired ethernet connection, and the appropriate cables for my C1000 - the mini A to make Zaurus a host.  When I plug anything into the USB adapter, nothing happens.  No power goes to the USB device, and the Z does nothing.  Nothing shows up in dmesg either.  Could it be that I don't have the appropriate modules loaded?  Also, 'lsusb' isn't recognized as a command.

Correct, most probably the usb "host" module is not loaded. I haven't had a chance to play with host mode recently tho.

Quote
2.  Can I expect USB/ethernet to work without much tweaking?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=123546\"][{POST_SNAPBACK}][/a][/div]

It shouldn't be a problem as long as there is a Linux driver for your adapter.
Title: Usb Ethernet
Post by: dolcex on April 17, 2006, 05:43:01 pm
Any idea which module is the USB Host module?  If it were installed, wouldn't it have been auto-loaded?  Is it usbnet?
Title: Usb Ethernet
Post by: Da_Blitz on April 17, 2006, 10:46:25 pm
should be ohci_hcd or usbcore
Title: Usb Ethernet
Post by: dolcex on April 18, 2006, 01:01:24 am
ok, I'm going nuts here.  I've installed all kernel modules, and plugged in 4 different usb devices (network, storage, mouse, etc).  Nothing happens, and lsusb shows nothing.  Any hint to get me past this roadblock would be greaatly appreciated.
Title: Usb Ethernet
Post by: CoreDump on April 18, 2006, 02:33:36 am
Quote
ok, I'm going nuts here.  I've installed all kernel modules, and plugged in 4 different usb devices (network, storage, mouse, etc).  Nothing happens, and lsusb shows nothing.  Any hint to get me past this roadblock would be greaatly appreciated.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=123589\"][{POST_SNAPBACK}][/a][/div]

Hmm it looks like udev in .1-alpha is bugged. It doesn't detect USB events so autoloading / configuration doesn't work.
Title: Usb Ethernet
Post by: dolcex on April 18, 2006, 11:28:43 am
Is this a known bug, or does it need to be added?
Title: Usb Ethernet
Post by: CoreDump on April 18, 2006, 01:31:18 pm
Quote
Is this a known bug, or does it need to be added?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=123651\"][{POST_SNAPBACK}][/a][/div]

You can ignore my last comment, only usb "client" detection doesn't work w/ udev. USB host events work just fine.
Title: Usb Ethernet
Post by: dolcex on April 18, 2006, 05:49:40 pm
Update...  I am furher, but could still use help.  USB storage cards work fine, but my Lan adapter is still flaky.  It lights up, but no network interface shows up for it.  Details follow...

lsusb:
Bus 001 Device 006: ID 077b:2226 Linksys USB200M 100baseTX Adapter

dmesg:
usb 1-2: new full speed USB device using pxa27x-ohci and address 37
usb 1-2: configuration #1 chosen from 1 choice
asix: probe of 1-2:1.0 failed with error -110
usb 1-2: USB disconnect, address 37


p.s. If asix isn't the correct driver, could you be specific about how to change that?  I've dug through my 'module' type files and really don't know what does what.
Title: Usb Ethernet
Post by: kellyharding on April 18, 2006, 10:20:28 pm
I'm sure I read somewhere that there are two types of mini USB cable, type A and type B. I think type A is for client, and type B for host mode? or something like that, might be worth investigating.


EDIT: info url (http://zaurus.daemons.gr/menaie/mirror/) knew I'd seen it somewhere.

Kelly
Title: Usb Ethernet
Post by: Da_Blitz on April 19, 2006, 05:19:54 am
all the diffrent ether drivers are in /lib/modules/2.6.*/kernel/drivers/usb/net

just modprobe one of them, the most comman are pegusus and rtl8150
Title: Usb Ethernet
Post by: Antikx on April 19, 2006, 01:18:51 pm
Quote
all the diffrent ether drivers are in /lib/modules/2.6.*/kernel/drivers/usb/net

just modprobe one of them, the most comman are pegusus and rtl8150
[div align=\"right\"][a href=\"index.php?act=findpost&pid=123745\"][{POST_SNAPBACK}][/a][/div]
I noticed that there is a modprobe and a modprobe.26
is there a right/worng one to use?

My dmesg says this:
usb 1-2: new full speed USB device using pxa27x-ohci and address 6
usb 1-2: configuration #1 chosen from 1 choice

when I do this:
Code: [Select]
root@akita:/# modprobe pegasusI get this:
Code: [Select]
FATAL: Module pegasus not found.
...even though there is a pegasus.ko in the directory you listed above.
Title: Usb Ethernet
Post by: Da_Blitz on April 19, 2006, 09:57:12 pm
might need to do a depmod -a to update the list of modules and with all linux kernel thingies you will need to do it as root

for the modprobe, if it aint broke dont fix it

your dmesg log indigates that somthing is indeed being recignised and apprently loaded, can you do an lsmod and post it here, you might want to check for ethernet devices with an ifconfig -a and see if you do indeed have an interface
Title: Usb Ethernet
Post by: Lurker on June 22, 2006, 03:42:58 pm
Quote
Update...  I am furher, but could still use help.  USB storage cards work fine, but my Lan adapter is still flaky.  It lights up, but no network interface shows up for it.  Details follow...

lsusb:
Bus 001 Device 006: ID 077b:2226 Linksys USB200M 100baseTX Adapter

dmesg:
usb 1-2: new full speed USB device using pxa27x-ohci and address 37
usb 1-2: configuration #1 chosen from 1 choice
asix: probe of 1-2:1.0 failed with error -110
usb 1-2: USB disconnect, address 37


p.s. If asix isn't the correct driver, could you be specific about how to change that?  I've dug through my 'module' type files and really don't know what does what.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=123693\"][{POST_SNAPBACK}][/a][/div]


I had the exact same issues with the Linksys USB200M. Connected directly to the Zaurus USB port, the lights on the adapter would flicker lightly. Dmesg would keep looping the output shown above, incrementing the USB address each iteration. I finally decided to try with a powered hub, and the ethernet adapter now works perfectly with ifup <interface>; verify interface used with ifconfig -a . When power to the USB hub is pulled, the USB200M goes down.
Now I have even more motivation to overcome my fears and mod my Z's amperage output