Results 1 to 8 of 8

Thread: compiling a module for a NIC Card...

Hybrid View

  1. #1

    compiling a module for a NIC Card...

    hello everyone.

    Well, I wanted to ask some questions on compiling a module for a network card. It has been awhile since I have compiled a module, that I pretty much forgot.

    Let me lay some foundation:

    Running Red Hat 7.3
    Card: Intel® PRO/1000 Family of Adapters, version 4.2.x
    It is a Gig driver (e1000)

    Ok. I followed the directions accordingly, but I cant seem to get it working the way I like.

    Here is the directions:

    tar zxf e1000-4.2.17.tar.gz
    cd e1000-4.2.17/src
    make install

    For Linux 2.4.x systems: /lib/modules/[KERNEL_VERSION]/kernel/drivers/net/e1000.o

    insmod e1000 (parameters)

    ifconfig eth0 <ip address>

    Everything seems to work. I can assign the IP address and ping it and it works.

    however, when I go to make static entries for ifcfg-eth0, only problem is, its not there.

    Sooo, I need to figure out a couple of things:

    1) How to make sure the module loads upon boot
    2) How to make sure my ifcfg-eth0 is in /etc/sysconfig/networking-scripts directory.

    Anyone care to lend a hand?

    I appreciate it.

    Tarballed

  2. #2

    Re:compiling a module for a NIC Card...

    hello,
    my NIC has this in redhat 9 in the file
    /etc/sysconfig/networking/devices/ifcfg-eth0

    the contents are:
    Code:
    DEVICE=eth0
    BOOTPROTO=none
    BROADCAST=192.168.0.255
    IPADDR=192.168.0.4
    NETMASK=255.255.255.0
    NETWORK=192.168.0.0
    ONBOOT=yes
    USERCTL=no
    PEERDNS=no
    TYPE=Ethernet
    i would think yours would be very similar - then make sure a line is in /etc/modules.conf

    alias eth0 e1000

  3. #3

    Re:compiling a module for a NIC Card...

    [glow=red,2,300]i would think yours would be very similar - then make sure a line is in /etc/modules.conf

    alias eth0 e1000 [/glow]

    Hmm. I am wondering if this is what I was missing.

    Reason I think this is because I do not see ifcfg-eth0. I will need to double check though when I get back to work.

    Also, I want to post a few additional things when I get back to work tomorrow in response to get some feedback. It is in regards to building the package as a RPM binary...I will post that when I get there tomorrow.

    Thanks for your help. If anything goes wrong, I will be back.

    Tarballed

  4. #4

    Re:compiling a module for a NIC Card...

    ooo!

    just forgot the wifey use rh7.3 - the script ifcfg-eth0 is in /etc/sysconfig/network-scripts. its contents are:

    Code:
    DEVICE=eth0
    BOOTPROTO=static
    BROADCAST=192.168.0.255
    IPADDR=192.168.0.3
    NETMASK=255.255.255.0
    NETWORK=192.168.0.0
    ONBOOT=yes

  5. #5

    Re:compiling a module for a NIC Card...

    Ok. So I need to insmod e1000.o and then add:

    alias eth0 e1000

    to my /etc/modules.conf file, correct?

    That should create a:

    /etc/sysconfig/network-scripts

    If it doesnt, what do I do next?

    Tarballed

  6. #6

    Re:compiling a module for a NIC Card...

    Hmm....very weird.

    I added alias eth0 e1000 to my /etc/modules.conf file.

    It is now coming back with a failed symbolic link error of some sort.

    I will need to write down the exact error to be more specific.

    Also, once I added alias eth0 e1000 to my /etc/modules.conf file, it added a ifcfg-eth0 and ifcfg-eth1 (two RJ-45 jacks in the back of the server) to the /etc/sysconfig/networking-scripts directory.

    I dont recall compiling a module to be so difficult.

    Any ideas?

    Thanks

    Tarballed

  7. #7

    Re:compiling a module for a NIC Card...

    Ok, here is the error.

    I get this when I type in depmod:

    depmod: *** Unresolved symbols in /lib/modules/2.4.18.3/kernel/drivers/net/e1000.o

    I'm a little clueless now. I can't even get the ethernet interface up now.

    Anyone have a suggestion?

    Tarballed

  8. #8

    Re:compiling a module for a NIC Card...

    Ok...I figured out the problem.

    Basically, in a nutshell, the directions from Intel were pretty crappy.

    After doing some working around, I found out that I needed to execute the following commands, in order to get the module to load correctly:

    (This is after I untarred it and cd into the driver/src directory)

    make clean
    make
    make install

    Vwalla!

    All set.

    Just goes to show, go with what you know and forget what vendors recommend.

    Tarballed

Similar Threads

  1. module advice needed...
    By John_Deere_630 in forum Ubuntu / Debian
    Replies: 2
    Last Post: 08-31-2006, 11:39 AM
  2. Can't locate module:
    By gmoreno in forum Linux - General Topics
    Replies: 2
    Last Post: 12-24-2003, 03:40 AM
  3. Need help with kernel module.
    By shaurz in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 02-16-2003, 02:37 AM
  4. Calculating module dependencies...
    By kornp in forum Linux - General Topics
    Replies: 0
    Last Post: 02-01-2003, 06:14 PM
  5. missing ppp module
    By in forum Linux - General Topics
    Replies: 4
    Last Post: 04-12-2002, 02:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •