6 Replies Latest reply on Sep 1, 2015 5:42 PM by CMata_Intel

    custom build missing wpa_cli

    jbo

      Hi,

      I'm trying to get a 3g dongle working on the edison.  I managed to get this dongle working on an RPI and figured I could do something similar on the edison. No such luck.

       

      • The dongle is a huawei E8231
      • I had to install usb_modeswitch on the RPI to get the modem part recognized.
        On the edison, to include this package, apparently a rebuild is required from the OS, so I followed the instructions on this page: http://download.intel.com/support/edison/sb/edisonbsp_ug_331188007.pdf. The yocto image appeared to be built ok and I managed to get it on the edison.
      • after booting up the edison, I can see that the modeswitch has done it's work: with 'lsusb', the device is now reported with id '12d1:14db' instead of '12d1:1f01'
      • but, there is no connection: using 'ifconfig -a', there is no 'ethx' interface present (only the same ones as without the dongle)
      • with the custom build, I can't even get the onboard wifi to work anymore: it does not find any networks and reports that it can't find 'wpa_cli'

      What am I missing, doing wrong?

       

      Thank you.

        • 1. Re: custom build missing wpa_cli
          CMata_Intel

          Hi jbo

           

          What is the outcome of running lsmod? The lsusb command can detect the device but the module you installed may be not working as it should. Did you add this module as Module in the menuconfig? Or how did you added?

          Also, run the command:

          root@edison:~# find / -name *.ko
          

          If you are able to see your module after this line, run modprobe NameOfTheModule, for example if the module would be uvcvideo you should run:

          root@edison:~# modprobe uvcvideo
          

           

          Are you able to set the WiFi connection in your board using configure_edison --wifi?

          Could you post a screenshot of the error of can't find 'wpa_cli' ?

           

          Regards,

          Charlie

          • 2. Re: custom build missing wpa_cli
            jbo

            Hi CMata,

             

            • lsmod gives:

            usb_f_acm              14335  1                                                                                                                           

            u_serial               18582  6 usb_f_acm                                                                                                                 

            g_multi                70924  0                                                                                                                           

            libcomposite           39245  2 usb_f_acm,g_multi                                                                                                         

            bcm_bt_lpm             13708  0                                                                                                                           

            bcm4334x              587105  0 

            Configure Edison: WiFi Connection                                                                                                                         

                                                                                                                                                                      

            sh: wpa_cli: command not found                                                                                                                            

            sh: wpa_cli: command not found                                                                                                                            

                                                                                                                                                                      

                                                                                                                                                                      

            0 :     Rescan for networks                                                                                                                               

            1 :     Exit WiFi Setup                                                                                                                                   

            2 :     Manually input a hidden SSID                                                                                                                      

                                                                                                                                                                      

                                                                                                                                                                      

            Enter 0 to rescan for networks.                                                                                                                           

            Enter 1 to exit.                                                                                                                                          

            Enter 2 to input a hidden network SSID:  

            • there also is no file  /etc/network/interfaces to be found.

             

             

            Which module contains the wpa stuff?

             

            Thanks.

            • 3. Re: custom build missing wpa_cli
              CMata_Intel

              Hi jbo

               

              Which source files did you use to built the image?

              Have you checked the wpa_supplicant and connman services?

              Are you setting the module to be auto-loaded? If you do, what is the outcome of not using this and try to loaded yourself with modprobe.

               

              There shouldn't be a /etc/network/interfaces file. You can check and edit the /etc/wpa_supplicant/wpa_supplicant.conf file

               

              -Charlie

              • 4. Re: custom build missing wpa_cli
                CMata_Intel

                Hi jbo

                 

                Do you have updates in this? Have you been able to use the configure_edison --wifi successfully?

                 

                Regards,

                Charlie

                • 5. Re: custom build missing wpa_cli
                  jbo

                  root@eca:~# connmanctl                                                                                                                                    

                  Error getting technologies: The name net.connman was not provided by any .service filesconnmanctl>

                   

                  root@eca:~# ip link show up                                                                                                                               

                  1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue                                                                                                     

                      link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00                                                                                                 

                  4: usb0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000                                                                          

                      link/ether 02:00:86:47:1d:4e brd ff:ff:ff:ff:ff:ff

                   

                   

                  root@eca:~# connmanctl enable wifi                                                                                                                        

                  Error wifi: The name net.connman was not provided by any .service files 

                   

                  I used this source: http://downloadmirror.intel.com/25028/eng/edison-GPL_LGPL-sources-ww25.5-15%20(1).zip

                  • 6. Re: custom build missing wpa_cli
                    CMata_Intel

                    Hi jbo

                     

                    Run the commands systemctl status wpa_supplicant.service and systemctl status connman. The wpa_supplicant.service should be active and loaded.

                    Did you try to edit the wpa_supplicant.conf file with your network's information?

                     

                    In usb_modeswitch to recognize 3g dongle Pavan had to install usb to serial driver, did you do this?

                     

                     

                    Regards,

                    Charlie