URN Logo
UNIX Resources » Linux » China Linux Forum » 网络管理技术 » 2 » 求助,无线网卡的问题?
announcement 声明: 本页内容为中国Linux论坛的内容镜像,文章的版权以及其他所有的相关权利属于中国Linux论坛和相应文章的作者,如果转载,请注明文章来源及相关版权信息。
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.net
  业界新闻与评论
  自由软件杂谈
  IT 人生
  Linux软件快递
  翻译作坊
  Linux图书与评论
  GNU Emacs/XEmacs
  Linux 中文环境和中文化
  Linux桌面与办公软件
  Linux 多媒体与娱乐版
  自由之窗Mozilla
  笔记本电脑上的Linux
  Gentoo
  Debian 一族
  网络管理技术
  Linux 安装与入门
  WEB服务器和FTP服务器
  域名服务器和邮件服务器
  Linux防火墙和代理服务器应用
  文件及打印服务器
  技术培训与认证
  Linux内核技术
  Linux 嵌入技术
  Linux设备驱动程序
  Linux 集群技术
  LINUX平台数据库
  系统和网络安全
  CPU 与 编译器
  系统计算研究所专栏
  Linux下的GUI软件开发
  C/C++编程版
  PHP 技 术
  Java&jsp技术
  Shell编程技术
  Perl 编 程
  Python 编 程
  XML/Web Service 技术
  永远的Unix
  FreeBSD世界
   
求助,无线网卡的问题?
求助,无线网卡的问题? - gavinlx [2006-10-13 21:54 | 650 byte(s)]
 
Re: 求助,无线网卡的问题? - ElTopo [2006-10-14 02:25 | 390 byte(s)]
 
Re: 求助,无线网卡的问题? - gavinlx [2006-10-14 17:36 | 7,330 byte(s)]
 
Re: 求助,无线网卡的问题? - ElTopo [2006-10-15 04:26 | 732 byte(s)]
 
Re: 求助,无线网卡的问题? - gavinlx [2006-10-15 11:43 | 845 byte(s)]
 
Subject: 求助,无线网卡的问题?
Author: gavinlx    Posted: 2006-10-13 21:54    Length: 650 byte(s)
[Original] [Print] [Top]
dell的笔记本,broadcom的无线网卡,不过已经安装驱动了,
fedora, 2.6的内核, 
在进入系统的时候,会跳出字符界面检测到网卡,并要求设置ip地址,但之后启动过程中会出现:
can not change name of lo to eth0, device or resource busy interface,
'eth0' not found,
进入系统之后,使用ifconfig也看不到eth0,只有lo,加入 -a 选项,看到lo 还有一个
sit0,link encap:ipv6-in-ipv4, noarp mtu: 1480 metric :1

使用ifup eth0 up 同样出现 can not change name of lo to eth0, device or resource busy interface,
请问是哪里除了问题呢? 该怎样解决,
谢谢,
----
我是葫芦第九娃,拜过菩萨,等着开花
[Original] [Print] [Top]
Subject: Re: 求助,无线网卡的问题?
Author: ElTopo    Posted: 2006-10-14 02:25    Length: 390 byte(s)
[Original] [Print] [Top]
首先要搞清楚你的网卡驱动安装的接口名称是 eth0 还是 wlan0 什么的,可以在 /var/log/messages 里面查看;如果安装的是 eth0,那么 'eth0' not found 说明驱动没有正常工作;

其次检查 /etc/network 下面的设定(fedora可以在类似的目录里面)。

sit0 是做 IPv4/IPv6 的虚拟接口。

还有,2.6 太笼统了,2.6.x 后面的 x 不同,网卡的具体设置方法也有可能不同。
[Original] [Print] [Top]
Subject: Re: 求助,无线网卡的问题?
Author: gavinlx    Posted: 2006-10-14 17:36    Length: 7,330 byte(s)
[Original] [Print] [Top]
谢谢你的回答,

我在/val/log/message 里面查找下,没有 wlan, 部分如下,


