root@radxa:~/8188eu_hostapd_linux# apt-get install make
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libnl-3-200 libnl-genl-3-200
Use 'apt-get autoremove' to remove them.
Suggested packages:
make-doc
The following NEW packages will be installed:
make
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 105 kB of archives.
After this operation, 262 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports/ trusty/main make armhf 3.81-8.2ubuntu3 [105 kB]
Fetched 105 kB in 2s (48.3 kB/s)
Selecting previously unselected package make.
(Reading database ... 21269 files and directories currently installed.)
Preparing to unpack .../make_3.81-8.2ubuntu3_armhf.deb ...
Unpacking make (3.81-8.2ubuntu3) ...
Processing triggers for man-db (2.6.7.1-1) ...
Setting up make (3.81-8.2ubuntu3) ...
root@radxa:~/8188eu_hostapd_linux# make install
26 Apr 07:20:16 ntpdate[2077]: adjust time server 202.112.31.197 offset -0.205510 sec
RTNETLINK answers: File exists
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libnl-3-200 libnl-genl-3-200
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
dnsmasq-base libmnl0 libnetfilter-conntrack3
The following NEW packages will be installed:
dnsmasq dnsmasq-base libmnl0 libnetfilter-conntrack3
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 297 kB of archives.
After this operation, 818 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports/ trusty/main libmnl0 armhf 1.0.3-3ubuntu1 [9532 B]
Get:2 http://ports.ubuntu.com/ubuntu-ports/ trusty/main libnetfilter-conntrack3 armhf 1.0.4-1 [36.9 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports/ trusty/main dnsmasq-base armhf 2.68-1 [236 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports/ trusty/universe dnsmasq all 2.68-1 [14.9 kB]
Fetched 297 kB in 5s (49.6 kB/s)
Selecting previously unselected package libmnl0:armhf.
(Reading database ... 21279 files and directories currently installed.)
Preparing to unpack .../libmnl0_1.0.3-3ubuntu1_armhf.deb ...
Unpacking libmnl0:armhf (1.0.3-3ubuntu1) ...
Selecting previously unselected package libnetfilter-conntrack3:armhf.
Preparing to unpack .../libnetfilter-conntrack3_1.0.4-1_armhf.deb ...
Unpacking libnetfilter-conntrack3:armhf (1.0.4-1) ...
Selecting previously unselected package dnsmasq-base.
Preparing to unpack .../dnsmasq-base_2.68-1_armhf.deb ...
Unpacking dnsmasq-base (2.68-1) ...
Selecting previously unselected package dnsmasq.
Preparing to unpack .../dnsmasq_2.68-1_all.deb ...
Unpacking dnsmasq (2.68-1) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up libmnl0:armhf (1.0.3-3ubuntu1) ...
Setting up libnetfilter-conntrack3:armhf (1.0.4-1) ...
Setting up dnsmasq-base (2.68-1) ...
Setting up dnsmasq (2.68-1) ...
Starting DNS forwarder and DHCP server dnsmasq
...done.
Processing triggers for libc-bin (2.19-0ubuntu6) ...
Processing triggers for ureadahead (0.100.0-16) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libnl-3-200 libnl-genl-3-200
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libhavege1
The following NEW packages will be installed:
haveged libhavege1
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 45.6 kB of archives.
After this operation, 227 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports/ trusty/universe libhavege1 armhf 1.7c-1 [19.3 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports/ trusty/universe haveged armhf 1.7c-1 [26.3 kB]
Fetched 45.6 kB in 2s (20.1 kB/s)
Selecting previously unselected package libhavege1:armhf.
(Reading database ... 21316 files and directories currently installed.)
Preparing to unpack .../libhavege1_1.7c-1_armhf.deb ...
Unpacking libhavege1:armhf (1.7c-1) ...
Selecting previously unselected package haveged.
Preparing to unpack .../haveged_1.7c-1_armhf.deb ...
Unpacking haveged (1.7c-1) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up libhavege1:armhf (1.7c-1) ...
Setting up haveged (1.7c-1) ...
Processing triggers for libc-bin (2.19-0ubuntu6) ...
Processing triggers for ureadahead (0.100.0-16) ...
install -d -m 0755 /usr/local/bin
install -m 0755 hostapd hostapd_cli /usr/local/bin
rm -rf /lib/modules/3.0.36+/kernel/drivers/net/wireless/rtl8188eu_lwfinger/8188eu.ko
cp 8188eu.ko /lib/modules/3.0.36+/kernel/drivers/net/wireless/rtl8188eu_lwfinger
root@radxa:~/8188eu_hostapd_linux#
检查
root@radxa:~/8188eu_hostapd_linux# ls -l /lib/modules/3.0.36+/kernel/drivers/net/wireless/rtl8188eu_lwfinger
total 684
-rw-r--r-- 1 root root 698927 Apr 26 07:21 8188eu.ko
文档
http://radxa.com/Rock/Wireless
安装之前
root@radxa:~# dmesg | grep 8188 [ 5.970420] usbcore: registered new interface driver r8188eu
安装
root@radxa:~/8188eu_hostapd_linux# apt-get install make Reading package lists... Done Building dependency tree
Reading state information... Done The following packages were automatically installed and are no longer required: libnl-3-200 libnl-genl-3-200 Use 'apt-get autoremove' to remove them. Suggested packages: make-doc The following NEW packages will be installed: make 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 105 kB of archives. After this operation, 262 kB of additional disk space will be used. Get:1 http://ports.ubuntu.com/ubuntu-ports/ trusty/main make armhf 3.81-8.2ubuntu3 [105 kB] Fetched 105 kB in 2s (48.3 kB/s) Selecting previously unselected package make. (Reading database ... 21269 files and directories currently installed.) Preparing to unpack .../make_3.81-8.2ubuntu3_armhf.deb ... Unpacking make (3.81-8.2ubuntu3) ... Processing triggers for man-db (2.6.7.1-1) ... Setting up make (3.81-8.2ubuntu3) ...
root@radxa:~# wget http://dl.radxa.com/rock_lite/source/8188eu_hostapd_linux.tar.gz --2015-04-26 07:18:47-- http://dl.radxa.com/rock_lite/source/8188eu_hostapd_linux.tar.gz Resolving dl.radxa.com (dl.radxa.com)... 198.58.114.7 Connecting to dl.radxa.com (dl.radxa.com)|198.58.114.7|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1173503 (1.1M) [application/x-gzip] Saving to: ?188eu_hostapd_linux.tar.gz?
100%[====================================================================================================>] 1,173,503 141KB/s in 9.1s
2015-04-26 07:18:57 (126 KB/s) - ?188eu_hostapd_linux.tar.gz?saved [1173503/1173503]
root@radxa:~# tar zxf 8188eu_hostapd_linux.tar.gz
root@radxa:~# cd 8188eu_hostapd_linux/
root@radxa:~/8188eu_hostapd_linux# make install 26 Apr 07:20:16 ntpdate[2077]: adjust time server 202.112.31.197 offset -0.205510 sec RTNETLINK answers: File exists Reading package lists... Done Building dependency tree
Reading state information... Done The following packages were automatically installed and are no longer required: libnl-3-200 libnl-genl-3-200 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: dnsmasq-base libmnl0 libnetfilter-conntrack3 The following NEW packages will be installed: dnsmasq dnsmasq-base libmnl0 libnetfilter-conntrack3 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 297 kB of archives. After this operation, 818 kB of additional disk space will be used. Get:1 http://ports.ubuntu.com/ubuntu-ports/ trusty/main libmnl0 armhf 1.0.3-3ubuntu1 [9532 B] Get:2 http://ports.ubuntu.com/ubuntu-ports/ trusty/main libnetfilter-conntrack3 armhf 1.0.4-1 [36.9 kB] Get:3 http://ports.ubuntu.com/ubuntu-ports/ trusty/main dnsmasq-base armhf 2.68-1 [236 kB] Get:4 http://ports.ubuntu.com/ubuntu-ports/ trusty/universe dnsmasq all 2.68-1 [14.9 kB] Fetched 297 kB in 5s (49.6 kB/s) Selecting previously unselected package libmnl0:armhf. (Reading database ... 21279 files and directories currently installed.) Preparing to unpack .../libmnl0_1.0.3-3ubuntu1_armhf.deb ... Unpacking libmnl0:armhf (1.0.3-3ubuntu1) ... Selecting previously unselected package libnetfilter-conntrack3:armhf. Preparing to unpack .../libnetfilter-conntrack3_1.0.4-1_armhf.deb ... Unpacking libnetfilter-conntrack3:armhf (1.0.4-1) ... Selecting previously unselected package dnsmasq-base. Preparing to unpack .../dnsmasq-base_2.68-1_armhf.deb ... Unpacking dnsmasq-base (2.68-1) ... Selecting previously unselected package dnsmasq. Preparing to unpack .../dnsmasq_2.68-1_all.deb ... Unpacking dnsmasq (2.68-1) ... Processing triggers for man-db (2.6.7.1-1) ... Processing triggers for ureadahead (0.100.0-16) ... Setting up libmnl0:armhf (1.0.3-3ubuntu1) ... Setting up libnetfilter-conntrack3:armhf (1.0.4-1) ... Setting up dnsmasq-base (2.68-1) ... Setting up dnsmasq (2.68-1) ...
Reading state information... Done The following packages were automatically installed and are no longer required: libnl-3-200 libnl-genl-3-200 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libhavege1 The following NEW packages will be installed: haveged libhavege1 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 45.6 kB of archives. After this operation, 227 kB of additional disk space will be used. Get:1 http://ports.ubuntu.com/ubuntu-ports/ trusty/universe libhavege1 armhf 1.7c-1 [19.3 kB] Get:2 http://ports.ubuntu.com/ubuntu-ports/ trusty/universe haveged armhf 1.7c-1 [26.3 kB] Fetched 45.6 kB in 2s (20.1 kB/s) Selecting previously unselected package libhavege1:armhf. (Reading database ... 21316 files and directories currently installed.) Preparing to unpack .../libhavege1_1.7c-1_armhf.deb ... Unpacking libhavege1:armhf (1.7c-1) ... Selecting previously unselected package haveged. Preparing to unpack .../haveged_1.7c-1_armhf.deb ... Unpacking haveged (1.7c-1) ... Processing triggers for man-db (2.6.7.1-1) ... Processing triggers for ureadahead (0.100.0-16) ... Setting up libhavege1:armhf (1.7c-1) ... Setting up haveged (1.7c-1) ... Processing triggers for libc-bin (2.19-0ubuntu6) ... Processing triggers for ureadahead (0.100.0-16) ... install -d -m 0755 /usr/local/bin install -m 0755 hostapd hostapd_cli /usr/local/bin rm -rf /lib/modules/3.0.36+/kernel/drivers/net/wireless/rtl8188eu_lwfinger/8188eu.ko cp 8188eu.ko /lib/modules/3.0.36+/kernel/drivers/net/wireless/rtl8188eu_lwfinger root@radxa:~/8188eu_hostapd_linux#
检查
root@radxa:~/8188eu_hostapd_linux# ls -l /lib/modules/3.0.36+/kernel/drivers/net/wireless/rtl8188eu_lwfinger total 684 -rw-r--r-- 1 root root 698927 Apr 26 07:21 8188eu.ko
root@radxa:~/8188eu_hostapd_linux# ls -l /usr/local/bin/hostapd* -rwxr-xr-x 1 root root 1929936 Apr 26 07:21 /usr/local/bin/hostapd -rwxr-xr-x 1 root root 83766 Apr 26 07:21 /usr/local/bin/hostapd_cli
root@radxa:~/8188eu_hostapd_linux# reboot
检查运行情况
root@radxa:~# dmesg | grep 8188 [ 5.970420] usbcore: registered new interface driver rtl8188eu [ 9.383509] ==> rtl8188e_iol_efuse_patch [ 11.683974] R8188EU: nolinked power save enter [ 22.033288] ==> rtl8188e_iol_efuse_patch [ 22.396432] R8188EU: nolinked power save leave [ 25.758908] R8188EU: assoc success [ 25.766182] R8188EU: set group key to hw: alg:4(WEP40-1 WEP104-5 TKIP-2 AES-4) keyid:1 root@radxa:~#
root@radxa:~# cat /var/log/syslog | grep dnsmasq Apr 26 07:24:35 radxa dnsmasq[816]: started, version 2.68 cachesize 150 Apr 26 07:24:35 radxa dnsmasq[816]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth Apr 26 07:24:35 radxa dnsmasq-dhcp[816]: DHCP, IP range 192.168.2.150 -- 192.168.2.254, lease time 12h Apr 26 07:24:35 radxa dnsmasq-dhcp[816]: DHCP, sockets bound exclusively to interface wlan0 Apr 26 07:24:35 radxa dnsmasq[816]: reading /var/run/dnsmasq/resolv.conf Apr 26 07:24:35 radxa dnsmasq[816]: using nameserver 192.168.1.1#53 Apr 26 07:24:35 radxa dnsmasq[816]: read /etc/hosts - 10 addresses Apr 26 07:24:38 radxa dnsmasq[816]: reading /var/run/dnsmasq/resolv.conf Apr 26 07:24:38 radxa dnsmasq[816]: using nameserver 192.168.1.1#53 Apr 26 07:24:38 radxa dnsmasq[816]: exiting on receipt of SIGTERM Apr 26 07:24:43 radxa dnsmasq[1109]: started, version 2.68 cachesize 150 Apr 26 07:24:43 radxa dnsmasq[1109]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth Apr 26 07:24:43 radxa dnsmasq-dhcp[1109]: DHCP, IP range 192.168.2.150 -- 192.168.2.254, lease time 12h Apr 26 07:24:43 radxa dnsmasq-dhcp[1109]: DHCP, sockets bound exclusively to interface wlan0 Apr 26 07:24:43 radxa dnsmasq[1109]: reading /var/run/dnsmasq/resolv.conf Apr 26 07:24:43 radxa dnsmasq[1109]: using nameserver 192.168.1.1#53 Apr 26 07:24:43 radxa dnsmasq[1109]: read /etc/hosts - 10 addresses root@radxa:~#
root@radxa:~# ps aux | grep hostapd root 1091 0.0 0.0 1588 260 ? Ss 07:24 0:00 hostapd -B /etc/hostapd/hostapd.conf root 1336 0.0 0.0 3388 716 pts/0 S+ 07:39 0:00 grep --color=auto hostapd root@radxa:~# cat /etc/hostapd/hostapd.conf
hostapd configuration file
interface=wlan0 ctrl_interface=/var/run/hostapd ssid=rtwap channel=6 wpa=2 wpa_passphrase=87654321
bridge=br0
Wi-Fi Protected Setup (WPS)
eap_server=1
WPS state
0 = WPS disabled (default)
1 = WPS enabled, not configured
2 = WPS enabled, configured
wps_state=2
uuid=12345678-9abc-def0-1234-56789abcdef0
Device Name
User-friendly description of device; up to 32 octets encoded in UTF-8
device_name=RTL8192CU
Manufacturer
The manufacturer of the device (up to 64 ASCII characters)
manufacturer=Realtek
Model Name
Model of the device (up to 32 ASCII characters)
model_name=RTW_SOFTAP
Model Number
Additional device description (up to 32 ASCII characters)
model_number=WLAN_CU
Serial Number
Serial number of the device (up to 32 characters)
serial_number=12345
Primary Device Type
Used format:--
categ = Category as an integer value
OUI = OUI and type octet as a 4-octet hex-encoded value; 0050F204 for
default WPS OUI
subcateg = OUI-specific Sub Category as an integer value
Examples:
1-0050F204-1 (Computer / PC)
1-0050F204-2 (Computer / Server)
5-0050F204-1 (Storage / NAS)
6-0050F204-1 (Network Infrastructure / AP)
device_type=6-0050F204-1
OS Version
4-octet operating system version number (hex string)
os_version=01020300
Config Methods
List of the supported configuration methods
config_methods=label display push_button keypad
default configuration
driver=rtl871xdrv beacon_int=100 hw_mode=g ieee80211n=1 wme_enabled=1 ht_capab=[SHORT-GI-20][SHORT-GI-40][HT40+] wpa_key_mgmt=WPA-PSK wpa_pairwise=CCMP max_num_sta=8 wpa_group_rekey=86400
root@radxa:~#
root@radxa:~# iw list root@radxa:~#