QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 774|回复: 1

如何在red hat 7.2中安装AMR插槽的modem?

[复制链接]
发表于 2003-2-5 20:04:35 | 显示全部楼层 |阅读模式
我的modem是amr插槽的。驱动程序我有但是他的安装说明我看不懂(英语水平太差了)。有哪位老兄给我解释一下它的安装说明。有哪位也是用的这种蹩脚modem啊?
The modem is a SmartLink HAMR5600 modem, which is in an AMR slot.
You are going to need SuSE's 2.4.4 released kernel. For 7.2, this is one of the choices during installation. For 7.1, it can be found in the update directory

ftp://ftp.suse.com/pub/suse/i386/update/7.1/kernel/2.4.4/
(or look at some mirror)
and is called k_deflt-2.4.4-28.i386.rpm.
The drivers can be found here or here. (They were accessible from ftp://ftp.smlink.com/pub/linux, but have been removed from there. Thanks to Martin Kubisch for letting me know.) You need the package slmdm-2.03-01_linux_2.4.4.src.rpm (Webmaster note: source- & binary-RPMs are both available). Just download and run

rpm --rebuild slmdm-2.03-01_linux_2.4.4.src.rpm
This builds the following binary rpms in /usr/src/packages/RPMS/i386:
slmdm-2.03-01_linux_2.4.4.i386.rpm
slmdm-amr-2.03-01_linux_2.4.4.i386.rpm
slmdm-usb-2.03-01_linux_2.4.4.i386.rpm
You need to install only the first two of them (the built-in modem is amr, not usb. The usb and the amr packages cannot be installed simultanously.)
The modules can be inserted by hand running /usr/lib/slmdm/load_slmdm. This script needs to modified, beacuse the drivers are compiled for 2.4.4, while SuSE kernel has version 2.4.4-4GB. Therefore, insmod must be forced to insert them. This can be achieved by changing the line

MODPROBE="insmod"
in /usr/lib/slmdm/load_slmdm to
MODPROBE="insmod -f  -s"
(-f forces insertion, -s sends the warnings to the system log instead of your screen).

There are no unresolved symbols or similar problems: the modules are inserted and work without problems.
After insertion, /dev/modem will be a symbolic link to the modem device /dev/slmdm. You can configure your applications to use /dev/modem (which is the default in many cases, so you actually do not have to do anything at all).

I wrote a little script slmdm to start/stop the drivers using init during booting and halting the system. You can copy it to /etc/init.d and then use the SySV init editor to configure start/stop at the appropriate runlevels.

Note: in my experience, the modem driver works well for dialing out. However, when used in connection with mgetty for dialing in, it hangs the machine (and then only the power button helps :-(). I am working on finding out the reason for that (it seems that mgetty does not initialize the modem properly). In any case, the driver is suitable to connect e.g. to your internet service provider (which is the most likely application anyway) or to send faxes. Please drop me a mail if you find a solution to this problem.
发表于 2003-2-5 22:41:24 | 显示全部楼层
慢慢啃吧,如果你这各readme都啃不下来,玩linux就有的苦了     
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-17 11:39 , Processed in 0.039461 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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