linux(gentoo)内核编译-intel无线网卡驱动


gentoo无线网卡编译很麻烦,gentoo wiki上有个叫iwlwifi的东东,是intel为了他自己的无线网卡开发的的一个开源驱动,适用于Intel PRO/Wireless 3945ABG/BG或者更新型号的intel无线网卡,这个驱动在2.6.24以后的内核中已经被包含进来了。

下面转自gentoo wiki:https://wiki.gentoo.org/wiki/Wifi


Wifi

This article describes the setup of a Wifi network device.

Installation

Hardware detection

To choose the right driver, first detect the used Wifi controllers. You can use lspci or lsusb for this task:

root # lspci | grep -i network
user $ lsusb | grep -i network

Kernel

You need to activate the following kernel options:

 [Collapse
Kernel configuration

[*] Networking support  --->
    [*] Wireless  --->
        <*> cfg80211 - wireless configuration API
        <*> Generic IEEE 802.11 Networking Stack (mac80211)

        Optionally enable a Wifi LED:
        [*] Enable LED triggers

Device Drivers  --->
    [*] Network device support  --->
        [*] Wireless LAN  --->

            Select the driver for your Wifi network device, e.g.:
            <*> Broadcom 43xx wireless support (mac80211 stack) (b43)
            [*]    Support for 802.11n (N-PHY) devices
            [*]    Support for low-power (LP-PHY) devices
            [*]    Support for HT-PHY (high throughput) devices
            <*> Intel Wireless WiFi Next Gen AGN - Wireless-N/Advanced-N/Ultimate-N (iwlwifi)
            <*> Intel Wireless WiFi 4965AGN (iwl4965)
            <*> Intel PRO/Wireless 3945ABG/BG Network Connection (iwl3945)
            <*> Ralink driver support  --->
                <*>   Ralink rt27xx/rt28xx/rt30xx (USB) support (rt2800usb)

To enable wireless extensions, compile your kernel with the following option (this will support old wireless-tools & iwconfig):

 [Collapse
Kernel configuration

[*] Networking support  --->
    [*] Wireless  --->
        [*]     cfg80211 wireless extensions compatibility

Firmware

Besides the kernel driver, you will also need firmware:

Wifi devicedriverFirmwareNote
Broadcom 43xx wireless supportb43 / b43legacysys-firmware/b43-firmwareaircrack-ng ready, most probably the best choice if your bcm43xx device is supported
Broadcom 43xx wireless support (e.g. 4313)brcmsmac / brcmfmacsys-kernel/linux-firmwareno powersave, LED support and other features
Broadcom 43xx wireless supportwlnet-wireless/broadcom-staproprietary, no AP or Monitor modes, comparision of bcm43xx drivers
Atheros AR9271 & AR7010ath9k_htcsys-kernel/linux-firmware 
Intel PRO/Wireless 3945ABG/BGiwl3945sys-kernel/linux-firmware 
Intel Wireless WiFi 4965AGNiwl4965sys-kernel/linux-firmware 
Intel Wireless WiFi 5100AGN, 5300AGN, 5350AGNiwlwifisys-firmware/iwl5000-ucode or sys-kernel/linux-firmware 
Intel Wireless WiFi 5150AGNiwlwifisys-firmware/iwl5150-ucode or sys-kernel/linux-firmware 
Intel Centrino Wireless-N 1000iwlwifisys-firmware/iwl1000-ucode or sys-kernel/linux-firmware 
Intel Centrino Ultimate-N 6300, Advanced-N 6200iwlwifisys-firmware/iwl6000-ucode or sys-kernel/linux-firmware 
Intel Centrino Advanced-N + WiMAX 6250, Wireless-N + WiMAX 6150iwlwifisys-firmware/iwl6050-ucode or sys-kernel/linux-firmware 
Intel Centrino Advanced-N 6205iwlwifisys-firmware/iwl6005-ucode or sys-kernel/linux-firmware 
Intel Centrino Advanced-N 6230, Wireless-N 1030, Wireless-N 130iwlwifisys-firmware/iwl6030-ucode or sys-kernel/linux-firmware 
Intel Centrino Wireless-N 2200iwlwifisys-firmware/iwl2000-ucode or sys-kernel/linux-firmware 
Intel Centrino Wireless-N 2230iwlwifisys-firmware/iwl2030-ucode or sys-kernel/linux-firmware 
Intel Centrino Wireless-N 100, 105, 135iwlwifisys-kernel/linux-firmware 
Ralink driver supporte.g. rt2800usbsys-kernel/linux-firmware 
b43

Install the required package, e.g for sys-firmware/b43-firmware:

root # echo "sys-firmware/b43-firmware" >> /etc/portage/package.accept_keywords
root # echo "sys-firmware/b43-firmware Broadcom" >> /etc/portage/package.license
root # emerge --ask b43-firmware
linux-firmware

Install the required package, e.g for sys-kernel/linux-firmware:

root # emerge --ask linux-firmware

If there is no package, you have to download the firmware and move it to /lib/firmware yourself.

Testing

After a reboot with the new kernel or after loading the modules, check that the device is ready using one of following methods:

Note
The name of the device may be different, e.g. eth1 or ath0 or a name as described in Predictable Network Interface Names if you use >= sys-fs/udev-200 with default configuration
user $ ip addr
3: wlan0:   ...
user $ ifconfig -a
wlan0     ...
root # iwconfig
wlan0     ...
root # iw dev
   phy#0
	Interface wlan0
		ifindex 4
		type managed

If not, check dmesg for errors:

user $ dmesg

Configuration

Advanced Configuration

External resources

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值