ASUS NX1101 NIC Driver Issues

Issues related to hardware problems
Hawke_AI
Posts: 2
Joined: 2007/05/23 06:57:58
Contact:

ASUS NX1101 NIC Driver Issues

Post by Hawke_AI » 2007/05/23 08:21:11

Greetings,

I'm working on setting up an older box as a DHCP/Firewall using CentOS 4.5 (i586 version) into which I've added an ASUS NX1101 Gigabit Ethernet adaptor to support a separate subnet. The adaptor did not come with the necessary Linux drivers, so I downloaded them from the ASUS website (http://support.asus.com/download/download.aspx?SLanguage=en-us). I unzipped the drivers on my Windows machine and then brought them over to the still incomplete DHCP/Firewall server using a USB stick.

Using root I entered the subdirectory in which there were a series of source files, readme.txt, and the Makefile. I carefully followed the instructions in the readme.txt file for Kernel 2.6.x

#make all => generate ipg.ko
#insmod ./ipg.ko
#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


But all I get is an error from make saying that "variable is not defined" and, of course, ipg.ko is not created or installed.

Seeing as this is meant to be a DHCP/Firewall I only installed the minimum of developer files.

In looking around at other distros I noticed that FreeBSD references an stge driver for the above-mentioned NIC. Can that be ported to CentOS?

Any other thoughts? A quick reply would be appreciated.

Buggers
Posts: 16
Joined: 2007/05/01 11:56:10

Re: ASUS NX1101 NIC Driver Issues

Post by Buggers » 2007/08/23 16:54:17

I have exactly the same problem. Does anyone know how we can "make" this?

Readme contains the following files and instructions:

[code]--------------------------- files ---------------------------
ipg_main.c ASUS NX1101 Gigabit Network Adapter Linux Driver Source Code. This file is the main part of NX1101 Linux Driver.

makefile Make File For NX1101 Linux Driver. Using "make all", "make smp", "make bigmem" for your kernel.

make2.2.sh Make Shell Script For Linux 2.2.x Kernel.
make2.2mod.sh Make Shell Script For Linux 2.2.x Kernel.

PhyParam.h NX1101 Hardware Parameters modification file. It would have new version for new version of NIC on IC Plus web site.

ipg_tune.h Include File For NX1101 Linux Driver.
ipg_structs.h Include File For NX1101 Linux Driver.
ipg_macros.h Include File For NX1101 Linux Driver.
ipg_constants.h Include File For NX1101 Linux Driver.

--------------------------- installation ---------------------------

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. for bigmem and smp.

a.for kernel 2.4.x
-------------------
a1. Redhat 7.3 (linux kernel 2.4.18)
a1.1. install way 1:
#make all =>generate ipg.o
#cp ipg.o /lib/modules/2.4.18-3/kernel/drivers/net/
#insmod ./ipg.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 ipg.o
#cp ipg.o /lib/modules/2.4.18-3/kernel/drivers/net/
#insmod ./ipg.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 ipg.o
#cp ipg.o /lib/modules/2.4.8-26mdk/kernel/drivers/net
#insmod ./ipg.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 ipg.ko
#insmod ./ipg.ko
#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. for bigmem and smp.
----------------------
c1. If your kernel was in bigmem, using:
#make bigmem

c2. If your kernel was in smp, using:
#make smp

[/code]

User avatar
toracat
Forum Moderator
Posts: 7457
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: ASUS NX1101 NIC Driver Issues

Post by toracat » 2007/08/23 23:25:39

You probably need kernel header files. Run as root:

yum install kernel-devel

Then try the make command again.

Akemi

Buggers
Posts: 16
Joined: 2007/05/01 11:56:10

Re: ASUS NX1101 NIC Driver Issues

Post by Buggers » 2007/08/24 13:26:32

Thanks for your quick reply.

I tried as you said but sadly it didn't work.

Result: "yum: command not found" - It looks like yum isn't installed.

Now I found yum here for download: http://linux.duke.edu/projects/yum/download.ptml

Do I have to install this? If so, I wouldnt have a clue which one to pick.. Any clue?

BTW: I run the following: ClarkConnect Community 4.1 - kernel 2.6.9x - RPM 4.3.3 - python 2.3.4 (centOS 4.4 i think?)

Thanks in advance

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: ASUS NX1101 NIC Driver Issues

Post by gerald_clark » 2007/08/24 13:56:33

Yum is installed by default.
The RPM is on the install DVD/CDs.

Buggers
Posts: 16
Joined: 2007/05/01 11:56:10

Re: ASUS NX1101 NIC Driver Issues

Post by Buggers » 2007/08/24 15:04:28

Thank you for your help and pointing me into the correct direction guys, looks like I won't need yum.

I solved it like this:

REGISTER SERVER and get another nic to work so apt-get will work
apt-get update
apt-get install cc-devel
apt-get install kernel-devel
make all

I now have the ipg.ko file in my directory.

Now when I try step two "insmod ipg.ko" I get the following error:

"insmod: error inserting 'ipg.ko': -1 File exists"

Any clues?

update:

rmmod ipg.ko
insmod ipg.ko

spammed this a few times somehow dmesg shows me the name of the adapter now, i assume the nic is now fully operational

Buggers
Posts: 16
Joined: 2007/05/01 11:56:10

Re: ASUS NX1101 NIC Driver Issues

Post by Buggers » 2007/08/24 16:09:03

okay it seems to work, but after I reboot I need to execute the insmod command, how can I let that go automatically?

User avatar
toracat
Forum Moderator
Posts: 7457
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: ASUS NX1101 NIC Driver Issues

Post by toracat » 2007/08/24 16:19:51

If you don't have yum, you may be on a vps. See:

http://wiki.centos.org/TipsAndTricks/BrokenVserver

for the instructions on how to install and use yum correctly.

As to your module question, copy the .ko file to:

/lib/modules/`uname -r`/extra/

Then run:

depmod -a

Buggers
Posts: 16
Joined: 2007/05/01 11:56:10

Re: ASUS NX1101 NIC Driver Issues

Post by Buggers » 2007/08/24 16:56:26

thanks, i dont run a vps. just my own server thats right next to me running ClarkConnect Community 4.1 (latest stable).

as for what you said, i did that, but it didnt do anything at all (not after nor after reboot)

btw make install does the following:

install -m 644 -c ipg.ko /lib/modules/2.6.9-42.cc/kernel/drivers/net/

a few directories further

is it possible i need to run some kind of startup script? if so, what file and what do I have to enter?


thanks in advance

Buggers
Posts: 16
Joined: 2007/05/01 11:56:10

Re: ASUS NX1101 NIC Driver Issues

Post by Buggers » 2007/08/24 17:29:05

I think I solved it all :

vi /etc/modprobe.conf (opens vim editor on startup file)

added the following line to bottom:

alias eth1 ipg

saved and now it works

--------------------------

Thanks alot for everyone's help. Just one more question:

Does anyone know any 'better' way to do this (cleaner way) that works?

Post Reply

Return to “CentOS 4 - Hardware Support”