Instalasi TP-LINK WN725N pada Beaglebone Black

Wireless TP-LINK WN725N

Instalasi TP-LINK WN725N pada Beaglebone Black

Wireless TP-LINK WN725N
Wireless TP-LINK WN725N

Driver untuk Wireless TP-Link WN725N belum tersedia pada OS yang diinstall pada Beaglebone Black, jadi kalau kita mau menggunakan WN724N kita mesti compile sendiri driver tersebut. Berikut ini beberapa prosedur yang berhasil dikumpulkan.

Beaglebone Black Ubuntu

Sumber: Install TP-LINK Wireless N Adapter TL-WN725N on Ubuntu

Prosedur:

  1. sudo apt-get update (makes sure you have an up to date list of packages in case you need to install something, like git)
  2. mkdir ~/beaglebone-ubuntu-scripts
  3. cd ~/beaglebone-ubuntu-scripts
  4. wget https://raw.github.com/gkaindl/beaglebone-ubuntu-scripts/master/bb-get-rcn-kernel-source.sh (downloads gkaindl’s script which will install all the arm kernel headers you’ll need to compile your driver)
  5. chmod +x bb-get-rcn-kernel-source.sh (give yourself access to run the script)
  6. ./bb-get-rcn-kernel-source.sh (run the script)
  7. sudo reboot (for good measure)
  8. cd /usr/src
  9. sudo chown -R ubuntu /linux-3.8.13-bone30 (ensure total control of this folder)
  10. cd linux-3.8.13-bone30
  11. sudo make oldconfig
  12. sudo make prepare (build the linux kernel!)
  13. sudo make modules_prepare (build more things)
  14. mkdir ~/RTL8188EU
  15. cd ~/RTL8188EU
  16. git clone git://github.com/lwfinger/rtl8188eu.git (clone lwfinger’s driver from github)
  17. sudo chown -R ubuntu /rtl8188eu (ensure total control of this folder)
  18. If you don’t have git, do this and try step 9 again:
    sudo apt-get install git
  19. cd rtl8188eu (change to directory with all the driver source code)
  20. sudo make (build the driver’s source code)
  21. If you don’t have make, do this and try step 11 again:
    sudo apt-get install make
  22. If you run sudo make and it now complains you don’t have gcc do this then try step 11 again:
    sudo apt-get install gcc
  23. sudo make install (install the driver)
  24. sudo reboot (required for next step to work)
  25. ifconfig
  26. You should see this text come up:

    wlan0     unassociated  Nickname:“<WIFI@REALTEK>”

              Mode:Auto  Frequency=2.412 GHz  Access Point: Not-Associated

              Sensitivity:0/0

              Retry:off   RTS thr:off   Fragment thr:off

              Power Management:off

              Link Quality=0/100  Signal level=0 dBm  Noise level=0 dBm

              Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0

              Tx excessive retries:0  Invalid misc:0   Missed beacon:0

    lo        no wireless extensions.

    eth0      no wireless extensions.

  27. cd /etc/network
  28. sudo pico interfacesThen uncomment or add in the following text:
    # wireless network interface
    auto wlan0
    iface wlan0 inet dhcp
    wpa-ssid “Wifi Network Name”
    wpa-psk “wifipassword”
  29. sudo reboot
  30. The green light should now be blinking! You should be able to ping it. Check your router status to find the IP address. If you’re plugged in with an ethernet cable, keep reading. Else skip to step 33!
  31. If you have an ethernet cable, unplug it. You will now no longer be able to ping/connect to the wireless IP address of the beaglebone black.
  32. Remove the power from the beaglebone black.
  33. Hold the reset button and plug the power back in and let it boot up.
  34. You should now be able to ping/connect to the beaglebone black wirelessly. Congrats!

Beaglebone Black Debian

Sumber: Beaglebone Black USB Wifi & TP Link WN725N

Installing WN725N in Debian is very similar with Ubuntu, since Ubuntu is derived from Debian.

Step By Step install driver usb wifi model TP-LINK WN725N

  • apt-get update
  • apt-get install lsb-release
  • apt-get install git
  • apt-get install make
  • apt-get install gcc
  • apt-get install build-essential python-dev python-pip python-smbus -y
  • apt-get install chkconfig
  • apt-get upgrade
  • mkdir ~/beaglebone-ubuntu-scripts
  • cd ~/beaglebone-ubuntu-scripts
  • wget https://raw.github.com/gkaindl/beagle…
  • chmod +x bb-get-rcn-kernel-source.sh
  • ./bb-get-rcn-kernel-source.sh
  • reboot
  • cd /usr/src
  • cd linux-3.8.13-bone67
  • make oldconfig
  • make prepare
  • make modules_prepare
  • mkdir ~/RTL8188EU
  • cd ~/RTL8188EU
  • git clone git://github.com/lwfinger/rtl8188eu.git
  • cd rtl8188eu
  • make
  • make install
  • reboot
  • apt-get install wireless-tools wpasupplicant
  • Edit network interface setting:
    nano /etc/network/interfaces
    Add or uncomment the following lines:
    Then uncomment or add in the following text in the file:
    # wireless network interface
    auto wlan0
    iface wlan0 inet dhcp
    wpa-ssid “Wifi Network Name”
    wpa-psk “wifipassword”
  • reboot

If everything is right, output of ‘ifconfig -a’ should be like this:

eth0      Link encap:Ethernet  HWaddr d0:39:72:3b:b9:3e
inet addr:192.168.1.90  Bcast:192.168.1.255  Mask:255.255.255.0
inet6 addr: fe80::d239:72ff:fe3b:b93e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:423 errors:0 dropped:0 overruns:0 frame:0
TX packets:365 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:76737 (74.9 KiB)  TX bytes:44862 (43.8 KiB)
Interrupt:40

lo        Link encap:Local Loopback
inet addr:127.0.0.1  Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING  MTU:65536  Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:79 (79.0 B)  TX bytes:79 (79.0 B)

usb0      Link encap:Ethernet  HWaddr 42:fc:99:7c:c4:4c
inet addr:192.168.7.2  Bcast:192.168.7.3  Mask:255.255.255.252
inet6 addr: fe80::40fc:99ff:fe7c:c44c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:612 errors:0 dropped:0 overruns:0 frame:0
TX packets:520 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:65825 (64.2 KiB)  TX bytes:148666 (145.1 KiB)

wlan0     Link encap:Ethernet  HWaddr 64:66:b3:1b:b7:76
inet addr:192.168.1.112  Bcast:192.168.1.255  Mask:255.255.255.0
inet6 addr: fe80::6666:b3ff:fe1b:b776/64 Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:338 errors:0 dropped:52 overruns:0 frame:0
TX packets:58 errors:0 dropped:3 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:66371 (64.8 KiB)  TX bytes:11340 (11.0 KiB)

Beaglebone Black Angstorm

Sumber: How to install a rtl8192cu on the Beaglebone Black (BBB) running Angstrom

 

opkg update
opkg upgrade
opkg install kernel-dev
opkg install kernel-headers

You may need to reboot.

cd /usr/src/kernel
make scripts
ln -s /usr/src/kernel /lib/modules/$(uname -r)/build
cd ~
git clone git://github.com/cmicali/rtl8192cu_beaglebone.git
cd rtl8192cu_beaglebone
make CROSS_COMPILE=""

Then follow 2.2 from bonenotes.tumblr.com:

Install the driver

mv 8192cu.ko /lib/modules/$(uname -r)
depmod -a
cd /etc/modules-load.d
echo "8192cu" > rtl8192cu-vendor.conf

Blacklist the old rtlwifi drivers

cd /etc/modprobe.d
echo "install rtl8192cu /bin/false" >wifi_blacklist.conf
echo "install rtl8192c_common /bin/false" >>wifi_blacklist.conf
echo "install rtlwifi /bin/false" >>wifi_blacklist.conf

Edit /var/lib/connman/settings and enable WIFI

[global]
OfflineMode=false
 
[Wired]
Enable=true
Tethering=false
 
[WiFi]
Enable=true
Tethering=false

Encrypt your passphrase

wpa_passphrase YourSSID YourPassphrase

Edit /var/lib/connman/wifi.config and set it to the following

[service_home]
Type=wifi
Name=YourSSID
Passphrase=YourEncryptedPassphrase

Plug in your WIFI adaptor and reboot

shutdown -r 0

Referensi

 

 

Tinggalkan Balasan

Situs ini menggunakan Akismet untuk mengurangi spam. Pelajari bagaimana data komentar Anda diproses.