2017년 11월 8일 수요일

Raspberry Pi B+ rtl8188eu 사용.

raspberry pi  B+ 에 wifi usb dongle rtl8188eu 를 사용하는 환경에서 wifi가 접속되지 않는 상태

lsusb 에서도 잘 잡히고
root@dpi:/home/pi# lsusb
Bus 001 Device 007: ID 15d9:0a4e Trust International B.V. 
Bus 001 Device 006: ID 413c:2106 Dell Computer Corp. Dell QuietKey Keyboard
Bus 001 Device 005: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 004: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. SMC9512/9514 USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lsmod 에서도 잘 잡힌다.
root@dpi:/home/pi# lsmod
Module                  Size  Used by
evdev                  11746  0
r8188eu               425640  0
cfg80211              527100  0 r8188eu   <<<<< used 가 0 임.
rfkill                 21373  3 cfg80211
snd_bcm2835            23131  0
snd_pcm                97825  1 snd_bcm2835
snd_timer              22706  1 snd_pcm
snd                    68784  3 snd_timer,snd_bcm2835,snd_pcm
bcm2835_gpiomem         3791  0
uio_pdrv_genirq         3718  0
uio                    10166  1 uio_pdrv_genirq
fixed                   3029  0
ip_tables              12512  0
x_tables               20921  1 ip_tables
ipv6                  384613  0



blacklist 등록도 하고
root@dpi:/home/pi# cat /etc/modprobe.d/8188eu.conf 
# r8188eu is staging, 8188eu is off-kernel
#blacklist brcmfmac
blacklist rtl8188eu
options rtl8188eu rtw_power_mgnt=0 rtw_enusbss=0





여러 방법을 써 봤지만, 아래의 방법이 최후의 성공 방법.

root@dpi:/home/pi# cd /lib/systemd/system/
root@dpi:/home/pi# cp wpa_supplicant@.service wpa_supplicant_wlan0.service
root@dpi:/home/pi# systemctl enable wpa_supplicant_wlan0.service
root@dpi:/home/pi# reboot


재부팅 후 

[  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
[  OK  ] Started Hostname Service.
[  OK  ] Found device RTL8188EUS 802.11n Wireless Network Adapter.
[  OK  ] Started ifup for wlan0.
[  OK  ] Started dhcpcd on all interfaces.
[  OK  ] Reached target Network.
         Starting Permit User Sessions...
         Starting The Apache HTTP Server...
         Starting OpenBSD Secure Shell server...
         Starting /etc/rc.local Compatibility...
[  OK  ] Started Permit User Sessions.
My IP address is 192.192.1.19              <<< IP주소를 가져왔다.
[  OK  ] Started /etc/rc.local Compatibility.
         Starting Terminate Plymouth Boot Screen...

         Starting Hold until boot process finishes up...




root@dpi:/home/pi# lsmod
Module                  Size  Used by
evdev                  11746  0
r8188eu               425640  0
cfg80211              527100  1 r8188eu   <<<<< used 가 1 임.
rfkill                 21373  3 cfg80211
snd_bcm2835            23131  0
snd_pcm                97825  1 snd_bcm2835
snd_timer              22706  1 snd_pcm
snd                    68784  3 snd_timer,snd_bcm2835,snd_pcm
bcm2835_gpiomem         3791  0
uio_pdrv_genirq         3718  0
uio                    10166  1 uio_pdrv_genirq
fixed                   3029  0
ip_tables              12512  0
x_tables               20921  1 ip_tables

ipv6                  384613  0