LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-11-2006, 10:40 AM   #1
samel_tvom
Member
 
Registered: Aug 2004
Posts: 133

Rep: Reputation: 15
can't get "usb to ethernet" card to work


Hello!

I have just purchased a "usb to ethernet" card. It's an ST Lab "card" and it's
supported under linux according to http://www.linux-usb.org/usbnet/ and ST Lab, they say that it's even supported in the 2.4 kernel.

I'm using the 2.6.12 kernel and I have included the "usbnet module" and in that module I have included all the stuff I can include (including ASIX AX88xxx Based USB 2.0 Ethernet devices). I installed the kernel and rebooted.

I did a "modprobe usbnet" and the module loaded fine.

However, when I plug in the device, neither dmesg, lspci or lsusb tell me that
I have a network device. They just recognize that a usb device has been plugged in.

What should have happened was that I could type "ifconfig -a" and a device named usb0 or usb1 etc. should have shown up. However id didn't.

What should I do to make this device to work?


Thank you!
 
Old 01-11-2006, 11:57 AM   #2
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
That card uses the AX8817X module
 
Old 01-11-2006, 02:11 PM   #3
samel_tvom
Member
 
Registered: Aug 2004
Posts: 133

Original Poster
Rep: Reputation: 15
Yes, I googled and found out the same thing. But I can't find out where that module is.

In 2.6.12 I include the module usbnet:
Device drivers -> USB support -> USB Networks adapters -> Multi-purpose USB Networking Framework

and under that module I can include "ASIX AX88xxx Based USB 2.0 Ethernet devices"
If I check the help for that "include" (I can't mark it as a module(M) only as a *) it says that driver should work with "ST Lab USB 2.0 Ethernet".

By doing this, have I included the AX8817X module? If not, how should I do? Where can I find it?

Does this module depend on something weird?

Thanks for the help!
 
Old 01-11-2006, 04:10 PM   #4
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
for me it is at /usr/src/linux/include/usb/
so mine is compiled into the kernel, in my .config file it shows up like this:

#
# USB Network Adapters
#
CONFIG_USB_AX8817X=y
CONFIG_USB_ZD1201=m
CONFIG_USB_MON=y

I have 2.6.13 slackware 10.2
 
Old 01-11-2006, 04:34 PM   #5
samel_tvom
Member
 
Registered: Aug 2004
Posts: 133

Original Poster
Rep: Reputation: 15
Hi again!

in /usr/src/linux/include/usb? In my 2.6.12 and 2.6.15 there is no usb dir in include,
are you sure about that?

However, I checked my .config and I have the same settings as those you posted.

Exactly what do you do to be able to get the device to show up in ifconfig?

I thought that when I included the usbnet module (and under that module also included
"ASIX AX88xxx Based USB 2.0 Ethernet devices" I compiled in support for AX88xxx chipsets
but as I said, when I do "modprobe usbnet" the kernel still doesn't do any fun stuff with
the device.

Do you know what could be wrong?

I run gentoo btw (don't know what version though but it's not older than 4-5 months)

Thanks for helping, I really appreciate it!
 
Old 01-11-2006, 05:40 PM   #6
samel_tvom
Member
 
Registered: Aug 2004
Posts: 133

Original Poster
Rep: Reputation: 15
Hi again!

I tried the 2.6.15 kernel and there I was able to include "ASIX AX88xxx Based USB 2.0 Ethernet adapters" as a module so I did that.

Then I did "modprobe usbnet" and "modprobe axis" (which probably is the module) but it didn't do any good, it still doesn't show in ifconfig and dmesg just says:

usb 1-6: new high speed USB device using ehci_hcd and address 5

So I'm back at square one =(
 
Old 01-11-2006, 10:48 PM   #7
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Do you have the node device /dev/usb0. If not, you will have to use mknod to create it. Read devices.txt in the kernel documentation.

I have a USB to Ethernet device from Linksys. Give me a few days to figure out how to it setup. Then I give you the steps to set it up.
 
Old 01-14-2006, 02:29 PM   #8
samel_tvom
Member
 
Registered: Aug 2004
Posts: 133

Original Poster
Rep: Reputation: 15
No, I don't have that device. The only /dev/usb* I have are:
/dev/usbdev1.1
/dev/usbdev1.7
/dev/usbdev1.9

I would really appreciate if you would help me out on this one, it's a tricky little bastard =)
(for me anyways)

I'll try mknod in the meantime.

Thanks!
 
Old 01-15-2006, 01:34 AM   #9
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
With 2.6.x kernels it seems that it does not use the way like some documentation said. If you have sysfs mounted, type find /sys -iname '*eth*' | grep usb as root. The only thing that should come up is some pieces of information what eth device it will be. I notice that /dev/usbdev3.2 was created the day that I tried my USB Linksys ethernet device.

The steps I used to figure it out:
1) login as root or use sudo
2) ifconfig
Code:
eth0      Link encap:Ethernet  HWaddr 00:E0:4C:69:0A:0C  
          inet addr:192.168.1.170  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9752 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1446 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1608890 (1.5 Mb)  TX bytes:1164127 (1.1 Mb)
          Interrupt:17 Base address:0x4000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
