BinaryDriverHowto/SmartLinkModem

参与到Ubuntu的翻译中来
回复
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

BinaryDriverHowto/SmartLinkModem

#1

帖子 oneleaf » 2005-08-26 23:46

Note:

This modem is very common on laptop motherboards. It looks something like this when you type "lspci" in a terminal:

0000:00:1f.6 Modem: Intel Corp. 82801DB (ICH4) AC'97 Modem Controller (rev 03)
Modifying your sources

In order to install this driver (and other non-free drivers that Ubuntu does not support), you will need to enable multiverse. See AddingRepostoriesHowTo
Notes

1.

Unlike the above drivers, this driver is provided by Ubuntu in the multiverse repository and unlike drivers from the restricted repository is basically untouched by the Ubuntu development team. Hence you have to do a bit more work to get this one to go. And if you have trouble with it, the fault lies more with Debian than with Ubuntu, but is somewhat up in the air, since noone has the code.
2.

Every time you update your operating system core (called "the kernel"), you're going to have to run through the "Compiling the driver" procedure below again.

Preliminaries

These are steps you will only have to run through the first time you build this driver, we're just making sure you have all the installed packages you need. If any of these packages are already installed, that's fine, but if not, use Synaptic, aptitude or apt-get to install them.

Make sure you have the most up-to-date kernel available unless there's some reason why you want to run a specific kernel. Install the following package:

1.

linux-ARCH (where ARCH is one of 686, 686-smp, k7 or k7-smp if you use Intel, powerpc for PPC...)

Also, you're going to be compiling this driver, and Ubuntu doesn't install the necessary programs for you to do this by default. So first we need to install several packages:

1.

build-essential
2.

linux-headers-2.6-ARCH
3.

fakeroot

These will pull in some other packages too.

You also need to install the source of the SmartLink driver itself:

1.

sl-modem-daemon
2.

sl-modem-source

You can install all packages listed above at the same time.
Compiling the driver

Run the following steps in a console. Note that whatever directory you're working in will be filled with files. It doesn't matter exactly where this is done as long as you have write access in the directory.

1.

tar -xjf /usr/src/sl-modem.tar.bz2 [this command unpacks all the files we will use into the current directory]
2.

cd modules/sl-modem/debian [change to a particular directory where the instructions for building the module are, because we need to fix them to work with Ubuntu rather than Debian
3.

Edit the control.modules.in file in this directory. In this file, there is a line reading:
*

Depends: kernel-image-_KVERS_

*

Change this line to read:
o

Depends: linux-image-_KVERS_

1.

cd ..
2.

fakeroot debian/rules kdist KVERS=`uname -r` KSRC=/usr/src/linux-headers-`uname -r` [this does the actual building of the driver against the current running kernel, it has a lot of output]
3.

cd ..
4.

sudo dpkg -i sl-modem-modules-*.deb [this sometimes freezes, canceling it with Ctrl+C and trying again will eventually work]

Getting the modem to work

This driver seems rather finicky. Basically, if it works, a file called /dev/ttySL0 will exist. If it doesn't work, running sudo /etc/init.d/sl-modem-daemon restart may help, as might running modprobe slamr, but it seems somewhat random. A reboot may help too.


https://wiki.ubuntu.com/BinaryDriverHow ... tLinkModem
当净其意如虚空,远离妄想及诸取,令心所向皆无碍
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#2

帖子 eexpress » 2005-09-02 12:46

随便哪个都翻译?
● 鸣学
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#3

帖子 eexpress » 2005-09-02 13:20

此类调制解调器对于笔记本主板来说,是十分普遍的。你在终端中输入"lspci"命令就可以看到的:
0000:00:1f.6 Modem: Intel Corp. 82801DB (ICH4) AC'97 Modem Controller (rev 03)
Modifying your sources
为了安装这个驱动(ubuntu并不支持其他非免费驱动),你应该开通multiverse的服务(一个透明的32节点的linux服务器群,提供linux系统软件下载服务,需要cosmos帐号)。参照AddingRepostoriesHowTo(资料库)

1.

这个驱动不像上面其他的驱动,它由UBUNTU通过multiverse资料库直接提供。
与其他受限制的资料库提供的驱动不同的是,ubuntu开发小组基本不改动此驱动。因此你需要做一些工作,才能让它工作。如果你碰到麻烦,出错多半和Debian有关,而不是Ubuntu。 确实它有点使你摸不到头绪,因为没有人有它的源码。
● 鸣学
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#4

帖子 eexpress » 2005-09-02 13:29

2.

每次你更新操作系统内核(kernel)时,你必须重复编译驱动的过程。

预备步骤

第一次建立驱动时,你必须依照下面的步骤。而且这里已经假设你有了所有需要的安装包。如果已经安装过其中的包就更加方便。否则可以使用Synaptic, aptitude 或者 apt-get 来安装它们。

先确定你有了最新的内核,除开你一定想要自己指定的内核。安装以下的包:
● 鸣学
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#5

帖子 eexpress » 2005-09-02 13:55

1.

linux支持的结构体系(使用Intel体系的指686、686-smp、k7 或者 k7-smp,其他指powerpc系列...)

接着需要编译驱动,通常情况下Ubuntu并没有安装你所需要的程序。所以,首先我们需要安装下面几个包:

build-essential,linux-headers-2.6-ARCH,fakeroot

可能还要由此附带出其他的包。

你还需要安装 SmartLink 驱动本身:

sl-modem-daemon,sl-modem-source

你可以一次性安装以上的全部包。(指没有附加的依赖)

编译

在终端中运行以下步骤。注意你当前工作的目录会被填入很多文件。但对于你写入目录并没有什么影响。

1.
tar -xjf /usr/src/sl-modem.tar.bz2 [此命令在当前目录解包所有文件]

2.
cd modules/sl-modem/debian [转到特定的目录,在这里编译模块,这是因为我们要用ubuntu而不是Debian来修正它们,才能让其工作]

3.
编辑目录中的 control.modules.in 文件。文件内容如下:

*
Depends: kernel-image-_KVERS_
*
Change this line to read:
o

Depends: linux-image-_KVERS_

1.

cd ..
2.

fakeroot debian/rules kdist KVERS=`uname -r` KSRC=/usr/src/linux-headers-`uname -r` [这里才针对当前执行的内核进行实际的编译驱动的工作。将产生很多输出]
3.

cd ..
4.

sudo dpkg -i sl-modem-modules-*.deb [这里指令执行可能被冻结掉。可以按 Ctrl+C 终止,然后再来,直到正常]

让modem工作

这个驱动有点挑剔。一般来说,如果它正常,将产生 /dev/ttySL0 设备文件。如果失败,执行 sudo /etc/init.d/sl-modem-daemon 来重启一下可能就行了。 就像执行 modprobe 一样, 这个看来有点随机性。再不行,重启系统也可以试一下。
● 鸣学
头像
leal
帖子: 1119
注册时间: 2005-08-29 14:49
来自: 杭州
联系:

#6

帖子 leal » 2005-09-03 13:34

此类调制解调器对于笔记本主板来说,是十分普遍的。这种Modem在笔记本主板上非常普遍。你在终端中输入"lspci"命令就可以看到的:
0000:00:1f.6 Modem: Intel Corp. 82801DB (ICH4) AC'97 Modem Controller (rev 03)
Modifying your sources
为了安装这个驱动(ubuntu并不支持其他非免费驱动或其它Ubuntu不支持的非自由驱动程序),你应该开通multiverse的服务(一个透明的32节点的linux服务器群,提供linux系统软件下载服务,需要cosmos帐号)你应该添加multiverse仓库(软件库)。参照AddingRepostoriesHowTo(资料库)

1.

这个驱动不像上面其他的驱动,它由UBUNTU通过multiverse资料库直接提供。
其他受限制的资料库提供的驱动不同的是其它restricted仓库提供的驱动不同的是,ubuntu开发小组基本不改动此驱动。因此你需要做一些工作,才能让它工作。如果你碰到麻烦,出错多半和Debian有关,而不是Ubuntu。 确实它有点使你摸不到头绪,因为没有人有它的源码。

嘻嘻
用心×恒 | 豆瓣 | 门户 | Blog
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#7

帖子 oneleaf » 2005-09-07 20:02

当净其意如虚空,远离妄想及诸取,令心所向皆无碍
头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

#8

帖子 millenniumdark » 2006-07-30 18:06

过时了。
回复