ODROID C1 Bedienungsanleitung

2023/05/21 14:24 1/20 Wireless Access Point
ODROID Wiki - https://wiki.odroid.com/
Wireless Access Point
This application note is applicable to the our Ubuntu/Linux Platforms.
HostAP Mode Compatibility List
Wifi module
name
(USB VID:PID)
ODROID-C1 ODROID-C2 ODROID-XU3/4 ODROID-N2
Ubuntu
16.04
v2.2-3.10.y
Ubuntu
18.04
v3.0-3.10.y
Ubuntu
16.04
v2.4-3.14.y
Ubuntu
18.04
v3.0-3.16.y
Ubuntu 16.04
20170731-3.10.y
Ubuntu 16.04
20171212-4.14.y
Ubuntu 18.04
20181203-4.14.y
Ubuntu 18.04.1
20190217-4.9.y
0 - Ralink
RT5370N
(0x148F:0x5370)
confirm confirm confirm confirm confirm confirm confirm confirm
3 - Realtak
RTL8188CUS
(0x0BDA:0x8176)
confirm
Dedicated
hostapd
confirm
Dedicated
hostapd
confirm
Dedicated
hostapd
confirm confirm
confirm
Dedicated
hostapd
confirm confirm
4 - Ralink
RT5572N
(0x148F:0x5572)
confirm confirm confirm confirm confirm confirm confirm confirm
5 - Realtak
RTL8812AU
(0x0BDA:0x8812)
confirm confirm confirm confirm
confirm
Dedicated
hostapd
confirm
Dedicated
hostapd
confirm confirm
5A - Realtak
RTL8811AU
(0x0BDA:0xa811)
confirm confirm confirm confirm not working confirm confirm confirm
wpa_supplicant Mode Compatibility List
Wifi module
name
(USB VID:PID)
ODROID-C1 ODROID-C2 ODROID-XU3/4 ODROID-N2
Ubuntu
16.04
v2.2-3.10.y
Ubuntu
18.04
v3.0-3.10.y
Ubuntu
16.04
v2.4-3.14.y
Ubuntu
18.04
v3.0-3.16.y
Ubuntu 16.04
20170731-3.10.y
Ubuntu 16.04
20171212-4.14.y
Ubuntu 18.04
20181203-4.14.y
Ubuntu 18.04.1
20190217-4.9.y
0 - Ralink
RT5370N
(0x148F:0x5370)
confirm confirm confirm confirm confirm confirm not working not working
3 - Realtak
RTL8188CUS
(0x0BDA:0x8176)
not
working
not
working
not
working
not
working not working not working not working not working
4 - Ralink
RT5572N
(0x148F:0x5572)
confirm confirm confirm confirm confirm confirm not working not working
5 - Realtak
RTL8812AU
(0x0BDA:0x8812)
not
working
not
working confirm confirm not working confirm not working not working
5A - Realtak
RTL8811AU
(0x0BDA:0xa811)
not
working
not
working confirm confirm not working not working not working not working
ODROID Wireless Cards Information
Almost all the wireless card have capability of configuration as to be Access Point.
target
root@odroid:~# sudo iw list

Last
update:
2019/03/05
10:03
accessory:connectivity:wifi:wireless_ap_mode https://wiki.odroid.com/accessory/connectivity/wifi/wireless_ap_mode?rev=1551747785
https://wiki.odroid.com/ Printed on 2023/05/21 14:24
If there is “AP” in the list of “Supported interface modes”, your device will support the Access
Point mode.
target
...
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* WDS
* monitor
* mesh point
...
Refer to the below contents of informations of each wireless interface.
Wifi Module 0
Manufacturer: Mediatek Ralink
Part name: RT5370N
Type: chip
Number of busses: 1
Bus(es): USB 2.0
Number of bands: 1
Band(s): 2.4GHz
Data rate: 150Mbps
MIMO configuration: 1x1:1 (1T1R)
IEEE 802.11 PHY Modes: b,g,n
Bus 005 Device 002: ID 148F:5370 Ralink Technology, RT5370 Wireless Adapter
Wifi Module 3
Manufacturer: Realtek
Part name: RTL8188CUS
Type: chip
Number of busses: 1
Bus(es): USB 2.0
Number of bands: 1
Band(s): 2.4GHz
Data rate: 150Mbps
MIMO configuration: 1x1:1 (1T1R)
IEEE 802.11 PHY Modes: b,g,n

2023/05/21 14:24 3/20 Wireless Access Point
ODROID Wiki - https://wiki.odroid.com/
Bus 001 Device 003: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS
802.11n WLAN Adapter
Wifi Module 4
Manufacturer: Ralink
Part name: RT5572N
Type: chip
Number of busses: 1
Bus(es): USB 2.0
Number of bands: 2
Band(s): 2.4GHz, 5GHz
Data rate: 300Mbps
MIMO configuration: 2x2:2 (2T2R)
IEEE 802.11 PHY Modes: a,b,g,n
Bus 001 Device 006: ID 148f:5572 Ralink Technology, Corp. RT5572 Wireless
Adapter
Wifi Module 5
Manufacturer: Realtek
Type: chip
Number of busses: 2
Bus(es): USB 2.0 / USB 3.0
Number of bands: 2
Band(s): 2.4GHz, 5GHz
Data rate: 300Mbps
MIMO configuration: 2x2:2 (2T2R)
IEEE 802.11 PHY Modes: a,b,g,n,ac
Bus 003: ID 0bda:8812 Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac
WLAN Adapter
Wifi Module 5A
Manufacturer: Realtek
Type: chip
Number of busses: 1
Bus(es): USB 2.0
Number of bands: 2
Band(s): 2.4GHz, 5GHz
Data rate: AC600
MIMO configuration: 433 Mbps @ 5 GHz @ 1T1R / 150 Mbps @ 2.4 GHz @ 1T1R
IEEE 802.11 PHY Modes: a,b,g,n,ac

Last
update:
2019/03/05
10:03
accessory:connectivity:wifi:wireless_ap_mode https://wiki.odroid.com/accessory/connectivity/wifi/wireless_ap_mode?rev=1551747785
https://wiki.odroid.com/ Printed on 2023/05/21 14:24
Bus 003 Device 003: ID 0bda:a811 Realtek Semiconductor Corp.
Configure Access Point
One user (tam1111574) reported there's an issue with USB 3.0 port on the XU4:
http://forum.odroid.com/viewtopic.php?f=97&t=19285
All commands must be executed in super user mode.
You should do apt update && apt full-upgrade before proceed.
It may need to do apt install libnl-3-dev libnl-genl-3-dev libssl-dev hostapd
iptables git pkg-config vim build-essential to work with.
Configure wireless network interface and dnsmasq daemon.
Configure access point can be divided into the following tasks.
Setup network interface configuration
Setup DHCP server configuration
Setup iptables to forward the internet traffic from Ethernet to wireless lan.
Setup hostapd server or wpa_supplicant configuration.
Check service & WIFI configuration
Step 1: Setup network interface configuration.
In order to configure Wireless Access Point you need to provide static IP address to Wireless network
card.
Check wlan0 part of the following contents that you should put.
target
root@odroid:~# vi /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
auto eth0

2023/05/21 14:24 5/20 Wireless Access Point
ODROID Wiki - https://wiki.odroid.com/
iface eth0 inet dhcp
auto wlan0
iface wlan0 inet static
address 192.168.1.1
netmask 255.255.255.0
Note: The predictable interface names shown as starts with wlan suppose you have an interface
name.
If your wireless interface name shows like the below's,
target
root@odroid:~# ifconfig
enx7cdd9052131e Link encap:Ethernet HWaddr 7c:dd:90:52:13:1e
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:321 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)
Add net.ifnames=0 as kernel parameter to kernel command line by editing the boot.ini. The local
interface name issue gets resolved to have predictable name for wireless interface.
target
root@odroid:~# ifconfig
wlan0 Link encap:Ethernet HWaddr 7c:dd:90:52:13:1e
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:10 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)
Note: wlan0 IP address might be different from yours.
Note: Wireless interface name can be changed as it depends on the wireless cards you installed.
Step 2: Setup DHCP server configuration for Access Point.
Configure dnsmasq which is a light weight DHCP and DNS server.
target
root@odroid:~# apt install dnsmasq
Reading package lists... Done