3) ifconfig -a
Code:
eth0      Link encap:Ethernet  HWaddr 00:E0:4C:69:0A:0C  
          inet addr:192.168.1.170  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9752 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1446 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1608890 (1.5 Mb)  TX bytes:1164127 (1.1 Mb)
          Interrupt:17 Base address:0x4000 

eth1      Link encap:UNSPEC  HWaddr 00-11-06-66-45-55-55-62-00-00-00-00-00-00-00-00  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

eth2      Link encap:Ethernet  HWaddr 00:E0:98:7A:5E:EE  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
4) I trial and error to bring up each eth device except eth0 and lo by typing [i]ifconfig ethX up[/]. Replace X with device number. Found that eth1 did not work, but eth2 did.
5) eth2 came up which match the output of find /sys -iname '*eth*' | grep usb which was
/sys/devices/pci0000:00/0000:00:1e.0/0000:02:01.0/0000:03:08.0/usb3/3-3/3-3:1.0/net:eth2
so eth2 is actually my USB device. Who would of thought?

All you need to do is run ifconfig to set an IP address. Probably your eth device will be eth1. The reason why my was eth2 is because the script coldplug that Gentoo uses for hotplug loaded eth1394 module even though I do not have a firewire ethernet device.
 
Old 01-15-2006, 03:06 PM   #10
samel_tvom
Member
 
Registered: Aug 2004
Posts: 133

Original Poster
Rep: Reputation: 15
Hi again!

Well I have the modules loaded (subnet and axis) and have plugged in the device (/dev/usbdev1.14 has been created... every time I plug in the device the value gets higher, next time it'll be 1.15)

I did find /sys -iname '*eth*' and got
/sys/class/net/eth0
/sys/devices/pci0000:00/0000:00:07.0/net:eth0

No usb there =(

Well, I tried anyways with ifconfig. I tried ifconfig ethX up with values of X varying from 1-10
and also tried ifconfig usbX up with values of X between 0-10 (also tried 14 )
 
Old 01-15-2006, 03:11 PM   #11
samel_tvom
Member
 
Registered: Aug 2004
Posts: 133

Original Poster
Rep: Reputation: 15
Oops, happened to send that post to early, well nevermind...

ifconfig -a gives
Code:
laptop sys # ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:0A:E4:52:6B:12  
          inet addr:192.168.1.17  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1790757 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2738724 errors:0 dropped:0 overruns:2 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2321188295 (2213.6 Mb)  TX bytes:2272765423 (2167.4 Mb)
          Interrupt:11 Base address:0x2000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:3564 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3564 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:187152 (182.7 Kb)  TX bytes:187152 (182.7 Kb)
Is there still hope for this device under linux or am I f'ed?
 
Old 01-15-2006, 04:59 PM   #12
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
With 2.6.x kernels usb0-255 will not work. Only eth0-255 will work. Are you sure that asix is correct because hotplug has loaded up a module named pegasus that made my Linksys Etherfast 10/100 USB device show as eth2. Load up modules from /lib/modules/`uname -r`/kernel/drivers/usb/net to find out which module works for you.
 
Old 01-16-2006, 02:25 PM   #13
samel_tvom
Member
 
Registered: Aug 2004
Posts: 133

Original Poster
Rep: Reputation: 15
In my /lib/modules/`uname -r`/kernel/drivers/usb/net dir I have these drivers:
asix.ko cdc_ether.ko net1080.ko rtl8150.ko zaurus.ko
catc.ko kaweth.ko pegasus.ko usbnet.ko zd1201.ko
I loaded them all (usbnet first) and tried ifconfig ethX up with some values (1-16, already have eth0)

Didn't do any good. What should I do? For the record:

Code:
laptop net # ls /dev/usbdev1.4 -l
crw-rw----  1 root root 189, 3 Jan 16 22:25 /dev/usbdev1.4
That's the device that gets created when I plug in the device.

ifconfig -a still gives me nada. =(
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unrecognized PCMCIA card - "Intel AnyPoint" wireless ethernet adamwynne Linux - Laptop and Netbook 1 07-15-2004 09:50 PM
Writing to "/dev/usb/hiddev*" and to "/proc/bus/usb/00B/00S" throw an arror EI stpg Programming 0 07-14-2004 05:44 AM
FC2: Ethernet card continually being "inactivated" ummmmm Linux - Hardware 3 07-06-2004 01:05 PM
"make" command won't work in Fedora...installing Nvidia Ethernet drv's help Ge|atinousFury Linux - Hardware 24 01-22-2004 04:42 PM
netdev watchdog timeout on "unused" 2nd ethernet card with nmbd johnvoisey Linux - Networking 1 02-11-2003 06:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration