LinuxSir.cn,穿越时空的Linuxsir!

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

无线网卡和红外的问题?

[复制链接]
发表于 2006-3-29 11:06:06 | 显示全部楼层 |阅读模式
ibmR51,
debian testing kernel2.6.15-1.686

无线网卡是intel2200bg的,我以前也没用过无线,胡乱安装的系统,
好象默认代了无线大模块,但是无线不能用(其实我还没想用呢,只是没反映)

装了(忘记是不是默认就安装的)ibm_acpi,但是怎么之道他是否起作用拉呢?
我没作任何设置。

红外也是不能用,看看我的模块吧:
[PHP]debian:~# w
10:47:31 up  1:55,  3 users,  load average: 0.04, 0.11, 0.12
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
hx       :0       -                08:53   ?xdm?   2:25m  0.54s x-session-manager
hx       pts/0    :0.0             08:53    0.00s  0.26s  3.98s gnome-terminal --working-directory=
hx       pts/1    :0.0             09:13    4:16m  0.04s  0.04s bash
debian:~# ls
dbootstrap_settings  fonts.scale  install-report.template
debian:~# lsmod
Module                  Size  Used by
ieee80211_crypt_tkip     9920  0
ibm_acpi               25856  0
yealink                11456  0
ipv6                  221696  6
eth1394                18344  0
pcmcia                 35708  0
joydev                  8864  0
evdev                   8800  0
mousedev               10496  1
yenta_socket           24972  1
rsrc_nonstatic         11968  1 yenta_socket
ipw2200                96236  0
irtty_sir               7584  0
ieee80211              29064  1 ipw2200
ieee80211_crypt         5344  2 ieee80211_crypt_tkip,ieee80211
pcmcia_core            37872  3 pcmcia,yenta_socket,rsrc_nonstatic
sir_dev                16972  1 irtty_sir
firmware_class          9696  2 pcmcia,ipw2200
ohci1394               30164  0
ieee1394               88152  2 eth1394,ohci1394
snd_intel8x0           29596  1
irda                  162300  2 irtty_sir,sir_dev
snd_intel8x0m          15788  0
snd_pcm_oss            45536  0
snd_mixer_oss          16448  1 snd_pcm_oss
psmouse                32356  0
serio_raw               6468  0
snd_ac97_codec         82464  2 snd_intel8x0,snd_intel8x0m
snd_ac97_bus            2048  1 snd_ac97_codec
crc_ccitt               1952  1 irda
snd_pcm                77576  4 snd_intel8x0,snd_intel8x0m,snd_pcm_oss,snd_ac97_codec
snd_timer              21316  1 snd_pcm
snd                    48420  9 snd_intel8x0,snd_intel8x0m,snd_pcm_oss,snd_mixer_oss,snd_ac97_codec,snd_pcm,snd_timer
soundcore               8928  1 snd
i2c_i801                7916  0
i2c_core               19280  1 i2c_i801
snd_page_alloc          9928  3 snd_intel8x0,snd_intel8x0m,snd_pcm
rtc                    11316  0
intel_agp              20796  1
shpchp                 39712  0
pci_hotplug            24756  1 shpchp
floppy                 54628  0
pcspkr                  1668  0
agpgart                31400  1 intel_agp
parport_pc             32036  0
parport                31624  1 parport_pc
hw_random               4884  0
reiserfs              224048  1
ide_generic             1120  0 [permanent]
usbhid                 32320  0
ide_cd                 36484  0
cdrom                  33280  1 ide_cd
ide_disk               15712  3
uhci_hcd               28016  0
ehci_hcd               28904  0
e1000                  94548  0
piix                    8964  0 [permanent]
generic                 4260  0 [permanent]
ide_core              112800  5 ide_generic,ide_cd,ide_disk,piix,generic
usbcore               113284  5 yealink,usbhid,uhci_hcd,ehci_hcd
thermal                13416  0
processor              22912  1 thermal
fan                     4580  0
debian:~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:0D:60:77:A5:01
          inet addr:192.168.2.106  Bcast:255.255.255.255  Mask:255.255.255.0
          inet6 addr: fe80::20d:60ff:fe77:a501/64 Scopeink
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:55524 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11249 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:18180970 (17.3 MiB)  TX bytes:1588190 (1.5 MiB)
          Base address:0x7000 Memory:d0220000-d0240000

eth1      Link encap:UNSPEC  HWaddr 00-0A-E4-AA-AA-25-E9-7E-00-00-00-00-00-00-00-00
          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)

lo        Link encapocal Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:152 errors:0 dropped:0 overruns:0 frame:0
          TX packets:152 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:7600 (7.4 KiB)  TX bytes:7600 (7.4 KiB)

sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  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:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

debian:~# iw
iwconfig  iwevent   iwgetid   iwlist    iwpriv    iwspy
debian:~# iwconfig -a
-a        No such device

debian:~#
debian:~# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      no wireless extensions.

sit0      no wireless extensions.



[/PHP]
发表于 2006-3-29 11:22:25 | 显示全部楼层
恩,跟我想解决的问题一样,等高手指点!
回复 支持 反对

使用道具 举报

发表于 2006-3-29 12:26:42 | 显示全部楼层
eth1是1394
eth0是e1000网卡,
ms你的无线网卡没有驱动起来。

你试试:
#modprobe ipw2200
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-29 12:59:24 | 显示全部楼层
a还是老样子。
debian:~# lsmod |grep 2200
ipw2200                96236  0
ieee80211              29064  1 ipw2200
firmware_class          9696  2 ipw2200,pcmcia


不知道要不要装个ipw2200-source什么的?还有就是madwifi有什么用呢?没装
回复 支持 反对

使用道具 举报

发表于 2006-3-29 19:40:23 | 显示全部楼层
Post by dajun
a还是老样子。
debian:~# lsmod |grep 2200
ipw2200                96236  0
ieee80211              29064  1 ipw2200
firmware_class          9696  2 ipw2200,pcmcia


不知道要不要装个ipw2200-source什么的?还有就是madwifi有什么用呢?没装


你用的内核已经内置了ipw2200的驱动,只是还需要小小的设置一下就可以用了,什么都不用装,修改你的/etc/network/interfaces,添加下面这段:

# The wireless network interface
auto eth2
iface eth2 inet static (如果是动态的地址,把static改成dhcp,去掉最后三行)
wireless-essid xxxx (此处填写你的无线连接的名字)
wireless-key xxxxxx(如果是加密连接这里写密码,否则去掉这一行)
wireless-channel 11 (根据无线路由器设定填写使用的信道)
address 192.168.1.30 (下面这三行根据你的情况修改)
netmask 255.255.255.0
gateway 192.168.1.1

修改完毕之后,保存。在/etc/resolv.conf中设定一下DNS的地址。重新启动机器之后无线网络就默认打开了。

由于我没有红外的设备,所以这个方面帮不了你了,不过你的红外设备已经被内核识别了,而且加载了相应的模块,现在就是怎么使用的问题了,呵呵。这个论坛上有帖子,我见过,你找一下吧。
回复 支持 反对

使用道具 举报

发表于 2006-3-29 23:49:21 | 显示全部楼层
你看看系统日志
dmesg|less看看启动ipw2200时是否有错误信息?

你试试
modprobe -r ipw2200
modprobe ipw2200

看看是否发现无线网卡。

比如:ifconfig -a
会多一个网卡。

如果还不行,试试从源文件重新编译模块。
回复 支持 反对

使用道具 举报

