个人工具

“UbuntuHelp:DialupModemHowto/Lucent”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第6行: 第6行:
 
== Modems supported by the Lucent driver ==
 
== Modems supported by the Lucent driver ==
 
This section is for you if the output of scanModem tells you something like: 'The modem has a supported Lucent/Agere DSP (digital signal processing) chipset.'. You will be able to use a driver from the "restricted-modules" package, which should be installed by default.
 
This section is for you if the output of scanModem tells you something like: 'The modem has a supported Lucent/Agere DSP (digital signal processing) chipset.'. You will be able to use a driver from the "restricted-modules" package, which should be installed by default.
(To check that the necessary package is installed, use your package manager, e.g. Synaptic or Adept. You need to look for a package, which is called <code><nowiki>linux-restricted-modules-ARCH</nowiki></code>, where ARCH is the last part of the <code><nowiki>$ uname -r</nowiki></code> output, i.e. your kernel flavor. If it is not installed yet, install it there.)
+
(To check that the necessary package is installed, use your package manager, e.g. Synaptic or Adept. You need to look for a package, which is called <code><nowiki>linux-restricted-modules-ARCH</nowiki></code>, where ARCH is the last part of the <code><nowiki>$ uname -r</nowiki></code> output, i.e. your kernel flavor. If it is not installed yet, install it there.)
  
 
=== Setup steps for ltmodem ===
 
=== Setup steps for ltmodem ===
  
 
* In a terminal type
 
* In a terminal type
<pre><nowiki>
+
<pre><nowiki>
  $ sudo sh -c "echo ltserial >> /etc/modules"
+
$ sudo sh -c "echo ltserial >> /etc/modules"
  $ sudo sh -c "echo ltmodem >> /etc/modules"
+
$ sudo sh -c "echo ltmodem >> /etc/modules"
 
</nowiki></pre> to add them to the module autoloading list.
 
</nowiki></pre> to add them to the module autoloading list.
 
* Since udev rewrites /dev on each boot, and some dialup programs rely on the existence of /dev/modem, you need to have a symlink created on boot (from /dev/ttyLTM0 to /dev/modem). To do this, create the file /etc/udev/rules.d/10-local.rules, and put these lines in it:
 
* Since udev rewrites /dev on each boot, and some dialup programs rely on the existence of /dev/modem, you need to have a symlink created on boot (from /dev/ttyLTM0 to /dev/modem). To do this, create the file /etc/udev/rules.d/10-local.rules, and put these lines in it:
<pre><nowiki>
+
<pre><nowiki>
  #ltmodem
+
#ltmodem
  KERNEL="ttyLTM0", SYMLINK="modem"
+
KERNEL="ttyLTM0", SYMLINK="modem"
 
</nowiki></pre>
 
</nowiki></pre>
 
* Now load the drivers for the first time:
 
* Now load the drivers for the first time:
<pre><nowiki>
+
<pre><nowiki>
  $ sudo modprobe ltserial
+
$ sudo modprobe ltserial
  $ sudo modprobe ltmodem
+
$ sudo modprobe ltmodem
 
</nowiki></pre>
 
</nowiki></pre>
  
This should have created the device <code><nowiki>/dev/modem</nowiki></code> and you can now go on to configure your dialup connection.
+
This should have created the device <code><nowiki>/dev/modem</nowiki></code> and you can now go on to configure your dialup connection.
  
 
* No, I get an error about "FATAL: module not found" for this step :(
 
* No, I get an error about "FATAL: module not found" for this step :(
  
'''Note for "5.04 Hoary" users:''' Ubuntu 5.04 Hoary was shipped with kernel 2.6.10, which has some problems with these modules. To fix, change the grub boot commands <code><nowiki>/boot/grub/menu.lst</nowiki></code> as follows (<code><nowiki>pci=routeirq</nowiki></code> is new):
+
'''Note for "5.04 Hoary" users:''' Ubuntu 5.04 Hoary was shipped with kernel 2.6.10, which has some problems with these modules. To fix, change the grub boot commands <code><nowiki>/boot/grub/menu.lst</nowiki></code> as follows (<code><nowiki>pci=routeirq</nowiki></code> is new):
<pre><nowiki>
+
<pre><nowiki>
  ## ## Start Default Options ##
+
## ## Start Default Options ##
  ## default kernel options
+
## default kernel options
  ## default kernel options for automagic boot options
+
## default kernel options for automagic boot options
  ## If you want special options for specifiv kernels use kopt_x_y_z
+
## If you want special options for specifiv kernels use kopt_x_y_z
  ## where x.y.z is kernel version. Minor versions can be omitted.
+
## where x.y.z is kernel version. Minor versions can be omitted.
  ## e.g. kopt=root=/dev/hda1 ro
+
## e.g. kopt=root=/dev/hda1 ro
  # kopt=root=/dev/hda1 ro pci=routeirq
+
# kopt=root=/dev/hda1 ro pci=routeirq
 
</nowiki></pre>
 
</nowiki></pre>
Do not forget to update grub: <code><nowiki>$ sudo update-grub</nowiki></code>
+
Do not forget to update grub: <code><nowiki>$ sudo update-grub</nowiki></code>
  
 
=== Martian, an alternive to ltmodem ===
 
=== Martian, an alternive to ltmodem ===
第59行: 第59行:
  
 
<pre><nowiki>
 
<pre><nowiki>
  sudo martian_helper --daemon
+
sudo martian_helper --daemon
 
</nowiki></pre>
 
</nowiki></pre>
  
第66行: 第66行:
  
 
<pre><nowiki>
 
<pre><nowiki>
  sudo ln -s /dev/ttySM0 /dev/modem
+
sudo ln -s /dev/ttySM0 /dev/modem
 
</nowiki></pre>
 
</nowiki></pre>
  

2007年5月24日 (四) 09:28的版本



Modems supported by the Lucent driver

This section is for you if the output of scanModem tells you something like: 'The modem has a supported Lucent/Agere DSP (digital signal processing) chipset.'. You will be able to use a driver from the "restricted-modules" package, which should be installed by default. (To check that the necessary package is installed, use your package manager, e.g. Synaptic or Adept. You need to look for a package, which is called linux-restricted-modules-ARCH, where ARCH is the last part of the $ uname -r output, i.e. your kernel flavor. If it is not installed yet, install it there.)

Setup steps for ltmodem

  • In a terminal type
$ sudo sh -c "echo ltserial >> /etc/modules"
$ sudo sh -c "echo ltmodem >> /etc/modules"
to add them to the module autoloading list.
  • Since udev rewrites /dev on each boot, and some dialup programs rely on the existence of /dev/modem, you need to have a symlink created on boot (from /dev/ttyLTM0 to /dev/modem). To do this, create the file /etc/udev/rules.d/10-local.rules, and put these lines in it:
#ltmodem
KERNEL="ttyLTM0", SYMLINK="modem"
  • Now load the drivers for the first time:
$ sudo modprobe ltserial
$ sudo modprobe ltmodem

This should have created the device /dev/modem and you can now go on to configure your dialup connection.

  • No, I get an error about "FATAL: module not found" for this step :(

Note for "5.04 Hoary" users: Ubuntu 5.04 Hoary was shipped with kernel 2.6.10, which has some problems with these modules. To fix, change the grub boot commands /boot/grub/menu.lst as follows (pci=routeirq is new):

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specifiv kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
# kopt=root=/dev/hda1 ro pci=routeirq

Do not forget to update grub: $ sudo update-grub

Martian, an alternive to ltmodem

On 6.06.1, It's possible that as part of trying to load the ltserial module, you'll get the error: "FATAL: Error inserting ltserial (...): Invalid argument".

In this case, Installing the Martian driver may be a solution to get your Lucent winmodem to work. First, you'll need to follow the instructions above to install build-essential and your kernel headers packages, to prepare to compile the driver.

Download the most recent version with "full" in the name, from here: http://www.barrelsoutofbond.org/downloads/martian/

Instructions for installing the file software are in the "INSTALL" file. Until someone makes an "init" script for it, There is an additional step needed to be able to use the modem after you boot up.

sudo martian_helper --daemon

If your software expects the modem to be located at /dev/modem, you may also need to run this command:

sudo ln -s /dev/ttySM0 /dev/modem

Hopefully "Martian" will become an offical Ubuntu package to make this whole process easier.