QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3327|回复: 2

如何驱动阿尔卡特SpeedTouch USb ADSL猫

[复制链接]
发表于 2003-9-8 13:00:52 | 显示全部楼层 |阅读模式
SpeedTouch USB Linux Driver HOWTO
(C) 2001, Johan Verrept
After a serious session of postponing and not feeling like it, I wrote this HOWTO. It contains everything I can think of that you could/should/have to know to use this driver to it's fullest capabilities. This HOWTO has explicit support for PPPoA and PPPoE, but the driver can accommodate any ATM protocol available.
Copyright Information
This document is copyrighted  2001 by Johan Verrept.
Permission is granted to copy, distribute and/or modify this document  under the terms of the GNU Free Documentation License, Version 1.1  or any later version published by the Free Software Foundation;
Driver Description
This is a driver for the Alcatel SpeedTouch USB ADSL modem.
The driver itself consists of two different parts.
A kernel part and a user space part.
Both parts were released by Alcatel's modem branch, now part of Thomson Multimedia. The kernel module is released under the GNU General Public License. The current maintainer is Duncan Sands.
The kernel module is responsible for all data traffic.
It is modeled as a Linux ATM card.
This allows you to use a wide range of protocols like PPPoA, RFC2684 Bridging (allowing PPPoE), and others over PVC's and it supports ATM signaling (SVC's).
The user space part is maintained by Alcatel/Thomson.
It is distributed as a binary-only application.

The Alcatel/Thomson application only does management and firmware downloading.

The driver supports Plug-N-Play by using the Linux Hotplugging package.
在Linux下使用这个Hotplugging 驱动包后就能支持即插即用
The choice between PPPoA and PPPoE depends on you provider.
根据你的ISP接入商来选择PPPoA或者PPPoE协议
Most providers support one protocol, some both.  
大部分ISP接入商只会支持一种协议,只有小部分接入商才会同时支持两种
Consult the FAQ to see which protocol is applicable to you.
请参考你的方式来选择你的接入方式
If you can choose, PPPoA has the least overhead and thus best performance...
如果你选定了,PPPoA是你最后选择
The First Step: Downloading.
第一步:下载
General
概要
You will need to download quite a few packages to get this thing running.
你将需要下载大量的数据包并安装他们
The Binary Management Application (speedmgmt) from Alcatel/Thomson.
这种二进制应用软件(speedmgmt)是由Alcatel/Thomson制作的。
The Open Source Kernel Module written by Johan Verrept and maintained by Duncan Sands.
这种开放的源程序内核是由Johan Verrept and maintained by Duncan Sands编写的
The current developement version is available via anonymous cvs (replace modulename with speedtouch).
现在通用的版本是经过anonymous cvs(replace modulename  with speedtouch).
*CVS <http://cldp.linuxforum.net/doc/cvs.html>
The Linux Hotplugging Package Linux Kernel 2.4.16 or above.
这个Linux Hotplugging包其内核支持版本至少是2.4.16以上
A number of these you will have to patch and/or compile yourself.
更多的只好由你自己编辑
PPPoA
If your provider uses PPPoA you will need:
For kernels older than 2.4.15, the PPPoA kernel patch (grab the most recent one smaller
than your current kernel version) by Jens Axboe. Newer kernels already include this
patch.
A PPP over ATM aware PPP daemon. To see if you already have one, run the command
find /usr/lib/pppd -name pppoatm.so
If the result is "No such file or directory" then you will have to download an ATM aware PPP daemon.
Try these packages, or install the ppp and linux-atm packages from SuSe (version 8.1 or newer).
Remark: Debian users can use alien to change rpm packages into the Debian deb format.
Remark: If dependency problems are stopping you from installing the SuSe packages, you can try recompiling the source rpms that SuSe provides.

