Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ERROR: net.wlp0s3 failed to start
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
arabesc
n00b
n00b


Joined: 01 Apr 2015
Posts: 7
Location: Moscow.ru

PostPosted: Wed Apr 08, 2015 5:18 pm    Post subject: ERROR: net.wlp0s3 failed to start Reply with quote

There are two wireless network adapters in my system. First - wlp0s4 - uses Ath9k driver and the second - wlp0s3 - uses Ath10k driver.
wlp0s4 successfully initialized during system boot, but wlp0s3 failed with the following message on the console screen:
Code:
 * Bringing up interface wlp0s3
 *   ERROR: interface wlp0s3 does not exist
 *   Ensure that you have loaded the correct kernel module for your hardware
 * ERROR: net.wlp0s3 failed to start
 * ERROR: cannot start netmount as net.wlp0s3 would not start

I can successfully use wlp0s3 from the command line with the properly configured hostapd.
What's the reason of this boot error, how can I fix it?

Some more information:
Code:
# lsmod | grep ath
ath9k                 111830  0
led_class               3151  1 ath9k
ath9k_common            9396  1 ath9k
ath9k_hw              413303  2 ath9k_common,ath9k
ath10k_pci             26528  0
ath10k_core           121060  1 ath10k_pci
ath                    19480  4 ath9k_common,ath9k,ath10k_core,ath9k_hw
mac80211              292261  2 ath9k,ath10k_core
cfg80211              205437  5 ath,ath9k_common,ath9k,mac80211,ath10k_core

Code:
# dmesg | grep wlp0
[    4.037115] ath9k 0000:00:04.0 wlp0s4: renamed from wlan0
[    4.037162] systemd-udevd[2131]: renamed network interface wlan0 to wlp0s4
[    5.604156] IPv6: ADDRCONF(NETDEV_UP): wlp0s4: link is not ready
[    6.020708] ath10k_pci 0000:00:03.0 wlp0s3: renamed from wlan0
[    6.020770] systemd-udevd[2131]: renamed network interface wlan0 to wlp0s3

Code:
# dmesg | grep -e wlan -e wlp -e ath
[    3.553308] ath10k_pci 0000:00:03.0: can't derive routing for PCI INT A
[    3.553309] ath10k_pci 0000:00:03.0: PCI INT A: no GSI
[    3.850935] ath10k_pci 0000:00:03.0: irq 29 for MSI/MSI-X
[    3.850999] ath10k_pci 0000:00:03.0: pci irq msi interrupts 1 irq_mode 0 reset_mode 0
[    3.851406] ath9k 0000:00:04.0: can't derive routing for PCI INT A
[    3.851407] ath9k 0000:00:04.0: PCI INT A: no GSI
[    3.963015] ath: EEPROM regdomain: 0x6a
[    3.963016] ath: EEPROM indicates we should expect a direct regpair map
[    3.963017] ath: Country alpha2 being used: 00
[    3.963017] ath: Regpair used: 0x6a
[    3.971450] ath9k 0000:00:04.0 wlp0s4: renamed from wlan0
[    3.971496] systemd-udevd[2131]: renamed network interface wlan0 to wlp0s4
[    5.351311] ath10k_pci 0000:00:03.0: qca988x hw2.0 (0x4100016c, 0x043202ff) fw 10.2.2.39.6-1 api 3 htt 2.1
[    5.351313] ath10k_pci 0000:00:03.0: debug 1 debugfs 0 tracing 0 dfs 0 testmode 0
[    5.527005] IPv6: ADDRCONF(NETDEV_UP): wlp0s4: link is not ready
[    5.953002] ath: EEPROM regdomain: 0x0
[    5.953004] ath: EEPROM indicates default country code should be used
[    5.953004] ath: doing EEPROM country->regdmn map search
[    5.953005] ath: country maps to regdmn code: 0x3a
[    5.953006] ath: Country alpha2 being used: US
[    5.953006] ath: Regpair used: 0x3a
[    5.958857] ath10k_pci 0000:00:03.0 wlp0s3: renamed from wlan0
[    5.962658] systemd-udevd[2131]: renamed network interface wlan0 to wlp0s3

Code:
# lspci -v -k -d 168c:
00:03.0 Network controller: Qualcomm Atheros QCA988x 802.11ac Wireless Network Adapter
   Flags: bus master, fast devsel, latency 0, IRQ 29
   Memory at c0200000 (64-bit, prefetchable) [=2M]
   Expansion ROM at c0010000 [disabled] [=64K]
   Capabilities: [40] Power Management version 3
   Capabilities: [50] MSI: Enable+ Count=1/8 Maskable+ 64bit-
   Capabilities: [70] Express Endpoint, MSI 00
   Kernel driver in use: ath10k_pci
   Kernel modules: ath10k_pci

