ASUS NX1001 Network Adapter on Linux - Hardware

This is a discussion on ASUS NX1001 Network Adapter on Linux - Hardware ; Hi! I am trying to configure ASUS NX1001 Network Adapter on CentOS 5. yet it's driver works fine at WIN2K & Vendor also provide Linux driver but I am not able to configure. I am also Copy & Pest the ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: ASUS NX1001 Network Adapter on Linux

  1. ASUS NX1001 Network Adapter on Linux

    Hi!
    I am trying to configure ASUS NX1001 Network Adapter on CentOS 5. yet
    it's driver works fine at WIN2K & Vendor also provide Linux driver but
    I am not able to configure. I am also Copy & Pest the Vendor's
    readme.txt file text.
    *******************
    # uname -r [My Linux kernel is]
    2.6.18-8.el5
    ************************
    --------------------- --------------------- readme.txt
    --------------------- ---------------------
    ASUS NX1001 Network Adapter
    Linux Driver

    Contents:
    -----------
    1. File Description
    2. Driver Installation for Linux
    3. Driver Parameter

    1. File Description
    -------------------

    Filename Description
    ====================
    ================================================== =====
    NX1001_main.c ASUS NX1001 Network Adapter Driver Source
    Code.
    This file is the main part of ASUS NX1001
    Network Adapter.

    compat.h Network interface message level settings.

    crc32.h Crc function for early Linux 2.4.19pre kernel
    inclusion

    ethtool.h: Defines for Linux ethtool.

    mii.h definitions for MII-compatible transceivers.

    mii.c MII interface library.

    makefile Make File For ASUS NX1001 Network Adapter.
    Using "make all" for your kernel.

    readme.txt A summary of the contents for Linux Driver.
    This file, which you are reading me now.



    2. Driver Installation for Linux
    -----------------------------------------
    a. for kernel 2.4.x
    a1. Redhat 7.3 (linux kernel 2.4.18)
    a2. Mandrake 8.1 (kernel 2.4.8)
    b. for kernel 2.6.x
    c. automatically load and configure at next boot time

    a.for kernel 2.4.x
    -------------------
    a1. Redhat 7.3 (linux kernel 2.4.18)
    a1.1. install way 1:
    #make all =>generate NX1001.o
    #cp NX1001.o /lib/modules/2.4.18-3/kernel/drivers/net/
    #insmod ./NX1001.o
    #ifconfig eth0 xxx.xxx.xxx.xxx netmask yyy.yyy.yyy.yyy
    eth0 is your network adapter,use "dmesg" to check it, ex:
    eth0, eth1...
    xxx is your ip address, ex: 192.168.102.211
    yyy is your netmask address, ex:255.255.255.0

    a1.2. install way 2:
    #make all =>generate NX1001.o
    #cp NX1001.o /lib/modules/2.4.18-3/kernel/drivers/net/
    #insmod./NX1001.o
    #setup
    [network configuration] =>to setup your ip address
    #ifup eth0
    eth0 is your network adapter, ex: eth0, eth1...


    a2. Mandrake 8.1 (kernel 2.4.8)
    #make all => generate Nx1001.o
    #cp NX1001.o /lib/modules/2.4.8-26mdk/kernel/drivers/net
    #insmod ./NX1001.o
    #ifconfig eth0 xxx.xxx.xxx.xxx netmask yyy.yyy.yyy.yyy
    eth0 is your network adapter,use "dmesg" to check it, ex:
    eth0, eth1...
    xxx is your ip address, ex: 192.168.102.211
    yyy is your netmask address, ex:255.255.255.0


    b. for kernel 2.6.x
    -------------------
    #make all => generate NX1001.ko
    #insmod ./NX1001.ko (or NX1001.o)
    #ifconfig eth0 xxx.xxx.xxx.xxx netmask yyy.yyy.yyy.yyy
    eth0 is your network adapter,use "dmesg" to check it, ex:
    eth0, eth1...
    xxx is your ip address, ex: 192.168.102.211
    yyy is your netmask address, ex:255.255.255.0

    c. automatically load and configure at next boot time
    -----------------------------------------------------
    c1. cp NX1001.o /lib/modules/`uname -r`/kernel/drivers/net
    *note: The `uname -r` is a command. Don't replace `uname -r` with
    2.4.18, 2.4.20smp, or some others. Must type `uname -r`
    directly.

    c2. Add the following lines at /etc/modules.conf:

    alias eth0 NX1001
    options NX1001

    c3. Run "netconfig" or "netconf" to create configuration script

    ifcfg-eth0 located at /etc/sysconfig/network-scripts or
    create it manually.
    [see - Configuration Script Sample]

    c4. Driver will automatically load and configure at
    next boot time.

    c5. Configuration Script Sample
    ===========================
    Here is a sample of a simple configuration script:

    DEVICE=eth0
    USERCTL=no
    ONBOOT=yes
    POOTPROTO=none
    BROADCAST=207.200.5.255
    NETWORK=207.200.5.0
    NETMASK=255.255.255.0
    IPADDR=207.200.5.2


    3. Driver Parameter
    -------------------
    If you want to change the link speed, you could use parameter after
    insmod command.

    insmod NX1001.o ; add parameter


    ================================================== ======================
    example: insmod NX1001.o media=100mbps_hd
    or insmod NX1001.o media=3
    or insmod NX1001.o media=1,2,3,4 ; for 4 cards or NX1001

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

    Parameter Description
    =====================
    You can install this driver without any addtional parameter.
    However, if
    you are going to have extensive functions then it is necessary to
    set
    extra parameter. Below is a list of the command line parameters
    supported
    by the Linux device driver.

    media=xxxxxxxxx - Specifies the media type the NIC operates at.
    autosense Autosensing active media.
    10mbps_hd 10Mbps half duplex.
    10mbps_fd 10Mbps full duplex.
    100mbps_hd 100Mbps half duplex.
    100mbps_fd 100Mbps full duplex.
    0 Autosensing active media.
    1 10Mbps half duplex.
    2 10Mbps full duplex.
    3 100Mbps half duplex.
    4 100Mbps full duplex.
    By default, the copper devices operate at
    autosense, the fiber devices operate at
    100Mbps full duplex.
    Note that, the fiber adapter only support
    100Mbps half/full duplex types.

    If wanting to change speed, this driver needed to be unloaded and
    reloaded with
    new media parameter.

    flowctrl=[0|1] - Specifies the flow control function.
    0 Disable flow control.
    1 Enable flow control.


  2. Re: ASUS NX1001 Network Adapter on Linux

    jatrojoomla staggered into the Black Sun and said:
    > I am trying to configure [an] ASUS NX1001 Network Adapter on CentOS 5.
    > [Its] driver works fine at WIN2K & Vendor also provide Linux driver
    > but I am not able to configure [the Linux module].


    Paste the exact text of the errors you receive when you try to build the
    module in a followup to this message. You need to have the kernel
    source package for your distro installed in order to compile any kernel
    module from source.

    > # uname -r
    > 2.6.18-8.el5


    Should be OK.

    [much snippage]
    > b. for kernel 2.6.x
    > #make all => generate NX1001.ko


    This is where the errors would happen. Post them.

    > #insmod ./NX1001.ko


    In general, you should never use insmod unless you know exactly what
    you're doing. You might have to here because the module won't be in
    /lib/modules/`uname -r`/ yet.

    > c2. Add the following lines at /etc/modules.conf:
    > alias eth0 NX1001
    > options NX1001


    Er, no. The README writer screwed up here. In many distros,
    /etc/modules.conf is automatically generated at boot time from other
    files, so editing modules.conf directly will not produce the desired
    results.

    --
    A project for developing fully automatically driven cars
    (not just those misnamed auto-pilots) has been improved by your
    explosive flatulence. --MegaHAL, trained on ASR
    Matt G|There is no Darkness in Eternity/But only Light too dim for us to see

  3. Re: ASUS NX1001 Network Adapter on Linux


    > > # uname -r
    > > 2.6.18-8.el5

    >
    > Should be OK.
    >
    > [much snippage]
    >
    > > b. for kernel 2.6.x
    > > #make all => generate NX1001.ko

    >
    > This is where the errors would happen. Post them.


    Error is:
    make: *** empty variable name. Stop.


  4. Re: ASUS NX1001 Network Adapter on Linux

    jatrojoomla staggered into the Black Sun and said:
    > Dances With Crows wrote:
    >> jatrojoomla wrote:
    >>> # uname -r
    >>> 2.6.18-8.el5

    >> Should be OK.
    >> [much snippage]
    >>> b. for kernel 2.6.x
    >>> #make all => generate NX1001.ko

    >> This is where the errors would happen. Post them.

    > Error is:
    > make: *** empty variable name. Stop.


    That's it? Strange. Usually, there are a bunch of errors. Knowing
    which errors are important and sorting those out from the errors that
    are less important is a skill in itself. Generally, if you don't know
    which errors are important, you just post all of them, even if there are
    a whole bunch of errors. This might be an error in the Makefile itself.

    Do you have the source package for the kernel you're running installed?
    Do that. Also make sure that the .config file for the currently-running
    kernel is in /usr/src/linux-2.6.n/ , since the Makefile probably depends
    on that for a bunch of things. I'm sort of out of ideas now, mostly
    because practically every NIC that you see already has a kernel module
    in the main vanilla source tree. Oh well, HTH anyway,

    --
    "EXTERMINATE! EXTERMINATE!"
    "Now do you understand why you shouldn't tease the Daleks, Beaver?"
    "Gee, I'm sorry, Mom." --Triangle & Robert
    Matt G|There is no Darkness in Eternity/But only Light too dim for us to see

+ Reply to Thread