PPPoE
If your provider uses PPPoE, you will need:
如果你要提供pppoE,你将需要:
A PPPoE aware PPP daemon, such as a recent version of the ppp package or Roaring Penguin PPPoE. RFC2684 Bridging kernel patch and configuration utility
一个pppoe aware ppp daemon,例如最近关于ppp paceage或者roaring penguin pppoe.rfc2684 bridging kernel patch 和 有用的配置
The Second Step: Patching the kernel
第二步:编译内核
Untarring the kernel
解压缩其内核
For this you will need root permissions.
做这个工作时你必须用root 账号
Go to the directory where the kernel needs to be compiled.
编译内核时进入到其目录
命令如下
cd /usr/src/
Now,  move the old Linux kernel away:
现在 备份旧Linux 内核到另一个地方
mv linux linux.old
Remark: usually this is a symbolic link that can also be deleted.
注意:通常
Untar your new kernel:
解压缩你的新内核
If this is linux-2.4.x.tar.gz
tar zxvf linux-2.4.x.tar.gz
If this is linux-2.4.x.tar.bz2
cat linux-2.4.x.tar.bz2 | bunzip2 - | tar xvf -
As a good measure, move your kernel and put a symbolic link.
处理完后,移动你的内核 ,放置一个symbolic link
mv linux linux-2.4.x
ln -s linux-2.4.x linux
Remark: Off course, do not forget to replace the 'x' with your version number!
Remark: Do not apply both the PPPoA and PPPoE patches!  They collide.
Remark: If you are using Mandrake 8.0, you can skip this part. The kernel supplied with Mandrake 8.0 already contains the necessary patches.
Remark: If you are using Mandrake 8.1, you can skip this HOWTO! Mandrake 8.1 contains an rpm with the driver.
注意:当然,不要忘记把”x”改为你的linux内核版本号
注意:不要同时运行pppoa和pppoe两个补丁包,这是会起冲突的
注意:如果你用的是Mandrake 8.0你就可以跳过这一部分,Mandrake 8.0内核已经包含了这个必须的补丁包
注意:如果你使用的是Mandrake 8.1,你就不用看这篇文章了,因为8.1里面已经附带了这个驱动
Applying PPPoA patches
关于pppoa包的应用
Only necessary if you are going to use PPPoA! Only necessary if your kernel is older
than 2.4.15!
Now, go to the kernel directory.
cd /usr/src/linux
Unzip the patch:
gzip -d pppoatm-1.gz
Apply the patch:
patch -p1 -s -E < /path/to/pppoatm-1
Ready.
  
Applying PPPoE patches
关于pppoe包的使用
Only necessary if you are going to use PPPoE!
如果你非得使用pppoe工具,否则不要使用
Now, go to the kernel directory.
进入内核目录
cd /usr/src/linux
Unzip the patch:
解压软件包
gzip -d  br2684-against2.4.2.diff.gz
Apply the patch:
应用软件包
patch -p1 -s -E < /path/to/br2684-against2.4.2.diff
Ready.


The Third Step: Configuring the kernel
第三步:配置内核
For easily configuring the kernel type:
进入到编译目录
cd /usr/src/linux/
make menuconfig
You will need to set the following options:
你将需要以下设置选项
Code Maturity Level Options
Prompt for development and/or incomplete code/drivers [Y]
Loadable Module Support
Enable Loadable Module Support [Y]
General Setup
Support for hot-pluggable devices [Y]
Networking Options
Packet Socket [Y]
Asynchronous Transfer Mode (ATM) (EXPERIMENTAL) [Y]
Network Device Support
PPP (Point-to-Point Protocol) Support [Y]
PPP Deflate Compression [Y]
USB Support
Support for USB [Y]
Preliminary USB Device Filesystem [Y]
UHCI (Intel PIIX4, VIA,...) Support [M]
OHCI (Compaq, iMacs, OPTi, SiS, ALi, ...) support [M]
For PPPoA you will need the following  options:
Network Device Support
PPP Over ATM (EXPERIMENTAL) [Y]
For PPPoE you will need these options:
Networking Options
RFC 1483/2684 Bridged protocols [Y]
Network Device Support
PPP Over Ethernet (EXPERIMENTAL) [Y]

Remark: These are the options needed to get this driver running. you will also have to enable the other drivers you need for your system.  
注意:这些设置需要驱动才能运行,同样需要在你系统中其他设备的驱动程序
A good starting point to determine what these are the (currently) loaded modules.
这些装载好了的组件决定是否能启动他们
For more information on how to build a kernel see the Linux Kernel HOWTO.
一些关于怎样构建内核的知识请参阅 Linux Kernel HOWTO

The Fourth Step: Building and Installing the Kernel
第四步:构建和安装内核
After configuring, this is easy!
在configuring 之后  这将变得很容易
Go to the kernel directory.
进入到内核的目录
cd /usr/src/linux
Type:
make dep
make bzImage
make modules
make install
make modules_install
Congratulations with your new kernel!
祝贺你 你有一个新的内核了
Do not forget to reboot before you continue!
在你继续工作之前别忘了重新启动
Remark: If your kernel refuses to build correctly, try to do a:
注意: 如果你的内核拒绝编译,试试这条命令:
make mrproper
Before you try the above sequence.
在你试着做上面的工作之前,
As a quick check you can type:
仔细检查你敲入的命令
uname -a
to see if your new kernel has booted. It should return something like:
如果你用新内核启动,运行上面的命令之后它将返回以下信息:
Linux infinty 2.4.4 #4 Sun May 6 04:09:45 CEST 2001 i686 unknown
If there are any problems in installing and getting your kernel to run, please consult the Linux Kernel HOWTO or the documentation of your distribution.
如果在安装、获得你的内核 运行时出现一些问题,请参阅Linux Kernel HOWTO 或者系统软件配套解说文档



The Fifth Step: Building the SpeedTouch Kernel Module
第五步:编译SpeedTouch 内核模块
Untar, build and install the SpeedTouch module:
解压缩 、编译 和 安装SpeedTouch 模块:
tar zxvf speedtouch-1.x.tar.gz
cd speedtouch
make
make install
The last step needs to be done as root.  Ready!
这几个步骤必须在root账号下运行
Remark: If you are using speedtouch-1.0.tar.gz, you can edit speedtouch.c before
building and installing it and remove the following line: #define DEBUG_PACKET 1
注意:如果你使用speedtouch-1.0.tar.gz.文件时,在编译、安装和卸载前 你可以编辑speedtouch.c文件中  #define DEBUG_PACKET 1 之后的信息
This will cause the module to use a LOT less CPU resources.



The Sixth Step: Installing Hotplugging.
第六步: 安装Hotplugging
If you have downloaded the RPM, you do:
如果你已经下载的是RPM包 你就按照下面的方法安装
rpm --install hotplug-XXXXX-1.noarch.rpm
If you downloaded the source archive:
如果你是下载的源代码包 就这样做:
tar zxvf hotplug-XXXXX-1.tar.gz
make install
Remark: This only work smoothly for RedHat systems, installation instruction for other distributions can be found in the hotplug README file.
注意: 这个包只能稳定的工作在RedHat系统上 ,它安装说明可以在在hotplug  README文件中找到
Now, to make sure your hotplugging subsystem is started at boot time:
现在做的是 使你的hotplugging 子系统在启动时就开始运行
cd /etc/rc.d/rc3.d
ln -s ../init.d/hotplug S07hotplug
To make sure hotpluggin is disabled at shutdown, add:
cd /etc/rc.d/rc3.d
ln -s ../init.d/hotplug K07hotplug
The Seventh Step: Installing the Binary Management Application
第七步:安装二进制管理程序
Untar and install mgmt:
解压缩和安装mgmt
tar zxvf speedmgmt-1.x.tar.gz
cd mgmt
make install
The Eight Step:  Installing PPPoA/PPPoE
第八步:安装 pppoa/pppoe

Installing PPPoA
First  we need the pppd.
If /dev/ppp does not exist, we need to create it ourself:
cd /dev  
./MAKEDEV ppp
If your distribution does not include the MAKEDEV script, or it fails to create the correct device, you can use the following command:
mknod /dev/ppp c 108 0
Now we install the pppd daemon:
rpm --install ppp-2.4.0b2-2.i386.rpm
Remark:    Problems have been reported with package ppp-2.4.0-2.i386.rpm, that is why I list a beta package here.
Remark: If installation of this package fails because PAM has not been installed (for example on a  SuSE 7.1), please download the source archive and compile the pppd by hand.







