Page 1 of 1

Trying to run 4G hat with pppd pon

Posted: 2024-07-22 12:00
by techhitesh
Hello
Thank you for this awsome low-cost development board.

I am trying to run 4G hat with PPPD support i was able to enable serial port using
luckfox-config > ttyS4 > enable

Then i used a chat script named it rnet

Code: Select all

#imis/internet is the apn for idea connection
connect "/usr/sbin/chat -v -f /etc/chatscripts/gprs -T airtelgprs.com"

# For Raspberry Pi3 use /dev/ttyAMA0 as the communication port:
/dev/ttyS0
# Baudrate
#921600
115200
# Assumes that your IP address is allocated dynamically by the ISP.
noipdefault
debug
# 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
Then ran these commands and this happends

Code: Select all

pico@luckfox:~$ pppd call gprs
Couldn't open the /dev/ppp device: No such file or directory
pppd: You need to create the /dev/ppp device node by
executing the following command as root:
        mknod /dev/ppp c 108 0

pico@luckfox:~$ mknod /dev/ppp c 108 0
mknod: /dev/ppp: Permission denied
pico@luckfox:~$ sudo mknod /dev/ppp c 108 0
[sudo] password for pico:
pico@luckfox:~$ pon rnet
Couldn't open the /dev/ppp device: No such device or address
pppd: Please load the ppp_generic kernel module.
I am using ubantu version since buildroot version does not have any pppd directory

Re: Trying to run 4G hat with pppd pon

Posted: 2024-07-23 1:11
by Crocodile
Hello, we have not conducted any tests related to the 4G module. From the information you provided, it seems that the corresponding driver is not enabled in the kernel. Please run ./build.sh kernelconfig under the <Luckfox Pico SDK> to add PPP functionality and then test again.Since we do not have a similar module, please explore further details on your own.
PPP.jpg