LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: ak_birdofprey

debian4.0如何使用ipw3945网卡呀???

[复制链接]
发表于 2007-7-24 22:42:50 | 显示全部楼层
运行ipw3945d,如果能看到
ipw3945d - regulatory daemon
Copyright (C) 2005-2006 Intel Corporation. All rights reserved.
version: 1.7.22
Intel PRO/Wireless 3945ABG Network Connection found at:
/sys/bus/pci/drivers/ipw3945/0000:0b:00.0
Daemon launched as pid 4790.  Exiting.
之类的就表示驱动成功加载了,然后就是操作配置无线网卡了。
这是我的配置,你可以参考一下:

etch:~# ipw3945d
ipw3945d - regulatory daemon
Copyright (C) 2005-2006 Intel Corporation. All rights reserved.
version: 1.7.22
Intel PRO/Wireless 3945ABG Network Connection found at:
/sys/bus/pci/drivers/ipw3945/0000:0b:00.0
Daemon launched as pid 4790.  Exiting.

etch:~# iwconfig //查看无线网卡的名字
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      no wireless extensions.

sit0      no wireless extensions.

eth2      unassociated  ESSIDff/any
          Mode:Managed  Frequency=nan kHz  Access Point: Not-Associated
          Bit Rate:0 kb/s   Tx-Power:14 dBm
          Retry limit:15   RTS thrff   Fragment thrff
          Encryption keyff
          Power Managementff
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:9046   Missed beacon:0

etch:~# iwlist eth2 scan 搜索附近无线网络
eth2      Scan completed :
          Cell 01 - Address: 00:18:C2:01:02:3E
                    ESSID:"firetidesh"
                    Protocol:IEEE 802.11bg
                    Mode:Master
                    Channel:6
                    Encryption keyff
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Quality=35/100  Signal level=-88 dBm  Noise level=-88 dBm
                    Extra: Last beacon: 3048ms ago

iwconfig eth2 essid firetidesh //加入刚才搜到的网络
如果是dhcp的网络可以运行
dhclient eth2获得地址
不是则手动配置
ifconfig eth2 xxx.xxx.xxx.xxx
route add default gw xxx.xxx.xxx.xxx
echo "xxx.xxx.xxx.xxx" > /etc/resolv.conf
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-25 01:52:28 | 显示全部楼层
不知为什么我的系统上找不到ipw3945d命令。请指教谢谢。
回复 支持 反对

使用道具 举报

发表于 2007-7-25 11:28:51 | 显示全部楼层
应该是没装好,我从来没用过源里的包。
到Intel的网站下载最新的驱动,然后按照里面的说明安装。
其实驱动加程序只有三个文件:
/lib/firmware/ipw3945.ucode //firmware
/lib/modules/`uname -r`/ipw3945.ko //内核模块,驱动
/sbin/ipw3945d //可执行文件
少哪个就补哪个。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-25 23:16:57 | 显示全部楼层
谢谢,按照楼上的提示下载了ipw3945-linux-1.2.0.tgz。
用命令查找ipw3945.ucode和ipw3945.ko找到。
就是没有IPW3945d
将X86下的ipw3945d复制到/sbin/中,
执行./ipw3945如下:
birdofprey:~# /etc/init.d/ipw3945d
ipw3945d - regulatory daemon
Copyright (C) 2005-2006 Intel Corporation. All rights reserved.
version: 1.7.22
2007-07-25 23:17:04: ERROR: ipw3945d already running.  If ipw3945d is not running then you
need to remove '/var/run/ipw3945d.pid' and try again.
birdofprey:~# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

sit0      no wireless extensions.

eth1      IEEE 802.11g  ESSID:"XbqZqjx"  Nickname:"XbqZqj"
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:14:78:88:2C:4E
          Bit Rate:54 Mb/s   Tx-Power:13 dBm
          Retry limit:15   RTS thrff   Fragment thrff
          Encryption key:ABCD-EF12-3456-789A-BCDE-F123-45   Security modepen
          Power Managementff
          Link Quality=85/100  Signal level=-48 dBm  Noise level=-49 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:30   Missed beacon:0
这样就可以打开网页了。。。
然后复制ipw3945-start和ipw3945-stop到/etc/init.d/中,
执行如下命令:
birdofprey:~# cd /etc/rcS.d/

birdofprey:/etc/rcS.d# ln -s ../init.d/ipw3945d-start S37ipw3945d

birdofprey:~# cd /etc/rc0.d

birdofprey:/etc/rc0.d# ln -s ../init.d/ipw3945d-stop K37ipw3945d
这样无线网卡就可以每次开机自己初始化并启动了。
回复 支持 反对

使用道具 举报

发表于 2007-7-26 13:44:39 | 显示全部楼层
太谢谢了。好几天都装不上这个,现在再试试!!!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-9-14 02:18:12 | 显示全部楼层
我装了DEBIAN4。0R1之后,再次用该方法安装了IPW3945驱动,并且使用手工启动网络无线网卡可以正常工作,但是重启机器后无线网卡无法连接到无线网络,必须在每次起机后使用/etc/init.d/networking restart重新启动网络后,无线网卡才可以连到无线网络,不知道是为什么,请高手赐教。。。郁闷中。。。。。。。
回复 支持 反对

使用道具 举报

发表于 2007-9-14 12:04:16 | 显示全部楼层
这个太发指了,完全是把Debian当Redhat用。放着apt-get不用....

-------
http://ftp.debian.org/pool/non-free/...45_0.4_all.deb

手动下载,然后用 dpkg -i 来安装。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-9-14 12:51:56 | 显示全部楼层
装了.但是问题依旧.
回复 支持 反对

使用道具 举报

发表于 2007-9-14 23:41:12 | 显示全部楼层

需要设置无线网卡的配置参数

请参考:
http://linuxman.blog.ccidnet.com ... -itemid-176500.html
其中的无线网卡安装、设置摘录如下:
5、安装无线网卡驱动程序
DELL inspiron 6400的无线网卡是Intel的3945ABG,安装程序不会自动安装它的驱动程序。需要自己安装下面的软件包:
ipw3945-modules-2.6.18-5-686 (需要与内核版本配套)
firmware-ipw3945
ipw3945d

6、设置无线网卡接入参数
(我的无线路由器是D-LINK的DI 624+A,采用WPA2-PSK加密方式,ssid是wyk。)
在/etc/network/interfaces 文件中增加:
iface eth2 inet dhcp
wpa-conf managed
wpa-ssid wyk
wpa-key-mgmt WPA-PSK
wpa-psk 123456789abcdef787f44b6611bf17ba.....

wpa-psk的值用wpa_passphrase 生成:
wpa_passphrase wyk <password>

为了使无线网卡在开机时自动激活,需要在/etc/network/interfaces文件中增加:
allow-hotplug eth2
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-9-17 20:05:51 | 显示全部楼层
按照楼上的办法没解决,后将来interfaces配置改成
iface eth1 inet dhcp

wireless-essid XbqZqj
wireless-key ABCDEF123456789ABCDEF12345

