Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor I
1,018 Views

problem with Intel Edison /etc/ppp/peers for Seeedstudio GPRS Shield V2.0 GPRS sheild

Hi guys, im a newbie to linux kernels and intel edison as a whole, how ever I have encountered a problem while following this documentation to enable Intel Edison to connect to a GPRS sheild(Seeedstudio GPRS Shield V2.0) form this link : https://software.intel.com/en-us/articles/connect-a-gprs-modem-to-intel-edison IoT - Connect a GPRS modem to Intel® Edison | Intel® Developer Zone.

I have bought and am using a prepaid simcard by celcom(malaysian telco provider). with alteast RM13 credit in it.

where in the /etc/ppp/peers folder i should be seeing a structure like this :

but in my /etc/ppp/peers folder, all i see is this :

please help

thank you

12 Replies
Highlighted
Community Manager
23 Views

Hello Prashanth93,

 

 

The document you posted says that you have to compile the ppp package and add it to the image in order to use it. Therefore this will require you to use Edison's BSP, which you can find in https://software.intel.com/en-us/iot/hardware/edison/downloads https://software.intel.com/en-us/iot/hardware/edison/downloads.

 

Have you done this? If so, did you make sure to add the package in menuconfig?

 

In case you haven't done this, what have you done so far?

 

 

Peter.
0 Kudos
Highlighted
New Contributor I
23 Views

hi peter

i have already compiled with the ppp package in the image using menuconfig. however i am still seeing the same output. just the provider only nothing else.

thanks

0 Kudos
Highlighted
Community Manager
23 Views

When you were building the image, did you remember to replace the defconfig file with the one that menuconfig creates? This is a very important step because if you do otherwise the image won't have the changes you made in menuconfig.

 

If you did not do that step this could explain why you keep receiving the same output as before.

 

 

Peter.
0 Kudos
Highlighted
New Contributor I
23 Views

no i definitely did not do that, how do i do this, and where is this new defconfig file is located ?

but wow this is an incredible help, i was wonderign this for days and you might have solved my problem.

i have to now recompile a new image and find the defconfig to see if it solves my problem

prashanth

0 Kudos
Highlighted
Community Manager
23 Views

When you make changes in menuconfig a .config file is created in /tmp/work/.../.config, when you have this file, you have to go to the recipe directory and overwrite the defconfig file with this files. In order to learn more about this I'd suggest you to read the following documentation:

 

 

https://software.intel.com/en-us/blogs/2015/02/27/intel-edison-adding-kernel-modules-to-yocto-exampl...

 

http://www.yoctoproject.org/docs/1.7.2/mega-manual/mega-manual.html# using-menuconfig

 

 

Peter.
0 Kudos
Highlighted
New Contributor I
23 Views

thanks peter,

after i did the menuconfig, when i go to the directory of : /edison-src/out/linux64/build/tmp/work/edison-poky-linux/linux-yocto/3.10.17-r0/linux-edison-standard-build there seems to be no .config file in there, is there any reason for this ?

right after finding no .config file in the folder, i typed in this command while i was in the directory(edison-src/out/linux64/build)

cp tmp/work/edison-poky-linux/linux-yocto/3.10.17-r0/linux-edison-standard-build/.config ../../../meta-intel-edison/meta-intel-edison-bsp/recipes-kernel/linux/files/defconfig *i did this even without finding the .config file at tmp/work/edison-poky-linux/linux-yocto/3.10.17-r0/linux-edison-standard-build as i am following the instructions at this link: http://shawnhymel.com/724/creating-a-custom-linux-kernel-for-the-edison-yocto-2-1/ Creating a Custom Linux Kernel for the Edison (release 2.1) | Shawn Hymel

*

and right after i went to the defconfig file to see if i have ppp enabled and it was, as shown below.

--------------------this is all i see in this folder------------------------------------------------------------------------------

prashanth@prashanthAP-VirtualBox:~/Documents/edison-src/out/linux64/build/tmp/work/edison-poky-linux/linux-yocto/3.10.17-r0/linux-edison-standard-build$ ls -l

total 375228

drwxr-xr-x 4 prashanth prashanth 4096 Mei 20 02:30 arch

drwxr-xr-x 3 prashanth prashanth 4096 Mei 20 03:07 block

drwxr-xr-x 3 prashanth prashanth 4096 Mei 20 03:07 crypto

drwxr-xr-x 64 prashanth prashanth 4096 Mei 20 03:09 drivers

drwxr-xr-x 3 prashanth prashanth 4096 Mei 20 03:07 firmware

drwxr-xr-x 27 prashanth prashanth 4096 Mei 20 03:08 fs

drwxrwxr-x 5 prashanth prashanth 4096 Mei 20 01:30 include

drwxr-xr-x 2 prashanth prashanth 4096 Mei 20 03:06 init

drwxr-xr-x 2 prashanth prashanth 4096 Mei 20 03:06 ipc

drwxr-xr-x 9 prashanth prashanth 4096 Mei 20 03:06 kernel

drwxr-xr-x 7 prashanth prashanth 12288 Mei 20 03:15 lib

-rw-rw-r-- 1 prashanth prashanth 792 Mei 20 10:46 Makefile

drwxr-xr-x 2 prashanth prashanth 4096 Mei 20 03:06 mm

-rw-rw-r-- 1 prashanth prashanth 11876 Mei 20 03:06 modules.builtin

-rw-rw-r-- 1 prashanth prashanth 3912 Mei 20 03:14 modules.order

-rw-r--r-- 4 prashanth prashanth 423233 Mei 20 03:14 Module.symvers

drwxr-xr-x 23 prashanth prashanth 4096 Mei 20 03:14 net

drwxrwxr-x 6 prashanth prashanth 4096 Mei 20 03:06 scripts

drwxr-xr-x 4 prashanth prashanth 4096 Mei 20 03:06 security

drwxr-xr-x 20 prashanth prashanth 4096 Mei 20 03:07 sound

lrwxrwxrwx 1 prashanth prashanth 110 Mei 20 10:46 source -> /home/prashanth/Documents/edison-src/out/linux64/build/tmp/work/edison-poky-linux/linux-yocto/3.10.17-r0/linux

-rw-r--r-- 1 prashanth prashanth 2490728 Mei 20 02:30 System.map

drwxr-xr-x 2 prashanth prashanth 4096 Mei 20 03:06 usr

-rwxr-xr-x 1 prashanth prashanth 136237188 Mei 20 02:30 vmlinux

-rw-r--r-- 1 prashanth prashanth 244963405 Mei 20 02:29 vmlinux.o

prashanth@prashanthAP-VirtualBox:~/Documents/edison-src/out/linux64/build/tmp/work/edison-poky-linux/linux-yocto/3.10.17-r0/linux-edison-standard-build$

--------------------------------------------------------------------------------------------------------------------------------------

when i check defconfig file at meta-intel-edison/meta-intel-edison-bsp/recipes-kernel/linux/files/defconfig, the ppp seem to be enabled

CONFIG_PPP=y

CONFIG_PPP_BSDCOMP=y

CONFIG_PPP_DEFLATE=y

CONFIG_PPP_FILTER=y

CONFIG_PPP_MPPE=y

CONFIG_PPP_MULTILINK=y

CONFIG_PPPOE=y

CONFIG_PPPOL2TP=y

CONFIG_PPP_ASYNC=y

CONFIG_PPP_SYNC_TTY=y

--------------------------------------------------------------------------------------------------------------------------------------

so what did thinking that the ppp is enabled, was i continued on with the bitbaking and flashed the image onto my edison and still got the same result as before, just the provider only, nothing else.

please help

thanks

prashanth

0 Kudos
Highlighted
Community Manager
23 Views

When you were on menuconfig, did you remember to save it? If so, did you change the file's name? You can change the files name for whatever you like, I'd suggest you to try again and when saving the file with a distinctive name so you easily find it and recognize it.

 

If you don't find the file, it will have the same result as not codifying the defconfig file. Try it again and let me know if this time you can find the .config file.

 

 

Peter.
0 Kudos
Highlighted
New Contributor I
23 Views

i tried renaming the default name on the form which is .config to .configNew and i still cant find the file

is there any reason for this to happen ?

i am recompiling and am planning to rename it something like "/home/prashanth/Documents/edison-src/out/linux64/build/tmp/work/edison-poky-linux/linux-yocto/3.10.17-r0/linux-edison-standard-build/.config"

which is the entire directory, in hopes that it saves there.

would this solve my problem ? or is it a ridiculous idea?

thanks

prashanth

0 Kudos
Highlighted
Community Manager
23 Views

I'm not sure if that would work, I've never tried it that way. Maybe what's happening is that the file is being created on a different directory, why don't you try using the command find on /work to search for the file? Remember to name this file with a particular way that's easy to identify.

 

Also, in your previous reply you mentioned that you checked that defconfig had ppp enable. Is there anything else that you did that you did not mentioned in that post?

 

 

Peter.
0 Kudos
Highlighted
New Contributor I
23 Views

hi peter

solved the "not saving part", turns out for some reason the menuconfig or my VirtualBox Ubuntu doesn't visibly save(i say visibly because when i use the "find" command on the ubuntu it outputs a ".config" or ".configNew" but when i use ls -l or use the file explorer i cant see a ".config" file in there, which leads me to belive that a file starting with a "." is not visible somehow. ) things starting with "." like .config or .configNew like that, so i saved the file as "AAAAA" and could locate it at folder /Documents/edison-src/out/linux64/build/tmp/work/edison-poky-linux/linux-yocto/3.10.17-r0/linux-edison-standard-build,