发表于 2006-3-30 18:27:50 | 显示全部楼层
我想起来了,你是不是没装firmware?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-10 18:34:56 | 显示全部楼层
[PHP]ieee80211_crypt: registered algorithm 'NULL'
ieee80211: 802.11 data/management/control stack, git-1.1.7
ieee80211: Copyright (C) 2004-2005 Intel Corporation <jketreno@linux.intel.com>
ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, git-1.0.8
ipw2200: Copyright(c) 2003-2005 Intel Corporation
mice: PS/2 mouse device common for all mice
Yenta: ISA IRQ mask 0x0438, PCI irq 11
Socket status: 30000086
pcmcia: parent PCI bridge I/O window: 0x3000 - 0x7fff
cs: IO port probe 0x3000-0x7fff: clean.
pcmcia: parent PCI bridge Memory window: 0xd0200000 - 0xdfffffff
pcmcia: parent PCI bridge Memory window: 0xf0000000 - 0xf7ffffff
ACPI: PCI Interrupt Link [LNKF] enabled at IRQ 11
ACPI: PCI Interrupt 0000:02:02.0[A] -> Link [LNKF] -> GSI 11 (level, low) -> IRQ 11
ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection
Synaptics Touchpad, model: 1, fw: 5.9, id: 0x2c6ab1, caps: 0x884793/0x0
serio: Synaptics pass-through port at isa0060/serio1/input0
input: SynPS/2 Synaptics TouchPad as /class/input/input3
eth1394: $Rev: 1312 $ Ben Collins <bcollins@debian.org>
ipw2200: ipw-2.4-boot.fw load failed: Reason -2
ipw2200: Unable to load firmware: -2
ipw2200: failed to register network device
eth1394: eth1: IEEE-1394 IPv4 over 1394 Ethernet (fw-host0)
ACPI: PCI interrupt for device 0000:02:02.0 disabled
ipw2200: probe of 0000:02
:02.0 failed with error -5
[/PHP]

[PHP]ipw2200: ipw-2.4-boot.fw load failed: Reason -2
ipw2200: Unable to load firmware: -2
ipw2200: failed to register network device
eth1394: eth1: IEEE-1394 IPv4 over 1394 Ethernet (fw-host0)
ACPI: PCI interrupt for device 0000:02:02.0 disabled
ipw2200: probe of 0000:02:02.0 failed with error -5

[/PHP]

acpi
[PHP]ibm_acpi: IBM ThinkPad ACPI Extras v0.12a
ibm_acpi: http://ibm-acpi.sf.net/
ibm_acpi: dock device not present
ACPI: Battery Slot [BAT0] (battery absent)
ACPI: AC Adapter [AC] (on-line)
ACPI: Power Button (FF) [PWRF]
ACPI: Lid Switch [LID]
ACPI: Sleep Button (CM) [SLPB]
mtrr: no more MTRRs available
[/PHP]

当然我的/etc/network/interface文件并没有配置无线的接口,
能不能不配置呢?我在windows上也不配置他就能自动发现无线网络

看看我是系统的问题还是配置文件的问题
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-10 18:47:50 | 显示全部楼层
apcid  和ibm_acpi都要装?我都装拉,但是好象没什么作用,那些vsleep什么大脚本还没弄
回复 支持 反对

使用道具 举报

发表于 2006-4-10 19:36:31 | 显示全部楼层
去下载firmware,然后复制到/lib/firmware目录下。

x300-huang:~$ ll /lib/firmware/
总用量 612
-rw-r--r--  1 root root 209190 2006-03-20 22:29 ipw2100-1.3.fw
-rw-r--r--  1 root root 201138 2006-03-20 22:29 ipw2100-1.3-i.fw
-rw-r--r--  1 root root 196458 2006-03-20 22:29 ipw2100-1.3-p.fw

我用的是ipw2100的无线网卡。

这是内核说明文件中的一部分

Documentation/networking/README.ipw2200

5.  Firmware installation
----------------------------------------------

The driver requires a firmware image, download it and extract the
files under /lib/firmware (or wherever your hotplug's firmware.agent
will look for firmware files)

The firmware can be downloaded from the following URL:

    http://ipw2200.sf.net/
回复 支持 反对

使用道具 举报

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

本版积分规则

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