Author Topic: Howto Configure A Usb Ethernet Adaptor  (Read 13419 times)

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Howto Configure A Usb Ethernet Adaptor
« Reply #15 on: May 01, 2006, 08:38:49 pm »
Quote
Yup i am using the host cable and i can use it for other stuff, and the nic powers up.  I just dont get any messages in dmesg.  Maybe I will try to reflash and see if that makes a difference.
OK just to be absolutely clear, by dmesg I mean the command dmesg & its output and not the contents of /var/log/dmesg (which, AFAICT, never changes after bootup).

-- cheers
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

trichmon

  • Full Member
  • ***
  • Posts: 148
    • View Profile
Howto Configure A Usb Ethernet Adaptor
« Reply #16 on: May 02, 2006, 12:09:25 am »
Quote
Quote
Yup i am using the host cable and i can use it for other stuff, and the nic powers up.  I just dont get any messages in dmesg.  Maybe I will try to reflash and see if that makes a difference.
OK just to be absolutely clear, by dmesg I mean the command dmesg & its output and not the contents of /var/log/dmesg (which, AFAICT, never changes after bootup).


-- cheers
[div align=\"right\"][a href=\"index.php?act=findpost&pid=125353\"][{POST_SNAPBACK}][/a][/div]


Now i feel even more silly.  Your right i was looking in the logs.  Here is the output of the dmesg:

hub.c: USB new device connect on bus1/1, assigned device number 15
usb.c: USB device 15 (vend/prod 0x846/0x1040) is not claimed by any active driver.
usb.c: USB disconnect on device 15
pegasus.c: v0.4.22 (2001/12/07):Pegasus/Pegasus II USB Ethernet driver
usb.c: registered new driver pegasus
hub.c: USB new device connect on bus1/1, assigned device number 16
usb.c: USB device 16 (vend/prod 0x846/0x1040) is not claimed by any active driver.

It sees the device but does not see a driver for it.

Todd
SL-6000l running pdaXrom RC12 icewm + rox
Targus keyboard
Trendnet cf 10/100 ethernet
Linksys CF wireless
Sandisk 256mb SD card
Lexar 1gig SD card
SL-5500 running zynergy rom

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Howto Configure A Usb Ethernet Adaptor
« Reply #17 on: May 02, 2006, 01:37:47 am »
Quote
Here is the output of the dmesg:

hub.c: USB new device connect on bus1/1, assigned device number 15
usb.c: USB device 15 (vend/prod 0x846/0x1040) is not claimed by any active driver.
usb.c: USB disconnect on device 15
pegasus.c: v0.4.22 (2001/12/07):Pegasus/Pegasus II USB Ethernet driver
usb.c: registered new driver pegasus
hub.c: USB new device connect on bus1/1, assigned device number 16
usb.c: USB device 16 (vend/prod 0x846/0x1040) is not claimed by any active driver.

It sees the device but does not see a driver for it.
What does lsmod show? Is the module pegasus listed? If not try, loading the module manually using modprobe pegasus. If that fails, does the file /lib/modules/2.4.20/kernel/drivers/usb/pegasus.o exists?

What does ifconfig -a show?

-- cheers
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

trichmon

  • Full Member
  • ***
  • Posts: 148
    • View Profile
Howto Configure A Usb Ethernet Adaptor
« Reply #18 on: May 02, 2006, 01:53:28 am »
Quote
What does lsmod show? Is the module pegasus listed? If not try, loading the module manually using modprobe pegasus. If that fails, does the file /lib/modules/2.4.20/kernel/drivers/usb/pegasus.o exists?

What does ifconfig -a show?

-- cheers
[div align=\"right\"][a href=\"index.php?act=findpost&pid=125368\"][{POST_SNAPBACK}][/a][/div]

/lib/modules/2.4.20/kernel/drivers/usb/pegasus.o does not seem to be there, i guess that would do it.  

Todd
SL-6000l running pdaXrom RC12 icewm + rox
Targus keyboard
Trendnet cf 10/100 ethernet
Linksys CF wireless
Sandisk 256mb SD card
Lexar 1gig SD card
SL-5500 running zynergy rom

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Howto Configure A Usb Ethernet Adaptor
« Reply #19 on: May 02, 2006, 02:17:12 am »
Quote
/lib/modules/2.4.20/kernel/drivers/usb/pegasus.o does not seem to be there, i guess that would do it. 
I believe that file is provided by the package kernel-modules.

-- cheers
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

Glaive

  • Newbie
  • *
  • Posts: 18
    • View Profile
Howto Configure A Usb Ethernet Adaptor
« Reply #20 on: May 02, 2006, 04:24:33 am »
Quote
When you say "worked out of the box", do you mean to say that you didn't have to fiddle about with any of the hotplug scripts etc? What does your adaptor appear as, eth0 or something else?

Just connected the adaptor. No fiddling with hotplug. It just appears as eth0 and works fine.
Zaurus C3100 /Pdaxrom 1.1.0beta4  + 1GB CF + D-link 660w
Asus Z71v laptop w/Ubuntu 6.06
Athlon XP desktop w/Freebsd 5.3

trichmon

  • Full Member
  • ***
  • Posts: 148
    • View Profile
Howto Configure A Usb Ethernet Adaptor
« Reply #21 on: May 02, 2006, 11:18:05 am »
Quote
Quote
When you say "worked out of the box", do you mean to say that you didn't have to fiddle about with any of the hotplug scripts etc? What does your adaptor appear as, eth0 or something else?

Just connected the adaptor. No fiddling with hotplug. It just appears as eth0 and works fine.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=125380\"][{POST_SNAPBACK}][/a][/div]


kernel-modules package did not give it to me.  Im going to just start installing stuff and I will report back if i find it.

Thanks
Todd
SL-6000l running pdaXrom RC12 icewm + rox
Targus keyboard
Trendnet cf 10/100 ethernet
Linksys CF wireless
Sandisk 256mb SD card
Lexar 1gig SD card
SL-5500 running zynergy rom

trichmon

  • Full Member
  • ***
  • Posts: 148
    • View Profile
Howto Configure A Usb Ethernet Adaptor
« Reply #22 on: May 02, 2006, 02:06:23 pm »
the kernel-module package kills my built in wifi  so i have to reflash to a backup.  Cant find the pegasus.o file anyplace.  

Todd
SL-6000l running pdaXrom RC12 icewm + rox
Targus keyboard
Trendnet cf 10/100 ethernet
Linksys CF wireless
Sandisk 256mb SD card
Lexar 1gig SD card
SL-5500 running zynergy rom

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Howto Configure A Usb Ethernet Adaptor
« Reply #23 on: May 02, 2006, 02:35:33 pm »
Quote
Just connected the adaptor. No fiddling with hotplug. It just appears as eth0 and works fine.
Could you explain how it works? In rc12 through to beta3, if I don't make any of the changes as described at the start of this thread then when I plug in my adaptor nothing happens - ie dhcpcd doesn't get run and hence eth0 doesn't get initialised:

Code: [Select]
# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:E0:4C:00:0C:2B
          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:100
          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:47649 errors:0 dropped:0 overruns:0 frame:0
          TX packets:47649 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:16422062 (15.6 Mb)  TX bytes:16422062 (15.6 Mb)

# ifconfig
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:47649 errors:0 dropped:0 overruns:0 frame:0
          TX packets:47649 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:16422062 (15.6 Mb)  TX bytes:16422062 (15.6 Mb)

What am I missing?

-- cheers
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Howto Configure A Usb Ethernet Adaptor
« Reply #24 on: May 02, 2006, 03:44:21 pm »
Quote
kernel-modules package did not give it to me.  Im going to just start installing stuff and I will report back if i find it.
I had a look at the feeds for the various models of Zs. The 3100 feed only has 1 kernel-modules package and it weighs in at 1.6MB, whereas the feeds for the other models (including 6000) has a small kernel-modules package (~600KB) plus several kernel-modules-* packages. So my guess is that only the 3xxx feeds will have the pegasus module (plus it has loads more modules that the older models' feeds don't have).

Oh, and don't even think of using the 3xxx package because they're for the 2.4.20 kernel whereas the other models use a 2.4.18 kernel  

-- cheers
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Howto Configure A Usb Ethernet Adaptor
« Reply #25 on: May 02, 2006, 04:17:00 pm »
Hi trichmon

I compiled the pegasus module for the tosa kernel - no idea whether it works because I don't have this adapter, but it's worth a go. It's not an IPK (forum filters); you'll have to rename it to 'pegasus.o'.

(disclaimer: all care, no responsibility  )

Karl
SL6000-L, RC12

trichmon

  • Full Member
  • ***
  • Posts: 148
    • View Profile
Howto Configure A Usb Ethernet Adaptor
« Reply #26 on: May 02, 2006, 05:36:44 pm »
Thanks for the try karlto.  But even if i modprobe it and then hookup the nic I get nothing in ifconfig -a (other than the loopback).   I also just tried with a hawkins huf11 that is known to work on the sharp rom ( i think its a realteck chipset) with the same results.  I guess that each machine (tosa, akita, etc) has a hit or miss chance of using these out of the box.  

Im starting to feel odd man out again with my tosa. Do you happen to use a usb ethernet adaptor (ill buy what ever if know that it works).

Todd
SL-6000l running pdaXrom RC12 icewm + rox
Targus keyboard
Trendnet cf 10/100 ethernet
Linksys CF wireless
Sandisk 256mb SD card
Lexar 1gig SD card
SL-5500 running zynergy rom

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Howto Configure A Usb Ethernet Adaptor
« Reply #27 on: May 02, 2006, 07:08:37 pm »
Quote
Thanks for the try karlto.  But even if i modprobe it and then hookup the nic I get nothing in ifconfig -a (other than the loopback).   I also just tried with a hawkins huf11 that is known to work on the sharp rom ( i think its a realteck chipset) with the same results.  I guess that each machine (tosa, akita, etc) has a hit or miss chance of using these out of the box. 

Im starting to feel odd man out again with my tosa. Do you happen to use a usb ethernet adaptor (ill buy what ever if know that it works).

Todd
[div align=\"right\"][a href=\"index.php?act=findpost&pid=125469\"][{POST_SNAPBACK}][/a][/div]
I just use the USB cable to my laptop via the cradle, or wireless, so I have no idea what works. None of the USB ethernet drivers are enabled in the default kernel config though; thats probably why the huf11 doesn't work either...  

I think perhaps that I have missed something with the kernel config for USB - all I changed was adding the pegasus module. It compiled OK, but could be something else required to actually support USB network adapters in general. Can anyone post the kernel USB options for a working implementation?

I presume the module actually loaded successfully? You didn't put it under 2.4.20 as above did you? (Is '/lib/modules/2.4.18-rmk7-pxa3-embedix/kernel/drivers/usb/' on my tosa). Any dmesg output from loading the module? Surely you should plug in the NIC before modprobing the module (most drivers won't load if the hardware isn't present).

I'm sure it can be made to work with not too much hassle (just getting the right driver modules). Not sure why a lot of this stuff is not compiled by default for the SL6000 - probably lack of test equipment.
SL6000-L, RC12

trichmon

  • Full Member
  • ***
  • Posts: 148
    • View Profile
Howto Configure A Usb Ethernet Adaptor
« Reply #28 on: May 02, 2006, 07:16:22 pm »
I did put the pegasus.o file in the same place on my tosa as you listed.  Below is the dmesg output that talks about this device.  It seems to see it and says the driver is loaded.  I dont get anything with ifconfig -a .


dmesg output:

hub.c: USB new device connect on bus1/1, assigned device number 4
usb.c: USB device 4 (vend/prod 0x846/0x1040) is not claimed by any active driver.
usb.c: registered new driver acm
acm.c: v0.21:USB Abstract Control Model driver for USB modems and ISDN adapters
pegasus.c: v0.4.22 (2001/12/07):Pegasus/Pegasus II USB Ethernet driver
usb.c: registered new driver pegasus


Here is the output of lsmod as well

Module                  Size  Used by    Tainted: P
pegasus                11048   0  (unused)
acm                     5708   0  (unused)
pxa_bi                 21788   0  (unused)
net_fd                 25000   1
usbdcore               34456   0  [pxa_bi net_fd]
mousedev                4496   1
usbdmonitor             5216   0
sharp_mmcsd_m          31492   2
usb_ohci_tc6393        24492   0
usbcore                51984   1  [pegasus acm usb_ohci_tc6393]
#                                                              

Todd
« Last Edit: May 02, 2006, 07:24:11 pm by trichmon »
SL-6000l running pdaXrom RC12 icewm + rox
Targus keyboard
Trendnet cf 10/100 ethernet
Linksys CF wireless
Sandisk 256mb SD card
Lexar 1gig SD card
SL-5500 running zynergy rom

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Howto Configure A Usb Ethernet Adaptor
« Reply #29 on: May 02, 2006, 11:33:35 pm »
Quote
I did put the pegasus.o file in the same place on my tosa as you listed.  Below is the dmesg output that talks about this device.  It seems to see it and says the driver is loaded.  I dont get anything with ifconfig -a .


dmesg output:

hub.c: USB new device connect on bus1/1, assigned device number 4
usb.c: USB device 4 (vend/prod 0x846/0x1040) is not claimed by any active driver.
usb.c: registered new driver acm
acm.c: v0.21:USB Abstract Control Model driver for USB modems and ISDN adapters
pegasus.c: v0.4.22 (2001/12/07):Pegasus/Pegasus II USB Ethernet driver
usb.c: registered new driver pegasus


Here is the output of lsmod as well

Module                  Size  Used by    Tainted: P
pegasus                11048   0  (unused)
acm                     5708   0  (unused)
pxa_bi                 21788   0  (unused)
net_fd                 25000   1
usbdcore               34456   0  [pxa_bi net_fd]
mousedev                4496   1
usbdmonitor             5216   0
sharp_mmcsd_m          31492   2
usb_ohci_tc6393        24492   0
usbcore                51984   1  [pegasus acm usb_ohci_tc6393]
#                                                               

Todd
[div align=\"right\"][a href=\"index.php?act=findpost&pid=125485\"][{POST_SNAPBACK}][/a][/div]
Hmm.... well, the drive loads OK, but doesn't actually locate the hardware. Did you try to rmmod the acm module (not sure why it loaded that) before modprobing the pegasus module? Maybe it is blocking it?
SL6000-L, RC12