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

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

华硕板载网卡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 <M>.
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 <ip_addr>'.
a. <ip_addr> is the IP address of sis190.
b. example: 'ifconfig eth0 192.168.209.1'.      
。。。。。。