Oct 14 12:49:14 localhost kernel: floppy0: no floppy controllers found
Oct 14 12:49:14 localhost kernel: ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 0.11
Oct 14 12:49:14 localhost kernel: ipw2200: Copyright(c) 2003-2004 Intel Corporation
Oct 14 12:49:14 localhost kernel: ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection
Oct 14 12:49:14 localhost kernel: ipw2200: ipw2200_boot.fw load failed
Oct 14 12:49:14 localhost kernel: ipw2200: Unable to load firmware: 0xFFFFFFFE
Oct 14 12:49:14 localhost kernel: ipw2200: failed to register network device
Oct 14 12:49:14 localhost kernel: ipw2200: probe of 0000:02:03.0 failed with error -5
Oct 14 12:49:14 localhost kernel: ip_tables: (C) 2000-2002 Netfilter core team
Oct 14 12:49:14 localhost kernel: ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 0.11
Oct 14 12:49:14 localhost kernel: ipw2200: Copyright(c) 2003-2004 Intel Corporation
Oct 14 12:49:14 localhost kernel: ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection
Oct 14 12:49:14 localhost kernel: ipw2200: ipw2200_boot.fw load failed
Oct 14 12:49:14 localhost kernel: ipw2200: Unable to load firmware: 0xFFFFFFFE
Oct 14 12:49:14 localhost kernel: ipw2200: failed to register network device
Oct 14 12:49:14 localhost kernel: ipw2200: probe of 0000:02:03.0 failed with error -5
Oct 14 12:49:11 localhost ifup: cannot change name of lo to eth0: Device or resource busy
Oct 14 12:49:11 localhost ifup: Device eth0 has different MAC address than expected, ignoring.
Oct 14 12:49:11 localhost ifup:
Oct 14 12:49:11 localhost ifup: interface 'eth0' not found
Oct 14 12:49:11 localhost ifup: cannot change name of lo to eth0: Device or resource busy
Oct 14 12:49:11 localhost ifup: cannot change name of lo to eth0: Device or resource busy
Oct 14 12:49:11 localhost ifup: interface 'eth0' not found
Oct 14 12:49:11 localhost ifup: cannot change name of lo to eth0: Device or resource busy
Oct 14 12:49:11 localhost network: Bringing up interface eth0: failed
Oct 14 12:49:11 localhost ifup: ipw2200 device eth1 does not seem to be present, delaying initialization.
Oct 14 12:49:11 localhost network: Bringing up interface eth1: failed
Oct 14 12:49:11 localhost network: Bringing up interface net: succeeded
Oct 14 12:49:18 localhost rpcidmapd: rpc.idmapd startup succeeded
Oct 14 12:49:19 localhost random: Initializing random number generator: succeeded


发现虽然检测到硬件但是启动ipw驱动时候出错, ipw2200_boot.fw load failed 后面也就没有注册设备,

在系统里面搜索,发现已经安装 ipw2200_boot.fw 等,

检查驱动版本,是ipw2200-0.1, 内核是 2.6.5-1.358,
上 http://ipw2200.sourceforge.net/ 看到这样一段,
Firmware files fail to load even if installed
In some kernel configurations (users have most frequently reported the problem only with 2.6.9), the default timeout value for the hotplug subsystem is too low. You may have this problem if you see the following in your kernel log (via dmesg or /var/log/messages):
ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 1.0.1
ipw2200: Copyright(c) 2003-2004 Intel Corporation
ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection
ipw2200: ipw-2.2-boot.fw load failed: Reason -2
ipw2200: Unable to load firmware: 0xFFFFFFFE
ipw2200: failed to register network device
ipw2200: probe of 0000:00:0b.0 failed with error -5

To work around this, you can increase the default timeout value:

echo 100 > /sys/class/firmware/timeout

and then reload the ipw2200 module. If this corrects your problem, you may wish to add the above line to your system startup scripts prior to the point at which the driver module would be loaded.
The other most common reason for getting the above error is that the firmware files are not installed in the correct location. Please see the INSTALL document for information on installing the firmware files.

我输入 
echo 100 > /sys/class/firmware/timeout 后重新load ipw2200.ko, 在/val/log/message 里面看到, ipw2200: Detected Interl PRO/Wireless 2200BG Network Connection
之后用 ifconfig -a  除了 lo , sti0 可以看到一个新的设备,

dev6909 Link encap:Ethernet HWaddr 00:0E:35:5C:1C:4E
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Base address:0xa000 Memory:fafff000-faffffff

但是ifup dev6909
[root@localhost /]# ifup dev6909
/sbin/ifup: configuration for dev6909 not found.

