LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1390|回复: 3

请问网卡sis190的驱动如何正确编译?已折腾一通宵。。。

[复制链接]
发表于 2005-10-2 14:32:55 | 显示全部楼层 |阅读模式
华硕板载网卡sis190,网上只有.c的源代码驱动(我装的fc3,2.6.9)
按照它的readme一步步来时,进行到第9步就会出问题:

make[1]: *** 没有规则可以创建“init/built-in.o”需要的目标“init/main.o”。 停止。


其中我没有 /usr/src/linux-2.6.9/drivers/net 目录,整个工作是在/lib…/drivers/net下做的(因为不懂,只是搜索了readme中提到的相关文件,发现在这个目录下有)

小弟实在搞不懂了。。。折腾一通宵。。。而且也没找到适合的rpm包,还望指点迷津!!!!



Readme内容:

1. Install Fedora Core 3. (Currently only FC3 can be installed on 965 demo board.)

2. Download Linux kernel 2.6.9 or latter version from http://www.kernel.org. The follwing examples are based on linux-2.6.9.

3. copy the kernel source to the location /usr/src/linux-2.6.9.

4. cp sis190.c /usr/src/linux-2.6.9/drivers/net

5. Edit the file "/usr/src/linux-2.6.9/drivers/net/Kconfig".
a. Serach for the string "config SIS900"
b. Add the following item below the item of SIS190.

config SIS190
tristate "SiS 191/190 PCI Gigabit/Fast Ethernet Adapter support"
depends on NET_PCI && PCI
select CRC32
---help---
Say Y here if you have a SiS 191/190 PCI Gigabit/Fast Ethernet adapter.

To compile this driver as a module, choose M here: the module
will be called sis190. This is recommended.

6. Edit the file "/usr/src/linux-2.6.9/drivers/net/Makefile".
a. Search for the string "obj-$(CONFIG_SIS900) += sis900.o".
b. Insert "obj-$(CONFIG_SIS190) += sis190.o" to next line.

7. cd /usr/src/linux-2.6.9

8. Input the command 'make menuconfig'. Then the Linux Kernel configuration menu will be popped.
a. Select "Device Drivers -->", "Networking support -->", "Ethernet (10 or 100Mbit) -->".
b. Goto the item "SiS191/190 PCI Gigabit/Fast Ethernet Adapter support".
c. Press space key to make this item marked with .
d. Save and exit the kernel configuration menu.

9. Make kernel and modules. Input the command 'make bzImage modules modules_install install'.

10. Reboot and Select the boot item "2.6.9".


//** Probe sis190 module **//

1. Input the command 'rmmod sis190'.

2. Input the command 'modprobe sis190'.

3. Input the command 'ifconfig eth0 '.
a. is the IP address of sis190.
b. example: 'ifconfig eth0 192.168.209.1'.
发表于 2005-10-2 21:30:56 | 显示全部楼层
小弟也是这个网卡啊,找了一天了。高人帮忙啊。
回复 支持 反对

使用道具 举报

发表于 2005-10-3 02:29:15 | 显示全部楼层
我才也编译了一下,出现了和你一样的问题.高人帮忙啊.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-4 00:38:30 | 显示全部楼层
查了不少。。。基本没有能指导解决的文章。。。明天开始学内核,学会了再装网卡。。。。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表