User Tools

Site Tools


tutorials:common:lubuntu_wifi_configuration

Lubuntu Desktop/Sever Wifi Configuration

About this Article

Abstract

  1. This tutorials is about Lubuntu Desktop/sever wifi configuration on CB1、CB2 and CB3(Cubietruck).
  2. Cubieboard1 and Cubieboard2 Lubuntu Desktop/sever USB WLAN card driver module:8188eu and 8192eu.
  3. Cubietruck support Wifi wireless connection with antenna on-board,driver module is bcmdhd.
  4. " Mw150us + 8188eu" USB WLAN card was tested on CB1 and CB2 on Desktop/sever.

Cubieboard Lubuntu Sever

Install wifi tool:apt-get install wifi-radar,then ,rebooting CB1 and CB2 only with USB WLAN card ,rebooting CT without network Cable,it will take a few minutes.

1.Install wifi-radar

apt-get install wifi-radar

Rebooting you can see this

root@cubieboard:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 02:03:06:03:01:60
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:55 Base address:0xb000

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:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

2.1 Modprobe CB1 and CB2 module

root@cubieboard:~# modprobe 8188eu
root@cubieboard:~# lsmod
Module                  Size  Used by
8188eu                495500  0
mali                  108013  0
ump                    51144  1 mali
lcd                     3701  0
pwm_sunxi               9110  0
gpio_sunxi              8204  0

2.2 Modprobe CT module

root@cubietruck:~# modprobe bcmdhd
root@cubietruck:~#
root@cubietruck:~# lsmod
Module                  Size  Used by
bcmdhd                497543  0
mali                  110767  0
ump                    51819  1 mali
lcd                     3778  0
sunxi_gmac             30667  0
pwm_sunxi               9251  0

3.Scan wifi

root@cubieboard:~# ifconfig wlan0 up
<6>ADDRCONF(NETDEV_UP): wlan0: link is not ready
root@cubieboard:~#
root@cubieboard:~#
root@cubieboard:~# ifconfig wlan0 up
root@cubieboard:~#
root@cubieboard:~# iwlist wlan0 scan
wlan0     Scan completed :
          Cell 01 - Address: EC:88:8F:BB:89:86
                    ESSID:"cubietech_2.4GHz"
                    Protocol:IEEE 802.11bgn
                    Mode:Master
                    Frequency:2.437 GHz (Channel 6)
                    Encryption key:off
                    Bit Rates:300 Mb/s
                    IE: Unknown: DD9B0050F204104A0001101044030105400080001
                    Quality=64/100  Signal level=-56 dBm

4.1 Config CB1 and CB2 wlan0 essid

root@cubieboard:~# iwconfig wlan0 essid "cubietech_2.4GHz"

root@cubieboard:~# <6>ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
         ==> rssi_level:0, rate_bitmap:0x000ff015
UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
         ==> rssi_level:2, rate_bitmap:0x000ff000
<7>wlan0: no IPv6 routers present

4.2 Config CT wlan0 essid

root@cubietruck:~# iwconfig wlan0 essid "cubietech_2.4GHz"
root@cubietruck:~#
root@cubietruck:~#
root@cubietruck:~#
root@cubietruck:~# wl_bss_connect_done succeeded with ec:88:8f:bb:89:86
wl_bss_connect_done succeeded with ec:88:8f:bb:89:86

5.Geting your WLAN IP,if you can`t go on after "dhclient wlan0",please reboot and do the previous 1-4 steps again

root@cubieboard:~# dhclient wlan0
root@cubieboard:~#
root@cubieboard:~#
root@cubieboard:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 02:03:06:03:01:60
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:55 Base address:0xb000

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:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 14:cf:92:2a:d6:e4