feeaim 发表于 2004-3-14 18:56:52

myson mtd80x 网卡芯片驱动安装问题

系统:RedHat 9.0,核心是安装盘提供的2.4.20-8,因为不能上网没有升级过。
按照驱动自带的安装说明安装
**************************************************
                      Myson MTD80X Based Fast Ethernet Card
                      Linux 2.4.X Driver Installation Guide
             **************************************************
-----------------------Installation Procedure-----------------------
1. Copy the compress file mtd80x-linux-2.4.x.tgz to /tmp directory,
        mount -t msdos /dev/fd0 /mnt/floppy
        cp /mnt/floppy/linux-2.4.x/mtd80x-linux-2.4.x.tgz /tmp
2. Uncompress the file
        cd /tmp
        tar -zxvf mtd80x-linux-2.4.x.tgz
3. Make network adapter driver modules
        touch *
        make clean
        make
   *Under some distribution, such as SuSe 7.2 and BluePoint 2.0, there is no version.h.
      You have to run "make config" or "make menuconfig" at /usr/src/linux to create it.
      
    **If you are using Mandrake 8.0 and you have problems when insmod the dirver, please
      remove "-DMODVERSIONS" option from makefile.
   ***On SMP system, the driver may NOT work well. The bug will be fixed in the future.
4. Insert network adapter driver modules
        insmod        pciscan.o
        insmod        mtd80x.o
5. Bind your card to an IP address
        ifconfig eth0 {IPADDR} netmask {NETMASK}
6. Now, you should be able to ping local network.
*Every time you reboot the system, you must execute step 4 and step 5
again to bind your card.
Compability:
        This driver is tested with the Distribution.
        RedHat 7.1/7.2
        Mandrake 8.0/8.1
        Slackware 8.0
        SuSe 7.2
        RedFlag 2.4
        Caldera 3.0
*****************************************************
终端出现以下信息:

# touch *

# make clean

rm -f *.o

# make

gcc -DMODULE -D__KERNEL__-I/usr/src/linux/include -O -Wall -Wstrict-prototypes   -c -o pci-scan.o pci-scan.c

In file included from /usr/include/linux/fs.h:23,

               from /usr/include/linux/capability.h:17,

               from /usr/include/linux/binfmts.h:5,

               from /usr/include/linux/sched.h:9,

               from /usr/include/linux/mm.h:4,

               from pci-scan.c:62:

/usr/include/linux/string.h:8:2: warning: #warning Using kernel header in userland!

In file included from /usr/include/linux/sched.h:14,

               from /usr/include/linux/mm.h:4,

               from pci-scan.c:62:

/usr/include/linux/timex.h:173: field `time' has incomplete type

In file included from /usr/include/linux/bitops.h:69,

               from /usr/include/asm/system.h:7,

               from /usr/include/linux/sched.h:16,

               from /usr/include/linux/mm.h:4,

               from pci-scan.c:62:

/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not available on all architectures.

/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in userspace: atomicity not guaranteed

In file included from /usr/include/linux/signal.h:4,

               from /usr/include/linux/sched.h:25,

               from /usr/include/linux/mm.h:4,

               from pci-scan.c:62:

/usr/include/asm/signal.h:107: parse error before "sigset_t"

/usr/include/asm/signal.h:110: parse error before '}' token

In file included from /usr/include/linux/sched.h:81,

               from /usr/include/linux/mm.h:4,

               from pci-scan.c:62:
/usr/include/linux/timer.h:45: parse error before "spinlock_t"

/usr/include/linux/timer.h:53: parse error before '}' token

/usr/include/linux/timer.h:67: parse error before "tvec_base_t"

/usr/include/linux/timer.h:101: parse error before "tvec_bases"

/usr/include/linux/timer.h: In function `init_timer':

/usr/include/linux/timer.h:105: dereferencing pointer to incomplete type

