Preparation:
USB wireless network card of Shenzhen chuangxing CDMA, Linux 2.6.14 environment, arm-uclibc-Linux-gcc
Ppp-2.4.1.tar.gzand script file script_ppp.tar,
The Linux system log file is configured by the/etc/syslog. conf file for debugging.
1. Compile the kernel: Make menuconfig: select three items
<*> Universal tun/TAP Device Driver Support
<*> PPP (Point-to-Point Protocol) Support
<*> Slip (Serial Line) Support
USB drop-down
<*> Usb modem (cdc acm) Support
2. Cross-Compilation: ppp-2.4.1.tar.gz, after decompression,
Export cc = arm-uclibc-Linux-gcc
Make
Obtain the four pppd, chat, pppdump, and pppstats files in different directories, and place them under/usr/sbin,
Four or more chmod 755 files
3. in the arm-Linux system, there is a syslogd daemon, but there is no configuration file. You can set the configuration file/etc/syslog in the Linux System of the PC. copy the conf file and modify the permission, which is also stored in the/etc directory. Create a lock directory under/var, which may be used for debugging.
Run syslogd before dialing to view the prompt information during dialing.
4.decompress the script_ppp.tar file to/etc.
5. Plug in the USB wireless Nic and notice that the/dev/USB/ACM/0 device file is generated (my arm Board)
Replace the/etc/PPP/peers CDMA script/dev/ttyacm0 line with/dev/USB/ACM/0.
6. Use pppd call CDMA dialing and ipconfig to check whether everything is OK. Just surf.
7. If the segment fault error occurs on the board, remove the-dhave_mmap Of The makefile of pppd.
Remove the debug of the script peer/CDMA.
Note:
In the script, abort "***" means that if the result is displayed with such a string, the dial-up program is interrupted. #777 is the dial-up number used to access the Internet through the China Unicom communication network.