[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Compiling/Installing D-link Ethernet Card Module



I'm trying to install a D-Link DFE-530TX+ Module for my ethernet card. I found the via3043.c source code at there website and copyed it to my /usr/src/via directory.

The script tells me to run this command within the /usr/src/linux/ directory: "make config" I get this error:
make: No rule to make target config. Stop.
(The /usr/src/linux/ directory didn't exist, so I had to create it.)

I tried the compiling command:
gcc -DMODVERSIONS -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c via3043.c

I'm not sure if I'm suppose to replace -D__KERNEL__ with some sort of version number or what, but after I type in the command I get a whole page of errors saying that it cannot find the files it needs.
Like this one:
/usr/include/linux/modversions.h:30: linux/modules/vfatfs_syms.ver: No such file or directory

Why does it spit out these errors, what do I need to change so that it can find these files? I'm using Debian 2.1

-Arlo

PS Here's the readme file that came with the driver.

           Linux device driver (Red Hat)                  July.24,1998

SCOPES:

   This driver is mainly used to support VIA VT86C100A.
   Written 1998 by Donald Becker.


INSTALLATION:

- download the driver source code (via3043.c)

    http://cesdis.gsfc.nasa.gov/linux/drivers/via3043.html
  or
    ftp://ftp.cis.nctu.edu.tw/Linux/mirrors/cesdis/drivers/VIA3043.C

- copy the driver source code form floppy disk to a source directory.

  #mkdir /usr/src/via
  #mount -t msdos /dev/fd0 /mnt
  #cp /mnt/via3043.c /usr/src/via/via3043.c

- do a "make config" in the directory /usr/src/linux/ to configure the
  basic kernel. You should find the following options:

       Enable loadable module support (CONFIG_MODULES) [N/n/?] y <--Yes
       Networking Support (CONFIG_NET) [N/y/?] y <--Yes
       PCI bios Support (CONFIG_PCI) [N/y/?] y <--Yes
       Network device support (CONFIG_NETDEVICES) [Y/N/?] Y <--Yes
       Ethernet (10 or 100Mbit) (CONFIG_NET_ETHERNET) [Y/n/?] n <--No

- do a "make dep" to set up all the dependencies correctly.

- do a "make zlilo" to compile your kernel.

- compile the file using the compile-command at the directory of the
  via3043.c source file (/usr/src/via/).

  compile-command:
  "gcc -DMODVERSIONS -DMODULE -D__KERNEL__ -I/usr/src/linux/net/inet
   -Wall -Wstrict-prototypes -O6 -c via3043.c"

- login as "root", load the module using "insmod via3043.o". If it work
  as expected you should add "insmod /usr/src/via/via3043.o" to
  /etc/rc.d/rc.module

- reboot again
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com



Reply to: