Quantcast
Channel: VMware Communities : Discussion List - ESXi
Viewing all articles
Browse latest Browse all 8132

How do I manually add driver for USB attached network interface

$
0
0

Hello,

     I have an ESXi v6.7 deployment on a Dell Optiplex 7040 hardware with one onboard NIC. I want to enable a 2nd NIC and have obtained a USB attached Ethernet adapter to that end. The device comes with a CD containing the needed driver files (with .c and .h extensions) with a makefile provided for compilation:

asix.c

asix.h

axusbnet.c

axusbnet.h

Makefile

readme

 

I am though, not certain on the system where to execute this so as to install the drivers and thereby the USB connected NIC. The instructions advise:

 

============================================================================

ASIX AX88178 USB 2.0 Gigabit Ethernet Network Adapter

ASIX AX88772 USB 2.0 Fast Ethernet Network Adapter

ASIX AX88772A USB 2.0 Fast Ethernet Network Adapter

ASIX AX88760 USB 2.0 MTT HUB and USB 2.0 to Fast Ethernet Combo Controller

ASIX AX88772B USB 2.0 Fast Ethernet Network Adapter

ASIX AX88772C USB 2.0 Fast Ethernet Network Adapter

Driver Compilation & Configuration on the Linux

============================================================================

 

This driver has been verified on Linux kernel 2.6.14 and later.

 

================

Prerequisites

================

 

Prepare to build the driver, you need the Linux kernel sources installed on the

build machine, and make sure that the version of the running kernel must match

the installed kernel sources. If you don't have the kernel sources, you can get

it from www.kernel.org or contact to your Linux distributor. If you don't know

how to do, please refer to KERNEL-HOWTO.

 

Note: Please make sure the kernel is built with one of the "Support for

       Host-side, EHCI, OHCI, or UHCI" option support.

 

 

===========================

Conditional Compilation Flag

===========================

[AX_FORCE_BUFF_ALIGN]

Description:

       There are alignment issues of USB buffer in some USB host controllers.

       Turn on this flag if the implementation of your USB host controller

       cannot handle non-double word aligned buffer.

       When turn on this flag, driver will fixup egress packet aligned on double

       word boundary before deliver to USB host controller.

Setting:

    1 -> Enable TX buffers forced on double word alignment.

    0 -> Disable TX buffers forced on double word alignment.

Default:

    0

 

 

================

Getting Start

================

 

1. Extract the compressed driver source file to your template directory by the

   following command:

 

    [root@localhost template]# tar -xf DRIVER_SOURCE_PACKAGE.tar.bz2

 

2. Now, the driver source files should be extracted under the current directory.

   Executing the following command to compile the driver:

 

    [root@localhost template]# make

           

3. If the compilation is well, the asix.ko will be created under the current

   directory.

 

4. If you want to use modprobe command to mount the driver, executing the

   following command to install the driver into your Linux:

 

    [root@localhost template]# make install

 

 

================

Usage

================

 

1. If you want to load the driver manually, go to the driver directory and

   execute the following commands:

 

    [root@localhost template]# insmod asix.ko

 

2. If you had installed the driver during driver compilation, then you can use

   the following command to load the driver automatically.

 

    [root@localhost anywhere]# modprobe asix

 

If you want to unload the driver, just executing the following command:

 

    [root@localhost anywhere]# rmmod asix

 

================

Special define

================

There is a RX_SKB_COPY preprocessor define in asix.h can solve rx_throttle problem

in some version of 3.4 Linux kernel. Removing the comment before the define can enable

this feature.

 

 

Thanks in advance for assistance in this regard.


Viewing all articles
Browse latest Browse all 8132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>