Odroid C1+ , Wifi Resolving issues

ODROID related support

Odroid C1+ , Wifi Resolving issues

Postby yump » 30 Mar 2016, 00:12

Hello I seem to have an issue resolving address on wifi only. This issue prevent's me loading spotify.
The following step's will reproduce it.
On boot up with wifi stick removed.
Code: Select all
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.14  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::21e:6ff:fe20:3757  prefixlen 64  scopeid 0x20<link>
        ether 00:1e:06:20:37:57  txqueuelen 1000  (Ethernet)
        RX packets 1682  bytes 133517 (130.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 466  bytes 60327 (58.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 40 

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 2504  bytes 114436 (111.7 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2504  bytes 114436 (111.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
[root@runeaudio ~]# ping -I eth0 www.google.com
PING www.google.com (206.248.151.102) from 192.168.1.14 eth0: 56(84) bytes of data.
64 bytes from www.google.com (206.248.151.102): icmp_seq=1 ttl=61 time=12.3 ms

Plugging the Wifi stick in (It's the Wifi stick from Hardkernel)
Code: Select all
[  453.346702] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[  453.696675] usb 1-1.1: reset high-speed USB device number 3 using dwc_otg
[  453.805510] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5592, rev 0222 detected
[  453.833762] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 000f detected
[  453.834608] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[  453.836390] usbcore: registered new interface driver rt2800usb

Connect to wifi network. (can resolve http://www.google.com on both interfaces)
Remove Ethernet
reboot
Code: Select all
[root@runeaudio ~]# ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 00:1e:06:20:37:57  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 40 

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 2863  bytes 131055 (127.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2863  bytes 131055 (127.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.15  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::7edd:90ff:fe86:92f2  prefixlen 64  scopeid 0x20<link>
        ether 7c:dd:90:86:92:f2  txqueuelen 1000  (Ethernet)
        RX packets 240  bytes 18019 (17.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 88  bytes 16024 (15.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[root@runeaudio ~]# ping -I wlan0 www.google.com
ping: unknown host www.google.com

Replug ethernet
Code: Select all
[root@runeaudio ~]# ping -I wlan0 www.google.com
PING www.google.com (206.248.169.84) from 192.168.1.15 wlan0: 56(84) bytes of data.
64 bytes from www.google.com (206.248.169.84): icmp_seq=1 ttl=61 time=12.0 ms

** Note adding dns entry into either /etc/netctl/wifi-ap or /etc/systemd/resolved.conf seem to "fix" the issue.
yump
 
Posts: 2
Joined: 29 Mar 2016, 00:35

Re: Odroid C1+ , Wifi Resolving issues

Postby hondagx35 » 30 Mar 2016, 01:21

Hi yump,

thank you for reporting this.

There should be a service (resolved), please check if it is running:
Code: Select all
systemctl status systemd-resolved


Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Odroid C1+ , Wifi Resolving issues

Postby yump » 30 Mar 2016, 01:58

Hmm Akward seems to be working.
Code: Select all
[root@runeaudio ~]# systemctl status systemd-resolved
● systemd-resolved.service - Network Name Resolution
   Loaded: loaded (/usr/lib/systemd/system/systemd-resolved.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2007-09-30 16:38:12 EDT; 8 years 5 months ago
     Docs: man:systemd-resolved.service(8)
 Main PID: 209 (systemd-resolve)
   Status: "Processing requests..."
   CGroup: /system.slice/systemd-resolved.service
           └─209 /usr/lib/systemd/systemd-resolved


(after some fiddling around)
So doing the following
Code: Select all
systemctl stop systemd-resolved
systemctl start systemd-resolved

Changes the /etc/resolv.conf
It looks like having an ipv4 dns server at the first entry works. It seems to random what set of entries are picked.
Code: Select all
# static file or a different symlink.

nameserver 8.8.8.8
nameserver 2001:4860:4860::8888
nameserver 2001:4860:4860::8844
# Too many DNS servers configured, the following entries may be ignored.
nameserver 8.8.4.4

while a IPV6 entry first will have it fail to resolve. (What?)
Code: Select all
# static file or a different symlink.

nameserver 2001:4860:4860::8844
nameserver 8.8.4.4
nameserver 8.8.8.8
# Too many DNS servers configured, the following entries may be ignored.
nameserver 2001:4860:4860::8888
yump
 
Posts: 2
Joined: 29 Mar 2016, 00:35

support RuneAudio Donate with PayPal


Return to ODROID

Who is online

Users browsing this forum: No registered users and 3 guests
cron