编译内核, 但无线网卡(iwl4965)不能用. [已解决]

编译打包和其他
回复
头像
kelen
帖子: 734
注册时间: 2008-05-02 19:50

编译内核, 但无线网卡(iwl4965)不能用. [已解决]

#1

帖子 kelen » 2009-03-31 9:33

其它的部分一直都没什么问题, 就是无线不能用. 虽然不常用, 但总觉得不爽. :em03

这是配置文件里相关iwl的选项.

代码: 全选

$ grep -v "^#" ./.config |grep -i iwl
CONFIG_IWLWIFI=m
CONFIG_IWLCORE=m
CONFIG_IWLWIFI_LEDS=y
CONFIG_IWLAGN=m
CONFIG_IWLAGN_SPECTRUM_MEASUREMENT=y
CONFIG_IWLAGN_LEDS=y
CONFIG_IWL4965=y
用编译的内核进入系统后, 从lshw可以看到无线是关闭的.

代码: 全选

$ lshw -C network
  *-network DISABLED
       description: Wireless interface
       product: PRO/Wireless 4965 AG or AGN Network Connection
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wmaster0
       version: 61
       serial: 00:1d:e0:00:c1:c1
       width: 64 bits
       clock: 33MHz
       capabilities: cap_list logical ethernet physical wireless
       configuration: broadcast=yes driver=iwlagn latency=0 module=iwlagn multicast=yes wireless=IEEE 802.11abgn
用ifconfig当然没有wlan0的存在

代码: 全选

$ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1e:37:18:f0:60  
          UP BROADCAST RUNNING 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)
          Memory:fe200000-fe220000 

eth0:avahi Link encap:Ethernet  HWaddr 00:1e:37:18:f0:60  
          inet addr:169.254.6.117  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Memory:fe200000-fe220000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:306 errors:0 dropped:0 overruns:0 frame:0
          TX packets:306 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:16092 (15.7 KB)  TX bytes:16092 (15.7 KB)
上次由 kelen 在 2009-04-01 9:14,总共编辑 2 次。
In a world without walls who needs Windows?
头像
kelen
帖子: 734
注册时间: 2008-05-02 19:50

Re: 编译内核, 但无线网卡(iwl4965)不能用.

#2

帖子 kelen » 2009-03-31 9:36

这是在之前的内核里 lshw -C network , 在这个内核里是可用的.

代码: 全选

  *-network
       description: Wireless interface
       product: PRO/Wireless 4965 AG or AGN Network Connection
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wmaster0
       version: 61
       serial: 00:1d:e0:00:c1:c1
       width: 64 bits
       clock: 33MHz
       capabilities: bus_master cap_list logical ethernet physical wireless
       configuration: broadcast=yes driver=iwlagn ip=192.168.1.2 latency=0 module=iwl4965 multicast=yes wireless=IEEE 802.11abgn
In a world without walls who needs Windows?
rocky22
帖子: 684
注册时间: 2008-02-17 22:29
来自: 江苏

Re: 编译内核, 但无线网卡(iwl4965)不能用.

#3

帖子 rocky22 » 2009-03-31 9:36

试试看:

代码: 全选

sudo ifconfig wlan0 up
头像
kelen
帖子: 734
注册时间: 2008-05-02 19:50

Re: 编译内核, 但无线网卡(iwl4965)不能用.

#4

帖子 kelen » 2009-03-31 9:38

rocky22 写了:试试看:

代码: 全选

sudo ifconfig wlan0 up
ifconfig 里没有wlan0呀, 也行?
上次由 kelen 在 2009-03-31 9:55,总共编辑 1 次。
In a world without walls who needs Windows?
头像
kelen
帖子: 734
注册时间: 2008-05-02 19:50

Re: 编译内核, 但无线网卡(iwl4965)不能用.

#5

帖子 kelen » 2009-03-31 9:53

代码: 全选

modinfo iwl4965 #没有这个模块
莫非是下面的iwl4965=y 的问题? 应该=m?

代码: 全选

$ grep -v "^#" ./.config |grep -i iwl
CONFIG_IWLWIFI=m
CONFIG_IWLCORE=m
CONFIG_IWLWIFI_LEDS=y
CONFIG_IWLAGN=m
CONFIG_IWLAGN_SPECTRUM_MEASUREMENT=y
CONFIG_IWLAGN_LEDS=y
CONFIG_IWL4965=y
In a world without walls who needs Windows?
头像
kelen
帖子: 734
注册时间: 2008-05-02 19:50

Re: 编译内核, 但无线网卡(iwl4965)不能用.

#6

帖子 kelen » 2009-03-31 14:13

再menuconfig了一下, 发现iwl4965只能是y, 这是属于iwlcore这个模块的子选项.
可以排除楼上的问题了.
欢迎编译内核时 无线有经验的进来说说 :em03
In a world without walls who needs Windows?
头像
kelen
帖子: 734
注册时间: 2008-05-02 19:50

Re: 编译内核, 但无线网卡(iwl4965)不能用.

#7

帖子 kelen » 2009-04-01 9:12

在E文那边坛子里搞定. :em05
In a world without walls who needs Windows?
udlc
帖子: 181
注册时间: 2008-08-07 18:47

Re: 编译内核, 但无线网卡(iwl4965)不能用. [已解决]

#8

帖子 udlc » 2009-04-01 9:20

如何搞定


:em01
头像
kelen
帖子: 734
注册时间: 2008-05-02 19:50

Re: 编译内核, 但无线网卡(iwl4965)不能用. [已解决]

#9

帖子 kelen » 2009-04-02 14:49

在intel官方下载iwl4965的ucode, 再CP到 /lib/firmware目录即可
In a world without walls who needs Windows?
回复