个人工具

UbuntuHelp:DialupModemHowto/Intel536EP/zh

来自Ubuntu中文

Hnmsky讨论 | 贡献2009年6月18日 (四) 22:43的版本 关于Intel536EP驱动的Modem支持

跳转至: 导航, 搜索


关于Intel536EP驱动的Modem支持

本页描述了如何在基于i386的Ubuntu系统上安装Intel 536EP modem 的驱动。其中的一些是被当做Cnet modem卖出,并且在板子上有Ambient 的芯片。

注意根据tel-Readme.txt的描述,这个驱动只工作在32位的系统上。下面的安装过程很简单并且能工作的很好。你可以在Linux的shell/终端里输入下面的命令来确定你是否有这个型号的modem。

lspci | grep 536EP

如果这条命令并没有任何输出,那么你没有Intel 536ep modem。如有你有这个modem,你能得到类似下面的输出:

01:0b.0 Communication controller: Intel Corporation 536EP Data Fax Modem

更新: 大部分人(新用户)可以跳过编译的步骤并从下面的地址下载已打包好的的驱动(deb 文件): <
>

到写这篇文章的时候,编译和使用这个驱动已经在5.10到9.04上测试过。在5.10上有一个较小的编译,下面会讨论(在5.04只测试了编译,在4.10上没有测试)

安装需要的Ubuntu补丁

注意保持Intel 536EP 和 537EP在Philippe Vouters上的链接(这里为新的内核更新驱动)http://vouters.dyndns.org:8080/Intel/ Ubuntu 5.04 (Hoary Hedgehog) 保证你已经读过标题为 If compiling from source 的章节 here.

Ubuntu 5.10 (Breezy Badger) 保证你已经读过标题为 If compiling from sourceInstalling GCC 3.4 的章节 here. Ubuntu 6.06 (Dapper Drake) 不是很确定你是否需要 GCC 3.4; 如果你用“正常的”gcc按照下面“编译驱动”的部分来做,它可能会有效。 Ubuntu 6.10 (Edgy Eft) and 7.04 (Feisty Fawn) 不需要额外的补丁

获得驱动

下载modem的驱动 如果是Ubuntu 5.04, 5.10 and 6.06, 用这个链接: http://downloadfinder.intel.com/scripts-df-external/Detail_Desc.aspx?agr=Y&ProductID=977&DwnldID=9266&strOSs=39&OSFullName=Linux*&lang=eng 如果是6.10, 用这个链接: http://linmodems.technion.ac.il/packages/Intel/Philippe.Vouters/intel-536EP-2.56.76.0_21_09_2006.tgz 如果是7.04, 用这个链接: http://linmodems.technion.ac.il/packages/intel/Philippe.Vouters/intel-536EP-2.56.76.0_23_02_2007.tgz 或者是: http://www.mrgtech.ca/intel_536ep_feisty.tar.gz 到今天为止, 2009/03/11, 最新的驱动: http://linmodems.technion.ac.il/packages/intel/Philippe.Vouters/intel-536EP-2.56.76.0_2009_02_08.tar.bz2 确保你知道你把文件保存在何处, 文件名是 `Intel-536EP-4.71.tgz` 或 `intel-536EP-2.56.76.0_21_09_2006.tgz` or `intel-536EP-2.56.76.0_23_02_2007.tgz`or `intel-536EP-2.56.76.0_2009_02_08.tar.bz2`; 在这篇文档中假定文件在你的home目录(目录为/home/<username>, <username>是你的用户名).

编译驱动 .tgz

首先我们需要解压缩下载的文件。打开一个终端运行下面的命令:

tar xzf Intel-536EP-4.71.tgz

or (for 6.10)

tar xzf intel-536EP-2.56.76.0_21_09_2006.tgz

or

tar xzf <filename>

or

tar xjf <filename>
in the case of the more recent versions ending with .bz2

where <filename> is the name of the downloaded file. This assumes you saved the file downloaded from Intel in your home directory; otherwise, type `cd <directory-where-the-file-is>` before typing the `tar` command above. This will create a directory `Intel-536` with the source contained in it. Change to this directory by typing

