LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: lsyao

RTL8150(USB)网卡怎么驱动!

[复制链接]
 楼主| 发表于 2003-1-16 16:04:38 | 显示全部楼层

笔记本RTL8150(USB)网卡驱动!源码文件包含在附件RTL8150.zip中

这是它的安装说明
The procedure to activate rtl8150 on linux is as follows:

  step 1: compile:
           gcc -DMODULE -D__KERNEL__ -c rtl8150.c

  step 2: insert the driver as module:
           insmod rtl8150.o        
           (run 'lsmod' to see if the module is inserted)

  step 3: bind your card to an IP address:

           /sbin/ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
           (run 'netstat -i' to see if there is a interface 'eth0')

  step 4: add your card to IP routing table and add gateway:
           /sbin/route add default gw ${GATEWAY} dev eth0


*make sure that your kernel is version 2.4.0 above. Otherwise, you have to
        upgrade your kernel.
发表于 2003-1-16 17:41:14 | 显示全部楼层
这个网卡的驱动在2.4.18以后就已经支持了,只要重新编译内核,加入USB的支持,然后在USB设备中加入这个网卡的支持,就可以了。我已经用了快一年了都没有问题。
发表于 2003-1-17 09:13:15 | 显示全部楼层
如果不编内核,就用下面的步骤:
1;下载驱动。
2;解压:
[root@linuxsir01 RTL8150]# unzip rtl8150.zip
3;进入已经解压的目录
[root@linuxsir01 RTL8150]# cd RTL8150
4;然后编译;注意一下,这个有大小写。
[root@linuxsir01 RTL8150]# gcc -DMODULE -D__KERNEL__ -c RTL8150.C

5.加载模块

#insmod rtl8150.o

其它的就用图形设置工具也能完成,就是设置网关。IP。DNS等。
发表于 2003-4-9 14:58:23 | 显示全部楼层
我的也是RTL8150的USB网卡,我也按那步骤做了,可是在第一步的时候就有错 也没有rtl8150.o文件呀
附:The procedure to activate rtl8150 on linux is as follows:

  step 1: compile:
           gcc -DMODULE -D__KERNEL__ -c rtl8150.c -I%DIR%/include
           note: %DIR% is the directory of the kernel source code which is accompanied with
                 the current kernel of your system. Normally it is located in /usr/src/linux.

  step 2: insert the driver as module:
           insmod rtl8150.o        
           (run 'lsmod' to see if the module is inserted)

  step 3: bind your card to an IP address:

           /sbin/ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
           (run 'netstat -i' to see if there is a interface 'eth0')

  step 4: add your card to IP routing table and add gateway:
           /sbin/route add default gw ${GATEWAY} dev eth0


*make sure that your kernel is version 2.4.0 above. Otherwise, you have to
        upgrade your kernel.
这个的第一步怎么和上面的不一样呀?
发表于 2003-4-10 10:27:01 | 显示全部楼层
这样来做。把驱动放到/usr/src目录下解压。
然后要做一个链接。看一下/usr/src目录下是否有比如linux-2.4  linux-2.4.20-8  redhat类似的。就做如下步骤。。
#cd /usr/src
#ln -s  linux-2.x.x-x linux
其中linux-2.x.x-x要以你的系统的文件名为依据。

然后再运行一系统命 令。。。
发表于 2003-11-3 03:52:22 | 显示全部楼层
问一个比较菜的问题,网卡没驱动没法上网怎么在linux系统下载,在别的系统里下载的东西linux能使用吗?如果能,怎么用?
发表于 2003-11-4 15:38:14 | 显示全部楼层
问一个比较菜的问题,网卡没驱动没法上网怎么在linux系统下载,在别的系统里下载的东西linux能使用吗?如果能,怎么用?


能用,我们可以用mount 命令,mount到linux中的一个目录中,然后再把这个下载的压缩包拷到linux的分区中。注意,要在linux的分区中解压,最好拷到root分区解压吧。哈哈,我怕兄弟操作出了问题,所以只好出此下策了。
发表于 2003-11-5 20:09:22 | 显示全部楼层
谢谢指教!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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