00:04.0 Network controller: Qualcomm Atheros AR93xx Wireless Network Adapter (rev 01)
   Subsystem: Qualcomm Atheros Device 3114
   Flags: bus master, fast devsel, latency 0, IRQ 17
   Memory at c0400000 (64-bit, prefetchable) [=128K]
   Expansion ROM at c0020000 [disabled] [=64K]
   Capabilities: [40] Power Management version 3
   Capabilities: [50] MSI: Enable- Count=1/4 Maskable+ 64bit+
   Capabilities: [70] Express Endpoint, MSI 00
   Kernel driver in use: ath9k
   Kernel modules: ath9k
Back to top
View user's profile Send private message
arabesc
n00b
n00b


Joined: 01 Apr 2015
Posts: 7
Location: Moscow.ru

PostPosted: Fri Apr 10, 2015 1:32 am    Post subject: Reply with quote

Additional debug info:
Code:
[    6.019181] systemd-udevd[2138]: device 0x7f9b61e665d0 has devpath '/devices/pci0000:00/0000:00:03.0'
[    6.022900] systemd-udevd[2138]: device 0x7f9b61e14120 has devpath '/bus/pci'
[    6.022912] systemd-udevd[2138]: device 0x7f9b61e14120 has devpath '/devices/pci0000:00'
[    6.022930] systemd-udevd[2138]: IMPORT builtin 'hwdb' /lib64/udev/rules.d/75-net-description.rules:12
[    6.022956] systemd-udevd[2138]: device 0x7f9b61e665d0 filled with db file data
[    6.022997] systemd-udevd[2138]: IMPORT builtin 'path_id' /lib64/udev/rules.d/80-net-setup-link.rules:5
[    6.023001] systemd-udevd[2138]: IMPORT builtin 'net_setup_link' /lib64/udev/rules.d/80-net-setup-link.rules:11
[    6.023010] systemd-udevd[2138]: Config file /lib64/systemd/network/99-default.link applies to device wlan0
[    6.023019] systemd-udevd[2138]: NAME 'wlp0s3' /lib64/udev/rules.d/80-net-setup-link.rules:13
[    6.023020] systemd-udevd[2138]: RUN 'net.sh %k start' /lib64/udev/rules.d/90-network.rules:6
[    6.023022] systemd-udevd[2138]: changing net interface name from 'wlan0' to 'wlp0s3'
[    6.023034] ath10k_pci 0000:00:03.0 wlp0s3: renamed from wlan0
[    6.023081] systemd-udevd[2122]: seq 1316 queued, 'move' 'net'
[    6.026715] cfg80211: Regulatory domain changed to country: US
[    6.026716] cfg80211:  DFS Master region: unset
[    6.026716] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    6.026718] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
[    6.026719] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 1700 mBm), (N/A)
[    6.026719] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2300 mBm), (0 s)
[    6.026720] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2300 mBm), (0 s)
[    6.026721] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
[    6.026721] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[    6.026734] systemd-udevd[2138]: renamed network interface wlan0 to wlp0s3
[    6.026740] systemd-udevd[2138]: renamed netif to 'wlp0s3'
[    6.026743] systemd-udevd[2138]: changed devpath to '/devices/pci0000:00/0000:00:03.0/net/wlp0s3'
[    6.026764] systemd-udevd[2138]: created db file '/run/udev/data/n4' for '/devices/pci0000:00/0000:00:03.0/net/wlp0s3'
[    6.026868] systemd-udevd[3129]: starting 'net.sh wlp0s3 start'
[    6.027778] systemd-udevd[2139]: '/usr/sbin/crda' [3128] exit with return code 0
[    6.027801] systemd-udevd[2139]: passed -1 bytes to netlink monitor 0x7f9b61e1a790
[    6.027803] systemd-udevd[2139]: seq 1315 processed with 0
[    6.028740] systemd-udevd[2138]: 'net.sh wlp0s3 start'(err) ' * '
[    6.028747] systemd-udevd[2138]: 'net.sh wlp0s3 start'(err) 'net.wlp0s3: not allowed to be hotplugged' <- *!!!*
[    6.028751] systemd-udevd[2138]: 'net.sh wlp0s3 start'(err) ''
[    6.028855] systemd-udevd[2138]: 'net.sh wlp0s3 start' [3129] exit with return code 1
Back to top
View user's profile Send private message
arabesc
n00b
n00b


Joined: 01 Apr 2015
Posts: 7
Location: Moscow.ru

