最近裝gentoo還是遇到了很多困難。特別是無線網卡比較讓人頭疼。因為我這裡只有無線的環境,無線網絡無法驅動的話gentoo相當於就是個殘廢,上 不了網後面的基本上就免談了。廢話說到這裡。我看了很多的資料,終於找到一個驅動無線網卡的方法。放在這裡,相當於是做個筆記。
gentoo wiki上推薦了一個叫做iwlwifi的東東,好像是叫做intel wireless wifi。就是intel為了他自己的無線網卡開發的的一個開源驅動,適用於Intel PRO/Wireless 3945ABG/BG或者更新型號的intel無線網卡。這個驅動在2.6.24以後的內核中已經被包含進來了。如果你安裝的發行版本是gentoo,並 且網卡是intel 3945abg/4956agn的話,那麼你就接著看下面的內容吧。
相關閱讀:
Gentoo 安裝之intel無線網卡篇 http://www.linuxidc.com/Linux/2012-03/56744.htm
Gentoo 安裝之intel Core2 CPU篇 http://www.linuxidc.com/Linux/2012-03/56745.htm
Gentoo 安裝之intel GMA顯卡篇 http://www.linuxidc.com/Linux/2012-03/56745.htm
首先是編譯內核中需要主意的事項。
1.打開"mac80211"無線網絡堆棧和加密選項(Cryptographic)的WEP,WAP和WPA2支持。
Networking --->2.確認你已經在kernel中打開了"General Setup"的"Prompt for development and/or incomplete code/drivers"選項。否則你在kernel的配置中無法配置iwlwifi drivers選項。
[*] Networking support
Wireless --->
[*] Improved wireless configuration API
[*] nl80211 new netlink interface support
<*> Generic IEEE 802.11 Networking Stack (mac80211)
[*] Cryptographic API --->
--- Cryptographic API
<*> Cryptographic algorithm manager
<*> SHA1 digest algorithm
<*> SHA224 and SHA256 digest algorithm
<*> ECB support
<*> CBC support
<*> PCBC support
<*> AES cipher algorithms
<*> ARC4 cipher algorithm
<*> Michael MIC keyed digest algorithm
General Setup --->3.等會你將為你的intel無線網卡安裝對應的microcode.你可以通過portage來安裝。iwlwifi驅動會在啟動的時候裝載這個micorcode。為了讓它能正常工作起來,我們需要啟用內核的firmware_loader支持:
[*] Prompt for development and/or incomplete code/drivers
Device Drivers --->
Generic Driver Options --->
[*] Userspace firmware loading support
Device Drivers --->或者你的無線網卡是Intel Wireless WiFi 4965AGN,那麼啟用iwl4965的驅動.
[*] Network device support --->
[*] Wireless LAN --->
[*] Wireless LAN (IEEE 802.11)
<M> Intel PRO/Wireless 3945ABG/BG Network Connection
[*] Enable Wireless QoS in iwl3945 driver
[*] Enable Spectrum Measurement in iwl3945 drivers
Device Drivers --->
[*] Network device support --->
[*] Wireless LAN --->
[*] Wireless LAN (IEEE 802.11)
<M> Intel Wireless WiFi 4965AGN
[*] Enable Wireless QoS in iwl4965 driver
[*] Enable 802.11n HT features in iwl4965 driver
[*] Enable Spectrum Measurement in iwl4965 driver
[*] Enable Sensitivity Calibration in iwl4965 driver
Device Drivers --->或者你的無線網卡是Intel Wireless WiFi 4965AGN,那麼啟用iwl4965的驅動.
[*] Network device support --->
[*] Wireless LAN --->
[*] Wireless LAN (IEEE 802.11)
<*> Intel Wireless Wifi Core
[*] IWLWIFI RF kill support
< > Intel Wireless WiFi 4965AGN
<M> Intel PRO/Wireless 3945ABG/BG Network Connection
[*] Enable Spectrum Measurement in iwl3945 drivers
Device Drivers --->2.6.26以後的內核中加入了對網卡LED信號燈的支持,但是你需要知道的是當網卡通信的時候LED會不停地閃爍。
[*] Network device support --->
[*] Wireless LAN --->
[*] Wireless LAN (IEEE 802.11)
<*> Intel Wireless Wifi Core
[*] IWLWIFI RF kill support
<M> Intel Wireless WiFi 4965AGN
[*] Enable 802.11n HT features in iwl4965 driver
[*] Enable Spectrum Measurement in iwl4965 driver
[*] Enable Sensitivity Calibration in iwl4965 driver
< > Intel PRO/Wireless 3945ABG/BG Network Connection
Device Drivers --->
[*] Network device support --->
[*] Wireless LAN --->
[*] Wireless LAN (IEEE 802.11)
<M> Intel PRO/Wireless 3945ABG/BG Network Connection
[*] Enable LEDS features in iwl3945 driver
The file iwlwifi-3945.ucode provided in this package is required to be present on your system in order for the Intel PRO/Wireless 3945ABG/BG Network Connection Adapter driver for Linux (iwlwifi-3945) to be able to operate on your system.
On adapter initialization, and at varying times during the uptime of the adapter, the microcode is loaded into the RAM on the network adapter. The microcode provides the low level MAC features including radio control and high precision timing events (backoff, transmit, etc.) while also providing varying levels of packet filtering which can be used to keep the host from having to handle packets that are not of interest given the current operating mode of the device.安裝microcode只需要簡單的emerge net-wireless/iwl3945-ucode就可以了