PDA

Visualizza la versione completa : Installare DRIVER per modem


Sechi Paolo
30-09-2003, 07:14
Salve ragazzi. Ho scaricato dal sito di http://www.atlantisland.it/ il driver per il mio modem WebRunner PCI V.90/V.92 (cod.A01-PP1) (http://www.atlantisland.it/ws/articolo.asp?id=1&idsub=1&iditem=4).

Ho cercato di leggere il file README e di fare l'installazione da solo.

Dunque, dice che l'installazione si fa così:


3. INSTALLATION

Prerequisites:

1. root access
2. bash shell to run install scripts
3. a 536EP modem
4. KERNEL SOURCE HEADERS FOR THE KERNEL YOU ARE RUNNING

(found on your distribution's CD)

6 steps to install

1. login as ROOT
2. extract the archive into a directory with "tar -zxvf <archivename>.tgz"
3. cd into the directory it created.
4. Type: make clean
5. Type: make 536ep
6. Type: make install-536ep

The installation script has been designed for the following distributions
release versions

mandrake-release
SuSE-release
redhat-release
debian_version (including Corel)
slackware-version
conectiva-version
bluepoint-release
Unknown distributions install modules and utilities but
will not install boot scripts!.

Please examine the 536ep-inst script if you have a different distribution.

The driver is split in two. A serial driver and core driver.
The core driver must be loaded first since the serial driver depends on it.
The serial driver registers itself as character device major number 240, minor number 1.
The serial driver takes one argument right now, which is a number to override the default major number if you need to.

ATTENTION: if the driver compiles but the script just wont work for you.
Here are the bare minimum steps to get your modem to work.

0

. log in as root.

1. insmod -f 536epcore.o
2. insmod -f 536ep.o
2a. you can start "hamregistry" at this point if you wish.
3. rm /dev/536ep
4. mknod /dev/536ep c 240 1 (note "240" is the default, if it does not work see what /proc/devices says 536ep's major number is)
5. ln -s /dev/536ep /dev/modem
6. start a comm application like minicom and use the modem.
7. see section 3 (International Users) for info on setting the correct country settings.

Ecco cos'ho fatto io:

[root@Paolo modem]# make clean
cd coredrv; make clean
make[1]: Entering directory `/modem/coredrv'
rm -f *.o *~ core
make[1]: Leaving directory `/modem/coredrv'
cd serialdrv; make clean
make[1]: Entering directory `/modem/serialdrv'
rm -f *.o *~ core
make[1]: Leaving directory `/modem/serialdrv'
rm -f *.o
rm -f *.o
[root@Paolo modem]# make 536ep
if [ -a /boot/vmlinuz.version.h ]; then \
cp /boot/vmlinuz.version.h /lib/modules/`uname -r`/build/include/linux/version.h; fi
cd coredrv; make \
"PSTN_DEF=-DTARGET_SELAH -DTARGET_LINUX -DLINUX" \
536ep;
make[1]: Entering directory `/modem/coredrv'
cc -DTARGET_SELAH -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I../inc -c -o coredrv.o coredrv.c
cc -DTARGET_SELAH -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I../inc -c -o clmmain.o clmmain.c
cc -DTARGET_SELAH -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I../inc -c -o rts.o rts.c
cc -DTARGET_SELAH -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I../inc -c -o task.o task.c
cc -DTARGET_SELAH -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I../inc -c -o uart.o uart.c
uart.c: In function `UART_dte_to_char':
uart.c:630: warning: operation on `uart_rx_put_index' may be undefined
uart.c: In function `UART_dce_to_char':
uart.c:672: warning: operation on `uart_tx_put_index' may be undefined
uart.c: In function `UART_dce_from_char':
uart.c:710: warning: operation on `uart_tx_get_index' may be undefined
uart.c: In function `UART_dte_from_char':
uart.c:755: warning: operation on `uart_rx_get_index' may be undefined
cc -DTARGET_SELAH -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I../inc -c -o wwh_dflt.o wwh_dflt.c
ld -r coredrv.o clmmain.o rts.o task.o uart.o wwh_dflt.o 536epcore.lib -o 536epcore.o
make[1]: Leaving directory `/modem/coredrv'
cp coredrv/536epcore.o .
cd serialdrv; make \
"PSTN_DEF=-DTARGET_SELAH -DTARGET_LINUX -DLINUX" \
536ep;
make[1]: Entering directory `/modem/serialdrv'
cc -DTARGET_SELAH -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -c -o clmdrvr.o clmdrvr.c
clmdrvr.c:277: warning: static declaration for `rs_init' follows non-static
clmdrvr.c:398:22: warning: multi-line string literals are deprecated
clmdrvr.c: In function `rs_open':
clmdrvr.c:363: warning: unused variable `retval'
ld -r clmdrvr.o -o 536ep.o
make[1]: Leaving directory `/modem/serialdrv'
cp serialdrv/536ep.o .
[root@Paolo modem]# make install-536ep
bash 536ep-inst
: command not found
: command not found:
running kernel 2.4.19-16mdk
: command not found:
'36ep-inst: line 38: syntax error near unexpected token `in
'36ep-inst: line 38: `case $KERNVER in
make: *** [install-536ep] Error 2
[root@Paolo modem]#

Insomma, mi sono bloccato lì, come mai? perchè mi da quest'errore?

Grazie

Grazie :ciauz:

Sechi Paolo
30-09-2003, 14:39
allora, sono riuscito ad andar eun pò avanti.
Ho digitato make install-536ep e mi ha segnalato quest'errore:


[root@Paolo modem]# make install-536ep
bash 536ep-inst
running kernel 2.4.19-16mdk
installing hamregistry, used for persistant storage
installing 536EP module
installing 536ep core module
mandrake 536ep-boot script
starting module and utilities
error loading 536ep
done
[root@Paolo modem]#

Il file incriminato è 536ep-boot che sarebbe questo:


#!/bin/sh
#************************************************* *********************************
# Copyright (c) 1999-2000, Intel Corporation
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# 3. Neither the name of Intel Corporation nor the names of its contributors
# may be used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
#************************************************* **********************************

#
#if [ -a /etc/rc.d/init.d/functions && -a /etc/redhat-release ]; then
#{
# . /etc/rc.d/init.d/functions
#}
#

serial="536ep"
core="536epcore"
device="536ep"
group="root"
mode="664"

if [ -a /etc/SuSE-release ]; then
{
group="dialout"
}
fi

case "$1" in
start | b)
rm -f /dev/$device
if ! ( /sbin/insmod -f $core 1>/dev/null 2>/dev/null ); then
{
echo error loading $core
exit 1
}
fi

if ! ( /sbin/insmod -f $serial 1>/dev/null 2>/dev/null ); then
{
echo error loading $serial
/sbin/rmmod $core
exit 1
}
fi
major=`cat /proc/devices | awk "\\$2==\"$serial\" {print \\$1}"`
mknod /dev/$device c $major 1 1> /dev/null 2> /dev/null
chgrp $group /dev/$device
chmod $mode /dev/$device
ln -sf /dev/$device /dev/modem 1> /dev/null 2> /dev/null
if ! ps -C hamregistry 1> /dev/null 2> /dev/null; then
{
if ! ( /usr/sbin/hamregistry 2> /dev/null 1> /dev/null & ); then
{
echo "hamregistry could not start."
echo "please see international users secion in readme.txt for more info."
}
fi
}
fi
exit 0
;;
stop)
/sbin/rmmod $serial 1> /dev/null 2> /dev/null
/sbin/rmmod $core 1> /dev/null 2> /dev/null
;;
restart | reload)
/bin/bash "$0" stop
/bin/bash "$0" start
exit 0
;;
status)
echo i dunno
;;
*)
echo unknown script parameter
exit 1
esac

