LinuxSir.cn,穿越时空的Linuxsir!

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

IBM R52 laptop上的archlinux 无线问题(已解决)

[复制链接]
发表于 2007-5-8 18:48:51 | 显示全部楼层 |阅读模式
我执行了以下操作:
$ lshwd |grep ipw
04:02.0 Network controller: Intel Corp.|Intel(R) PRO/Wireless 2200BG (ipw2200)
$ pacman -S wireless_tools
$ pacman -S ipw2200-fw
$ iwconfig
lo        no wireless extensions.
eth0      no wireless extensions.
irda0     no wireless extensions.
eth1      no wireless extensions.


$ /etc/conf.d/wireless如下
wlan_eth1="eth1 mode Managed essid default"
WLAN_INTERFACES=(eth1)

$ /etc/rc.conf中的相关如下:
MODULES=(tg3 ipw2200 ac battery button fan !thermal button !processor ibm_acpi fglrx capability)

lo="lo 127.0.0.1"
eth0="eth0 192.168.72.90"
wlan_eth1="dhcp mode managed essid default key e235485511"
INTERFACES=(lo eth0 eth1)


我是在宿舍adsl+无线路由上网的, 做了以上修改后, 重新启动arch, 我电脑上的无线指示灯不亮.
当用ubuntu时, 开机会自动加载无线驱动, 无线能够正常使用.
发表于 2007-5-8 20:46:39 | 显示全部楼层
#modprobe ipw2200
then add ipw2200 to MODULE=() array in /etc/rc.conf
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-5-8 23:21:30 | 显示全部楼层
我原来ipw2200就是在MODULE()里的.
执行modprobe ipw2200没有任何反应, 执行ifconfig还是没有eth1无线网卡.
回复 支持 反对

使用道具 举报

发表于 2007-5-8 23:47:38 | 显示全部楼层
要先ifconfig eth1 up, iwconfig才有用的. 而且你本本上如果有与无线网卡相关的硬开关, 还有可能要按一下才行.
回复 支持 反对

使用道具 举报

发表于 2007-5-8 23:48:08 | 显示全部楼层
要先ifconfig eth1 up, iwconfig才有用的. 而且你本本上如果有与无线网卡相关的硬开关, 还有可能要按一下才行.
回复 支持 反对

使用道具 举报

发表于 2007-5-9 03:33:35 | 显示全部楼层
贴一下你的lsmod和/proc/net/dev, and dmesg | grep 2200
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-5-9 08:36:44 | 显示全部楼层
Post by leemars
要先ifconfig eth1 up, iwconfig才有用的. 而且你本本上如果有与无线网卡相关的硬开关, 还有可能要按一下才行.


谢谢你的解答.
我执行了ifconfig eth1 up, 但是没有用, iwconfig输出没有任何变化. 我的笔记本的无线硬开关一直是开着的, 因为我在ubuntu下是用无线上网.

Post by colinzhengj
贴一下你的lsmod和/proc/net/dev, and dmesg | grep 2200


谢谢你的帮助. 如下:
$ lsmod |grep ipw
ipw2200               141768  0
ieee80211              30536  1 ipw2200

$ cat /proc/net/dev
Inter-|   Receive                                                |  Transmit
face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
    lo:    1936      22    0    0    0     0          0         0     1936      22    0    0    0     0       0          0
  eth0: 1842105    2206    0    0    0     0          0         0   222431    1868    0    0    0     0       0          0
irda0:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
  eth1:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0

$ dmesg |grep 2200
ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 1.2.0kmprq
ipw2200: Copyright(c) 2003-2006 Intel Corporation
ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection
ipw2200: ipw2200-bss.fw request_firmware failed: Reason -2
ipw2200: Unable to load firmware: -2
ipw2200: failed to register network device
ipw2200: probe of 0000:04:02.0 failed with error -5

看上去我的ipw2200模块没有加载成功. 但是为什么呢?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-5-9 09:05:27 | 显示全部楼层
新发现:
执行如下命令:
$ sudo rmmod ipw2200
$ sudo modprobe ipw2200

然后:
$ iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

irda0     no wireless extensions.

eth1      no wireless extensions.

eth2      unassociated  ESSID: off/any  
          Mode:Managed  Channel=0  Access Point: Not-Associated   
          Bit Rate:0 kb/s   Tx-Power=20 dBm   Sensitivity=8/0  
          Retry limit:7   RTS thr: off   Fragment thr: off
          Power Management: off
          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:0   Missed beacon:0

现在我也不知道我的无线是eth1, 还是eth2了, 我把/etc/rc.conf和/etc/conf.d/wireless中的eth1都改为eth2, 重新启动, 执行:
$ iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

irda0     no wireless extensions.

eth1      no wireless extensions.

即没有eth2显示.
也就是说, 当我开机时,  不会自动检测到eth2硬件.
回复 支持 反对

使用道具 举报

发表于 2007-5-9 09:11:05 | 显示全部楼层
http://ipw2200.sourceforge.net/firmware.php

检查你的 firmware 版本和网卡驱动(i.e. 内核版本)是不是配套
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-5-9 09:17:23 | 显示全部楼层
大大大大大进展!
在上面帖子的基础上, 我执行了如下命令:
$ iwconfig eth2 essid default key e235485511
$dhcped eth2
然后我的无线指示灯非常激动人心地闪亮起来!
欧耶~

下面问题转化为:
1. 到底我的无线网卡是eth1 还是eth2, 如果是eth2, 为什么开机不能识别?
2. 我怎么把无线设置为开机自动启动? 包括
$ iwconfig eth2 essid default key e235485511
$dhcped eth2
回复 支持 反对

使用道具 举报

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

本版积分规则

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