Last
update:
2019/03/05
10:03
accessory:connectivity:wifi:wireless_ap_mode https://wiki.odroid.com/accessory/connectivity/wifi/wireless_ap_mode?rev=1551747785
https://wiki.odroid.com/ Printed on 2023/05/21 14:24
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not
upgraded.
Need to get 16.2 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports bionic/universe armhf
dnsmasq all 2.79-1 [16.2 kB]
Fetched 16.2 kB in 1s (16.6 kB/s)
(Reading database ... 155718 files and directories currently
installed.)
Preparing to unpack .../dnsmasq_2.79-1_all.deb ...
Unpacking dnsmasq (2.79-1) over (2.79-1) ...
Setting up dnsmasq (2.79-1) ...
Processing triggers for systemd (237-3ubuntu10.9) ...
If you faced “FAILED” message when starting up the dnsmasq.service like the
below “port 53: Address already in use”,
target
invoke-rc.d: initscript dnsmasq, action "start" failed.
● dnsmasq.service - dnsmasq - A lightweight DHCP and
caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service;
enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon
2018-12-10 01:59:06 UTC; 22ms ago
Process: 2073 ExecStart=/etc/init.d/dnsmasq systemd-
exec (code=exited, status=2)
Process: 2072 ExecStartPre=/usr/sbin/dnsmasq --test
(code=exited, status=0/SUCCESS)
Dec 10 01:59:06 odroid systemd[1]: Starting dnsmasq - A
lightweight DHCP and caching DNS server...
Dec 10 01:59:06 odroid dnsmasq[2072]: dnsmasq: syntax
check OK.
Dec 10 01:59:06 odroid dnsmasq[2073]: dnsmasq: failed to
create listening socket for port 53: Address already in
use
Dec 10 01:59:06 odroid dnsmasq[2073]: failed to create
listening socket for port 53: Address already in use
Dec 10 01:59:06 odroid dnsmasq[2073]: FAILED to start up
Dec 10 01:59:06 odroid systemd[1]: dnsmasq.service:
Control process exited, code=exited status=2
Dec 10 01:59:06 odroid systemd[1]: dnsmasq.service:
Failed with result 'exit-code'.

2023/05/21 14:24 7/20 Wireless Access Point
ODROID Wiki - https://wiki.odroid.com/
Dec 10 01:59:06 odroid systemd[1]: Failed to start
dnsmasq - A lightweight DHCP and caching DNS server.
Processing triggers for systemd (237-3ubuntu10.9) ...
Stop the service listening port 53.
target
# Check that systemd-resolve service is listening port 53
now(127.0.0.53:53)
root@odroid:~# netstat -alnp | grep -w LISTEN
tcp 0 0 127.0.0.53:53 0.0.0.0:*
LISTEN 755/systemd-resolve
tcp 0 0 0.0.0.0:22 0.0.0.0:*
LISTEN 916/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:*
LISTEN 2616/cupsd
tcp6 0 0 :::22 :::*
LISTEN 916/sshd
tcp6 0 0 ::1:631 :::*
LISTEN 2616/cupsd
# To use the 53 port, disable & stop the systemd-resolved
service
root@odroid:~# systemctl disable systemd-resolved.service
Removed /etc/systemd/system/multi-
user.target.wants/systemd-resolved.service.
Removed /etc/systemd/system/dbus-
org.freedesktop.resolve1.service.
root@odroid:~# systemctl stop systemd-resolved
# dnsmasq service enable & start
root@odroid:~# systemctl enable dnsmasq
Synchronizing state of dnsmasq.service with SysV service
script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable
dnsmasq
root@odroid:~# systemctl start dnsmasq
# confirm dnsmasq service running
root@odroid:~# netstat -alnp | grep -w LISTEN
tcp 0 0 0.0.0.0:53 0.0.0.0:*
LISTEN 6100/dnsmasq
tcp 0 0 0.0.0.0:22 0.0.0.0:*
LISTEN 677/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:*
LISTEN 2734/cupsd
tcp6 0 0 :::53 :::*
LISTEN 6100/dnsmasq

Last
update:
2019/03/05
10:03
accessory:connectivity:wifi:wireless_ap_mode https://wiki.odroid.com/accessory/connectivity/wifi/wireless_ap_mode?rev=1551747785
https://wiki.odroid.com/ Printed on 2023/05/21 14:24
tcp6 0 0 :::22 :::*
LISTEN 677/sshd
tcp6 0 0 ::1:631 :::*
LISTEN 2734/cupsd
Copy dnsmasq configuration file to get a backup and then make a new one.
target
root@odroid:~# mv /etc/dnsmasq.conf /etc/dnsmasq.conf.org
root@odroid:~# vi /etc/dnsmasq.conf
dnsmasq.conf
domain-needed
bogus-priv
no-resolv
no-poll
server=/example.com/192.168.1.5
server=8.8.8.8
server=8.8.4.4
local=/example.com/
address=/doubleclick.net/127.0.0.1
no-hosts
#addn-hosts=/etc/dnsmasq.d/hosts.conf
expand-hosts
domain=example.com
dhcp-range=192.168.1.20,192.168.1.50,72h
dhcp-range=tftp,192.168.1.250,192.168.1.254
dhcp-option=option:router,192.168.1.1
dhcp-option=option:ntp-server,192.168.1.5
dhcp-option=19,0 # ip-forwarding off
dhcp-option=44,192.168.1.5 # set netbios-over-TCP/IP aka WINS
dhcp-option=45,192.168.1.5 # netbios datagram distribution server
dhcp-option=46,8 # netbios node type
Note: You can extend the dhcp-range or change the IP address in the configuration.
Step 3: Setup iptables to forward the internet traffic from Ethernet to
wireless LAN
Next, make port forwarding enabled automatically on boot up.

