LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problems installing modem in RH 9 (https://www.linuxquestions.org/questions/linux-newbie-8/problems-installing-modem-in-rh-9-a-366023/)

eisen6615 09-22-2005 02:36 PM

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 "

koodoo 09-22-2005 05:22 PM

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.

eisen6615 09-22-2005 06:33 PM

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.

kirtimaan_bkn 09-23-2005 02:10 AM

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.


All times are GMT -5. The time now is 07:00 PM.