exit 0

Vi prego, aiutatemi, senza internet LINUX non posso usarlo come vorrei :(

zerokoll
30-09-2003, 15:39
tar xzfv nomepacchetto.tar.gz
./configure
make
make install

poi devi caricare i moduli con modprobe o ricompilare il kernel

Sechi Paolo
30-09-2003, 19:49
Ciao, mi cosnigli di far ciò che mi hai detto tu e non continuar ela configurazione che ho iniziato?

fra7576
30-09-2003, 19:57
Originariamente inviato da zerokoll
tar xzfv nomepacchetto.tar.gz
./configure
make
make install

poi devi caricare i moduli con modprobe o ricompilare il kernel

ok va bene la buona volontà di rispondere a un post lunghissimo su un argomento impestato, ma sparare a ca##o! dimmi cosa centra con le istruzioni del readme:

1. login as ROOT
2. extract the archive into a directory with "tar -zxvf <archivename>.tgz"
3. cd into the directory it created.
4. Type: make clean
5. Type: make 536ep
6. Type: make install-536ep

Sechi Paolo
30-09-2003, 20:45
Emmmhhhh, come dovrei fare? In effetti il post è abbastanza lungo

fabio58
05-10-2004, 22:18
riprendo questo treand per i driver del modem webrunner PCI-v90/v92 per un mio amico che ha installato mdk10 gli ho scaricato i relativi da http://www.atlantisland.it/ ma non sono supportati dal kernel 2.6.3-7mdk forse perche validi per il 2.4ecc.. dove posso trovare sti benedetti driver aggiornati?

andy caps
05-10-2004, 22:51
non si capisce che driver e che modem siano

quelli si serchi ad esempio sembravano driver per un modem intel
li magari trovi anche i driver per il 2.6 per mandrake

tipo questi
http://downloadfinder.intel.com/scripts-df/filter_results.asp?strOSs=39&strTypes=DRV&ProductID=977&OSFullName=Linux*&submit=Go%21

fabio58
05-10-2004, 23:18
con la distro della suse non ha problemi sto maledetto modem con mdk10 e knoppix3.6 non ne vuole sapere. Intanto provo a scaricargli questi di driver e vediamo se vanno ovvio che sono accetti sempre Vs. suggerimenti

Loading