Installing PPPoE
安装pppoe
First we install the ATM Package:
第一 我们需要安装ATM包
tar zxvf atm-0.78.tar.gz
cd atm
make
make install
Remark: In RH 7.0, this package will probably fail the compiling process.Do not worry, we only need the header files.
注意:在RH 7.0 中这个软件包在编译处理时大概会出现错误,不过不用担心,我们只是需要他的头文件
Now we compile and install the br2684ctl utility,
现在我们编辑和安装br2684ctl
cc -o br2684ctl brctl-010226.c -latm
cp br2684ctl /usr/sbin/
Make sure you do not have a pppd installed on your system. It will be overwritten!
确定你没有在你的系统中安装pppd软件包,它将被覆盖
Now we install the pppd daemon:
现在我们就来安装pppd 后台程序
tar zxvf ppp-2.4.0-pppoe4.tgz
cd ppp-2.4.0.pppoe4
./configure
make
make install
If you chose to use roaring penguin PPPoE, please consult the included install instructions.
如果你决定使用roaring penguin PPPoE程序 那么请参考安装文件中的说明文件













The Ninth Step: Configuring the system
第九步:配置系统
Configuring the usb subsystem
配置usb子系统
Add the following line to /etc/fstab:
在/etc/fstab下面添加以下命令:
/dev/usb /proc/bus/usb/ usbdevfs defaults 0 0
This will mount usbdevfs at boot time.
这将会在系统启动时加载usbdevfs 
Remark:  If you are using mgmt version 1.3.1 or older, you must mount is under /proc/bus/usb/ Version 1.3.2 will also look in /dev/usb/.
注意:如果你mgmt的版本是1.3.1或者更低的话,你必须挂载在 /proc/bus/usb 之下 如果版本是1.3.2的话他也会在/dev/usb/下面搜寻
Remark:  If this gives errors during booting, check whether /dev/usb is not already there. If it already exists, replace /dev/usb in the above line with /dev/invalid . The exact name does not matter, as long as it does not exist.
注意: 如果在启动时出现错误,检查/dev/usb下是否没有准备好,如果已经存在,在上述的位置中用/dev/invalid替换 / dev/ usb  只要不存在 对名字没有太多要求

To mount it now type:
关于挂接命令
mount -a
Configuring PPPoA
Edit the file /etc/ppp/options and replace its contents with the following:
lock
defaultroute
noipdefault
noauth
holdoff 4
maxfail 25
persist
asyncmap 0
lcp-echo-interval  2
lcp-echo-failure   7
name user@domain
user user@domain
plugin /usr/lib/pppd/plugins/pppoatm.so 0.38

These settings will cause pppd to check the link state and time out a connection after 14 seconds if the link is broken.
这些设置将会对pppd 效验连接状态,以及当这个连接损坏时将14秒之后中止 

I chose this value because If  the ADSL line looses sync, it will take about 10 seconds to resync.
因为当ADSL线路失去同步之后 它将会在10秒之后找回同步 所以我选择14秒 
Remarks: You will need to replace the two "user@domain"s with your ADSL uname.  Also, in the above example "0.38" is the VPI/VCI ATM pair for the author's provider. You  will need to know what the correct values are for your provider, and substitute those. If these values are incorrect, you may sync, but will not be able to connect to your ISP's IP  layer, and probably be frustrated.
注意:你需要将"user@domain”改为你ADSL的账号名,同样在上面的例子中要把"0.38”更改为你ISP接入商的        VPI/VCI ATM的数值.在更改前你需要知道ISP所给你的这些数值
如果这些数值不正确,你可能会同步,但是你不会连接上你ISP接入商的IP层,也许就根本连接不上
These values can be obtained from the Window's  Alcatel client, your ISP or the FAQ
这些必需的数据可以在w!ndows’ Alcate连接和FAQ中找到,也可以讯问你的ISP
Edit the file /etc/ppp/chap-secrets and replace its contents with the following:
用以下这些内容覆盖掉你/etc/ppp/chap-secrets下面的数据,
# Secrets for authentication using CHAP
# client        server  secret                  IP addresses
user@domain     *       password
Now put the same contents in /etc/ppp/pap-secrets.
现在把同样的内容放到 /etc/ppp/pap-secrets 中
Remark:   You will need to replace "user@domain" with your ADSL uname and "password" with your ADSL password.
注意: 你要把”user@domain” "password”改成你的上网账号和密码