PostPosted: Fri Apr 24, 2015 1:36 am    Post subject: Reply with quote

I've inserted some debug output in the /etc/init.d/net.lo script and there's its output:
Code:

[    0.408111] ath9k 0000:00:04.0: can't derive routing for PCI INT A
[    0.408621] ath9k 0000:00:04.0: PCI INT A: no GSI
[    0.520763] ieee80211 phy0: Atheros AR9300 Rev:3 mem=0xffffc90000040000, irq=17
[    0.521524] ath10k_pci 0000:00:03.0: can't derive routing for PCI INT A
[    0.522067] ath10k_pci 0000:00:03.0: PCI INT A: no GSI
[    0.821368] ath10k_pci 0000:00:03.0: pci irq msi interrupts 1 irq_mode 0 reset_mode 0
...
 * runscript is deprecated; please use openrc-run instead.
 * Bringing up interface eth0
...
 *   Configuring eth0 for MAC address ...
 [ ok ]
 *   192.168.0.2 ...
 *     ip addr add 192.168.0.2/24 broadcast 192.168.0.255 dev eth0
 [ ok ]
 *   Adding routes
 *     default via 192.168.0.1 ...
...
* runscript is deprecated; please use openrc-run instead.
 * Bringing up interface wlp0s3

00:03.0 Network controller: Qualcomm Atheros QCA988x 802.11ac Wireless Network Adapter
        Flags: bus master, fast devsel, latency 0, IRQ 32
        Memory at c0200000 (64-bit, prefetchable) [size=2M]
        Expansion ROM at c0010000 [disabled] [size=64K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable+ Count=1/8 Maskable+ 64bit-
        Capabilities: [70] Express Endpoint, MSI 00
        Kernel driver in use: ath10k_pci

00:04.0 Network controller: Qualcomm Atheros AR93xx Wireless Network Adapter (rev 01)
        Subsystem: Qualcomm Atheros Device 3114
        Flags: bus master, fast devsel, latency 0, IRQ 17
        Memory at c0400000 (64-bit, prefetchable) [size=128K]
        Expansion ROM at c0020000 [disabled] [size=64K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable- Count=1/4 Maskable+ 64bit+
        Capabilities: [70] Express Endpoint, MSI 00
        Kernel driver in use: ath9k

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.2  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::2a0:98ff:fed2:3c1d  prefixlen 64  scopeid 0x20<link>
        ether 00:a0:98:d2:3c:1d  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 5  bytes 418 (418.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

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 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

sit0: flags=128<NOARP>  mtu 1480
        sit  txqueuelen 0  (IPv6-in-IPv4)
        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

wlan0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:15:61:20:24:6a  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

wlp0s4: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:0e:8e:4b:b9:3e  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

Cannot find device "wlp0s3"
 *   ERROR: interface wlp0s3 does not exist
 *   Ensure that you have loaded the correct kernel module for your hardware
 * ERROR: net.wlp0s3 failed to start
...
 * runscript is deprecated; please use openrc-run instead.
 * Bringing up interface wlp0s4
 *   Configuring wlp0s4 for MAC address ...
 [ ok ]
 * ERROR: cannot start netmount as net.wlp0s3 would not start
 [ ok ]

There's wlan0 interface but it should be named wlp0s3. Why it has the wrong name?
Please help me resolve this issue.
Back to top
View user's profile Send private message
arabesc
n00b
n00b


Joined: 01 Apr 2015
Posts: 7
Location: Moscow.ru

PostPosted: Sat Apr 25, 2015 1:32 am    Post subject: Reply with quote

I don't know why but the net.wlp0s3 -> net.lo script executes before the completion of the interface renaming from the wlan0 to the wlp0s3.
There's no issue with the wlp0s4 interface. So, what's wrong?
Code:
# cat /run/udevmonitor.log | grep wlp
KERNEL[1.579359] move     /devices/pci0000:00/0000:00:04.0/net/wlp0s4 (net)
UDEV  [1.589087] add      /devices/pci0000:00/0000:00:04.0/net/wlp0s4 (net)
UDEV  [1.593097] move     /devices/pci0000:00/0000:00:04.0/net/wlp0s4 (net)
KERNEL[6.429669] move     /devices/pci0000:00/0000:00:03.0/net/wlp0s3 (net)
UDEV  [7.985996] add      /devices/pci0000:00/0000:00:03.0/net/wlp0s3 (net)
UDEV  [7.990353] move     /devices/pci0000:00/0000:00:03.0/net/wlp0s3 (net)

It can be seen that wlp0s3 is ready much later than wlp0s4.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum