IMX6UL-evk access internet via GSM module

cancel
Showing results for 
Search instead for 
Did you mean: 

IMX6UL-evk access internet via GSM module

Jump to solution
671 Views
Senior Contributor I

Hi everyone,

I am a newbie in iMX6. Currently, I'm using MX6UL-evk and i wanna connect internet via module GSMEVB-UC15. But it's not successful. My configuration: 

  • pppd version 2.4.7
  • Linux imx6ulevk 4.1.15-2.1.0+g30278ab #1 SMP PREEMPT Sat Jul 6 10:09:28 +07 2019 armv7l armv7l armv7l GNU/Linux
  • Connect with GSM module via USB0:

usb 1-1: new full-speed USB device number 3 using ci_hdrc
ftdi_sio 1-1:1.0: FTDI USB Serial Device converter detected
usb 1-1: Detected FT232RL
usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB0

And get error: 

Couldn't open the /dev/ppp device: No such device or address
/usr/sbin/pppd: Please load the ppp_generic kernel module.

I try to fix follow this guide pppd_cannot_load_kernel_module_ppp_generic , but in /etc/modprobe.d have only file "blacklist.conf" , no file name "modules.conf"

So, how can i fix it ?

Thank you so much !

imx6ul‌ ppp_generic‌ ppp‌ pppd‌ imx6 linux‌ 

Labels (4)
1 Solution
166 Views
NXP TechSupport
NXP TechSupport

you can use the command "bitbake virtual/kernel -c menuconfig" to configure the kenerl

View solution in original post

12 Replies
166 Views
Senior Contributor I

Currently, I am using iMX6 UltraLite EVK with Distro 4.9.88-2.0.0 (rocko) and pppd version 2.4.7. GSM module is Quectel UC15 and it's working good. 

0 Kudos
166 Views
Senior Contributor I

I configured the ppp package follow this steps:

$ nano /etc/ppp/peers/provider

provider file content:

# example configuration for a dialup connection authenticated with PAP or CHAP
# This is the default configuration used by pon(1) and poff(1).
# See the manual page pppd(8) for information on all the options.

# MUST CHANGE: replace myusername@realm with the PPP login name given to
# your by your provider.
# There should be a matching entry with the password in /etc/ppp/pap-secrets
# and/or /etc/ppp/chap-secrets.
user "myusername@realm"

# MUST CHANGE: replace ******** with the phone number of your provider.
# The /etc/chatscripts/pap chat script may be modified to change the
# modem initialization string.
connect "/usr/sbin/chat -v -f /etc/chatscripts/pap -T ********"

# Serial device to which the modem is connected.
/dev/ttyS

# Speed of the serial line.
115200

# Assumes that your IP address is allocated dynamically by the ISP.
noipdefault
# Try to get the name server addresses from the ISP.
usepeerdns
# Use this connection as the default route.
defaultroute

# Makes pppd "dial again" when the connection is lost.
persist

# Do not ask the remote to authenticate.
noauth

I changed:

user "myusername@realm" --> I dont know how to get this 

******** --> m-wap <this is an APN of mobile network- MOBIFONE SIM>

/dev/ttyS --> /dev/ttyUSB3

Should I edit another file ?

Moreover, in raspberry module, i just edit follow:

#m-wap is the apn for idea connection
connect "/usr/sbin/chat -v -f /etc/chatscripts/gprs -T m-wap"
 
/dev/ttyUSB3
 
# Baudrate
115200
 
# Assumes that your IP address is allocated dynamically by the ISP.
noipdefault
 
# Try to get the name server addresses from the ISP.
usepeerdns
 
# Use this connection as the default route to the internet.
defaultroute
 
# Makes PPPD "dial again" when the connection is lost.
persist
 
# Do not ask the remote to authenticate.
noauth
 
# No hardware flow control on the serial link with GSM Modem
nocrtscts
 
# No modem control lines with GSM Modem
local

But in iMX6UL, it's not working. 

0 Kudos
166 Views
NXP TechSupport
NXP TechSupport

sorry for missing this, how about your status now? does your imx6ul work?

166 Views
Senior Contributor I

Hi joanxie‌,

Nice to see you. IMX6 is working well now.

Thank you so much

0 Kudos
166 Views
Senior Contributor I

joanxie‌, module GSM is working good with raspberry but not working with iMX6UL. i dont know the exactly way to configure it. May you help me ?

0 Kudos
166 Views
NXP TechSupport
NXP TechSupport

refer to your error message, did you add the ppp in the kernel? the driver should under kernel, pls try to enable it

Device Drivers  --->Network device support  --->ppp

166 Views
Senior Contributor I

hi joanxie‌. I so glad to hear respond from you. I communicate with iMX6UL via serial and using Ubuntu 14.04 as a host > so I dont know how to enable it via command. May you guide me ?

I also added the ppp in the kernal by edit the local.conf file: 

CORE_IMAGE_EXTRA_INSTALL += "ppp"

I also find out PPP folder in /etc/ppp

Each time i start iMX6 and execute connect by pon command. It require run: 

mknod /dev/ppp c 108 0

To create a node in /dev/ after execute it and i return to run pon again. It show the error above.

What should I do now ?

Thank you so much for your support !

0 Kudos
167 Views
NXP TechSupport
NXP TechSupport

you can use the command "bitbake virtual/kernel -c menuconfig" to configure the kenerl

View solution in original post

166 Views
Senior Contributor I

After run command to build distro, i ran command to configure the kernel. It's work (need to install some package). But i only can find it and can not enable/disable it. Instead of include/exclude, do you mean that ?

0 Kudos
166 Views
NXP TechSupport
NXP TechSupport

currently, do you fix the error as you mentioned about PPP? did you mention the new issue about how to enable/ disable GSM moudule?

166 Views
Senior Contributor I

Yes. I fixed the error above. It's very great and amazing. Thank you very much. 

For sencond question, it's absolutely no. Not for GSM module, it's still error with my ppp configuration. It's small differment with other embedded computer, like raspberry. I can not access internet via GSM module. If you dont mind, May i share my method and we discuss about it. 

Thank you !

0 Kudos
166 Views
Senior Contributor I

I tried execute this command before command "bitbake fsl-image-gui". After running about 30 minutes, it's show me:

Command failed.
Press any key to continue....

Should i execute it after command above ?

0 Kudos