How to drive the ADSLmodem of the USB interface in Linux

Source: Internet
Author: User
Article Title: how to drive the ADSLmodem of the USB interface in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
I. when ECI HiFocus adsl usb and Globespan based modems Linux driver is used, the globespan usb modem is displayed, and the setup modem is displayed successfully. After the connection, the system will receive a message, however, because it uses the user name/password authentication method, but my ISP uses the leased line method (RFC1577), the connection is not successful, but it is only the last step, because the hardware has been properly driven, unfortunately, a user who is still using the user name/password to log on (that is, the dialing method) may be successful, and GlobeSpan usb adsl Modem will be successfully applied in linux. In addition, the globespan chip is also applicable to the usb adsl of Shida and ittech. This driver can also be used.
  
II. use RFC1577-routed, automatic networking after boot, never use user/passwd, now runs its main program, power light on, link light flash, can display received some hexadecimal information, however, problems may occur during the verification process of both parties. After the disconnection, the link light is also on, just like winme, but the ppp0 device is not created, so it fails. However, users who still log on using the user name and password may be successful.
Method:
1. Download the cvs Driver (updated quickly) to the directory and make install
2. edit/etc/eciadsl/vidpid (not mentioned in this document) as follows: 0915 0001 0915 0002 (globespan). The remaining steps are the same as the instructions for its website, for example, vpi vci user passwd. As for its kernel support and pppd, my redhat8 is fully qualified after installation. If not, follow the instructions and prompts to install the program.
3. Run startmodem. If ppp0 is successfully created, the connection is successful. If you can surf, you need to check gateway and dns settings.
  
[COLOR = blue]
The system is a usb port adsl modem of RH8.0, which is up to 5800ub. The protocol is ppp over atm. [/COLOR]
The installation process is as follows:
1. Download the above driver and uncompress the package.
Http://adslinux.iespana.es/adslinux...3-01-24-src.tgz
2. Copy the unlocked folder cxacru to the/usr directory.
3. Enter cxacru and run the make command.
4. the following commands will be executed in the/usr/sbin directory:
Cxioctl cxnet2down. sh cxnetup. sh cxstop. sh
Cxload cxnet2up. sh cxpm cxunload. sh
Cxload. sh cxnetdown. sh cxstart. sh
  
5. cxstart. sh is used to start the cat and perform pppd dialing. Cxstop. sh is used to disconnect the pppd connection and disable the cat.
Cxload. sh loads the microcode of the cat and makes a preliminary test on the cat. Cxstart. sh automatically calls cxload. sh.
We only need to start cxstart. sh and disable cxstop. sh.
  
6. If the system used is relatively new, there is no need to recompile the core. The core of RH8.0 is 2.4.18.
The pppoa module has been compiled. If you are not sure, run find/lib-name ppp *-print
Check whether pppoatm. o exists. If not, recompile the core.
  
7. Note that the PPP package of the RH8.0 system does not contain pppoatm. so (this shared library allows pppd to execute
Ppp over atm dialing. Check if yes
/Usr/lib/pppd/plugins/pppoatm. so ).
So you need to find the rpm package of the ppp-2.4.0b2-2 on the Internet, and then uninstall the original package with rpm-e ppp,
Run rpm-ivh ppp * to install the new ppp package.
  
8. Since pppd is used for dialing, you must edit the relevant files. Go to the/etc/ppp directory and edit the three files:
Chat-secrets, pap-secrets, options. The content of pap-secrets and chat-secrets is the same, similar:
# Secrets for authentication using CHAP
# Client server secret IP addresses
"Adsl @ local" * "adsl"
(Note: adsl @ local is the account used to access the Internet, and adsl is the password)
  
Options content:
Lock
Defaultroute
Noipdefault
Noauth
Holdoff 4
Maxfail 25
Persist
Asyncmap 0
Lcp-echo-interval 2
Lcp-echo-failure 7
Name adsl @ local <-- adsl @ local is my account and changed to yours.
User adsl @ local <-- same as above
Plugin/usr/lib/pppd/plugins/pppoatm. so
0.200 <--- 0 is my vpi value, and 200 is the vci Value
  
9. Modify/etc/cxacru as follows:
#
# Config file for Conexant AccessRunner
#
  
# Driver mode
DRIVER_MODE = 1 #1 = normal, 2 = debug
  
# Protocol
PROTOCOL_MODE = 2 #1 = RFC1483/2684 routed, 2 = PPP over ATM (pppoa)
  
# Paths
BINARY_PATH = "/usr/sbin"
ATM_PATH = ""
  
# ATM
VPI = 0
VCI = 200
  
# Specific for RFC1483/2684 routed
IP_ADDRESS =
NETMASK = 255.255.255.0
GATEWAY =
  
10. Add a new line in/etc/hotplug/blacklist file:
USB Cam
  
11. Now, everything is okay! Let's try it.
A. First, cxstop. sh and close the cat.
B, then cxstart. sh, restart the cat and automatically perform pppd connection
You should see a similar prompt:
  
>>> Inits Conexant AccessRunner <
  
>>> Loading firmware...
Conexant AccessRunner microcode upload program
Joseph P Comas. 24/1/2003
  
I found ADSL modem with VendorID = 0572 & ProductID = cafe
Loading and sending/usr/sbin/cxinit. bin...
Sending is finished!
  
>>> Loading driver...
Launching driver in normal mode...
Using/lib/modules/2.4.18-14/kernel/drivers/usb/cxacru. o
Warning: loading/lib/modules/2.4.18-14/kernel/drivers/usb/cxacru. o will taint the kernel: forced load
See http://www.tux.org/lkml/#export-tainted for information about tainted modules
Module cxacru loaded, with warnings
  
/Usr/sbin/cxload. sh successful
Setting PPP over ATM...
>>> Setting PPPoA <
  
>>> Loading ppp_generic...
  
>>> Loading pppoatm...
  
>>> Activating send/receive data...
Conexant AccessRunner ioctl call
Joseph P Comas. 24/1/2003
  
I found ADSL modem with VendorID = 0572 & ProductID = cafe
  
>>> Loading pppd daemon...
  
/Usr/sbin/cxnet2up. sh successful
  
C. Run the ifconfig command to check whether the ppp0 connection exists. If so, congratulations.
Lo Link encap: Local Loopback
Inet addr: 127.0.0.1 Mask: 255.0.0.0
Up loopback running mtu: 16436 Metric: 1
RX packets: 244 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 244 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 txqueuelen: 0
RX bytes: 16856 (16.4 Kb) TX bytes: 16856 (16.4 Kb)
Ppp0 Link encapoint-to-Point Protocol
Inet addr: 61.154.28.177 P-t-P: 61.154.28.1 Mask: 255.255.255.255
Up pointopoint running noarp multicast mtu: 1500 Metric: 1
RX packets: 285 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 392 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 txqueuelen: 3
RX bytes: 134727 (131.5 Kb) TX bytes: 79519 (77.6 Kb)
  
Note: If you have an eth0 connection, everything may be normal but cannot be pinged out. Disable eth0 and restart adsl.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.