Click to See Complete Forum and Search --> : Modem driver installation in mandrake 9.2


saurya_s
11-24-2003, 06:34 AM
Hi all
I found out a linux driver for my modem namley HAMR56.
Here are the instructions


Smart Link Ltd.
http://www.smlink.com
Apr 12, 2002
Smart Link Soft Modem for Linux
-------------------------------
Introduction
============

This is Smart Link Soft Modem for Linux version 2.X. It provides
full-featured 56K Voice Fax Modem.
Features
========
Modem: V.92, V.90, V.34, V.32bis, V.23, V.22, V.21, Bell 103/212.
Flow control: V.42, MNP 2-4.
Compression: V.44, V.42bis, MNP5.
Fax: Class 1.
Voice: ADPCM voice compression, Digital Answering Machine.
Requirements
============
CPU: Intel Pentium II, Celron. AMD K6, Cyrix 400MHz or higher.
Memory: 64MB (may work also with 32MB).
OS: Linux 2.4 series.
Supported Hardware
==================
HAMR5600 based AMR/CNR/MDC/ACR modem cards on the following Southbridge chips:
- Intel ICH0, ICH2
- Via 686A, 686B, 8231, 8233
- SiS 630
- ALI 1535.
SmartPCI56/561/562/563 based PCI modem cards.
SmartUSB56 based USB modem.
Installation
============
1. Unpack tar.gz package file:
$ gzip -dc slmdm-2.X.X.tar.gz | tar xf -

2. 'cd' to package directory:

$ cd slmdm-2.X.X

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

Note: Probably you will want to correct in Makefile path to your
local linux kernel header files:

KERNEL_INCLUDES=/path/to/linux/include

Another way is to pass command line the parameter while
running 'make':

$ make KERNEL_INCLUDES=/path/to/linux/include ...

4. Run 'make' command to compile package:

$ make

5. Install.
If you are going to use AMR/CNR/PCI modem type (as superuser):
# make install-amr
, or

# make install-usb

if you are going to use USB modem.

It will install:
- modem kernel modules slmdm.o (modem core), slfax.o (fax)
into '/lib/modules/<kernel-version>/misc' directory
(standard linux modules' directory).
- hardware specific kernel module slamrmo.o (for AMR/CNR/PCI) or
slusb.o (for USB) into '/lib/modules/<kernel-version>/misc'
directory (standard linux modules' directory).
- country settings data file 'country.dat' into directory '/etc'.

Also it will:
- create character tty device entry '/dev/ttySL0' with major
number 212 and symbolic link 'dev/modem'.
- config you '/etc/modules.conf' file in order to provide
possibility for loading the modem modules into kernel on demand
automatically by kmod, when you are going to use them.

Note: currently you cannot use both AMR/CNR/PCI and USB Modems.

6. Config modem country.

You can configure your current country by using module parameters
'country' or 'country_code'.
Add 'options' directive line to file '/etc/modules.conf':

options slmdm country=<MyCountry>

, for example

options slmdm country=USA

, or use module parameter while module loading:

# modprobe slmdm country=<MyCountry>

Use 'slver -c' to see list of all supported countries and their
codes (utility 'slver' may be found in package directory).

Note: Command ATI7 shows installed country setting.

7. Using the modem.

Installation will automatically create character tty device entry
'/dev/ttySL0' with major number 212 and symbolic link '/dev/modem'.
Use one of them as modem device for your dialing application.

8. Uninstallation.

In package directory just type:

# make uninstall




Now when I run make, I get this error message-

make
gcc -Wall -O3 -fomit-frame-pointer -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -I. -I/usr/src/linux/include -DMODVERSIONS --include /usr/src/linux/include/linux/modversions.h -o amrmo_init.o -c amrmo_init.c
make: gcc: Command not found
make: *** [amrmo_init.o] Error 127

What I need to correct? What needs to be edited on Makefile. I haven't edited anything but just unpacked and run make which gave the error message. There is no ./configure either.
Many thanks for your help.

deathadder
11-24-2003, 09:10 AM
make: gcc: Command not found

this is telling you that you dont have gcc installed, which is used to compile software, you're going to have to install it, it should be on one of your install disk, if not you can grab a it from the net, ofcourse you'll need the rpm or deb and not the .tar.gz :)

saurya_s
11-24-2003, 11:01 AM
Hi there
I could not find the gcc in the CDs, of mandrake 9.2. Is it normal or am I making some silly mistake.
I found an rpm for it and run the rpm -ivh command and I got output like this

root@sauryalap Documents]# rpm -ivh gcc-3.2.2-3mdk.i586.rpm
error: Failed dependencies:
binutils >= 2.13.90.0.16-1mdk is needed by gcc-3.2.2-3mdk
gcc-cpp = 3.2.2-3mdk is needed by gcc-3.2.2-3mdk
glibc-devel >= 2.2.5-14mdk is needed by gcc-3.2.2-3mdk

What is the difference between src.rpm and normal rpm,When one downloads what does one look for?
Thanks
SS

deathadder
11-24-2003, 11:40 AM
you could look at the development stuff on your cd's it'll be in there failing that have a look at these from rpmfind.net

binutils (http://rpmfind.net/linux/rpm2html/search.php?query=binutils&submit=Search+...)

gcc-cpp (http://rpmfind.net/linux/rpm2html/search.php?query=gcc-cpp)

glibc-devel (http://rpmfind.net/linux/rpm2html/search.php?query=glibc-devel+&submit=Search+...&system=&arch=)

also a .rpm is a precompiled binary that you can just install on your computer while a src.rpm is the source code that you can install from, similiar to a .tar.gz i believe

also when downloadin a rpm in the name it will have the type of machine its built for i386,i686, etc you should get one the same as your computer also if its says it take a note of any dependencies(sp?)

personally i'd suggest that you look at apt-get, with it you simply need to type apt-get install binutils for instance and it'll will do it and any dependencies, however it tends to get the stuff from either cd or the net so if you have a slow connection it might not be that great :)