Geek-Side

Resource > Gentoo wireless
Gentoo Linuxでの Broadcom 43系ワイヤレスカード設定メモです。。

kernelの設定

 -> Device Drivers
        -> Network device support (NETDEVICES [=y])
          -> Wireless LAN
 
 <*> Broadcom 43xx wireless support (mac80211 stack)
                                           [*]   Broadcom 43xx PCMCIA device support (EXPERIMENTAL)
                                           [*]   Broadcom 43xx debugging
                                           [ ]     Force usage of PIO instead of DMA
                                           <*> Broadcom 43xx-legacy wireless support (mac80211 stack)
                                           [*]   Broadcom 43xx-legacy debugging

b43xx-fwcutterのインストール

http://wireless.kernel.org/en/users/Drivers/b43#fw-b43-lp
 sudo emerge b43xx-fwcutter
 wget http://mirror2.openwrt.org/sources/broadcom-wl-4.150.10.5.tar.bz2
 tar xjf broadcom-wl-4.150.10.5.tar.bz2
 broadcom-wl-4.150.10.5/driver/
 export FIRMWARE_INSTALL_DIR="/lib/firmware"
 sudo b43-fwcutter -w "$FIRMWARE_INSTALL_DIR" wl_apsta_mimo.o 

結果を確認
 sudo ls -la /lib/firmware/b43/
 Password: 
 total 332
 drwxr-x---  2 root root  4096 Feb 12 21:47 .
 drwxr-xr-x 20 root root  4096 Feb 12 21:47 ..
 -rw-r--r--  1 root root    18 Feb 12 21:47 a0g0bsinitvals4.fw
 -rw-r--r--  1 root root   158 Feb 12 21:47 a0g0bsinitvals5.fw
 -rw-r--r--  1 root root   158 Feb 12 21:47 a0g0bsinitvals9.fw
 -rw-r--r--  1 root root  2680 Feb 12 21:47 a0g0initvals4.fw
 -rw-r--r--  1 root root  1840 Feb 12 21:47 a0g0initvals5.fw
 -rw-r--r--  1 root root  2002 Feb 12 21:47 a0g0initvals9.fw
 -rw-r--r--  1 root root   158 Feb 12 21:47 a0g1bsinitvals13.fw
 -rw-r--r--  1 root root   158 Feb 12 21:47 a0g1bsinitvals5.fw
 -rw-r--r--  1 root root   158 Feb 12 21:47 a0g1bsinitvals9.fw
 -rw-r--r--  1 root root  2080 Feb 12 21:47 a0g1initvals13.fw
 -rw-r--r--  1 root root  1840 Feb 12 21:47 a0g1initvals5.fw
 -rw-r--r--  1 root root  2002 Feb 12 21:47 a0g1initvals9.fw
 -rw-r--r--  1 root root   158 Feb 12 21:47 b0g0bsinitvals13.fw
 -rw-r--r--  1 root root    18 Feb 12 21:47 b0g0bsinitvals4.fw
 -rw-r--r--  1 root root   158 Feb 12 21:47 b0g0bsinitvals5.fw
 -rw-r--r--  1 root root   158 Feb 12 21:47 b0g0bsinitvals9.fw
 -rw-r--r--  1 root root  2080 Feb 12 21:47 b0g0initvals13.fw
 -rw-r--r--  1 root root  2680 Feb 12 21:47 b0g0initvals4.fw
 -rw-r--r--  1 root root  1840 Feb 12 21:47 b0g0initvals5.fw
 -rw-r--r--  1 root root  2002 Feb 12 21:47 b0g0initvals9.fw
 -rw-r--r--  1 root root   158 Feb 12 21:47 lp0bsinitvals13.fw
 -rw-r--r--  1 root root   158 Feb 12 21:47 lp0bsinitvals14.fw
 -rw-r--r--  1 root root   158 Feb 12 21:47 lp0bsinitvals15.fw
 -rw-r--r--  1 root root  3618 Feb 12 21:47 lp0initvals13.fw
 -rw-r--r--  1 root root  2064 Feb 12 21:47 lp0initvals14.fw
 -rw-r--r--  1 root root  2052 Feb 12 21:47 lp0initvals15.fw
 -rw-r--r--  1 root root   158 Feb 12 21:47 n0absinitvals11.fw
 -rw-r--r--  1 root root   158 Feb 12 21:47 n0bsinitvals11.fw
 -rw-r--r--  1 root root  2100 Feb 12 21:47 n0initvals11.fw
 -rw-r--r--  1 root root  1320 Feb 12 21:47 pcm4.fw
 -rw-r--r--  1 root root  1320 Feb 12 21:47 pcm5.fw
 -rw-r--r--  1 root root 29864 Feb 12 21:47 ucode11.fw
 -rw-r--r--  1 root root 32232 Feb 12 21:47 ucode13.fw
 -rw-r--r--  1 root root 31384 Feb 12 21:47 ucode14.fw
 -rw-r--r--  1 root root 30488 Feb 12 21:47 ucode15.fw
 -rw-r--r--  1 root root 20176 Feb 12 21:47 ucode4.fw
 -rw-r--r--  1 root root 22384 Feb 12 21:47 ucode5.fw
 -rw-r--r--  1 root root 25160 Feb 12 21:47 ucode9.fw

 emerge net-wireless/wpa_supplicant

ネットワークの設定

/etc/conf.d/netを編集
 modules=( "wpa_supplicant" )
 #wpa_supplicant_eth0="-Dmadwifi"
 config_wlan0=( "192.168.2.2  netmask 255.255.255.0 brd 192.168.2.255" )
 routes_eth0=( "default via 192.168.2.1" )

/etc/wpa_supplicant/wpa_supplicant.confを編集
 ctrl_interface=/var/run/wpa_supplicant
 ctrl_interface_group=0
 ap_scan=1
 network={
         ssid="SSID"
         proto=WPA2
         pairwise=CCMP
         psk="PSK"
         priority=5        }

 sudo ln -s /etc/init.d/net.lo /etc/init.d/net.wlan0
 sudo rc-update add net.wlan0 default