LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mandrake 9.1 Installing drivers (https://www.linuxquestions.org/questions/linux-newbie-8/mandrake-9-1-installing-drivers-110922/)

comradesniper 10-31-2003 04:21 PM

Mandrake 9.1 Installing drivers
 
I have Mandrake Linux 9.1, and a Lucent Tech winmodem. i have found out that the drivers i need for this particular modem are the SLMDM-2.7.10 drivers, in slmdm-2.7.10.tar.gz

I have tried the first installation method (In the README) but this wont work. so, i have opted for the simpler .rpm install.

First, i had the problem of a directory missing, but i created it. now, it says i havnt got permission when i try the first .rpm

This is from this section of the README:

Using RPM
=========

1. Build SRPM and RPM from tar.gz package:

In order to build RPM and SRPM run command:

# rpm -ta slmdm-2.X.X.tar.gz


(If its important, im dual booting with Win XP home)

Mara 10-31-2003 04:34 PM

Where do you get the error message exactly? When you run the rpm command? If so, are you running it as root? If not, use
su
(enter root password when asked)
command

comradesniper 10-31-2003 04:36 PM

yup, just after i type rpm -ta slmdm-2.7.10.tar.gz

I have tried in root, yes.

comradesniper 10-31-2003 05:30 PM

ok, im going back into Mandrake to try again (Im using XP at the mo)

Ill be baaaack!

comradesniper 10-31-2003 09:11 PM

no luck! :(

heres all the text entered and displayed in the console, directly copied/pasted:

[comradesniper@localhost comradesniper]$ cd Desktop
[comradesniper@localhost Desktop]$ gzip -dc slmdm-2.7.10.tar.gz | tar xf -
[comradesniper@localhost slmdm-2.7.10]$ cd ..
[comradesniper@localhost Desktop]$ rpm -ta slmdm-2.7.10.tar.gz
/usr/lib/rpm/rpmb: No such file or directory
[comradesniper@localhost Desktop]$ su
Password:
[root@localhost Desktop]# cd /usr/lib/rpm/
[root@localhost rpm]# mkdir rpmb
[root@localhost /]# cd /home/comradesniper/Desktop
[root@localhost Desktop]# rpm -ta slmdm-2.7.10.tar.gz
/usr/lib/rpm/rpmb: Permission denied
[root@localhost Desktop]#


I took out the ls commands and some other stuff. if you require the whole lot, then just ask.

comradesniper 11-01-2003 12:16 PM

wow, even you dont know!

ive tried reinstalling Mandrake, still no luck. :(

comradesniper 11-01-2003 01:07 PM

in summary,

I get this in the console when i try to install this driver (slmdm-2.7.10.tar.gz), using te .rpm install method:

Quote:

[comradesniper@localhost comradesniper]$ cd Desktop
[comradesniper@localhost Desktop]$ gzip -dc slmdm-2.7.10.tar.gz | tar xf -
[comradesniper@localhost slmdm-2.7.10]$ cd ..
[comradesniper@localhost Desktop]$ rpm -ta slmdm-2.7.10.tar.gz
/usr/lib/rpm/rpmb: No such file or directory
[comradesniper@localhost Desktop]$ su
Password:
[root@localhost Desktop]# cd /usr/lib/rpm/
[root@localhost rpm]# mkdir rpmb
[root@localhost /]# cd /home/comradesniper/Desktop
[root@localhost Desktop]# rpm -ta slmdm-2.7.10.tar.gz
/usr/lib/rpm/rpmb: Permission denied
[root@localhost Desktop]#
i have tried reintalling the OS, no joy. the other install method is as clear as mud, TBQH.

help please? :(

comradesniper 11-01-2003 10:04 PM

so nothing then? no suggestions? no long-shots? no possibilities? just give up? :(

dalek 11-01-2003 10:37 PM

after you unzip it using the gzip command, do a ls, that is a small L. See if it is there. It should be a directory with the same name. If not, you may need to untar it as well. The command should be

Code:

tar -xvf <filename>
That will create a directory that you can cd into and run the command.

Hope that helps.

:D :D :D

Little info here. When a file ends in .tar.gz, you have to start with the very last part of the file. Gzip will take off the gz. Tar -xvf will take off the .tar and put it in a new directory. Then you have a directory with the original files.

The tar part takes a bunch of files and/or directories and makes one big file. The gz compresses them to make them smaller.

Make sense? :scratch:

comradesniper 11-01-2003 11:02 PM

straight from the horses mouth (or the consoles, i suppose)

[comradesniper@localhost comradesniper]$ rpm -ta slmdm-2.7.10
/usr/lib/rpm/rpmb: Permission denied
[comradesniper@localhost comradesniper]$ su
Password:
[root@localhost comradesniper]# rpm -ta slmdm-2.7.10
/usr/lib/rpm/rpmb: Permission denied
[root@localhost comradesniper]#

dalek 11-02-2003 12:35 AM

I remember trying to figure that out. Then I started typing a command and doing a 'ls' to see what changed. Even then it took a while.

I hope that helps him a bit though. Switching from windoze is tuff. I started on Linux and don't care much for windoze so I don't have to relearn everything.

Later

:D :D :D

nightjar 11-02-2003 12:59 AM

what happen if you try this:?

be root
go to the dir where the slmdm-2.X.X.tar.gz is.
If you don't find try with locate or slocate. Previous you must use updatedb command

Type rpm -ta slmdm-2.X.X.tar.gz

What is the result?

comradesniper 11-02-2003 08:12 AM

it tries to extract to /usr/lib/rpm/rpmb (Which dosent exist)

I try making the directory using mkdir, which works ok,
but then when i extract it, it says permission denied.:confused: :confused:

comradesniper 11-02-2003 10:19 AM

The path of my life is strewn with cowpats from the devils own satanic herd.

Im trying the 1st installation option (Makefile)

when i try and compile the makefile, i get this:

Quote:

[comradesniper@localhost slmdm-2.7.10]$ make
gcc -Wall -O3 -fomit-frame-pointer -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -I. -I/usr/include -DMODVERSIONS --include /usr/include/linux/modversions.h -o amrmo_init.o -c amrmo_init.c
make: gcc: Command not found
make: *** [amrmo_init.o] Error 127
[comradesniper@localhost slmdm-2.7.10]$
i had to change somthing in the makefile to point to my Kernel Includes, i used /usr/include
Is this right for Mand 9.1?

In case you need it, heres the whole frikin readme...

Quote:

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


Using RPM
=========

1. Build SRPM and RPM from tar.gz package:

In order to build RPM and SRPM run command:

# rpm -ta slmdm-2.X.X.tar.gz

It will build in your RPM directory:
- slmdm-2.X.X-Y.src.rpm - Source SRPM package
- slmdm-2.X.X-Y.i386.rpm - Core Modem RPM package
- slmdm-amr-2.X.X-Y.i386.rpm - AMR/CNR/PCI Modem driver
- slmdm-usb-2.X.X-Y.i386.rpm - USB Modem driver

2. Install

To install Modem core package run:

# rpm -i /path/to/slmdm-2.X.X-Y.i386.rpm

To install Modem hw driver run:

# rpm -i /path/to/slmdm-amr-2.X.X-Y.i386.rpm

if you are going to use AMR/CNR/PCI Modem, or

# rpm -i /path/to/slmdm-usb-2.X.X-Y.i386.rpm

if you are going to use SmartUSB56 Modem.

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

3. Uninstall.

# rpm -e slmdm slmdm-<amr|usb>


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

After successful installation and configuration modules will be loaded on
demand if you are using 'kmod' in linux kernel.

Also you can load modules by hand:

# modprobe slamrmo

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

# modprobe slusb

if you are using SmartUSB56 Modem.


Troubleshooting
===============

If you get an error message during installation/configuration or loading
the modules try to see it in FAQ file.

Please report the problem to your modem provider or to us
(support@smlink.com).


Customization
=============

Look at 'editme.c' file in package directory.


Feedback
========

Please send any feedbacks to Smart Link. See the Smart Link
web site for contact information (www.smlink.com) or to
support@smlink.com.
and heres my makefile:

Quote:

###########################################################################
#
#
# Makefile -- Smart Link Soft Modem product Makefile.
#
# Copyright (C) 2001
# Smart Link Ltd. (www.smlink.com)
#
# Author: Sasha K (sashak@smlink.com)
#
#
###########################################################################
#
###########################################################################


# Tools
CC := gcc
LD := ld
INSTALL := install
DEPMOD := /sbin/depmod
MODPROBE:= /sbin/modprobe
RM := rm
LN := ln
SED := sed
GREP := grep
CP := cp
MKNOD := mknod

# debug mode options /* off */
# DEBUG:=0
-include debug.mk

# Definitions
MODULES_DIR = /lib/modules/$(shell ./kernel-ver)/misc
MODEM_DEV := ttySL0
MODEM_LINK := modem
MODULES_CONF:= /etc/modules.conf

# Path to your kernel's includes
ifndef KERNEL_INCLUDES
KERNEL_INCLUDES:= /usr/include
endif

INCLUDES := -I. -I$(KERNEL_INCLUDES)

ifndef MODVERSIONS_FLAGS
MODVERSIONS_FLAGS= -DMODVERSIONS --include $(KERNEL_INCLUDES)/linux/modversions.h
endif


# C FLAGS
CFLAGS:= -Wall -O3 -fomit-frame-pointer -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB $(INCLUDES) $(MODVERSIONS_FLAGS)
#CFLAGS:= -Wall -O3 -fomit-frame-pointer -DMODEM_DEBUG=$(DEBUG) -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB $(INCLUDES) $(MODVERSIONS_FLAGS)
ifdef DEBUG
CFLAGS += -DMODEM_DEBUG=$(DEBUG)
endif
LFLAGS=

SLMDM := slmdm.o
SLAMR := slamrmo.o
SLUSB := slusb.o
SLFAX := slfax.o

ALL_MODULES := $(SLAMR) $(SLUSB) $(SLMDM) $(SLFAX)
ALL_TARGETS := $(ALL_MODULES)

SLAMR_OBJ := amrmo.o
SLUSB_OBJ := usb.o
SLMDM_OBJ := mdm.o
SLFAX_OBJ := fax.o

MDM_OBJS := mdm_init.o mdm_sltty.o mdm_params.o
FAX_OBJS := fax_init.o
AMR_OBJS := amrmo_init.o
USB_OBJS := usb_st7554.o
CUSTOM_OBJ := editme.o
SYSDEP_OBJ := sysdep.o
SYSDEP_LINUX_OBJ:= sysdep_linux.o
SYSDEP_PCI_OBJ := sysdep_pci.o


all: $(ALL_TARGETS) kernel-ver

$(SLAMR): $(SLAMR_OBJ) $(AMR_OBJS) $(SYSDEP_PCI_OBJ)
$(SLUSB): $(SLUSB_OBJ) $(USB_OBJS)
$(SLMDM): $(SLMDM_OBJ) $(MDM_OBJS) $(CUSTOM_OBJ) $(SYSDEP_OBJ) $(SYSDEP_LINUX_OBJ)
$(SLFAX): $(SLFAX_OBJ) $(FAX_OBJS)

$(ALL_MODULES):
$(LD) -r -o $@ $^

kernel-ver: kernel-ver.o

install-amr: install config-amr
install-usb: install config-usb

install: kernel-ver all
$(INSTALL) -D -m 644 slmdm.o $(prefix_dir)/$(MODULES_DIR)/slmdm.o
$(INSTALL) -D -m 644 slfax.o $(prefix_dir)/$(MODULES_DIR)/slfax.o
$(INSTALL) -D -m 644 slamrmo.o $(prefix_dir)/$(MODULES_DIR)/slamrmo.o
$(INSTALL) -D -m 644 slusb.o $(prefix_dir)/$(MODULES_DIR)/slusb.o
$(INSTALL) -D -m 755 country.dat $(prefix_dir)/etc/country.dat
$(INSTALL) -d $(prefix_dir)/dev
$(RM) -f $(prefix_dir)/dev/$(MODEM_DEV)
$(MKNOD) -m 666 $(prefix_dir)/dev/$(MODEM_DEV) c 212 0
$(LN) -sf ./$(MODEM_DEV) $(prefix_dir)/dev/$(MODEM_LINK)

uninstall: kernel-ver cleanup-config unload-modules
$(RM) -f $(prefix_dir)/$(MODULES_DIR)/slmdm.o
$(RM) -f $(prefix_dir)/$(MODULES_DIR)/slfax.o
$(RM) -f $(prefix_dir)/$(MODULES_DIR)/slamrmo.o
$(RM) -f $(prefix_dir)/$(MODULES_DIR)/slusb.o
$(RM) -f $(prefix_dir)/etc/country.dat
$(RM) -f $(prefix_dir)/var/lib/slmdm.data
$(RM) -f $(prefix_dir)/dev/$(MODEM_DEV)
$(RM) -f $(prefix_dir)/dev/$(MODEM_LINK)

config-usb: config
$(CP) $(MODULES_CONF) $(MODULES_CONF).slmdm && \
$(SED) -e 's/^alias slmodem .*$$/alias slmodem slusb/' $(MODULES_CONF).slmdm > $(MODULES_CONF)
-$(DEPMOD) -a

config-amr: config
$(CP) $(MODULES_CONF) $(MODULES_CONF)\.slmdm && \
$(SED) -e 's/^alias slmodem .*$$/alias slmodem slamrmo/' $(MODULES_CONF).slmdm > $(MODULES_CONF)
-$(DEPMOD) -a

config: cleanup-config
-$(CP) $(MODULES_CONF) $(MODULES_CONF).slmdm
echo 'alias char-major-212 slmodem' >> $(MODULES_CONF)
echo 'alias slmodem off' >> $(MODULES_CONF)

cleanup-config: unload-modules
-$(CP) $(MODULES_CONF) $(MODULES_CONF).slmdm && \
$(GREP) -v 'slmodem' $(MODULES_CONF).slmdm > $(MODULES_CONF)
-$(DEPMOD) -a

unload-modules:
-$(MODPROBE) -r slusb
-$(MODPROBE) -r slamrmo
-$(MODPROBE) -r slfax
-$(MODPROBE) -r slmdm

spec-file-lists: slmdm.modules slamr.modules slusb.modules

%.modules: kernel-ver
@echo "build modules list spec file $@..."
$(SED) -e 's/%modules_dir/$(subst /,\/,$(MODULES_DIR))/' $@-dist > $@

clean:
$(RM) -f $(ALL_TARGETS) $(MDM_OBJS) $(FAX_OBJS) $(AMR_OBJS) $(USB_OBJS) $(CUSTOM_OBJ) $(SYSDEP_OBJ) $(SYSDEP_LINUX_OBJ) $(SYSDEP_PCI_OBJ) kernel-ver kernel-ver.o
$(RM) -f *.modules

%.o: %.c
$(CC) $(CFLAGS) -o $@ -c $<

dep:
$(CC) -M -c $(CFLAGS) *.c > .depend
-include .depend


nightjar 11-02-2003 12:07 PM

Take a look here:
http://www.heby.de/ltmodem

At the bottom of the page, you'll find the sources of the drivers

Tell me if its works :)


All times are GMT -5. The time now is 08:03 AM.