so then i proceeded to copy the configuration file to the Edison build directory, with the file name as AAAAA :

$ cp tmp/work/edison-poky-linux/linux-yocto/3.10.17-r0/linux-edison-standard-build/AAAAA ../../../meta-intel-edison/meta-intel-edison-bsp/recipes-kernel/linux/files/defconfig

and proceeded to bitbake edison-image and build the flash directory. however when i flash the image into the edison, then download all the PPP package using a script file that i wrote to install the ppp package getppp.sh, which is this:

-----------------------getppp.sh-----------------------------------------------------------------------------------------------------------------------

# !/bin/bash

opkg install http://repo.opkg.net/edison/repo/core2-32/ppp-dbg_2.4.6-r0_core2-32.ipk http://repo.opkg.net/edison/repo/core2-32/ppp-dbg_2.4.6-r0_core2-32.ipk

opkg install http://repo.opkg.net/edison/repo/core2-32/ppp-dev_2.4.6-r0_core2-32.ipk http://repo.opkg.net/edison/repo/core2-32/ppp-dev_2.4.6-r0_core2-32.ipk

opkg install http://repo.opkg.net/edison/repo/core2-32/ppp-doc_2.4.6-r0_core2-32.ipk http://repo.opkg.net/edison/repo/core2-32/ppp-doc_2.4.6-r0_core2-32.ipk

opkg install http://repo.opkg.net/edison/repo/core2-32/ppp-l2tp_2.4.6-r0_core2-32.ipk http://repo.opkg.net/edison/repo/core2-32/ppp-l2tp_2.4.6-r0_core2-32.ipk

opkg install http://repo.opkg.net/edison/repo/core2-32/ppp-minconn_2.4.6-r0_core2-32.ipk http://repo.opkg.net/edison/repo/core2-32/ppp-minconn_2.4.6-r0_core2-32.ipk

opkg install http://repo.opkg.net/edison/repo/core2-32/ppp-oa_2.4.6-r0_core2-32.ipk http://repo.opkg.net/edison/repo/core2-32/ppp-oa_2.4.6-r0_core2-32.ipk

opkg install http://repo.opkg.net/edison/repo/core2-32/ppp-oe_2.4.6-r0_core2-32.ipk http://repo.opkg.net/edison/repo/core2-32/ppp-oe_2.4.6-r0_core2-32.ipk

opkg install http://repo.opkg.net/edison/repo/core2-32/ppp-password_2.4.6-r0_core2-32.ipk http://repo.opkg.net/edison/repo/core2-32/ppp-password_2.4.6-r0_core2-32.ipk

opkg install http://repo.opkg.net/edison/repo/core2-32/ppp-radius_2.4.6-r0_core2-32.ipk http://repo.opkg.net/edison/repo/core2-32/ppp-radius_2.4.6-r0_core2-32.ipk

opkg install http://repo.opkg.net/edison/repo/core2-32/ppp-tools_2.4.6-r0_core2-32.ipk http://repo.opkg.net/edison/repo/core2-32/ppp-tools_2.4.6-r0_core2-32.ipk

opkg install http://repo.opkg.net/edison/repo/core2-32/ppp-winbind_2.4.6-r0_core2-32.ipk http://repo.opkg.net/edison/repo/core2-32/ppp-winbind_2.4.6-r0_core2-32.ipk

opkg install http://repo.opkg.net/edison/repo/core2-32/ppp_2.4.6-r0_core2-32.ipk http://repo.opkg.net/edison/repo/core2-32/ppp_2.4.6-r0_core2-32.ipk

-------------------------------------------------------------------------------------------------------------------------------------------------------------

then i still get the same outpput again, just the providers only, and noting else.

could this be due to the method that i flash the edison which is quite an unorthodox workaround around, as my virtualbox ubuntu has some problem with the flashall.sh script. which i have discussed here:

what i did was since i was using the virtualbox running an ubuntu 14.04 on a windows 10 host machine. i copied only the toFlash folder in the edison-src/out/linux64/build/ directory into a flash drive, and transfered it to my windows 10 machine, where i used the windows phone flash tool lite to flash the edison image. could this be the reason that i am not getting the ppp package installed into my edison ?

0 Kudos
Highlighted
Community Manager
23 Views

It is unlikely that your board has issues when flashing it the way you do. The steps you have taken seem to be fine. Let me try to figure out what might be happening.

 

 

Peter.
0 Kudos
Highlighted
Community Manager
23 Views

Hi Prashanth93,

 

 

Did you add IMAGE_INSTALL += "package_name" to /meta-intel-edison/meta-intel-edison-distro/recipes-core/images/edison-image.bb?

 

 

***(package_name being the correct name for your package)

 

 

Peter.
0 Kudos