- 论坛徽章:
- 0
|
初来咋到,请各位关照一下!
该网卡是“金浪 803”采用“Myson MTD80x”芯片的PCI网卡,在Win98下可以正常安装及工作,但在Red Hat 7.2(kernel ver: 2.4.7-10)下却无法发现,ping 127.0.0.1 能ping通;我在“www.kingnet.com.cn”(金浪)下载了MTD80x for linux-2.4.x的驱动程序,编译顺利通过,但在“make install”是出现错误,说是在“/lib/modules/`uname -r`/net”没有这个目录,我查看了一下,可不是吗,/lib/modules/`uname -r`真的没有“net”这个目录(Why?为什么我的linux这里没有目录‘net’),我想,既然没有咱就各它做一个。这下新的问题又来了,再次安装时说在pci-scan.o, mtd80x.o中有没定义的符号。
提示如下:
————————————————————————————————————————————————
[root@linux-2.4.x]# make install
install -m 444 pci-scan.o mtd80x.o /lib/modules/`uname -r`/net/
depmod: *** Unresolved symbols in /lib/modules/2.4.7-10/net/mtd80x.o
depmod: *** Unresolved symbols in lib/modules/2.4.7-10/net/pci-scan.o
————————————————————————————————————————————————
用‘insmod’动态加载mtd80x.o出现如下错误提示:
[root@linux-2.4.x]# insmod mtd80x.o
/lib/modules/2.4.7-10/net/mtd80x.o: unresolved symbol eth_type_trans
/lib/modules/2.4.7-10/net/mtd80x.o: unresolved symbol __kfree_skb
/lib/modules/2.4.7-10/net/mtd80x.o: unresolved symbol alloc_skb
/lib/modules/2.4.7-10/net/mtd80x.o: unresolved symbol init_etherdev
/lib/modules/2.4.7-10/net/mtd80x.o: unresolved symbol __release_region
/lib/modules/2.4.7-10/net/mtd80x.o: unresolved symbol kmalloc
/lib/modules/2.4.7-10/net/mtd80x.o: unresolved symbol cpu_raise_softirq
/lib/modules/2.4.7-10/net/mtd80x.o: unresolved symbol free_irq
/lib/modules/2.4.7-10/net/mtd80x.o: unresolved symbol pci_drv_unregister
/lib/modules/2.4.7-10/net/mtd80x.o: unresolved symbol unregister_netdev
/lib/modules/2.4.7-10/net/mtd80x.o: unresolved symbol iounmap
/lib/modules/2.4.7-10/net/mtd80x.o: unresolved symbol del_timer
/lib/modules/2.4.7-10/net/mtd80x.o: unresolved symbol kfree
/lib/modules/2.4.7-10/net/mtd80x.o: unresolved symbol request_irq
/lib/modules/2.4.7-10/net/mtd80x.o: unresolved symbol netif_rx
/lib/modules/2.4.7-10/net/mtd80x.o: unresolved symbol skb_over_panic
/lib/modules/2.4.7-10/net/mtd80x.o: unresolved symbol tvec_bases
/lib/modules/2.4.7-10/net/mtd80x.o: unresolved symbol dev_close
/lib/modules/2.4.7-10/net/mtd80x.o: unresolved symbol do_BUG
/lib/modules/2.4.7-10/net/mtd80x.o: unresolved symbol jiffies
/lib/modules/2.4.7-10/net/mtd80x.o: unresolved symbol softnet_data
————————————————————————————————————————————————
‘insmod pci-scan.o’也出现类似的错误。(太多了,省掉!)
小弟没做过linux下的驱动,不知如何办,恳请各位有过这种经历的或是知道如何解决的高手帮忙!!!
PS:驱动原码清单
kern_compat.h
Makefile
mtd80x.c
pci-scan.c
pci-scan.h |
|