auto eth1
allow-hotplug eth1
然后将/etc/rcS.d中的ipw3945d连接改成
S40networking以后,的比如S41ipw3945d,重启就好了。
我的整个rcS.d文件内容如下:
birdofprey:/etc/rcS.d# ls -l
total 4
-rw-r--r-- 1 root root 785 Jan  7  2006 README
lrwxrwxrwx 1 root root  18 Sep 11 06:14 S01glibc.sh -> ../init.d/glibc.sh
lrwxrwxrwx 1 root root  21 Sep 11 06:14 S02hostname.sh -> ../init.d/hostname.sh
lrwxrwxrwx 1 root root  24 Sep 11 06:14 S02mountkernfs.sh -> ../init.d/mountkernfs.sh
lrwxrwxrwx 1 root root  14 Sep 11 06:14 S03udev -> ../init.d/udev
lrwxrwxrwx 1 root root  26 Sep 11 06:14 S04mountdevsubfs.sh -> ../init.d/mountdevsubfs.sh
lrwxrwxrwx 1 root root  18 Sep 11 06:14 S05bootlogd -> ../init.d/bootlogd
lrwxrwxrwx 1 root root  19 Sep 11 06:14 S05keymap.sh -> ../init.d/keymap.sh
lrwxrwxrwx 1 root root  16 Sep 11 06:30 S07hdparm -> ../init.d/hdparm
lrwxrwxrwx 1 root root  22 Sep 11 06:14 S10checkroot.sh -> ../init.d/checkroot.sh
lrwxrwxrwx 1 root root  20 Sep 11 06:14 S11hwclock.sh -> ../init.d/hwclock.sh
lrwxrwxrwx 1 root root  17 Sep 11 06:14 S12mtab.sh -> ../init.d/mtab.sh
lrwxrwxrwx 1 root root  24 Sep 11 06:14 S18ifupdown-clean -> ../init.d/ifupdown-clean
lrwxrwxrwx 1 root root  27 Sep 11 06:14 S20module-init-tools -> ../init.d/module-init-tools
lrwxrwxrwx 1 root root  26 Sep 11 06:14 S25libdevmapper1.02 -> ../init.d/libdevmapper1.02
lrwxrwxrwx 1 root root  20 Sep 11 06:14 S30checkfs.sh -> ../init.d/checkfs.sh
lrwxrwxrwx 1 root root  19 Sep 11 06:14 S30procps.sh -> ../init.d/procps.sh
lrwxrwxrwx 1 root root  19 Sep 11 07:02 S31hibernate -> ../init.d/hibernate
lrwxrwxrwx 1 root root  21 Sep 11 06:14 S35mountall.sh -> ../init.d/mountall.sh
lrwxrwxrwx 1 root root  18 Sep 11 06:30 S36discover -> ../init.d/discover
lrwxrwxrwx 1 root root  31 Sep 11 06:14 S36mountall-bootclean.sh -> ../init.d/mountall-bootclean.sh
lrwxrwxrwx 1 root root  19 Sep 11 06:14 S36udev-mtab -> ../init.d/udev-mtab
lrwxrwxrwx 1 root root  18 Sep 11 01:01 S38pppd-dns -> ../init.d/pppd-dns
lrwxrwxrwx 1 root root  18 Sep 11 06:14 S39ifupdown -> ../init.d/ifupdown
lrwxrwxrwx 1 root root  20 Sep 11 06:14 S40networking -> ../init.d/networking
lrwxrwxrwx 1 root root  16 Sep 11 06:15 S40pcmcia -> ../init.d/pcmcia
lrwxrwxrwx 1 root root  21 Sep 11 06:15 S40pcmciautils -> ../init.d/pcmciautils
lrwxrwxrwx 1 root root  24 Sep 11 02:28 S41ipw3945d -> ../init.d/ipw3945d-start
lrwxrwxrwx 1 root root  17 Sep 11 06:29 S43portmap -> ../init.d/portmap
lrwxrwxrwx 1 root root  21 Sep 11 06:14 S45mountnfs.sh -> ../init.d/mountnfs.sh
lrwxrwxrwx 1 root root  31 Sep 11 06:14 S46mountnfs-bootclean.sh -> ../init.d/mountnfs-bootclean.sh
lrwxrwxrwx 1 root root  27 Sep 11 06:14 S48console-screen.sh -> ../init.d/console-screen.sh
lrwxrwxrwx 1 root root  20 Sep 11 06:30 S50alsa-utils -> ../init.d/alsa-utils
lrwxrwxrwx 1 root root  21 Sep 11 06:14 S55bootmisc.sh -> ../init.d/bootmisc.sh
lrwxrwxrwx 1 root root  17 Sep 11 06:14 S55urandom -> ../init.d/urandom
lrwxrwxrwx 1 root root  20 Sep 11 06:23 S70x11-common -> ../init.d/x11-common
lrwxrwxrwx 1 root root  14 Sep 11 06:30 S75sudo -> ../init.d/sudo
lrwxrwxrwx 1 root root  30 Sep 11 06:14 S99stop-bootlogd-single -> ../init.d/stop-bootlogd-single
birdofprey:/etc/rcS.d#
回复 支持 反对

使用道具 举报

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

本版积分规则

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