2023/05/21 14:24 9/20 Wireless Access Point
ODROID Wiki - https://wiki.odroid.com/
target
root@odroid:~# vi /etc/sysctl.conf
Find the options below and change as them.
net.ipv4.ip_forward=1
net.ipv6.conf.all.forwarding=1
Add the following contents to /etc/rc.local file in order to redirect internet traffic to wireless lan.
target
root@odroid:~# vi /etc/rc.local
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo iptables -A FORWARD -i eth0 -o wlan0 -m state --state
RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT
Note: Update the iptables rules depending on your wireless network interface.
Reboot the system to get work.
target
root@odroid:~# reboot
Step 4: Access Point Installation - hostapd
Step 4-1: Setup Hostapd server configuration
hostapd is a user space daemon for access point and authentication servers. It implements IEEE
802.11 access point management, IEEE 802.1X/WPA/WPA2/EAP Authenticators, RADIUS client, EAP
server, and RADIUS authentication server.
Please find more information on https://wireless.wiki.kernel.org/en/users/documentation/hostapd
Steps to get the hostapd compilation. Download the hostapd source code and build with proper
parameters.

Last
update:
2019/03/05
10:03
accessory:connectivity:wifi:wireless_ap_mode https://wiki.odroid.com/accessory/connectivity/wifi/wireless_ap_mode?rev=1551747785
https://wiki.odroid.com/ Printed on 2023/05/21 14:24
Wifi Module 0, 4, 5, 5A
target
root@odroid:~# wget https://w1.fi/releases/hostapd-2.6.tar.gz
root@odroid:~# tar xvfz hostapd-2.6.tar.gz
root@odroid:~# cd hostapd-2.6/hostapd
root@odroid:~/hostapd-2.6/hostapd# cp defconfig .config
root@odroid:~/hostapd-2.6/hostapd# echo CONFIG_LIBNL32=y >> .config
root@odroid:~/hostapd-2.6/hostapd# echo CONFIG_IEEE80211N=y >> .config
root@odroid:~/hostapd-2.6/hostapd# echo CONFIG_IEEE80211AC=y >> .config
root@odroid:~/hostapd-2.6/hostapd# make
Wifi Module 3
You should download a patch file if you use Wifi Module 3 to make hostapd works for Wifi Module 3
which do not support the standard nl80211 driver from hostapd on kernel 3.10, 3.14, 3.16.
target
root@odroid:~# git clone https://github.com/pritambaral/hostapd-
rtl871xdrv.git
root@odroid:~# wget https://w1.fi/releases/hostapd-2.6.tar.gz
root@odroid:~# tar xvfz hostapd-2.6.tar.gz
root@odroid:~# cd hostapd-2.6
root@odroid:~/hostapd-2.6# patch -p1 < ../hostapd-
rtl871xdrv/rtlxdrv.patch
root@odroid:~/hostapd-2.6# cd hostapd
root@odroid:~/hostapd-2.6/hostapd# cp defconfig .config
root@odroid:~/hostapd-2.6/hostapd# echo CONFIG_LIBNL32=y >> .config
root@odroid:~/hostapd-2.6/hostapd# echo CONFIG_DRIVER_RTW=y >> .config
root@odroid:~/hostapd-2.6/hostapd# make
Backup the current hostapd. Replace the file with the configured one.
target
root@odroid:~/hostapd-2.6/hostapd# mv /usr/sbin/hostapd
/usr/sbin/hostapd.org
root@odroid:~/hostapd-2.6/hostapd# cp hostapd /usr/sbin/
Dieses Handbuch passt für folgende Modelle
3
Beliebte Drahtloser Zugangspunkt Handbücher anderer Marken

D-Link
D-Link DWL-2100AP - AirPlus Xtreme G Bedienungsanleitung

Ubiquiti
Ubiquiti NanoStation NSM2 Bedienungsanleitung

Cisco
Cisco Aironet 1550 Series Bedienungsanleitung

Aruba
Aruba IAP-335 Bedienungsanleitung

Advantek Networks
Advantek Networks AWN-AP-54MR Bedienungsanleitung

IP-COM
IP-COM AP355 Bedienungsanleitung

Buffalo
Buffalo AirStation WLA-L11G Bedienungsanleitung

EnGenius
EnGenius EnStationACv2 Bedienungsanleitung

D-Link
D-Link DAP-3662 Bedienungsanleitung

xG Technology
xG Technology xMax CN1300 Bedienungsanleitung

Widelink
Widelink ezWave WAP-1100 Series Bedienungsanleitung

Edimax
Edimax CAP1200 Bedienungsanleitung





