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.
Contents
Installation
Hardware detection
To choose the right driver, first detect the used Wifi controllers. You can use lspci or lsusb for this task:
Kernel
You need to activate the following kernel options:
[*] 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):
[*] Networking support ---> [*] Wireless ---> [*] cfg80211 wireless extensions compatibility
Firmware
Besides the kernel driver, you will also need firmware:
Wifi device | driver | Firmware | Note |
---|---|---|---|
Broadcom 43xx wireless support | b43 / b43legacy | sys-firmware/b43-firmware | aircrack-ng ready, most probably the best choice if your bcm43xx device is supported |
Broadcom 43xx wireless support (e.g. 4313) | brcmsmac / brcmfmac | sys-kernel/linux-firmware | no powersave, LED support and other features |
Broadcom 43xx wireless support | wl | net-wireless/broadcom-sta | proprietary, no AP or Monitor modes, comparision of bcm43xx drivers |
Atheros AR9271 & AR7010 | ath9k_htc | sys-kernel/linux-firmware | |
Intel PRO/Wireless 3945ABG/BG | iwl3945 | sys-kernel/linux-firmware | |
Intel Wireless WiFi 4965AGN | iwl4965 | sys-kernel/linux-firmware | |
Intel Wireless WiFi 5100AGN, 5300AGN, 5350AGN | iwlwifi | sys-firmware/iwl5000-ucode or sys-kernel/linux-firmware | |
Intel Wireless WiFi 5150AGN | iwlwifi | sys-firmware/iwl5150-ucode or sys-kernel/linux-firmware | |
Intel Centrino Wireless-N 1000 | iwlwifi | sys-firmware/iwl1000-ucode or sys-kernel/linux-firmware | |
Intel Centrino Ultimate-N 6300, Advanced-N 6200 | iwlwifi | sys-firmware/iwl6000-ucode or sys-kernel/linux-firmware | |
Intel Centrino Advanced-N + WiMAX 6250, Wireless-N + WiMAX 6150 | iwlwifi | sys-firmware/iwl6050-ucode or sys-kernel/linux-firmware | |
Intel Centrino Advanced-N 6205 | iwlwifi | sys-firmware/iwl6005-ucode or sys-kernel/linux-firmware | |
Intel Centrino Advanced-N 6230, Wireless-N 1030, Wireless-N 130 | iwlwifi | sys-firmware/iwl6030-ucode or sys-kernel/linux-firmware | |
Intel Centrino Wireless-N 2200 | iwlwifi | sys-firmware/iwl2000-ucode or sys-kernel/linux-firmware | |
Intel Centrino Wireless-N 2230 | iwlwifi | sys-firmware/iwl2030-ucode or sys-kernel/linux-firmware | |
Intel Centrino Wireless-N 100, 105, 135 | iwlwifi | sys-kernel/linux-firmware | |
Ralink driver support | e.g. rt2800usb | sys-kernel/linux-firmware |
b43
Install the required package, e.g for sys-firmware/b43-firmware:
linux-firmware
Install the required package, e.g for sys-kernel/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:
- Using sys-apps/iproute2:
- Using sys-apps/net-tools:
- Using net-wireless/wireless-tools if your driver supports the wireless extensions stack:
- Using net-wireless/iw ,if your driver supports the nl80211 stack
If not, check dmesg for errors: