LinuxSir.cn,穿越时空的Linuxsir!

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

有人知道如何在slackware10上安装PCI接口的无线网卡么?

[复制链接]
发表于 2004-7-14 22:56:31 | 显示全部楼层 |阅读模式
我安装了一个TP-link的250 ver2.0的无线网卡,在windows上当然一切正常
到官方网站看了一下,没linux的驱动
似乎有一个东西可以用windows的驱动程序
有人具体用过么。
发表于 2004-7-14 23:18:34 | 显示全部楼层
不知道你的網卡的 chipset 是什么。
有两个东西你可以看一下:
1. prism driver, included in Linux kernel
2. ndiswrapper 应该是你说的那个东西
http://ndiswrapper.sourceforge.net/
 楼主| 发表于 2004-7-15 00:27:21 | 显示全部楼层
如何看芯片啊
我看windows下面的控制面板下面的系统,看不出所以然啊。
发表于 2004-7-15 01:38:28 | 显示全部楼层
关于芯片你可以看这里,上面列举了各种网卡的芯片。

你说的那个东西就是ndiswrapper,我就是用的这个。当然最好还是用for linux的driver。一般的芯片厂商应该都有的,我是实在没有办法才用的ndiswrapper,虽然用起来还不错。linuxquestions有一个专门讨论wireless的论坛,应该会对你有所帮助。
发表于 2004-7-15 10:22:19 | 显示全部楼层
根据lspci的结果,耐心的在google上找找看,或者贴出来,偶们一起研究一下?
 楼主| 发表于 2004-7-15 19:52:04 | 显示全部楼层
这是我用这个命令的结果,好像看不出来什么芯片阿。



root@wangcity:~# lspci
00:00.0 Host bridge: Intel Corp. 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Int                                  erface (rev 03)
00:02.0 VGA compatible controller: Intel Corp. 82845G/GL[Brookdale-G]/GE Chipset Integrate                                  d Graphics Device (rev 03)
00:1d.0 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #1 (rev 02)
00:1d.1 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #2 (rev 02)
00:1d.2 USB Controller: Intel Corp. 82801DB (ICH4) USB UHCI #3 (rev 02)
00:1d.7 USB Controller: Intel Corp. 82801DB (ICH4) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB/EB/ER Hub interface to PCI Bridge (rev 82)
00:1f.0 ISA bridge: Intel Corp. 82801DB (ICH4) LPC Bridge (rev 02)
00:1f.1 IDE interface: Intel Corp. 82801DB (ICH4) Ultra ATA 100 Storage Controller (rev 02                                  )
00:1f.3 SMBus: Intel Corp. 82801DB/DBM (ICH4) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corp. 82801DB (ICH4) AC'97 Audio Controller (re                                  v 02)
01:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd.: Unknown device 8180 (rev 20)
01:03.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10                                  )
root@wangcity:~#
发表于 2004-7-15 21:40:55 | 显示全部楼层
看来是这个,01:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd.: Unknown device 8180 (rev 20)

用的是realtek的芯片,我去realtek看过了,恭喜你,确实有8180这块wireless lan芯片,而且有驱动,详见如下:

http://www.realtek.com.tw/downlo ... 02121Unix%20(Linux)

兄弟自己下载编译试试看,祝好运
发表于 2004-7-16 09:09:57 | 显示全部楼层
呵呵,不会这么巧吧,俺的网卡就是用的这个芯片。
这个芯片的driver有一部分是在2.4.20上编译好的,没有源码,大概有些参数不想公开吧。所以只能在2.4.20和相容的kernel上用,最少Slackware 10.0带的2.4.26上用不了。如果你不想只能用2.4.20的kernel,还是用ndiswrapper吧。
 楼主| 发表于 2004-7-16 13:53:20 | 显示全部楼层
用这个东西的过程可以说一下么。
说说大致过程,我知道这个东西,可以用windows的驱动
我用的是slackware10默认的内核,应该不能用那个2.4.20的驱动
发表于 2004-7-16 23:42:58 | 显示全部楼层
这是我在linuxquestions发的贴子
Sorry I can't post an url since the system said I got to have posted at least five posts to do that. It should be easy to use google to find their websites.
1. Download ndiswrapper 0.8 from ndiswrapper
2. Download the realtek WindowsXP driver from realtek, choose RTL8180L
3. extract ndiswrapper: tar xvfz ndiswrapper-0.8.tar.gz
4. cd to the ndiswrapper-0.8 folder
5. Compile and install
As root run
> make install
6. Install your windows driver
> ndiswrapper -i </path/to/NET8180.inf>
After installing you can run
> ndiswrapper -l
Output on my machine:
> Installed ndis drivers:
> net8180 present
Where "present" means that I have a PCI-device present that can be used with the driver net8180.
7. Load module
> modprobe ndiswrapper.
8. Configure interface
Use iwconfig to configure wireless network interface. First, locate the wireless interface:
> iwconfig
This will print the wireless interface (e.g., wlan0 on my machine). In the examples below wlan0 is used; replace wlan0 with the interface reported by iwconfig above.
At this time iwconfig shows my card has already connected to the router. Everything like Mode, ESSID,..., is set except an IP address. Maybe because I'm also using this card under WinXP so it's already configured?:confused: I'm not sure. You may have to configure it yourself.
9. Bring the network up
> ifconfig wlan0 up
10. Enable dhcp client daemon
> dhcpcd wlan0
Now if you use
> ifconfig
You will see wlan0 is up with an IP address. And you can use your internet now.
11. Automate
Once everything works fine you can write the correct modeprobe settings to
load ndiswrapper automatically by running
> ndiswrapper -m
Now everytime after reboot you can use
> ifconfig wlan0 up
> dhcpcd wlan0
to bring up your network. If you also want this to be automated, add them to rc.local.
# cat /etc/rc.d/rc.local
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local setup commands in here:
ifconfig wlan0 up
dhcpcd wlan0

Please refer to the INSTALL file in the ndiswrapper directory if you have questions.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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