[root@localhost /]# ifup eth0
cannot change name of lo to eth0: Device or resource busy
interface 'eth0' not found
cannot change name of lo to eth0: Device or resource busy
cannot change name of lo to eth0: Device or resource busy
interface 'eth0' not found
cannot change name of lo to eth0: Device or resource busy
Device eth0 has different MAC address than expected, ignoring.
[root@localhost /]# ifup eth1
ipw2200 device eth1 does not seem to be present, delaying initialization.

在 /etc/sysconfig/network-scripts 里面有如下配置文件,
[root@localhost network-scripts]# ls
ApmodeCfg-eth1 ifdown-ipsec ifup-ipsec ifup-sl
heliifconfig ifdown-ipv6 ifup-ipv6 ifup-wireless
ifcfg-eth0 ifdown-isdn ifup-ipx init.ipv6-global
ifcfg-eth1 ifdown-post ifup-isdn keys-eth1
ifcfg-lo ifdown-ppp ifup-plip labifcfg-eth1
ifcfg-net ifdown-sit ifup-plusb network-functions
ifcfg-rausb0 ifdown-sl ifup-post network-functions-ipv6
ifdown ifup ifup-ppp
ifdown-aliases ifup-aliases ifup-routes
ifdown-ippp ifup-ippp ifup-sit


其中, 
[root@localhost network-scripts]# cat ifcfg-eth1
# Intel Corp.|Intel(R) PRO/Wireless 2200BG
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=static
IPADDR=202.38.214.222
NETMASK=255.255.255.0
GATEWAY=202.38.214.254

这里的ip是在开机检查到硬件时设置的,

并且如果重载 ipw2200.ko模块, 检测到的硬件并 ifconfig -a 的设备名 dev6909 会变化为, devXXXX, 后面为随机的数字,

请问我怎样才能使用到无线网卡呢?? 
因为内核,还有网卡驱动都是之前的师兄装的,也搞不清楚他里面怎么配置的,

----
我是葫芦第九娃,拜过菩萨,等着开花
[Original] [Print] [Top]
Subject: Re: 求助,无线网卡的问题?
Author: ElTopo    Posted: 2006-10-15 04:26    Length: 732 byte(s)
[Original] [Print] [Top]
http://ipw2200.sourceforge.net/

这一页里面讲了:
Requirements:
In order to use the IPW2200 driver you will need the following:
1. Linux (of course) with a 2.6.8+ kernel

你说你的内核是 2.6.5-1.358,这里会不会有问题?

还有你的network-scripts目录下只有几个 ifcfg-* (eth0/eth1/lo...), ifup dev6909 肯定不会工作的,必须有相应的 ifcfg-dev6909 脚本才行。我觉得还是驱动没有加载正确,应该是用 eth0 这样标准接口的

另外,似乎还需要用 iwconfig 设定一些无线方面的东西的。无线和有线不同,需要设置 tunnel、mode (adhoc/ap)、加密key等等。
[Original] [Print] [Top]
Subject: Re: 求助,无线网卡的问题?
Author: gavinlx    Posted: 2006-10-15 11:43    Length: 845 byte(s)
[Original] [Print] [Top]
2.6.8+是对ipw2200的新版本来说的,
机器上使用的是0.1的版本,看安装文档对2.6.5的内核是支持的,

因为系统的安装和使用都是以前师兄留下的,所以很多东西不知道还有不有用,也不知道该怎么用,使用的这个内核甚至连x-window都启动不了,

上面提到过,系统可以检测到硬件,而且在lsmod里面也可以看到ipw2200.ko模块,错误发生在
ipw2200_boot.fw load failed ,然后后面不能注册设备名,
之后按 http://ipw2200.sourceforge.net/ 提示,

echo 100 > /sys/class/firmware/timeout

重新加载ipw2200.ko模块,可以找到硬件,就是dev6090,问题是我并不知道这个设备名怎么来的,在哪里设置,而且,上面也提到,每次重载,他的设备名会变化的,比如第二次重载可能变成, dev3851等,
----
我是葫芦第九娃,拜过菩萨,等着开花
[Original] [Print] [Top]
« Previous thread
CDMA拨号的问题
网络管理技术
2
Next thread »
网络问题,紧急求助!!
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
备案序号: 京ICP备05006143    webmaster: webmaster@unixresources.net
This page created on 2008-07-17 02:15:53, cost 0.087038040161133 ms.