2015年1月10日 星期六

[ppp][wvdial][Raspberry Pi][ArchLinux] No ppp module error (exit code = 4)

Error message
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Fri Jan  9 02:48:28 2015
--> Pid of pppd: 478
--> pppd: [10]�?[01]h�?[01]��?[01]
--> Disconnecting at Fri Jan  9 02:48:28 2015
--> The PPP daemon has died: No ppp module error (exit code = 4)
--> man pppd explains pppd error codes in more detail.
--> I guess that's it for now, exiting
--> The PPP daemon has died. (exit code = 4)
Check out error code by using man to check ppp.

EXIT STATUS
       The exit status of pppd is  set  to  indicate  whether  any  error  was
       detected, or the reason for the link being terminated.  The values used
       are:

       0      Pppd has detached, or otherwise the connection was  successfully
              established and terminated at the peer's request.

       1      An  immediately  fatal  error  of some kind occurred, such as an
              essential system call failing, or running out of virtual memory.

       2      An error was detected in processing the options given,  such  as
              two mutually exclusive options being used.

       3      Pppd is not setuid-root and the invoking user is not root.

       4      The  kernel  does  not  support PPP, for example, the PPP kernel
              driver is not included or cannot be loaded.
Solve problem:

Before insert ppp must insert slhc, otherwise will miss some module.
insmod /lib/modules/3.12.35-1-ARCH/kernel/drivers/net/slip/slhc.ko.gz

Insert ppp module.
Find ppp module –> find . -name “ppp
insmod /lib/modules/3.12.35-1-ARCH/kernel/drivers/net/ppp/ppp_generic.ko.gz

Reference
Loading and unloading modules in Linux

0 意見:

張貼留言