Android 7.1 (Pinebook) 0.3.10-66 [Sep 19] | Android 7.1 (PINE A64(+)) 0.3.10-66 [Sep 19] | Android 7.1 (SOPINE) 0.3.10-66 [Sep 19] | Linux Images (ROCK64) 0.5.9-104 [Sep 13] | Android Images (ROCK64) 0.3.4-86 [Sep 13] | PINE64 Installer v2.0.0-beta.3 [Sep 12] | Android Images (ROCK64) 20170809 [Aug 24] | Debian Jessie LXDE (ROCK64) 20170809 [Aug 16]

Getting Started | Visit the WIKI | IRC Logs | Forum Rules/Policy


Ubuntu boot very slow with wifi driver
#1
Hi,
I recently moved over to the Ubuntu image after longsleep stopped supporting the Arch version. However, I'm now getting very slow boot times of up to 5 minutes, and the issue seems to be with the wifi driver:

Code:
[   22.784315] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   24.299075] RTL871X: rtw_set_802_11_connect(wlan0)  fw_state=0x00000008
[   24.568819] RTL871X: start auth
[   24.594224] RTL871X: auth success, start assoc
[   24.623664] RTL871X: assoc success
[   24.623719] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   24.628072] RTL871X: send eapol packet
[   24.821242] RTL871X: send eapol packet
[   24.821443] RTL871X: set pairwise key camid:4, addr:08:62:66:96:ae:48, kid:0, type:AES
[   24.823230] RTL871X: set group key camid:5, addr:08:62:66:96:ae:48, kid:2, type:AES
[   25.795679] RTL871X: send eapol packet
[   25.795895] RTL871X: set pairwise key camid:4, addr:08:62:66:96:ae:48, kid:0, type:AES
[   25.796325] RTL871X: set group key camid:5, addr:08:62:66:96:ae:48, kid:2, type:AES
[   26.768203] RTL871X: send eapol packet
[   26.768407] RTL871X: set pairwise key camid:4, addr:08:62:66:96:ae:48, kid:0, type:AES
[   26.768941] RTL871X: set group key camid:5, addr:08:62:66:96:ae:48, kid:2, type:AES
[   27.742605] RTL871X: send eapol packet
[   27.742806] RTL871X: set pairwise key camid:4, addr:08:62:66:96:ae:48, kid:0, type:AES
[   27.743239] RTL871X: set group key camid:5, addr:08:62:66:96:ae:48, kid:2, type:AES
[   28.720334] RTL871X: send eapol packet
[   28.720540] RTL871X: set pairwise key camid:4, addr:08:62:66:96:ae:48, kid:0, type:AES
[   28.720965] RTL871X: set group key camid:5, addr:08:62:66:96:ae:48, kid:2, type:AES
[   29.693695] RTL871X: send eapol packet
[   29.693896] RTL871X: set pairwise key camid:4, addr:08:62:66:96:ae:48, kid:0, type:AES
[   29.694415] RTL871X: set group key camid:5, addr:08:62:66:96:ae:48, kid:2, type:AES
[   30.666121] RTL871X: send eapol packet
[   30.666325] RTL871X: set pairwise key camid:4, addr:08:62:66:96:ae:48, kid:0, type:AES
[   30.666828] RTL871X: set group key camid:5, addr:08:62:66:96:ae:48, kid:2, type:AES
[   31.640743] RTL871X: send eapol packet
[   31.640954] RTL871X: set pairwise key camid:4, addr:08:62:66:96:ae:48, kid:0, type:AES
[   31.641387] RTL871X: set group key camid:5, addr:08:62:66:96:ae:48, kid:2, type:AES
[   32.612994] RTL871X: OnDeAuth(wlan0) reason=15, ta=08:62:66:96:ae:48, ignore=0
[   32.615178] cfg80211: Calling CRDA to update world regulatory domain
[   32.860659] cfg80211: World regulatory domain updated:
[   32.860673] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   32.860679] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[   32.860684] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[   32.860689] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm)
[   32.860694] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm)
[   32.860699] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2000 mBm)
[   32.860704] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm)
[   32.860709] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm)
[   32.860714] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm)
[   33.991327] RTL871X: rtw_set_802_11_connect(wlan0)  fw_state=0x00000008
[   33.995111] RTL871X: OnDeAuth(wlan0) reason=6, ta=08:62:66:96:ae:48, ignore=0
[   35.772401] RTL871X: rtw_set_802_11_connect(wlan0)  fw_state=0x00000008
[   35.776175] RTL871X: OnDeAuth(wlan0) reason=6, ta=08:62:66:96:ae:48, ignore=0
[   38.045481] RTL871X: rtw_set_802_11_connect(wlan0)  fw_state=0x00000008
[   38.049637] RTL871X: OnDeAuth(wlan0) reason=6, ta=08:62:66:96:ae:48, ignore=0
[   50.484649] RTL871X: rtw_set_802_11_connect(wlan0)  fw_state=0x00000008
[   50.665170] RTL871X: start auth
[   50.696121] RTL871X: auth success, start assoc
[   50.714225] RTL871X: assoc success
[   50.726227] RTL871X: send eapol packet
[   50.894594] RTL871X: send eapol packet
[   50.894786] RTL871X: set pairwise key camid:4, addr:08:62:66:96:ae:48, kid:0, type:AES
[   50.896458] RTL871X: set group key camid:5, addr:08:62:66:96:ae:48, kid:2, type:AES
[   98.944490] RTL871X: send eapol packet
[   98.947769] RTL871X: set group key camid:6, addr:08:62:66:96:ae:48, kid:1, type:AES
[  322.325399] RTL871X: send eapol packet
[  322.325791] RTL871X: set group key camid:5, addr:08:62:66:96:ae:48, kid:2, type:AES
[  323.400050] RTL871X: send eapol packet
[  323.400512] RTL871X: set group key camid:5, addr:08:62:66:96:ae:48, kid:2, type:AES
[  328.827781] cgroup: systemd (1) created nested cgroup for controller "blkio" which has incomplete hierarchy support. Nested cgroups may change behavior in the future.

