LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-22-2005, 03:36 PM   #1
eisen6615
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Rep: Reputation: 0
Question Problems installing modem in RH 9


Hello. I am unable to install the drivers for my Smartlink internal PCI 56k modem.
I am using redhat 9 with 2.4 kernel.

I extracted the file "slmodem-2.9.10.tar.gz" in the temp directory, entered into the "slmodem-2.9.10" directory and opened a new terminal and followied the instructions from the Readme file, all worked fine until I got to make install-amr
I got this

[root@localhost slmodem-2.9.10]# make install-amr
make: *** No rule to make target `install-amr'. Stop.

Now would someone be able to point out what I'm doing wrong or point me in the right direction?
The readme and the makefile have me mystified.
(the make file, )

here is the installation part from the README

*******************************************
Smart Link Ltd.

Sep 30, 2003


Smart Link Soft Modem for Linux
-------------------------------

Installation
============

1. Unpack tar.gz package file:

$ gzip -dc slmodem-2.9.X.tar.gz | tar xf -

2. 'cd' to package directory:

$ cd slmodem-2.9.X

3. Review and edit 'Makefile' (if need):

In many cases you will need to correct path to your local kernel
source tree:

KERNEL_DIR=/path/to/linux

Default KERNEL_DIR is '/lib/modules/<kerne-version>/build'. Many Linux
Distributions use directory '/usr/src/linux-<version>' also.

Note: If you are using Linux kernel 2.4, only header files should be

available for build in $(KERNEL_DIR)/include

Another way to pass right value KERNEL_DIR is to use command line
parameter while running 'make':

$ make KERNEL_DIR=/path/to/linux ...

4. Run 'make' command to compile package:

$ make

5. Install. As 'root' user run:

# make install

It will install:

- application 'slmodemd' under '/usr/sbin' directory

- hardware specific drivers (kernel modules) 'slamr' and 'slusb'
under conventional kernel modules directory

- character device nodes '/dev/slamr0-3' with major number 212
(for pci modems) and '/dev/slusb0-3' with major number 213
(for usb modems).

- config modules for autoloading (by editing file '/etc/modules.conf')
(only with 2.4 kernels)

6. Config modem country.

Use AT+GCI=<T.35 country code> command to setup country.

Also you can setup default modem country by passing command line
parameter '--country=MY_COUNTRY' to program 'slmodemd'.

See output of 'slmodemd --countrylist' for a list of supported
country names and T.35 country codes (see also 'slmodemd --help').

Note: Command ATI7 shows currently installed country setting.

8. Uninstallation.

In package directory just type:

# make uninstall


Getting Started
===============

After successful installation and configuration:

1. Load modem driver.

Load your modem hardware specific kernel module:

# modprobe slamr

if you are using AMR/CNR/PCI modem, or

# modprobe slusb

if you are using SmartUSB56 Modem.

Note: this will be done automatically when modules were
configured for 'loading on demand'


Note: this is safe to load both 'alamr' and 'slusb' modules.

2. Run soft modem application.

# /usr/sbin/slmodemd [options] <device_name>

Where device name is appropriate device node for your modem
(look at output of 'dmesg' command).
Run '/usr/sbin/slmodemd --help' for details.

Examples:

# /usr/sbin/slmodemd --country=USA /dev/slamr0

, or for SmartUSB56 Modems:

# /usr/sbin/slmodemd --country=ITALY /dev/slusb0

3. Using the modem.

When 'slmodemd' is running this creates PTY (pseudo-terminal) to
emulate modem port device, also this creates symbolic link
like '/dev/ttySL0' (shown at startup).

Config your application to use this link '/dev/ttySL0' (or PTY node
itself) as modem port.

Note: Some application want 'to know' that they are working with
pseudo-terminal and may require additional configurations.

Known application notes:

- 'wvdial' requires option 'Carrier Check = no' in config file

- some versions of 'kppp' may not work properly with devices named
like '/dev/ttySL0'. To workaround this you may create symbolic link
'/dev/modem' ( # ln -s /dev/ttySL0 /dev/modem ) and use this link
as modem device with 'kppp'
**********************************************************

The make file-

###########################################################################
#
#
# Makefile -- modem Makefile.
#
# Copyright(c) 2003, Smart Link Ltd.
# All rights reserved.
#
# Author: Sasha K
#
#
###########################################################################
#

###########################################################################

KERNEL_DIR:=/lib/modules/$(shell uname -r)/build

# tools
INSTALL:=install

all: modem
#all: modem drivers

modem:
$(MAKE) -C $@ all

install: all install-drivers
$(INSTALL) -D -m 755 modem/slmodemd ${DESTDIR}/usr/sbin/slmodemd
$(RM) -rf ${DESTDIR}/var/lib/slmodem
$(INSTALL) -d -D -m 755 ${DESTDIR}/var/lib/slmodem

uninstall: uninstall-drivers
$(RM) ${DESTDIR}/usr/sbin/slmodemd
$(RM) -rf ${DESTDIR}/var/lib/slmodem

drivers:
$(MAKE) -C drivers KERNEL_DIR=$(KERNEL_DIR)

install-drivers: drivers
$(MAKE) install -C drivers KERNEL_DIR=$(KERNEL_DIR)
uninstall-drivers:
$(MAKE) uninstall -C drivers KERNEL_DIR=$(KERNEL_DIR)

# misc rules
sub-dirs:= modem drivers
.PHONY: $(sub-dirs) all old clean dep install
clean dep: %: %-sub-dirs
%-sub-dirs:
$(foreach dir,$(sub-dirs),$(MAKE) -C $(dir) $(patsubst %-sub-dirs,%,$@) && ) echo "done."
--------------------------------------------------------------
I don't no where the linux header files are, I have installed the kernel source. what path do I put in the " KERNEL_DIR:= in the make file "
 
Old 09-22-2005, 06:22 PM   #2
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Rep: Reputation: 32
Quote:
[root@localhost slmodem-2.9.10]# make install-amr
make: *** No rule to make target `install-amr'. Stop.
Why did you try make install-amr ?
Did you try :

