I have never tried to use a 3G USB modem on an Edison, and I can't find any information about the Huawei E171 on the web. So, I decided to look for a more "generic" approach and I found some guides that are not specific for Edison but may be able to help you, unfortunately I don't have access to a 3G USB modem, so, I wasn't able to test them:
http://www.thegeekstuff.com/2014/02/usb-broadband-modem-linux/ (Second option)
Try them and let us know if they were of help.
Hello Peter. Thank's for help. I've used this material yet, but there is some problem with install. for example
sudo apt-get install ppp wvdial
sudo aptitude install usb-modeswitch
in yocto linux there isn't apt-get command, but i've installed usb-modeswitch manually, and switch modem device to modem mode, But there isn't any new ttyUSB* devices.
Second problem is how to install wvdial, like here WvDial-1.53 , it need some libwvstreams. I also didn't find any material's for use usb 3g modem on Edison, and use generic search. Main difference is that example's on google use ubuntu.
As you mentioned, Yocto does not have the apt-get command, so you will have to install them from source, as you also mentioned. In cases like with WvDial, where some of its dependencies are hard to find, the best way to install them is by building them on the image using the BSP (http://www.intel.com/content/www/us/en/support/boards-and-kits/000005616.html), you could also try to install the dependencies manually but sometimes this is more complex than building the image.
Also, the reason why your Edison is not detecting the 3G modem may be because it is incompatible with Edison's kernel. Do you know which kernels this device supports?
I've used some variants to install apt-get. For example here Space Telescope Astronomer's Proposal Tool - Download Page. When use
root@edison:~# sh install-linux32-apt.sh
Verifying archive integrity... All good.
Uncompressing APT Linux Installer...
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at com.izforge.izpack.installer.GUIInstaller.loadGUI(Unknown Source)
at com.izforge.izpack.installer.GUIInstaller.access$100(Unknown Source)
at com.izforge.izpack.installer.GUIInstaller$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDo main.java:75)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre ad.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread. java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre ad.java:105)
Next variant was download from this source Download APT 1.2.11 for Linux. Run next command
APT needs 'config.guess' and 'config.sub' in buildlib/ for configuration.
On Debian systems these are available in the 'autotools-dev' package.
The latest versions can be acquired from the upstream git repository:
buildlib/configure.mak:43: recipe for target 'missing-config-files' failed
make: *** [missing-config-files] Error 100
For now main question is next. I've decide to install ubilinux EmutexLabs
And almost all is success, except of configuration of wifi.
In this image present apt-get, and it's easy to try this link for configure 3g usb modem https://www.thefanclub.co.za/how-to/how-setup-usb-3g-modem-raspberry-pi-using-usbmodeswitch-and-wvdial
usb_modeswitch and wvdial program's have installed.
Usb modem detect on system like ttyUSB0 device and work in modem mode.
Why on ubilinux modem and all devices work properly and on intel yocto not?
If use BSP, how i could create image with all needed dependency?
Maybe the reason why it is so different is because the Yocto version is missing the packages, if you manage to install everything on it, it should be able to work just like on Ubilinux. To learn how to build images and add packages to Edison I'd suggest you to read the BSP's user guide (http://www.intel.com/support/edison/sb/CS-035278.htm) and if you still need help after doing so, you can read Yocto's Mega Manual (http://www.yoctoproject.org/docs/1.7.2/mega-manual/mega-manual.html#supported-linux-distributions)
Also, if you decide to continue using Ubilinux, I’d suggest you to post your questions in http://www.emutexlabs.com/forum/ubilinux in order to get a more accurate answer.
Here is a complete detailed guide how to make 3G/LTE/Dongles work on Intel Edison Yocto: http://bovs.org/post/168/Building-Yocto-linux-for-Intel-Edison-with-3G-USB-modems-support
Only way to use 3G/4G dongle in Edison Yocto for now is build your own Yocto image using http://download.intel.com/support/edison/sb/edisonbsp_ug_331188005.pdf
because at least you need to enable usb-to-serial modem drivers in kernel which are not enabled by default. For example It can be driver named option - in menuconfig "Device Drivers - > USB Support -> USB Serial converter support -> USB Driver for GSM and CDMA modems " or maybe even generic usb serial driver. Also you need to enable PPP drivers for serial port ("Device Drivers - > Network Device Support -> PPP (...) Support -> PPP support for sync serial ports, PPP support for async serial ports. ") Also in same time when building image you can include usb_modeswitch package:
IMAGE_INSTALL_append += " usb-modeswitch"
For my ZTE dongle it switched cd-rom to modem (changed PID in lsusb, and appended devices in /dev/ttyUSB0-5) after including in image without any additional actions e.g. creating udev rules etc. Also note that only one of ttyUSBx supported data-connect and only 3 supported execution of AT commands so if you will go the same way please try all tty ports if it will not work from first time)
Maybe you can also add WvDial to distro, but I don't know about it because I used pure pppd for dialing directly without any additional layers like WvDial. I can approve that with all mentioned manipulations it works and it was not so hard using this forum and some manuals but of course longer than with any other board like Raspberry PI or Cubieboard. PS I don't know why not Intel included modem drivers in stock releases if Intel Edison is positioned as "IOT module", it is very strange and also why there is no repository with all .ipk packages and every user need to rebuild all image where each attempt takes several hours.
You will have to either add them on a custom image as I mentioned above or build them from source. You could also only use the BSP to just compile the packages and create their .ipk. Or you could check if the packages are already on a repo.
have next problem. I have done all steps describe into BSP manual, on Ubuntu 16 and then run command
WARNING: Host distribution "Ubuntu-16.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
ERROR: OE-core's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:
Please install the following missing utilities: makeinfo,chrpath
ERROR: Execution of event handler 'check_sanity_eventhandler' failed
ERROR: Command execution failed: Exited with 1
Summary: There was 1 WARNING message shown.
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
What is the problem or maybe i've used not correct version of ubuntu?