Configuring PPPoE
编译PPPoE
Edit the file /etc/ppp/options and replace its contents with the following:
编辑/etc/ppp/options用下面的内容把它覆盖掉
lock
defaultroute
noipdefault
noauth
holdoff 4
maxfail 25
persist
asyncmap 0
name user@domain
user user@domain
lcp-echo-interval 2
lcp-echo-failure   7
plugin /usr/lib/pppd/plugins/pppoe.so
nas0
Remark: You will need to replace the two "user@domain"s with your ADSL uname.
注意:你需要用你的ADSL账号把两个"user@domain”位置覆盖掉
这些设置将会对pppd 效验连接状态,以及当这个连接损坏时将14秒之后中止 因为当ADSL线路失
去同步之后 它将会在10秒之后找回同步 所以我选择14秒 
这些必需的数据可以在w!ndows’ Alcate连接和FAQ中找到,也可以讯问你的ISP
下这些内容覆盖掉你/etc/ppp/chap-secrets下面的数据,
# Secrets for authentication using CHAP
# client        server  secret                  IP addresses
user@domain     *       password
Now put the same contents in /etc/ppp/pap-secrets.
现在把同样的内容放到 /etc/ppp/pap-secrets 中
Remark:   You will need to replace "user@domain" with your ADSL uname and "password"

with your ADSL password.
注意: 你要把”user@domain” "password”改成你的上网账号和密码

The Tenth Step: Running the driver
第十步:让驱动运行
If everything went according to plan, the driver should start as soon as you plug in the SpeedTouch USB modem.
如果以上所有的都按计划完成,你的驱动就会在插上SpeedTouch USB modem 之后不久就把设备驱动起来
If the driver is installed correctly, you will see the following sequence when plugging in the modem:
如果驱动安装正确,当modem插上后你将会按顺序看到以下内容:
Both LED's green for a very short period.
Left LED is blinking, right LED is green.
Left LED is green, right LED is green/red
Left LED is green, right LED is blinking
Both LED's are green.
In your /var/log/messages file or on your console you will see at plugin:
Speedmgmt[1234]: Alcatel SpeedTouch USB Management daemon started.
Speedmgmt[1234]: (C) Alcatel 2001, Version 1.3.1
Remark: If you are not seeing the version number, you are using version 1.3 and you MUST upgrade. The 1.3 version has a bug that will severely limit your upstream bandwidth.
备注:如果你不在看见版本数字,那么你正在使用的这个1.3版必须升级在1.3版中有一个严重的bug 它会限制你的上行带宽
At then end of the sequence when both LED's are green  something like the following will appear:
在上面的消息结束后你会看到modem上面的两个小灯会变成绿色,接着会出现下面的消息
Speedmgmt[1234]: Modem initialized at 1120 kbit/s downstream and 128 kbit/s upstream
Remark: the numbers in the message are purely dependent on your ISP and your subscription.
备注:上面所显示的信息要根据你的ISP以及你所办理的带宽而定
If you want to dial in to your ISP, do the following:
如果你想拨接你的ISP 按下面要求做
For PPPoE only:
br2684ctl -b -c 0 -a 0.VP.VC
Remark: VP and VC are to be replaced with the VP/VC values of your ISP. You  will need to know what the correct values are for your provider, and substitute those. If these values are incorrect, you may sync, but will not be able to connect to your ISP's IP  layer, and probably be frustrated. These values can be obtained from the Window's Alcatel client, your ISP or the FAQ
备注:要用从你的ISP得到VPI和VCI值来替换VPI/VCI值,在更改前你需要知道ISP所给你的这些数值如果这些数值不正确,你可能会同步,但是你不会连接上你ISP接入商的IP层,也许就根本连接不上这些值从W!ndows Alcatel 连接中获得,或者从你的ISP和常见疑问中获得

For PPPoE and PPPoA:

Pppd

You can check your /var/log/messages to see if everything went ok.
你去查看你的/var/log/messages 里面的内容
For PPPoA this should be something like this:
如果是pppoa的话 就会和以下内容类似
pppd[1234]: Plugin /usr/lib/pppd/plugins/pppoatm.so loaded.
pppd[1234]: PPPoATM plugin_init
pppd[1324]: PPPoATM setdevname_pppoatm
pppd[1324]: PPPoATM setdevname_pppoatm - SUCCESS
pppd[1235]: pppd 2.4.0b1 started by root, uid 0
pppd[1235]: Using interface ppp0
pppd[1235]: Connect: ppp0 <--> 0.38
pppd[1235]: local  IP address xxx.xxx.xxx.xxx
pppd[1235]: remote IP address yyy.yyy.yyy.yyy
For  PPPoE this gives something like:
如果是pppoe的话就是以下这些
pppd[1234]: PPPoE Plugin Initialized
pppd[1235]: pppd 2.4.0 started by root, uid 0
pppd[1235]: Sending PADI
pppd[1235]: HOST_UNIQ successful match
pppd[1235]: HOST_UNIQ successful match
pppd[1235]: Got connection: 3b8
pppd[1235]: Connecting PPPoE socket: 00:90:1a:10:11:bd b803 nas0 0x807bdc0
pppd[1235]: Using interface ppp0
pppd[1235]: Connect: ppp0 <--> nas0
pppd[1235]: local IP address xxx.xxx.xxx.xxx
pppd[1235]: remote IP address yyy.yyy.yyy.yyy
Congratulations! You are online!
祝贺你 你上网了
Remark:  If ppp refuses to connect, please consult the Linux PPP HOWTO.   
备注:如果ppp拒绝登陆,请参考Linux下的ppp 帮助文件







Appendix A: Troubleshooting
附录A  故障处理
When I plug in my modem, nothing happens.
当我插上我的modem时 根本没有发现任何东西
Check whether hotplugging is working. If you plug in a USB device, the console should give something like:
检查hotplugging是否正在工作,如果你插上USB设备时,CONSOLE(控制台)会出现以下内容:
/sbin/hotplug: arguments (usb) env (PWD=/etc/hotplug HOSTNAME=infinty
DEVICE=/proc/bus/usb/001/002 ACTION=remove DEBUG=yes MACHTYPE=i386-redhat-linux-gnu
OLDPWD=/ DEVFS=/proc/bus/usb TYPE=9/0/0 SHLVL=1 SHELL=/bin/zsh HOSTTYPE=i386
OSTYPE=linux-gnu HOME=/ TERM=dumb PATH=/bin:/sbin:/usr/sbin:/usr/bin
PRODUCT=451/1446/100 _=/usr/bin/env)

If this is not happening, check whether hotplugging was enabled in the kernel.
如果没有出现上面这些信息,检查hotplugging是否在内核中激活
If the LED's of the modem do not start their sequence, check whether the usb subsystem is started.
如果Modem LED 灯没有按顺序亮,那么检查你的usb 子系统是否未被启动
lsmod
This command should return something like:
这个命令会返回下列消息
Module                  Size  Used by
speedtch               10128   2  (autoclean)
uhci                   18496   0  (unused)
usb-ohci               16160   0  (unused)
If  the uhci or usb-ohci is missing, try modprobing them:
如果uhci 或者 usb-ohci 出现错误,试着modeprobing他们
modprobe uhci
modprobe usb-ohci
Remark:  You will need only one of them to get things working!
备注:你只需要他们其中一个工作既可
If modprobe complains about not finding the modules, go back to the section about configuring the kernel, verify the configuration of the USB subsystem.
如果 modprobe 抱怨说组件未被发现,那么就去内核配置部分,查证一下USB串行线的配置
If nothing is wrong, go the section of making the kernel and rerun:
如果没有出现错误,就把内核部分处理一下在运行
make install
make install_modules
reboot
If this is all ok, check whether mgmt is running.
如果上面的搞定后,检查mgmt是否正在运行
ps -ef | grep mgmt
This should return a line like:
root      3215     1  0 19:41 ?        00:00:00 /usr/sbin/speedmgmt
If it does not, then check your /var/log/messages.
如果没有出现,检查你的/var/log/messages
If this shows something like:
如果出现下面这段内容
kernel: usb.c: registered new driver Alcatel SpeedTouch USB
Speedmgmt[1234]: Alcatel SpeedTouch USB Management daemon started.
Speedmgmt[1234]: (C) Alcatel 2001, Version 1.3.1
Speedmgmt[1234]: bulk_write: Invalid argument
Speedmgmt[1234]: bulk_read: Invalid argument
Speedmgmt[1234]: bulk_write: Invalid argument
Speedmgmt[1234]: bulk_read: Invalid argument
Speedmgmt[1234]: USBDEVFS_SUBMITURB: Invalid argument

Then you forgot to mount usbdevfs on /proc/bus/usb/!
那是因为当初忘记mount usbdevfs 在你的 /proc/bus/usb 中
Check whether you added the line to /etc/fstab. If you have, type:
检查你是否把它加入到/etc/fstab中了  如果有,就敲入:
mount -a
If this does not work, check whether you have enabled the usbdevice filesystem in you kernel configuration.
如果还是没有工作,察看你是否在内核配置中打开了usbdevice 文件系统
When I plug in my modem, the LED sequence finishes ok, but I cannot log on
当我插上modem之后,虽然LED按顺序完成握手,但是我不能logon
Check your console or /var/log/messages file to see when ppp says. If it says something like this:
当PPP连接的时候察看你的CONSOLE(控制台)或者  /var/log/messages 文件.如果里面是以下讯息:
pppd[1234]: LCP: timeout sending Config-Requests
Go to /proc/net/atm and do:
那么就进入/proc/net/atm
cat "/proc/net/atm/speedtch:0"
If this file is not there, the speedtouch module is missing.  Repeat step 5.
如果这个文件不在这里,那就是speedtouch模块出错,回到步骤5
The output should be something like:
出现以下消息

Speed Touch USB  (usb-00:10.1-2)
MAC: 00:90:d0:2c:2c:5a
AAL5: tx 25599 ( 0 err ), rx 37419 ( 0 err, 0 drop )
Line up, firmware loaded
If the numbers are all 0's, the ppp daemon is wrongly configured and it is not sending data to the modem.
如果这些数字都是0的话,那就是ppp后台程序配置错误,因为它根本没有从modem中发送任何数据
If the numbers are NOT zero, check whether you have used the correct VP/VC settings and the correct protocol!
如果这些数字都不是0,看看你是否使用了正确的VP/VC数值!
When I plug in the modem the LED sequence stops when the left one is green and the right one is red/green.

You are using the Alcatel managment tool Version 1.3.2, which does not work correctly.
你所使用的1.3.2版Alcatel management tool 没有正确的安装
Please upgrade to 1.3.3 or a more recent version.
请升级到1.3.3版或者更接近的版本

When I plug in my modem, the LED sequence never goes beyond step two and the syslog gives something like:

Speedmgmt[1234]: Alcatel SpeedTouch USB Management daemon started.
Speedmgmt[1234]: (C) Alcatel 2001, Version 1.3.3
kernel: usb_control/bulk_msg: timeout
Speedmgmt[1234]: bulk_write: Connection timed out
kernel: usbdevfs: USBDEVFS_BULK failed dev 3 ep 0x5 len 991 ret -110
kernel: usb_control/bulk_msg: timeout
Please install the Alcatel management tool version 1.3.4 or later.
请安装Alcatel management tool 1.3.4或以上版本
When I plug in the modem and it reaches sync, the system hangs.
当我插入modem后虚拟拨号成功,但是系统挂起
Sounds like a bug in the kernel module.  Please send me details and system logs.

The connection comes up, but it is very slow, especially upstream.

Upgrade your mgmt module to the latest version.

Everything seems to work ok, but ppp refuses to connect.

Please consult the Linux PPP HOWTO.

pppd connects fine, but when I try to reach webpage, it doesn't work.

You can try two things.
First, try to add the following option to your /etc/ppp/options file.

usepeerdns
OR  figure out the dns server of your provider (see Windows).
and edit your /etc/resolv.conf file.
It should look something like:
nameserver
nameserver aaa.bbb.ccc.ddd
nameserver eee.fff.ggg.hhh
with aaa.bbb.ccc.ddd  and eee.fff.ggg.hhh mathcing the ip addresses of your providers

primary and secondary dns.
Remark: If you have only one ip address, just leave out the second line.
Appendix B: Some possible tweaks
Running without hotplugging.
It is entirely possible to run this driver without using the hotplugging package.  You

can then disable the kernel option and not install the hotplugging package.
If you wish to do this, you have to insert the speedtch.o module by hand and start the

mgmt daemon by hand.
modprobe speedtch.o
/usr/sbin/speedmgmt &
There are no real rules. Just make sure you insert the module before the line is in

sync. From speedmgmt version 1.3.3 onwards, it no longer matters when you insert the

kernel module.
Automatically dialing in at modem plugin.
It is possible to have your system automatically dial in when your modem is plugged in.
To do this you will have to edit the /etc/hotplug/usb/speedtouch file.
For PPPoA it should look something like:
#!/bin/bash
# configuration and startup-script for the Alcatel SpeedTouch USB modem

case $ACTION in

add)

# start
mesg SpeedTouch Inserting module.
modprobe -k speedtch
mesg SpeedTouch Attempting to start management deamon
/usr/sbin/mgmt &

# allow the modem to come into sync.
sleep 20;

# startup pppd
pppd
;;

remove)
killall mgmt
;;
esac
For PPPoE It should be something like:
#!/bin/bash
# configuration and startup-script for the Alcatel SpeedTouch USB modem

case $ACTION in

add)

# start
mesg SpeedTouch Inserting module.
modprobe -k speedtch
mesg SpeedTouch Attempting to start management deamon
/usr/sbin/mgmt &

# allow the modem to come into sync.
sleep 20;

# startup pppd
br2684ctl -b -c 0 -a 0.VP.VC
pppd
;;

remove)
killall mgmt
;;
esac
Remark: don't forget to adjust the VP/VC values!
Important: There is a catch here though. The hotplugging system does not yet support

remove events. This means you will have to kill your pppd or br2684ctl utility by hand

otherwise you have problems when plugging the modem in again.
  

Appendix C: Links
The following links can prove useful:
There is a FAQ available.
Some other HOWTO's are also available:
French PPPoA mini-HOWTO
English PPPoE mini-HOWTO
SuSe has a SpeedTouch webpage.
The SpeedTouch Kernel Homepage
Linux-USB homepage
Linux-ATM homepage
Linux PPP HOWTO
Linux Kernel HOWTO
Appendix C: Credits
This HOWTO was based on the mini-HOWTO's of Chris Jones and  Pedro Ramos Silva.
 楼主| 发表于 2003-9-8 13:05:55 | 显示全部楼层
这是一个老外的方法  转过来大家研究研究

ps: 中文是我后加的
回复

使用道具 举报

发表于 2003-9-9 18:08:20 | 显示全部楼层
我是青岛的,像我下面说的情况不知道行不行啊。我的拨号方式为:PPPOA方式的。不知道行不行,不过看了一下,感觉希望很大。请大哥们帮我看看吧。

我也是青岛的一个linux fans .Magic linux是我用过最好的一个桌面linux产品。
可是我家里用的是USB Adsl上网,(在青岛)是天邑的usb modem我就是不能用它上网,配置我觉的都没有问题。我打电话到isp那里,他们的工作人员说,青岛的adsl用户都无法用linux来拨号上网的,叫我别为此费力了。
我问他们为什么。他们也不说。我就是想问问这里的朋友,这其中的原因是什么。还有就是。青岛有没有fans 用过magic linux + usb.adsl成功的上过网啊。。
有的话。可否说说关键的问题在那里。。
真是晕死了。我就差一点想再弄一台机器建个win服务器。再用linux上网了。。
还请这里的高手帮我想想办法。
我发过e-mail去“adsl也就是天邑的厂家”去问过。他也没有回信。弄的我不知知所措啊。
我的"天邑"modem好像用的是"阿尔卡特"的modem芯片啊。。这我都下过了。。不行。。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-15 23:22 , Processed in 0.044756 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表