LinuxSir.cn,穿越时空的Linuxsir!

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

How to automaticly install the Ethernet Card's modules

[复制链接]
发表于 2003-6-27 09:49:14 | 显示全部楼层 |阅读模式
How to automaticly install the Ethernet Card's modules?
Every time I enter Redhat 7.2, have to
cd /lib/modules/2.4.7-10/kernel/net
insmod pci-scan.o
insmod RTK8189C.o
How to automaticly install the two modules during Redhat start?
Thank you in advance.
发表于 2003-6-28 18:07:16 | 显示全部楼层
可以参考一下这帖中那个驱动的Readme:
http://www.linuxsir.cn/forum.php?mod=viewthread&tid=44933

*** SECOND APPROACH: COMPILE MODULE INTO THE KERNEL

1. Get the Linux kernel source code (sis900.c) from the ftp site and copy this
in /usr/src directory

2. Copy sis900.c to /usr/src/linux/drivers/network directory

> cd /usr/src/sis900.c /usr/src/linus/drivers/network

4. Modify the following files located in the .../network directory:

Config.in
Space.c
Makefile

to add configuration option for your SiS900 adapter.
You can refer the portions of other network drivers.

5. Run the following command:

> make config

in /usr/src/linux to configure the compiling environment.
You should see SiS900 option in network device drivers section.

6. Run the following commands:

> make dep
> make clean
> make bzImage

7. Modify /etc/lilo.conf to add new option for the new kernel: you should modify the
old image file with the new-compilated image file bzImage.

8. Reboot the computer and sis900 will be found in the boot sequence.
 楼主| 发表于 2003-6-28 20:26:26 | 显示全部楼层
Thank you, dragonnapalm.
I  add "alias eth0 pci-scan.o
           alias eth0 RTK8189C.o"
to the file, /etc/modules.conf.
Redhat  can automaticly load the Ethernet  Card's modules during its starting now.
Please go to Customization Guide/ III. System Configuration/ 24. Kernel Modules for more information.
Hope this is helpful to someone.
发表于 2003-6-28 20:36:46 | 显示全部楼层
excellent work..
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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