Does anybody have any ideas on solving this? Updating to the latest kernel version using the scripts from longsleep's repo hasn't helped.
Reply
#2
I know longsleep has a comment somewhere saying it tries to connect to the Internet on boot (and will continue to try for 5 minutes before it gives up). For example if I boot mine when connected to Ethernet it starts right up but if Ethernet is not plugged in the boot takes five mins.
Reply
#3
If you do not connect Ethernet this is expected until you change the configuration.
Reply
#4
I just deleted /etc/network/interfaces.d/eth0 and that did the trick. Thanks for the help!
Reply
#5
Any news/fix on this?
Maybe a way to configure the timeout...
Reply
#6
The fix is that you change the configuration to match your use case.
Reply
#7
(08-23-2016, 10:22 PM)longsleep Wrote: The fix is that you change the configuration to  match your use case.

Indeed. If you want the ethernet to not black startup when the cable is not connected, you'll need to either disable it, or configure it to allow for hotplugging. 

Depending on your network setup, this may be as simple as changing /etc/network/interfaces to read 'allow-hotplug eth0' instead of 'auto eth0'. This allows the system to configure the device it if is plugged in later. 

In my case, this means the part of my /etc/network/interfaces file that deals with the wired ethernet looks like the below snippet, and setups up my ethernet connection when and if the cable is plugged in. 

Code:
#auto eth0 #commented out to prevent blocking system startup if cable not plugged in
allow-hotplug eth0
iface eth0 inet dhcp

If you have a more complicated network setup, you may find you need to consider using the systemd-networkd daemon, but in my case that wasn't needed.
Reply
#8
I know that is a old topic (1 year) but I tried allow-hotplug, tried static IP and it keep needing 5 minutes to boot.

Is delete the /etc/network/interfaces.d/eth0 best solution?
Reply
#9
(08-02-2017, 05:39 PM)victorssantos Wrote: I know that is a old topic (1 year) but I tried allow-hotplug, tried static IP and it keep needing 5 minutes to boot.

Is delete the /etc/network/interfaces.d/eth0 best solution?

If you have altered it so that it now says allow-hotplug eth0 instead of auto eth0, then yes, you'll need to delete (or perhaps just move so you don't have to re-create it if it doesn't fix the problem?) the eth0 config file.
Reply
#10
I made a mistake.

I didn't know that I have to configure eth0 interface inside interfaces.d folder. I used the interfaces file and that's why it didn't work.

Removed eth0 file.



Thank you!
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  PPTP doesnt work with ubuntu escovedo 2 1,035 08-23-2017, 09:28 AM
Last Post: gilbertotcc
  SPI on ubuntu IlyaM 0 66 08-07-2017, 03:41 AM
Last Post: IlyaM
Question HELP Ubuntu Mate password recovery procedure Captain Anni Hilator 5 192 08-03-2017, 03:52 PM
Last Post: Luke
  Recovering root access in Ubuntu Scientomancer 3 136 07-28-2017, 02:53 PM
Last Post: Scientomancer
  Ubuntu Xenial Image (BSP Kernel) longsleep 329 108,515 07-16-2017, 06:45 PM
Last Post: pfeerick
  Pine64 2Gb Ubuntu Mono not updating and stuck petec 0 106 07-08-2017, 09:34 AM
Last Post: petec
Question Mali driver on linux? jamiechang917 7 953 07-05-2017, 12:05 PM
Last Post: Gnx
  Problem connecting to specific wifi network JamesWatt 1 406 07-03-2017, 02:09 PM
Last Post: ChristianC123
  Ubuntu Xenial - Firefox add support for H264 and EAC3 klode 1 746 05-26-2017, 11:10 AM
Last Post: Gnx
Brick Rootfs Encryption on Ubuntu 16.04 saro 7 621 05-17-2017, 06:49 PM
Last Post: pfeerick

Forum Jump:


Users browsing this thread: 1 Guest(s)