cd Intel-536

or (for 6.10 and 7.04)

cd intel-536EP-2.56.76.0

Still in the terminal window, type the following:

make clean

This should produce output looking like this:

Try `uname --help' for more information.
cd coredrv; make clean
make[1]: Entering directory `/home/rory/Intel-536/coredrv'
rm -f *.ko *.o *~ core
make[1]: Leaving directory `/home/rory/Intel-536/coredrv'
rm -f *.o *.ko

Now type

make 536

This will result in many lines of output being printed to the terminal window; you can ignore most of them. The final lines should look like this:

CC      /home/rory/Intel-536/coredrv/Intel536.mod.o
LD [M]  /home/rory/Intel-536/coredrv/Intel536.ko
make[2]: Leaving directory `/usr/src/linux-headers-2.6.12-9-386'
make[1]: Leaving directory `/home/rory/Intel-536/coredrv'

There should be an `Intel536.ko` file in the directory now; test this by typing `ls -l Intel536.ko`; the output should look like

-rw-r--r--  1 rory rory 1070520 2005-10-16 21:02 Intel536.ko

The file size should be similar, though probably not identical.

Installing the driver

There are two steps to installing the driver. The first is to copy the Intel536.ko file created above to an appropriate directory, and the second is to cause the driver to be loaded at boot time. Installing the Intel536.ko file Copy the file to the modules directory by this command:

sudo cp Intel536.ko /lib/modules/$(uname -r)/kernel/drivers/char

You may be prompted for a password; if so, enter your user password. Make your system aware of this module with `depmod`:

sudo depmod -a

Finally, load the driver with the `modprobe` command:

sudo modprobe Intel536

This command should not print a response; if it prints something like this:

FATAL: Module Intel536 not found.

you have made an error; most likely you have copied the file to the wrong place. If you see a different error message, there may be an error in the module, or your modem, or you may not have a Intel 536-based modem. Loading the driver at boot time To load the module at boot time, we need to add a line "Intel536" to the file /etc/modules. First make a backup of the file:

sudo cp /etc/modules /etc/modules.backup

Now run this to add the required line:

sudo sh -c "echo Intel536 >> /etc/modules"

Setting up the modem

The name of your modem device is `/dev/536ep0`. Kubuntu Users: To use KPPP you will need to create a symlink to /dev/536ep0 from /dev/modem. Udev rewrites everything in /dev on each reboot, thus erasing this symlink. So you have to create a rule for udev to recreate the symlink. You can add the needed rule by running this command:

sudo echo -e '# Intelmodem536ep\nKERNEL=="536ep0", SYMLINK=="modem"' >> /etc/udev/rules.d/10-local.rules
sudo ln -s /dev/536ep0 /dev/modem

After completing all of the above steps, you may need to reboot before you can access your modem.

Connecting

Dialing programs that will NOT work with this modem:

  • The Gnome Network program
  • pppconfig

Dialing programs that WILL work with this modem: (because they allow 'stupid mode')

  • wvdial
  • Gnome-ppp

Currently, the graphical program gnome-ppp is not included in the standard installation, but once you are connected with wvdial, you can easily install it with the Synaptic Package Manager.

  • KPPP

To setup wvdial, first make a backup of the current configuration file:

sudo mv /etc/wvdial.conf /etc/wvdial.conf.bak
sudo touch /etc/wvdial.conf

Next open the file /etc/wvdial.conf as root with an editor. (You can use the command sudo gedit /etc/wvdial.conf ) Copy the text below into that file. Modify the text so that your Dialup Phone#, Username, and Password are correct for your service. When finished, save and exit the file.

[Dialer Defaults]
Modem = /dev/536ep0
Baud = 115200
Init = ATZ
New PPPD = yes
Stupid Mode = 1
Auto Reconnect = off
#Carrier Check = no
Dial Attempts = 1

# MODIFY THE FOLLOWING 3 SECTIONS FOR YOUR CONNECTION
Phone = 1234567
Username = ExampleName
Password = ExamplePassword

You should be able to start your connection by typing into a shell/terminal:

wvdial

Go|back to the main wiki