11 Replies Latest reply on Mar 5, 2016 1:01 AM by cnvery

    wlan0 Is Missing, Unable To Connect WiFi (Experts Required)

    cnvery

      Hi all,


      I have a question to ask about.


      Originally, my Intel Edison is able to connect WiFi.


      I wish to disconnect WiFi once for some figuration, so I killed PID for wpa_supplicant once and re-enabled by "configure_edison --disableOneTimeSetup" according to answer in Edison - turn off wifi without configure_edison --setup and reboot. It works for once.


      However, the wlan0 is missing after I reboot Intel Edison and I no longer able to enable wlan0 by "configure_edison --disableOneTimeSetup".


      Besides that, Intel Edison is unable to connect to WiFi via "configure_edison --wifi" command. None of my WiFi is found inside the Intel Edison.


      It show error as shown in picture below:

      1.JPG


      I have tried by solving myself on this problem


      First, I have checked my bcm4334x is installed in my Intel Edison.


      I saw a similar situation/error as mine in the thread How to install a kernel from my repo onto Edison with the official image (Question raised by intel_jassowski), however install bcm4334x solution by "opkg install kernel-module-bcm4334x" does not work for me. My bcm4334x is installed and up to date.


      Hope someone can help on this.


      Thank you.


      ---------------------------------------------------------Log For My Intel Edison------------------------------------------------------------------------------------

      root@edison:~# opkg install kernel-module-bcm4334x

      Package kernel-module-bcm4334x (1.141-r47) installed in root is up to date.


      root@edison:~# ifup wlan0

      ifup: can't open '/etc/network/interfaces': No such file or directory

       

      root@edison:~# rfkill list all

      0: bcm43xx Bluetooth: bluetooth

              Soft blocked: yes

              Hard blocked: no

       

      root@edison:~# ifconfig

      lo        Link encap:Local Loopback

                inet addr:127.0.0.1  Mask:255.0.0.0

                inet6 addr: ::1/128 Scope:Host

                UP LOOPBACK RUNNING  MTU:65536  Metric:1

                RX packets:0 errors:0 dropped:0 overruns:0 frame:0

                TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

                collisions:0 txqueuelen:0

                RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

      usb0      Link encap:Ethernet  HWaddr de:51:00:6b:d9:ef

                inet addr:192.168.2.15  Bcast:192.168.2.255  Mask:255.255.255.0

                inet6 addr: fe80::dc51:ff:fe6b:d9ef/64 Scope:Link

                UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

                RX packets:159 errors:0 dropped:0 overruns:0 frame:0

                TX packets:37 errors:0 dropped:0 overruns:0 carrier:0

                collisions:0 txqueuelen:1000

                RX bytes:23870 (23.3 KiB)  TX bytes:8218 (8.0 KiB)

       

      root@edison:~# journalctl -xn

      -- Logs begin at Sat 2000-01-01 00:00:23 UTC, end at Fri 2015-06-19 05:46:43 UT

      C. --

      Jun 19 05:45:28 edison login[241]: [[1;39mROOT LOGIN  on '/dev/ttyMFD2'[[0m

      Jun 19 05:45:40 edison dbus[212]: [[1;39m[system] Failed to activate service 'o

      rg.freedesktop.hostname1': timed out[[0m

      Jun 19 05:45:40 edison dbus-daemon[212]: dbus[212]: [system] Failed to activate

      service 'org.freedesktop.hostname1': timed out

      Jun 19 05:46:43 edison systemd[1]: [[1;39mJob sys-subsystem-net-devices-wlan0.d

      evice/start timed out.[[0m

      Jun 19 05:46:43 edison systemd[1]: [[1;31mTimed out waiting for device sys-subs

      ystem-net-devices-wlan0.device.[[0m

      Jun 19 05:46:43 edison systemd[1]: [[1;31mDependency failed for WPA supplicant

      service.[[0m

      Jun 19 05:46:43 edison systemd[1]: Starting Multi-User System.

      Jun 19 05:46:43 edison systemd[1]: Reached target Multi-User System.

       

      root@edison:~# systemctl -l status systemd-modules-load.service

      ● systemd-modules-load.service - Load Kernel Modules

         Loaded: loaded (/lib/systemd/system/systemd-modules-load.service; static)

         Active: failed (Result: exit-code) since Fri 2015-06-19 05:38:34 UTC; 4min 44

      s ago

           Docs: man:systemd-modules-load.service(8)

                 man:modules-load.d(5)

        Process: 191 ExecStart=/lib/systemd/systemd-modules-load (code=exited, status=

      1/FAILURE)

      Main PID: 191 (code=exited, status=1/FAILURE)

      Jun 19 05:38:25 edison systemd[1]: Starting Load Kernel Modules...

      Jun 19 05:38:34 edison systemd[1]: systemd-modules-load.service: main process ex

      ited, code=exited, status=1/FAILURE

      Jun 19 05:38:34 edison systemd[1]: Failed to start Load Kernel Modules.

      Jun 19 05:38:34 edison systemd[1]: Unit systemd-modules-load.service entered fai

      led state.

        • 1. Re: wlan0 Is Missing, Unable To Connect WiFi (Experts Required)
          sylyca

          Hi,

           

          Check hostapd

          systemctl status hostapd and eventually stop or disable

           

          systemctl stop wpa_supplicant

          systemctl start wpa_supplicant

           

          wpa_cli status or ifconfig to check if wlan0 is up.

           

          Hope this helps,

          • 2. Re: wlan0 Is Missing, Unable To Connect WiFi (Experts Required)
            cnvery

            Thanks for the suggestion.


            However, it does not works for my Intel Edison


            Below are the details:


            root@edison:~# systemctl status hostapd

            ● hostapd.service - Hostap daemon service

               Loaded: loaded (/lib/systemd/system/hostapd.service; disabled)

               Active: inactive (dead)

            Jun 19 05:39:24 edison systemd[1]: Stopped Hostap daemon service.

            Jun 19 05:55:58 edison systemd[1]: Stopped Hostap daemon service.

            Jun 19 06:04:32 edison systemd[1]: Stopped Hostap daemon service.

            Jun 19 06:06:27 edison systemd[1]: Stopped Hostap daemon service.

            Jun 19 06:11:20 edison systemd[1]: Stopped Hostap daemon service.

             

            root@edison:~# systemctl stop wpa_supplicant

            root@edison:~# systemctl start wpa_supplicant

            A dependency job for wpa_supplicant.service failed. See 'journalctl -xn' for det

            ails.

             

            root@edison:~# ifconfig

            lo        Link encap:Local Loopback

                      inet addr:127.0.0.1  Mask:255.0.0.0

                      inet6 addr: ::1/128 Scope:Host

                      UP LOOPBACK RUNNING  MTU:65536  Metric:1

                      RX packets:0 errors:0 dropped:0 overruns:0 frame:0

                      TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

                      collisions:0 txqueuelen:0

                      RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

            usb0      Link encap:Ethernet  HWaddr 26:e8:8f:ca:e1:77

                      inet addr:192.168.2.15  Bcast:192.168.2.255  Mask:255.255.255.0

                      inet6 addr: fe80::24e8:8fff:feca:e177/64 Scope:Link

                      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

                      RX packets:640 errors:0 dropped:0 overruns:0 frame:0

                      TX packets:43 errors:0 dropped:0 overruns:0 carrier:0

                      collisions:0 txqueuelen:1000

                      RX bytes:108245 (105.7 KiB)  TX bytes:9070 (8.8 KiB)

            • 3. Re: wlan0 Is Missing, Unable To Connect WiFi (Experts Required)
              sylyca

              Hello,

               

              what about /etc/wpa_supplicant/wpa_supplicant.conf

               

              May be a misconfiguration ?

               

              Try to clean and restart wpa_supplicant service?

              • 4. Re: wlan0 Is Missing, Unable To Connect WiFi (Experts Required)
                cnvery

                Thanks for the fast reply.


                Below are the details for /etc/wpa_supplicant/wpa_supplicant.conf:

                ctrl_interface=/var/run/wpa_supplicant

                ctrl_interface_group=0

                config_methods=virtual_push_button virtual_display push_button keypad

                update_config=1

                fast_reauth=1

                device_name=Edison

                manufacturer=Intel

                model_name=Edison

                 

                network={

                  ssid="******************"

                  scan_ssid=1

                  key_mgmt=WPA-PSK

                  pairwise=CCMP TKIP

                  group=CCMP TKIP WEP104 WEP40

                  eap=TTLS PEAP TLS

                  psk="************"

                }

                 

                Below are the details for restarting and start the wpa_supplicant service:

                root@edison:/etc/opkg# systemctl restart wpa_supplicant

                A dependency job for wpa_supplicant.service failed. See 'journalctl -xn' for det

                ails.

                 

                root@edison:~# wpa_supplicant -B -Dnl80211 -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf

                Successfully initialized wpa_supplicant

                nl80211: Driver does not support authentication/association or connect commands

                Could not read interface wlan0 flags: No such device

                wlan0: Failed to initialize driver interface

                • 5. Re: wlan0 Is Missing, Unable To Connect WiFi (Experts Required)
                  sylyca

                  Could you check this post :

                  Re: Wifi connection error

                   

                  or have you already read it?

                  • 6. Re: wlan0 Is Missing, Unable To Connect WiFi (Experts Required)
                    cnvery

                    Thanks for the fast reply.


                    Tried for the solution in Re: Wifi connection error, but it does not works


                    Below are the details:

                    root@edison:~# rfkill list

                    0: bcm43xx Bluetooth: bluetooth

                            Soft blocked: yes

                            Hard blocked: no

                    root@edison:~# ifconfig

                    lo        Link encap:Local Loopback

                              inet addr:127.0.0.1  Mask:255.0.0.0

                              inet6 addr: ::1/128 Scope:Host

                              UP LOOPBACK RUNNING  MTU:65536  Metric:1

                              RX packets:0 errors:0 dropped:0 overruns:0 frame:0

                    root@edison:~# wpa_supplicant -B -Dnl80211 -iwlan0 -c/etc/wpa_supplicant/wpa_sup

                    plicant.conf

                    Successfully initialized wpa_supplicant

                    nl80211: Driver does not support authentication/association or connect commands

                    Could not read interface wlan0 flags: No such device

                    wlan0: Failed to initialize driver interface

                    root@edison:~# busybox udhcpc -i wlan0

                    udhcpc: SIOCGIFINDEX: No such device

                    root@edison:~# vi /etc/system/sytem/basic.target.wants/network-gadget-init.service

                    Nothings inside

                    root@edison:~# systemctl disable network-gadget-init.service

                    root@edison:~# vi /etc/wpa_supplicant/wpa_supplicant.conf

                    ctrl_interface=/var/run/wpa_supplicant

                    ctrl_interface_group=0

                    config_methods=virtual_push_button virtual_display push_button keypad

                    update_config=1

                    fast_reauth=1

                    device_name=Edison

                    manufacturer=Intel

                    model_name=Edison

                     

                    network={

                      ssid="******************"

                      scan_ssid=1

                      key_mgmt=WPA-PSK

                      pairwise=CCMP TKIP

                      group=CCMP TKIP WEP104 WEP40

                      eap=TTLS PEAP TLS

                      psk="************"

                    }

                    root@edison:~# wpa_cli enable_network 1

                    Failed to connect to non-global ctrl_ifname: (null)  error: No such file or dire

                    ctory

                    root@edison:~# wpa_cli select_network 1

                    Failed to connect to non-global ctrl_ifname: (null)  error: No such file or dire

                    ctory

                    root@edison:~# wpa_cli save

                    Failed to connect to non-global ctrl_ifname: (null)  error: No such file or dire

                    ctory

                    root@edison:~# wpa_cli quit

                    Failed to connect to non-global ctrl_ifname: (null)  error: No such file or dire

                    ctory

                    root@edison:~# rfkill unblock wlan

                    root@edison:~# systemctl enable wpa_supplicant

                    • 8. Re: wlan0 Is Missing, Unable To Connect WiFi (Experts Required)
                      jcuzella

                      Seems like the device wlan0 went away for some reason...

                       

                      Check the following:

                       

                      1. Check for running service: systemctl status systemd-networkd.service
                      2. Check for running target: systemctl status network.target
                      3. Check for wlan0 device: systemctl status sys-subsystem-net-devices-wlan0.device (This should show the device file if it exists... mine was: "/sys/devices/pci0000:00/0000:00:01.3/mmc_host/mmc2/mmc2:0001/mmc2:0001:2/net/wlan0" )
                      4. systemctl status systemd-udevd.service   (This should be running & handles kernel device events)
                      5. Check lspci -k for SD Host controller: Intel Corporation Device 1190 (rev 01)
                      6. Check that you don't somehow have bcm4334x module blacklisted in /etc/modprobe.d/*
                      7. Check that file /etc/modules-load.d/bcm4334x.conf contains single line with "bcm4334x"
                      8. Check that file /etc/modprobe.d/bcm4334x.conf contains "options bcm4334x firmware_path=/etc/firmware/fw_bcmdhd.bin nvram_path=/etc/firmware/bcmdhd.cal op_mode=4"
                      9. Check output of lsmod for "bcm4334x"  (e.g.:  lsmod | grep -i bcm4334x )
                      10. Check output of modprobe -c for "bcm43" (e.g.: modprobe -c | grep bcm43 )

                       

                      If the kernel module is not loaded, load it with: modprobe bcm4334x

                      If systemd-udevd.service is not running, start it with: systemctl enable systemd-udevd.service;  systemctl start systemd-udevd.service

                      If any of the other services is not running, start & enable with: systemctl enable __service_name_here.service;  systemctl start __service_name_here.service

                       

                      If it's still not working, have you tried rebooting after ensuring all system services are enabled?

                      • 9. Re: wlan0 Is Missing, Unable To Connect WiFi (Experts Required)
                        cnvery

                        Thanks for the reply.


                        Step 3 shows that the wlan0 is inactive (dead)

                        But, I unable to start it by typing systemctl enable sys-subsystem-net-devices-wlan0.device

                        It show "Failed to execute operation: No such file or directory"


                        How to perform Step 6?

                        Because I type vi /etc/modprobe.d/*

                        It will directly open /etc/modprobe.d/bcm4334x.conf


                        Besides that, I am unable to perform modprobe bcm4334x

                        It show "modprobe: ERROR: could not insert 'bcm4334x': No such device"


                        Below are the details:

                        root@edison:~# systemctl status systemd-networkd.service -l

                        ● systemd-networkd.service - Network Service

                          Loaded: loaded (/lib/systemd/system/systemd-networkd.service; enabled)

                          Active: active (running) since Fri 2015-06-19 06:15:32 UTC; 4min 12s ago

                            Docs: man:systemd-networkd.service(8)

                        Main PID: 224 (systemd-network)

                          Status: "Processing requests..."

                          CGroup: /system.slice/systemd-networkd.service

                                  └─224 /lib/systemd/systemd-networkd

                        Jun 19 06:15:35 edison systemd-networkd[224]:            usb0: gained carrier

                        Jun 19 06:15:35 edison systemd-networkd[224]:            usb0: link configured

                         

                        root@edison:~# systemctl status network.target -l

                        ● network.target - Network

                          Loaded: loaded (/lib/systemd/system/network.target; static)

                          Active: active since Fri 2015-06-19 06:15:32 UTC; 4min 38s ago

                            Docs: man:systemd.special(7)

                                  http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget

                         

                        root@edison:~# systemctl status sys-subsystem-net-devices-wlan0.device -l

                        ● sys-subsystem-net-devices-wlan0.device

                          Loaded: loaded

                          Active: inactive (dead)

                        Jun 19 06:15:29 edison systemd[1]: Expecting device sys-subsystem-net-devices-wl

                        an0.device...

                        Jun 19 06:16:59 edison systemd[1]: Job sys-subsystem-net-devices-wlan0.device/st

                        art timed out.

                        Jun 19 06:16:59 edison systemd[1]: Timed out waiting for device sys-subsystem-ne

                        t-devices-wlan0.device.

                         

                        root@edison:~# systemctl status systemd-udevd.service

                        ● systemd-udevd.service - udev Kernel Device Manager

                          Loaded: loaded (/lib/systemd/system/systemd-udevd.service; static)

                          Active: active (running) since Sat 2000-01-01 00:00:25 UTC; 15 years 5 months

                        ago

                            Docs: man:systemd-udevd.service(8)

                                  man:udev(7)

                        Main PID: 122 (systemd-udevd)

                          CGroup: /system.slice/systemd-udevd.service

                                  └─122 /lib/systemd/systemd-udevd

                        Jan 01 00:00:25 edison systemd[1]: Started udev Kernel Device Manager.

                         

                        root@edison:~# lspci -k

                        00:00.0 Host bridge: Intel Corporation Device 1170 (rev 01)

                        00:01.0 SD Host controller: Intel Corporation Device 1190 (rev 01)

                                Kernel driver in use: sdhci-pci

                        00:01.2 SD Host controller: Intel Corporation Device 1190 (rev 01)

                                Kernel driver in use: sdhci-pci

                        00:01.3 SD Host controller: Intel Corporation Device 1190 (rev 01)

                                Kernel driver in use: sdhci-pci

                        00:02.0 Display controller: Intel Corporation Device 1182 (rev 01)

                        00:04.0 Serial controller: Intel Corporation Device 1191 (rev 01)

                                Kernel driver in use: HSU serial

                        00:04.1 Serial controller: Intel Corporation Device 1191 (rev 01)

                                Kernel driver in use: HSU serial

                        00:04.2 Serial controller: Intel Corporation Device 1191 (rev 01)

                                Kernel driver in use: HSU serial

                        00:04.3 Serial controller: Intel Corporation Device 1191 (rev 01)

                                Kernel driver in use: HSU serial

                        00:05.0 Serial controller: Intel Corporation Device 1192 (rev 01)

                                Kernel driver in use: HSU DMA

                        00:06.0 System peripheral: Intel Corporation Device 1193 (rev 01)

                        00:06.1 System peripheral: Intel Corporation Device 1193 (rev 01)

                        00:07.0 System peripheral: Intel Corporation Device 1194 (rev 01)

                                Kernel driver in use: intel_mid_ssp_spi_unified

                        00:07.1 System peripheral: Intel Corporation Device 1194 (rev 01)

                                Kernel driver in use: intel_mid_ssp_spi_unified

                        00:07.2 System peripheral: Intel Corporation Device 1194 (rev 01)

                                Kernel driver in use: intel_mid_ssp_spi_unified

                        00:08.0 Communication controller: Intel Corporation Device 1195 (rev 01)

                                Kernel driver in use: i2c-designware-pci

                        00:08.1 Communication controller: Intel Corporation Device 1195 (rev 01)

                                Kernel driver in use: i2c-designware-pci

                        00:08.2 Communication controller: Intel Corporation Device 1195 (rev 01)

                                Kernel driver in use: i2c-designware-pci

                        00:08.3 Communication controller: Intel Corporation Device 1195 (rev 01)

                                Kernel driver in use: i2c-designware-pci

                        00:09.0 Communication controller: Intel Corporation Device 1196 (rev 01)

                                Kernel driver in use: i2c-designware-pci

                        00:09.1 Communication controller: Intel Corporation Device 1196 (rev 01)

                                Kernel driver in use: i2c-designware-pci

                        00:09.2 Communication controller: Intel Corporation Device 1196 (rev 01)

                                Kernel driver in use: i2c-designware-pci

                        00:0a.0 Communication controller: Intel Corporation Device 1197 (rev 01)

                        00:0b.0 Encryption controller: Intel Corporation Device 1198 (rev 01)

                        00:0c.0 System peripheral: Intel Corporation Device 1199 (rev 01)

                                Kernel driver in use: langwell_gpio

                        00:0d.0 Multimedia audio controller: Intel Corporation Device 119a (rev 01)

                        00:0e.0 System peripheral: Intel Corporation Device 119b (rev 01)

                                Kernel driver in use: intel_mid_dma

                        00:11.0 USB controller: Intel Corporation Device 119e (rev 01)

                                Kernel driver in use: dwc3_otg

                        00:12.0 Signal processing controller: Intel Corporation Device 119f (rev 01)

                                Kernel driver in use: pciPTI

                        00:13.0 Co-processor: Intel Corporation Device 11a0 (rev 01)

                                Kernel driver in use: intel_scu_ipc

                        00:14.0 Co-processor: Intel Corporation Device 11a1 (rev 01)

                                Kernel driver in use: intel_pmu_driver

                        00:15.0 System peripheral: Intel Corporation Device 11a2 (rev 01)

                                Kernel driver in use: intel_mid_dma

                        00:16.0 Co-processor: Intel Corporation Device 11a3 (rev 01)

                        00:16.1 Co-processor: Intel Corporation Device 11a4 (rev 01)

                        00:17.0 System peripheral: Intel Corporation Device 11a5 (rev 01)

                                Kernel driver in use: pwm-intel-mid

                        00:18.0 Display controller: Intel Corporation Device 11a6 (rev 01)

                         

                        root@edison:~# vi /etc/modprobe.d/*

                        *****Nothings display after this command*****

                        It will directly open /etc/modprobe.d/bcm4334x.conf

                         

                        root@edison:~# vi /etc/modules-load.d/bcm4334x.conf

                        bcm4334x

                         

                        root@edison:~# vi /etc/modprobe.d/bcm4334x.conf

                        options bcm4334x firmware_path=/etc/firmware/fw_bcmdhd.bin nvram_path=/etc/firmware/bcmdhd.cal op_mode=4

                         

                        root@edison:~# lsmod | grep -i bcm4334x

                        *****Nothings display after this command*****

                         

                        root@edison:~# modprobe -c | grep bcm43

                        options bcm4334x firmware_path=/etc/firmware/fw_bcmdhd.bin nvram_path=/etc/firmw

                        are/bcmdhd.cal op_mode=4

                        alias platform:bcm43xx bcm_bt_lpm

                        alias sdio:c*v02D0dA94D* bcm4334x

                        • 10. Re: wlan0 Is Missing, Unable To Connect WiFi (Experts Required)
                          Intel_Alvarado

                          Have you considered re-flashing your board to see if it fixes the issue? Take a look at IoT - Flash Tool Lite User Manual | Intel® Developer Zone , flash the latest image and try again. This time, with a newly flashed image, follow the steps from the guide and see if you can see wlan0 again.

                           

                          Let us know your results.

                           

                          Sergio

                          • 11. Re: wlan0 Is Missing, Unable To Connect WiFi (Experts Required)
                            cnvery

                            I fixed this issue by reflashing the board.

                             

                            Thanks!