Code:
[root@localhost slmodem-2.9.10]#make
and then, 
[root@localhost slmodem-2.9.10]#make install
By default it is using KERNEL_DIR:=/lib/modules/$(shell uname -r)/build
If the above commands do not work try something like :

Code:
[root@localhost slmodem-2.9.10]#make  KERNEL_DIR=/usr/src/linux-<version>
and then, 
[root@localhost slmodem-2.9.10]#make install
You can find your kernel version by typing the command uname -r in a terminal. Suppose if your kernel version comes out to be 2.4.6 the commands in the second case would be :
Code:
[root@localhost slmodem-2.9.10]#make  KERNEL_DIR=/usr/src/linux-2.4.6
and then, 
[root@localhost slmodem-2.9.10]#make install
Hope this helps.
 
Old 09-22-2005, 07:33 PM   #3
eisen6615
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Original Poster
Rep: Reputation: 0
It worked, the driver installation was a sucess. BUT...

...when I was setting my country code, I got an error saying the device is busy. I typed exit and opened the Kppp.

it said the device is busy in kpp too using /dev/ttySL0 in kppp setup.
 
Old 09-23-2005, 03:10 AM   #4
kirtimaan_bkn
Member
 
Registered: Aug 2004
Location: INDIA
Distribution: Various Distros
Posts: 203

Rep: Reputation: 31
Hello eisen6615,

I think you will need to make a link /dev/modem for your modem. Try this as root.

ln /dev/ttySL0 /dev/modem

And the setup your modem device in kppp to /dev/modem instead of ttySL0. then try to Query Modem.

This worked for me when I was using RH9 with my Philips chipset Internal Modem.

Thanks,
Kirtimaan.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems Installing the modem on RedHat 9 terabit Linux - Hardware 1 11-15-2004 02:15 PM
Problems Installing drivers for an Internal conexant modem Agent M Linux - Hardware 3 05-30-2004 03:07 AM
module problems installing hsf modem cornfed Linux - Hardware 1 05-02-2004 12:45 PM
Problems installing a intel modem.... Senzorr Linux - Hardware 12 11-21-2003 07:38 PM
Problems installing a Modem Plse Heeeelp sicasal Linux - Hardware 3 07-28-2003 04:44 PM


All times are GMT -5. The time now is 10:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration