Koozali.org: home of the SME Server

Usb-ethernet adapter will not work with the newer kernels

Offline holck

  • ****
  • 317
  • +1/-0
Usb-ethernet adapter will not work with the newer kernels
« on: May 29, 2010, 08:45:40 PM »
As my small server has no room for a second ethernet network interface, I use an USB-ethernet adapter from D-Link, DUB-E100. But I can not make it work with the newer kernels. I can use it with no problems with 2.6.9-78.0.22.EL, but with anything newer than that I get the message "Device eth1 does not seem to be present, delaying initialization". The usbnet kernel module is loaded OK, but the device does not work.

I have found out that the D-Link adapter apparently exists in two different versions, and one guess could be that the newer kernels assume I have one version, and the older kernels assume I have another?

What can I do to use the adapter with thenew kernels?
Should I report this some other place?
......

Offline holck

  • ****
  • 317
  • +1/-0
Making the D-Link DUB-E100 Usb-ethernet adapter work
« Reply #1 on: May 30, 2010, 09:45:11 AM »
It seems the reason I could only make the D-lLink DUB-E100 USB-ehernnet adapter work with an old kernel ... was that I some time ago compiled a module for that kernel and then forgot all about it, sorry ... If someone else needs to make it work, here is my recipe:

Download and install the kernel source files:
$ sudo yum install kernel-devel

Download the source code for the module from here:
http://www.asix.com.tw/download.php?sub=downloadsearch&PSNoID=100
where you select AX88178 as "Product Name", choose "Driver", and press "Go"

Unpack the source code and cd into the created directory. Now you have to make sure to compile the module for the kernel version for which you have the source files. If that version is not the same as the one the server is presently running, you should change this line in the Makefile
  CURRENT = $(shell uname -r)
to
  CURRENT = 2.6.9-89.0.25.EL
or whatever version you want to compile the module for.

Then
$ make
$ make install

and reboot with the new kernel.
......

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Making the D-Link DUB-E100 Usb-ethernet adapter work
« Reply #2 on: May 31, 2010, 06:35:01 PM »
It seems the reason I could only make the D-lLink DUB-E100 USB-ehernnet adapter work with an old kernel ... was that I some time ago compiled a module for that kernel and then forgot all about it, sorry ... If someone else needs to make it work, here is my recipe:

Download and install the kernel source files:
$ sudo yum install kernel-devel

Correct, you will need to do this every time a kernel upgrade is present.  Also its not recommended practice to iinstall development packages on a production server. Finally USB network adapter(s) are not supported with SME Servers.

Surely it would be easier to grab a cheap compatible pci network card :)

I'll move this to the contribs section. Thanks.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Usb-ethernet adapter will not work with the newer kernels
« Reply #3 on: May 31, 2010, 11:31:49 PM »
Surely it would be easier to grab a cheap compatible pci network card :)

as OP said:
Quote
As my small server has no room for a second ethernet network interface

I would suggest to buy a dual nic pci adapter

Offline Jean-Philippe Pialasse

  • *
  • 2,767
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Usb-ethernet adapter will not work with the newer kernels
« Reply #4 on: May 31, 2010, 11:34:51 PM »
as OP said:
I would suggest to buy a dual nic pci adapter
+ 1  ^^

Thanks Byte for the laugh

and by the way dual ethernet are not cheap ;)

JP

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Usb-ethernet adapter will not work with the newer kernels
« Reply #5 on: May 31, 2010, 11:39:15 PM »
and by the way dual ethernet are not cheap ;)

well, I think they are cheap enough

Offline Jean-Philippe Pialasse

  • *
  • 2,767
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Usb-ethernet adapter will not work with the newer kernels
« Reply #6 on: June 01, 2010, 12:21:54 AM »
indeed ! regular PCI dual NIC are cheap .Last tim i check it was for PCI-E (that are cheaper than last time i check)


JP

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Making the D-Link DUB-E100 Usb-ethernet adapter work
« Reply #7 on: June 01, 2010, 11:49:57 PM »
Finally USB network adapter(s) are not supported with SME Servers.

In fact, never have been.