element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Ultra96 Hardware Design WiFi very slow to connect on boot-up
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 10 replies
  • Subscribers 337 subscribers
  • Views 973 views
  • Users 0 members are here
Related

WiFi very slow to connect on boot-up

jhane
jhane over 6 years ago

Hello,

I've modified my 2018.3 build so that the WiFi will start at boot-up and connect to my hotspot with a static IP.  However, it seem to take a long time, 3-5 minutes, for the network connect to come up.  If I just do /etc/init.d/network restart on the console I can normally connect immediately.    Based on the console logs, the loading of the driver is the last thing to occur before getting a login prompt:

 

[    5.574698] wifi_pm : 0

[    5.577185] wifi_pm : 1

[    5.579987] wilc_sdio mmc1:0001:1: Driver Initializing success

[    5.589445] WILC POWER UP

[    5.592105] wilc_sdio mmc1:0001:1: SDIO speed: 50000000

[    5.598191] wilc_sdio mmc1:0001:1: chipid 003000d0

 

 

Has anybody seen this problem?

 

thanks,

jeff

  • Sign in to reply
  • Cancel

Top Replies

  • zedhed
    zedhed over 6 years ago in reply to jhane +1
    Hi Jeff, What machine are you pinging Ultra96 from? Is it the Ubuntu Desktop? If so, is the ARP cache getting cleared under Ubuntu during the Ultra96 reboot? If so, then Ubuntu will have to resolve the…
Parents
  • clem57
    0 clem57 over 6 years ago

    This is a know bug/feature in Linux. The solution:

     

    Found a solution, it seems that the new kernels are compiled with "Accelerate last non-dyntick-idle CPU's grace periods (RCU_FAST_NO_HZ)" option: Yes

     

    explanation from the Linux kernel source:

    This option causes RCU to attempt to accelerate grace periods
    in order to allow CPUs to enter dynticks-idle state more
    quickly. On the other hand, this option increases the overhead
    of the dynticks-idle checking, particularly on systems with
    large numbers of CPUs.

     

    If you add

    nohz=off

    to the kernel line in grub the "NOHZ local_softirq_pending"  messages don't show up

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • clem57
    0 clem57 over 6 years ago

    This is a know bug/feature in Linux. The solution:

     

    Found a solution, it seems that the new kernels are compiled with "Accelerate last non-dyntick-idle CPU's grace periods (RCU_FAST_NO_HZ)" option: Yes

     

    explanation from the Linux kernel source:

    This option causes RCU to attempt to accelerate grace periods
    in order to allow CPUs to enter dynticks-idle state more
    quickly. On the other hand, this option increases the overhead
    of the dynticks-idle checking, particularly on systems with
    large numbers of CPUs.

     

    If you add

    nohz=off

    to the kernel line in grub the "NOHZ local_softirq_pending"  messages don't show up

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • clem57
    0 clem57 over 6 years ago in reply to clem57

    A better wording:

    Add nohz=off to the kernel parameters during boot to disable it.

    This option causes RCU to attempt to accelerate grace periods in order to allow CPUs to enter dynticks-idle state more quickly. On the other hand, this option increases the overhead of the dynticks-idle checking, particularly on systems with large numbers of CPUs.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 6 years ago in reply to clem57

    But this really a symptom of DHCP from the router being slow!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jhane
    0 jhane over 6 years ago in reply to clem57

    Hello,

    Thanks for your response but those messages have nothing to do with the wifi problem and are not cause any issue, they were just on the console when I cut-n-pasted the wifi driver logs.    Also DHCP is not involved here, notice that I said I set my system up with a static IP on my "private" network so I don't have to deal with dynamic IPs.

     

    jeff

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 6 years ago in reply to jhane

    Sorry missed that static word.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • zedhed
    0 zedhed over 6 years ago in reply to jhane

    Hi Jeff,

     

    When you say it takes a long time for the network to come up what does that mean?

     

    How are nameservers getting assigned if you use a static IP address since those are normally assigned by the DHCP server?

     

    Are you sure that it is not something else networking related?

     

    https://www.linuxquestions.org/questions/linux-networking-3/network-very-slow-if-static-ip-settings-but-fine-with-dhcp-7…

     

    Do you see the same issue when using a static IP address with a USB-Ethernet adapter on Ultra96?

     

    Best Regards,

     

    -Kevin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jhane
    0 jhane over 6 years ago in reply to zedhed

    Hello,

    By slow, it means I can see the system boot on the console and after that I try to access the system, either by ping or ssh.  5 seconds is probably generous, typically it's longer(if at all)

     

    Here is my setup

         - Vonets Var11N-300 to create a hotspot

         - USB wifi dongle plugged into my Ubunutu deskside

         - static IP assigned in /etc/network/interfaces

     

    This is just a "private" network to give a direct connection from my deskside to the ultra96 so no external network access.

     

    I just tried going back to dhcp and this takes a while to get a IP address but I was unable to ping or login.  If I run /etc/init.d/network restart I can then get access.  I see the same thing with a static IP.  If I can't ssh in, I restart the network and it immediately works.

     

    Perhaps, the wilc driver is being loaded to late?  How does the system know which wifi driver to load?  I don't see anything obvious and I wonder if it could be loaded earlier?

     

    Also, I don't have a adaptor.  Can you tell me the name of a USB-ethernet adapter that works.

     

    thanks,

    jeff

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • bhfletcher
    0 bhfletcher over 6 years ago in reply to jhane

    I have used this one successfully -- https://www.newark.com/prudent-way/pwi-usb-lan/usb-2-0-to-ethernet-adapter-driverless/dp/88W0412

     

    Bryan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • zedhed
    0 zedhed over 6 years ago in reply to jhane

    Hi Jeff,

     

    What machine are you pinging Ultra96 from?  Is it the Ubuntu Desktop?  If so, is the ARP cache getting cleared under Ubuntu during the Ultra96 reboot?  If so, then Ubuntu will have to resolve the IP address you are pinging down to the Ultra96 MAC which can take some time for ARP tables of the router to update if they are also getting cleared when Ultra96 WiFi goes down.

     

    To make your network setup more deterministic and still get a known IP assignment, could you go the other way around?

     

    On your Vonets Var11N-300 do you have the ability to make a static entry for your Ultra96 in the DHCP assignment table?  Some more advanced routers can do this so that you can still use DHCP on your machines but they get assigned specific IP addresses based upon the MAC that is reported to the DHCP server during the IP lease request. 

     

    I use pfSense on my network and so I can assign an IP address outside the dynamically assigned range to a specific MAC address (like my Ultra96 board, ZedBoard, UltraZed boards, etc.) so that when they do a DHCP they get a known fixed IP address assigned by my DHCP server plus the gateway and nameservers get setup correctly as well image

     

    Static DHCP Mapping in pfSense - pfSense Setup HQ

     

    Best Regards,

     

    -Kevin

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube