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
  Pine 1 will no longer boot (bricked) dstallmo 0 1,571 06-22-2023, 12:22 PM
Last Post: dstallmo
  Ubuntu server 20.04 request phi0x 2 6,105 12-30-2020, 08:02 PM
Last Post: phi0x
  Pine hangs up on boot if I add my exFAT USB drive to /etc/fstab pqueiro 0 3,329 06-10-2019, 12:07 PM
Last Post: pqueiro
  +LTS/SOPINE Compilation procedure for U-Boot and Linux for pineA64 LTS. danpurprakash@gmail.com 1 4,539 06-05-2019, 11:50 PM
Last Post: igorp
  Frustrations with Wifi, VNC, Longsleep, etc. NexusDude 1 4,083 06-05-2019, 11:43 PM
Last Post: igorp
  Slow I/O tagyro 0 2,797 04-07-2019, 05:43 AM
Last Post: tagyro
  Pine Board using linux stuck during boot sequence ktaragorn 0 3,074 03-23-2019, 04:06 AM
Last Post: ktaragorn
  Resize /Boot mmcblk0p1 on SD? chadc 7 12,422 08-24-2018, 01:23 PM
Last Post: goathunter
  SPI on ubuntu IlyaM 4 10,151 07-16-2018, 03:00 AM
Last Post: kingflab
  Ubuntu password not working joemassimino 4 9,576 05-18-2018, 03:33 PM
Last Post: Luke

Forum Jump:


Users browsing this thread: 1 Guest(s)