/usr/include/linux/timer.h:105: dereferencing pointer to incomplete type

/usr/include/linux/timer.h:106: dereferencing pointer to incomplete type

/usr/include/linux/timer.h: In function `timer_pending':

/usr/include/linux/timer.h:121: dereferencing pointer to incomplete type

In file included from pci-scan.c:67:

/usr/include/linux/malloc.h:3:2: warning: #warning The Use of linux/malloc.h is deprecated, use linux/slab.h

pci-scan.c: In function `pci_drv_register':

pci-scan.c:149: warning: implicit declaration of function `pci_find_class'

pci-scan.c:149: warning: assignment makes pointer from integer without a cast

pci-scan.c:157: warning: implicit declaration of function `pci_read_config_dword'

pci-scan.c:163: warning: implicit declaration of function `printk'

pci-scan.c:163: `KERN_DEBUG' undeclared (first use in this function)

pci-scan.c:163: (Each undeclared identifier is reported only once

pci-scan.c:163: for each function it appears in.)

pci-scan.c:163: parse error before string constant

pci-scan.c:164: warning: left-hand operand of comma expression has no effect

pci-scan.c:164: warning: left-hand operand of comma expression has no effect

pci-scan.c:164: parse error before ')' token

pci-scan.c:178: dereferencing pointer to incomplete type

pci-scan.c:187: `KERN_INFO' undeclared (first use in this function)

pci-scan.c:187: parse error before string constant

pci-scan.c:188: dereferencing pointer to incomplete type

pci-scan.c:188: warning: left-hand operand of comma expression has no effect

pci-scan.c:188: warning: left-hand operand of comma expression has no effect

pci-scan.c:188: warning: left-hand operand of comma expression has no effect

pci-scan.c:188: parse error before ')' token

pci-scan.c:191: dereferencing pointer to incomplete type

pci-scan.c:191: dereferencing pointer to incomplete type

pci-scan.c:192: dereferencing pointer to incomplete type

pci-scan.c:193: `KERN_WARNING' undeclared (first use in this function)

pci-scan.c:193: parse error before string constant

pci-scan.c:208: warning: implicit declaration of function `ioremap'

pci-scan.c:210: parse error before string constant

pci-scan.c:216: warning: implicit declaration of function `pci_read_config_word'

pci-scan.c:219: parse error before string constant

pci-scan.c:222: warning: implicit declaration of function `pci_write_config_word'

pci-scan.c:226: dereferencing pointer to incomplete type
pci-scan.c:231: warning: implicit declaration of function `pci_set_master'

pci-scan.c:234: warning: implicit declaration of function `pci_read_config_byte'

pci-scan.c:236: parse error before string constant

pci-scan.c:239: warning: implicit declaration of function `pci_write_config_byte'

pci-scan.c:246: warning: implicit declaration of function `kmalloc'

pci-scan.c:246: `GFP_KERNEL' undeclared (first use in this function)

pci-scan.c:246: warning: initialization makes pointer from integer without a cast

pci-scan.c:259: warning: implicit declaration of function `atomic_inc'

pci-scan.c:259: union has no member named `usecount'

pci-scan.c: In function `pci_drv_unregister':

pci-scan.c:422: warning: implicit declaration of function `atomic_dec'

pci-scan.c:422: union has no member named `usecount'

pci-scan.c:429: warning: implicit declaration of function `kfree'

pci-scan.c: In function `acpi_wake':

pci-scan.c:489: warning: implicit declaration of function `pci_write_config_dword'

pci-scan.c: In function `cleanup_module':

pci-scan.c:522: `KERN_WARNING' undeclared (first use in this function)

pci-scan.c:522: parse error before string constant

make: *** Error 1

不能继续安装。
我是个新手,感觉有点儿束手无策,希望哪位高手能够给予指教,在这里先拜谢了。
页: [1]
查看完整版本: myson mtd80x 网卡芯片驱动安装问题