turboLinux_White Box Enterprise Linux_Fedora Core_Red Hat Memo/USB無線LAN(GW-450D PLANEX)のインストール
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
*USB無線LAN(GW-450D PLANEX)のインストール(Raspberry Pi) [...
RIGHT:更新日&lastmod();
*** Kernelバージョンの確認 [#x98fc72d]
# uname-r
4.4.50-v7+
*** Kernelの取得 [#bbd04824]
-モデル:Raspberry Pi2 (Model B V1.1)
# cd /usr/src
# git clone --depth 1 https://github.com/raspberrypi/lin...
Cloning into 'linux'...
remote: Counting objects: 55944, done.
remote: Compressing objects: 100% (53009/53009), done.
# firmware/extra/Module7.symvers
# git clone --depth 1 https://github.com/raspberrypi/fir...
# cd linux
# modprobe configs
# zcat /proc/config.gz > .config
# cp ../firmware/extra/Module7.symvers Module.symvers
*** Kernelのコンパイル [#tcb30eca]
# make oldconfig
# make -j 4 zImage modules dtbs
# make modules_install
# cp arch/arm/boot/dts/*.dtb /boot/
# cp arch/arm/boot/dts/overlays/*.dtb* /boot/overlays/
# cp arch/arm/boot/dts/overlays/README /boot/overlays/
# cp /boot/kernel7.img /boot/kernel7.img.old
# scripts/mkknlimg arch/arm/boot/zImage /boot/kernel7.img
# reboot
時間がかかるので途中で寝たのでコンパイルにどの程度かかっ...
**USB無線LAN(GW-450D PLANEX)のインストール [#re306ed4]
*** GW-450DのドライバのDownload [#sbf15011]
以下からDL
-http://www.planex.co.jp/support/download/gw-450d/driver...
# unzip gw-450d_driver_linux_v3002.zip
# cd gw-450d_driver_linux_v3002
# tar xvf mt7610u_wifi_sta_v3002_dpo_20130916.tar.bz2
*** パッチ当て [#x778d211]
#cd mt7610u_wifi_sta_v3002_dpo_20130916
#wget https://raw.githubusercontent.com/neuralassembly/r...
パッチは「gw-450d-rpi-kernel41.patch」の 「kernel41」みたい
# patch -p0 < gw-450d-rpi-kernel41.patch
patching file common/rtusb_dev_id.c
patching file include/os/rt_linux.h
patching file os/linux/config.mk
patching file os/linux/rt_linux.c
patching file sta/sta_cfg.c
patching file common/cmm_info.c
# ls -l common/rtusb_dev_id.c
# make
# cp -p os/linux/mt7650u_sta.ko /lib/modules/4.4.50-v7+/...
# depmod -a
-設定フィルのコピー
# mkdir -p /etc/Wireless/RT2870STA
# cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat
***USB無線LAN(GW-450D PLANEX)の設定 [#v0153883]
以下のファイルを設定
-/etc/modules
--読み込むGW-450Dモジュールを指定
-/etc/Wireless/RT2870STA/RT2870STA.dat
--暗号方式、認証方式、SSIDの指定(SSIDはインターフェイス側...
-/etc/network/interfaces
--デバイス名(ra0)やIP取得方法、次の無線LANの情報の記述フ...
-/etc/wpa_supplicant/wpa_supplicant.conf
--無線LANの情報(暗号方式、認証方式、SSID、パスワード)を指定
-/etc/dhcpd.conf
--IPアドレスを指定
-/etc/modules
/etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that sh...
# at boot time, one per line. Lines beginning with "#" a...
i2c-dev
mt7650u_sta ←追加
-/etc/Wireless/RT2870STA/RT2870STA.dat
#The word of "Default" must not be removed
Default
CountryRegion=5
CountryRegionABand=7
CountryCode=
ChannelGeography=1
SSID= ←(指定なし:空白)
NetworkType=Infra
WirelessMode=5
EfuseBufferMode=0
Channel=0
BeaconPeriod=100
TxPower=100
BGProtection=0
TxPreamble=0
RTSThreshold=2347
FragThreshold=2346
TxBurst=1
PktAggregate=0
WmmCapable=1
AckPolicy=0;0;0;0
AuthMode=WPA2PSK ←追加
EncrypType=AES ←追加
WPAPSK=
DefaultKeyID=1
Key1Type=0
Key1Str=
Key2Type=0
Key2Str=
(略)
-/etc/wpa_supplicant/wpa_supplicant.conf
country=JP
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
ap_scan=1
update_config=1
network={
ssid="ism_optout_nomap"
proto=WPA2
key_mgmt=WPA-PSK
psk="je***2******"
scan_ssid=1 ←ステルスAPの時に指定
}
-/etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with ...
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpc...
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet manual
auto ra0 ←OS起動時自動に起動
iface ra0 inet manual ← dhcpIP指定時は「iface ra0 inet d...
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
-/etc/dhcpcd.conf
## Edit by JE2ISM
interface eth0
static ip_address=192.168.10.122/24
static routers=192.168.10.245
static domain_name_servers=192.168.10.46
##以下がWifiで固定IP
interface ra0 ← DHCPの時はここもコメント
static ip_address=192.168.10.123/24
static routers=192.168.10.245
static domain_name_servers=192.168.10.46
**起動確認 [#g9d28c93]
DHCPを指定したとき
一度インターフェイスを停止を再開始後はIP取得または設定に3...
-インターフェイスを停止
# ifdown ra0
Killed old client process
Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/ra0/00:22:cf:ed:11:45
Sending on LPF/ra0/00:22:cf:ed:11:45
Sending on Socket/fallback
-インターフェイスを開始
# ifup ra0
Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/ra0/00:22:cf:ed:11:45
Sending on LPF/ra0/00:22:cf:ed:11:45
Sending on Socket/fallback
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 12
DHCPREQUEST on ra0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.10.245
DHCPACK from 192.168.10.245
bound to 192.168.10.208 -- renewal in 144246 seconds.
# ifconfig
eth0 Link encap:イーサネット ハードウェアアドレス ...
inetアドレス:192.168.10.122 ブロードキャスト:1...
inet6アドレス: 2001:a4e8:ee4e:0:e407:741d:55b9...
inet6アドレス: fe80::573c:b07e:cc6c:4a55/64 範...
UP BROADCAST RUNNING MULTICAST MTU:1500 メト...
RXパケット:11278 エラー:0 損失:0 オーバラン:0 ...
TXパケット:2073 エラー:0 損失:0 オーバラン:0 ...
衝突(Collisions):0 TXキュー長:1000
RXバイト:608936 (594.6 KiB) TXバイト:259531 (...
lo Link encap:ローカルループバック
inetアドレス:127.0.0.1 マスク:255.0.0.0
inet6アドレス: ::1/128 範囲:ホスト
UP LOOPBACK RUNNING MTU:65536 メトリック:1
RXパケット:81 エラー:0 損失:0 オーバラン:0 フ...
TXパケット:81 エラー:0 損失:0 オーバラン:0 キ...
衝突(Collisions):0 TXキュー長:1
RXバイト:6812 (6.6 KiB) TXバイト:6812 (6.6 KiB)
ra0 Link encap:イーサネット ハードウェアアドレス ...
inetアドレス:192.168.10.208 ブロードキャスト:1...
inet6アドレス: 2001:a4e8:ee4e:0:9dec:28de:782e...
inet6アドレス: fe80::4ef:736e:12db:21a6/64 範...
UP BROADCAST RUNNING MULTICAST MTU:1500 メト...
RXパケット:8161 エラー:3 損失:0 オーバラン:0 ...
TXパケット:6552 エラー:0 損失:0 オーバラン:0 ...
衝突(Collisions):0 TXキュー長:1000
RXバイト:1924275 (1.8 MiB) TXバイト:672340 (6...
**参考 [#zc88eed8]
-http://neuralassembly.blogspot.jp/2015/09/raspberry-pi-2...
-https://www.planex.co.jp/articles/RaspberryPi_GW-450D/
-http://yamaryu0508.hatenablog.com/entry/2014/08/15/001312
終了行:
*USB無線LAN(GW-450D PLANEX)のインストール(Raspberry Pi) [...
RIGHT:更新日&lastmod();
*** Kernelバージョンの確認 [#x98fc72d]
# uname-r
4.4.50-v7+
*** Kernelの取得 [#bbd04824]
-モデル:Raspberry Pi2 (Model B V1.1)
# cd /usr/src
# git clone --depth 1 https://github.com/raspberrypi/lin...
Cloning into 'linux'...
remote: Counting objects: 55944, done.
remote: Compressing objects: 100% (53009/53009), done.
# firmware/extra/Module7.symvers
# git clone --depth 1 https://github.com/raspberrypi/fir...
# cd linux
# modprobe configs
# zcat /proc/config.gz > .config
# cp ../firmware/extra/Module7.symvers Module.symvers
*** Kernelのコンパイル [#tcb30eca]
# make oldconfig
# make -j 4 zImage modules dtbs
# make modules_install
# cp arch/arm/boot/dts/*.dtb /boot/
# cp arch/arm/boot/dts/overlays/*.dtb* /boot/overlays/
# cp arch/arm/boot/dts/overlays/README /boot/overlays/
# cp /boot/kernel7.img /boot/kernel7.img.old
# scripts/mkknlimg arch/arm/boot/zImage /boot/kernel7.img
# reboot
時間がかかるので途中で寝たのでコンパイルにどの程度かかっ...
**USB無線LAN(GW-450D PLANEX)のインストール [#re306ed4]
*** GW-450DのドライバのDownload [#sbf15011]
以下からDL
-http://www.planex.co.jp/support/download/gw-450d/driver...
# unzip gw-450d_driver_linux_v3002.zip
# cd gw-450d_driver_linux_v3002
# tar xvf mt7610u_wifi_sta_v3002_dpo_20130916.tar.bz2
*** パッチ当て [#x778d211]
#cd mt7610u_wifi_sta_v3002_dpo_20130916
#wget https://raw.githubusercontent.com/neuralassembly/r...
パッチは「gw-450d-rpi-kernel41.patch」の 「kernel41」みたい
# patch -p0 < gw-450d-rpi-kernel41.patch
patching file common/rtusb_dev_id.c
patching file include/os/rt_linux.h
patching file os/linux/config.mk
patching file os/linux/rt_linux.c
patching file sta/sta_cfg.c
patching file common/cmm_info.c
# ls -l common/rtusb_dev_id.c
# make
# cp -p os/linux/mt7650u_sta.ko /lib/modules/4.4.50-v7+/...
# depmod -a
-設定フィルのコピー
# mkdir -p /etc/Wireless/RT2870STA
# cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat
***USB無線LAN(GW-450D PLANEX)の設定 [#v0153883]
以下のファイルを設定
-/etc/modules
--読み込むGW-450Dモジュールを指定
-/etc/Wireless/RT2870STA/RT2870STA.dat
--暗号方式、認証方式、SSIDの指定(SSIDはインターフェイス側...
-/etc/network/interfaces
--デバイス名(ra0)やIP取得方法、次の無線LANの情報の記述フ...
-/etc/wpa_supplicant/wpa_supplicant.conf
--無線LANの情報(暗号方式、認証方式、SSID、パスワード)を指定
-/etc/dhcpd.conf
--IPアドレスを指定
-/etc/modules
/etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that sh...
# at boot time, one per line. Lines beginning with "#" a...
i2c-dev
mt7650u_sta ←追加
-/etc/Wireless/RT2870STA/RT2870STA.dat
#The word of "Default" must not be removed
Default
CountryRegion=5
CountryRegionABand=7
CountryCode=
ChannelGeography=1
SSID= ←(指定なし:空白)
NetworkType=Infra
WirelessMode=5
EfuseBufferMode=0
Channel=0
BeaconPeriod=100
TxPower=100
BGProtection=0
TxPreamble=0
RTSThreshold=2347
FragThreshold=2346
TxBurst=1
PktAggregate=0
WmmCapable=1
AckPolicy=0;0;0;0
AuthMode=WPA2PSK ←追加
EncrypType=AES ←追加
WPAPSK=
DefaultKeyID=1
Key1Type=0
Key1Str=
Key2Type=0
Key2Str=
(略)
-/etc/wpa_supplicant/wpa_supplicant.conf
country=JP
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
ap_scan=1
update_config=1
network={
ssid="ism_optout_nomap"
proto=WPA2
key_mgmt=WPA-PSK
psk="je***2******"
scan_ssid=1 ←ステルスAPの時に指定
}
-/etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with ...
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpc...
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet manual
auto ra0 ←OS起動時自動に起動
iface ra0 inet manual ← dhcpIP指定時は「iface ra0 inet d...
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
-/etc/dhcpcd.conf
## Edit by JE2ISM
interface eth0
static ip_address=192.168.10.122/24
static routers=192.168.10.245
static domain_name_servers=192.168.10.46
##以下がWifiで固定IP
interface ra0 ← DHCPの時はここもコメント
static ip_address=192.168.10.123/24
static routers=192.168.10.245
static domain_name_servers=192.168.10.46
**起動確認 [#g9d28c93]
DHCPを指定したとき
一度インターフェイスを停止を再開始後はIP取得または設定に3...
-インターフェイスを停止
# ifdown ra0
Killed old client process
Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/ra0/00:22:cf:ed:11:45
Sending on LPF/ra0/00:22:cf:ed:11:45
Sending on Socket/fallback
-インターフェイスを開始
# ifup ra0
Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/ra0/00:22:cf:ed:11:45
Sending on LPF/ra0/00:22:cf:ed:11:45
Sending on Socket/fallback
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 12
DHCPREQUEST on ra0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.10.245
DHCPACK from 192.168.10.245
bound to 192.168.10.208 -- renewal in 144246 seconds.
# ifconfig
eth0 Link encap:イーサネット ハードウェアアドレス ...
inetアドレス:192.168.10.122 ブロードキャスト:1...
inet6アドレス: 2001:a4e8:ee4e:0:e407:741d:55b9...
inet6アドレス: fe80::573c:b07e:cc6c:4a55/64 範...
UP BROADCAST RUNNING MULTICAST MTU:1500 メト...
RXパケット:11278 エラー:0 損失:0 オーバラン:0 ...
TXパケット:2073 エラー:0 損失:0 オーバラン:0 ...
衝突(Collisions):0 TXキュー長:1000
RXバイト:608936 (594.6 KiB) TXバイト:259531 (...
lo Link encap:ローカルループバック
inetアドレス:127.0.0.1 マスク:255.0.0.0
inet6アドレス: ::1/128 範囲:ホスト
UP LOOPBACK RUNNING MTU:65536 メトリック:1
RXパケット:81 エラー:0 損失:0 オーバラン:0 フ...
TXパケット:81 エラー:0 損失:0 オーバラン:0 キ...
衝突(Collisions):0 TXキュー長:1
RXバイト:6812 (6.6 KiB) TXバイト:6812 (6.6 KiB)
ra0 Link encap:イーサネット ハードウェアアドレス ...
inetアドレス:192.168.10.208 ブロードキャスト:1...
inet6アドレス: 2001:a4e8:ee4e:0:9dec:28de:782e...
inet6アドレス: fe80::4ef:736e:12db:21a6/64 範...
UP BROADCAST RUNNING MULTICAST MTU:1500 メト...
RXパケット:8161 エラー:3 損失:0 オーバラン:0 ...
TXパケット:6552 エラー:0 損失:0 オーバラン:0 ...
衝突(Collisions):0 TXキュー長:1000
RXバイト:1924275 (1.8 MiB) TXバイト:672340 (6...
**参考 [#zc88eed8]
-http://neuralassembly.blogspot.jp/2015/09/raspberry-pi-2...
-https://www.planex.co.jp/articles/RaspberryPi_GW-450D/
-http://yamaryu0508.hatenablog.com/entry/2014/08/15/001312
ページ名: