SmartLink e installazione driver

7 risposte [Ultimo messaggio]
Ritratto di cerbero85
cerbero85
(Newbie)
Offline
Newbie
Iscritto: 15/10/2006
Messaggi: 4

ciao a tutti...

Ho un modem Smartlink(winmodem Sad )... più in preciso linux(suse 10.1) mi da: SmartLink SmartPCI562 56k Modem

Ho scaricato i driver da qui
i slmodem-2.9.11-20060727.tar...

Ho estratto la cartella e da shell ho fatto $ make:

Quote:

cerbero85@linux-razr:~/slmodem-2.9.11-20060727> make
make -C modem all
make[1]: Entering directory `/home/cerbero85/slmodem-2.9.11-20060727/modem'
make[1]: Leaving directory `/home/cerbero85/slmodem-2.9.11-20060727/modem'
make -C drivers KERNEL_DIR=/lib/modules/2.6.16.13-4-smp/build
make[1]: Entering directory `/home/cerbero85/slmodem-2.9.11-20060727/drivers'
cc -I/lib/modules/2.6.16.13-4-smp/build/include -o kernel-ver kernel-ver.c
make all KERNEL_VER=2.6.16.13-4-smp
make[2]: Entering directory `/home/cerbero85/slmodem-2.9.11-20060727/drivers'
make modules -C /lib/modules/2.6.16.13-4-smp/build SUBDIRS=/home/cerbero85/slmodem-2.9.11-20060727/drivers
make[3]: Entering directory `/usr/src/linux-2.6.16.13-4-obj/i386/smp'
make -C ../../../linux-2.6.16.13-4 O=../linux-2.6.16.13-4-obj/i386/smp modules
CC [M] /home/cerbero85/slmodem-2.9.11-20060727/drivers/amrmo_init.o
CC [M] /home/cerbero85/slmodem-2.9.11-20060727/drivers/sysdep_amr.o
CC [M] /home/cerbero85/slmodem-2.9.11-20060727/drivers/st7554.o
LD [M] /home/cerbero85/slmodem-2.9.11-20060727/drivers/slamr.o
LD [M] /home/cerbero85/slmodem-2.9.11-20060727/drivers/slusb.o
Building modules, stage 2.
MODPOST
WARNING: could not find /home/cerbero85/slmodem-2.9.11-20060727/drivers/.amrlibs.o.cmd for /home/cerbero85/slmodem-2.9.11-20060727/drivers/amrlibs.o
CC /home/cerbero85/slmodem-2.9.11-20060727/drivers/slamr.mod.o
LD [M] /home/cerbero85/slmodem-2.9.11-20060727/drivers/slamr.ko
CC /home/cerbero85/slmodem-2.9.11-20060727/drivers/slusb.mod.o
LD [M] /home/cerbero85/slmodem-2.9.11-20060727/drivers/slusb.ko
make[3]: Leaving directory `/usr/src/linux-2.6.16.13-4-obj/i386/smp'
make[2]: Leaving directory `/home/cerbero85/slmodem-2.9.11-20060727/drivers'
make[1]: Leaving directory `/home/cerbero85/slmodem-2.9.11-20060727/drivers'
cerbero85@linux-razr:~/slmodem-2.9.11-20060727>

mi pare ke non ci siano errori...

poi da root ho fatto # make install:

Quote:

linux-razr:/home/cerbero85/slmodem-2.9.11-20060727 # make install
make -C modem all
make[1]: Entering directory `/home/cerbero85/slmodem-2.9.11-20060727/modem'
make[1]: Leaving directory `/home/cerbero85/slmodem-2.9.11-20060727/modem'
make -C drivers KERNEL_DIR=/lib/modules/2.6.16.13-4-smp/build
make[1]: Entering directory `/home/cerbero85/slmodem-2.9.11-20060727/drivers'
cc -I/lib/modules/2.6.16.13-4-smp/build/include -o kernel-ver kernel-ver.c
make all KERNEL_VER=2.6.16.13-4-smp
make[2]: Entering directory `/home/cerbero85/slmodem-2.9.11-20060727/drivers'
make modules -C /lib/modules/2.6.16.13-4-smp/build SUBDIRS=/home/cerbero85/slmodem-2.9.11-20060727/drivers
make[3]: Entering directory `/usr/src/linux-2.6.16.13-4-obj/i386/smp'
make -C ../../../linux-2.6.16.13-4 O=../linux-2.6.16.13-4-obj/i386/smp modules
Building modules, stage 2.
MODPOST
WARNING: could not find /home/cerbero85/slmodem-2.9.11-20060727/drivers/.amrlibs.o.cmd for /home/cerbero85/slmodem-2.9.11-20060727/drivers/amrlibs.o
make[3]: Leaving directory `/usr/src/linux-2.6.16.13-4-obj/i386/smp'
make[2]: Leaving directory `/home/cerbero85/slmodem-2.9.11-20060727/drivers'
make[1]: Leaving directory `/home/cerbero85/slmodem-2.9.11-20060727/drivers'
make install -C drivers KERNEL_DIR=/lib/modules/2.6.16.13-4-smp/build
make[1]: Entering directory `/home/cerbero85/slmodem-2.9.11-20060727/drivers'
cc -I/lib/modules/2.6.16.13-4-smp/build/include -o kernel-ver kernel-ver.c
mkdir -p /dev
mknod -m 600 /dev/slamr0 c 242 0 ; mknod -m 600 /dev/slamr1 c 242 1 ; mknod -m 600 /dev/slamr2 c 242 2 ; mknod -m 600 /dev/slamr3 c 242 3 ; echo -n
mknod -m 600 /dev/slusb0 c 243 0 ; mknod -m 600 /dev/slusb1 c 243 1 ; mknod -m 600 /dev/slusb2 c 243 2 ; mknod -m 600 /dev/slusb3 c 243 3 ; echo -n
make install KERNEL_VER=2.6.16.13-4-smp
make[2]: Entering directory `/home/cerbero85/slmodem-2.9.11-20060727/drivers'
install -D -m 644 slamr.ko /lib/modules/2.6.16.13-4-smp/extra/slamr.ko
install -D -m 644 slusb.ko /lib/modules/2.6.16.13-4-smp/extra/slusb.ko
/sbin/depmod -a
make[2]: Leaving directory `/home/cerbero85/slmodem-2.9.11-20060727/drivers'
make[1]: Leaving directory `/home/cerbero85/slmodem-2.9.11-20060727/drivers'
install -D -m 755 modem/slmodemd /usr/sbin/slmodemd
rm -f -rf /var/lib/slmodem
install -d -D -m 755 /var/lib/slmodem
linux-razr:/home/cerbero85/slmodem-2.9.11-20060727 #

e anke qui mi pare ke sia tutto ok

poi eseguo il seguente comando # slmodemd --country=ITALY /dev/slamr0

cambiando al posto dello zero numeri da 1 a 5 mi da sempre il seguente errore:

Quote:

linux-razr:/home/cerbero85 # slmodemd -country=ITALY /dev/slamr0
error: mdm setup: cannot open dev `/dev/slamr0': No such device or address
error: cannot setup device `/dev/slamr0'

Se qualcuno mi puo dare una mano...Laughing

Ritratto di pernix
pernix
(Guru)
Offline
Guru
Iscritto: 07/07/2006
Messaggi: 995

Sì, non ci sono errori. Prima però di poter avviare il device devi dare da root questo comando: modprobe slamr
(E' al punto 1 della sezione Getting started del file Readme nel tar.gz che hai scaricato Wink )

In a world without walls and fences, who needs Windows ad Gates?

openSUSE 10.3 - KDE+Compiz
Dell Latitude D820N: Intel T7200 2GHz; 2GB RAM 667MHz; Nvidia Quadro NVS 120M 512MB

Ritratto di cerbero85
cerbero85
(Newbie)
Offline
Newbie
Iscritto: 15/10/2006
Messaggi: 4

ho dato da root il comando # modprobe slamr
e poi di nuovo # /user/sbin/slmodemd --country=ITALY /dev/slamr0

ma mi da lo stesso errore di prima... ho provato anke a mettere slamr1 fino a slamr9 ma niente...

non so se serve ma windows mi da il modem alla COM3...

Ritratto di cerbero85
cerbero85
(Newbie)
Offline
Newbie
Iscritto: 15/10/2006
Messaggi: 4

Ho fatto una scansione con scanModem e questo è il risultato:
Quote:

Only plain text email is forwarded by the DISCUSS@linmodems.org List Server.
Do use the following as the email Subject Line:
SomeName, YourCountry
Welcome to SUSE LINUX 10.1 (i586) - Kernel kernel 2.6.16.13-4-smp
This will alert cogent experts, and distinguish cases in the Archives.
YourCountry will enable Country Code guidance.
Occassionally responses are blocked by an Internet Provider mail filters.
So in a day, also check the Archived responses at http://www.linmodems.org .
Local Linux experts can be found through: http://www.linux.org/groups/index.html
-------------------------- System information ----------------------------

Welcome to SUSE LINUX 10.1 (i586) - Kernel
Linux version 2.6.16.13-4-smp (geeko@buildhost) (gcc version 4.1.0 (SUSE Linux)) #1 SMP Wed May 3 04:53:23 UTC 2006
scanModem update of: 2006_October_11

USB modem not detected by lsusb

Modem or host audio card candidates have firmware information:
PCI slot PCI ID SubsystemID Name
---------- --------- --------- --------------
02:01.0 163c:3052 122d:3052 Modem: Smart Link Ltd. SmartLink SmartPCI562 56K Modem

Modem interrupt assignment and sharing:

--- Bootup diagnositcs for 02:01.0 ----
00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ACPI: PCI Interrupt 0000:02:01.0[A] -> GSI 21 (level, low) -> IRQ 169
0000:02:01.0: ttyS1 at I/O 0xa008 (irq = 169) is a 16450
0000:02:01.0: ttyS2 at I/O 0xa010 (irq = 169) is a 8250
0000:02:01.0: ttyS3 at I/O 0xa018 (irq = 169) is a 16450
Couldn't register serial port 0000:02:01.0: -28
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077

For candidate modem in PCI bus: 02:01.0
Class 0703: 163c:3052 Modem: Smart Link Ltd. SmartLink SmartPCI562 56K Modem
Primary PCI_id 163c:3052
Support type needed or chipset: slamr

The modem is supported by the Smartlink slamr driver
plus the slmodemd helper utility. Read the
Smartlink.txt and Modem/YourSystem.txt for follow through guidance.

Writing Smartlink.txt

Completed candidate modem analyses.

The base of the UDEV device file system is: /dev/.udev

Versions adequately match for the compiler installed: 4.1.0
and the compiler used in kernel assembly: 4.1.0

Compiling resources appear complete:
make utility - /usr/bin/make
Compiler version 4.1
kernel_headers base folder /lib/modules/2.6.16.13-4-smp/build

Checking pppd properties:
-rwxr-xr-x 1 root dialout 291796 2006-04-23 04:38 /usr/sbin/pppd

In case of an "error 17" "serial loopback" problem, see:
http://phep2.technion.ac.il/linmodems/archive-sixth/msg02637.html

To enable dialout without Root permission do:
$ su - root (not for Ubuntu)
chmod a+x /usr/sbin/pppd
or under Ubuntu related Linuxes
chmod a+x /usr/sbin/pppd

Checking settings of: /etc/ppp/options
noipdefault
noauth
crtscts
lock
modem
asyncmap 0
nodetach
lcp-echo-interval 30
lcp-echo-failure 4
lcp-max-configure 60
lcp-restart 2
idle 600
noipx
file /etc/ppp/filters

Don't worry about the following, it is for the experts
should trouble shooting be necessary.
==========================================================

Checking for modem support lines:
--------------------------------------
/device/modem symbolic link:
slmodemd created symbolic link /dev/ttySL0:
Within /etc/udev/ files:
/etc/udev/rules.d/31-network.rules:SUBSYSTEM=="net", ENV{INTERFACE}=="ppp*|ippp*|isdn*|plip*|lo*|irda*|dummy*|ipsec*|tun*|tap*|bond*|vlan*|modem*", GOTO="skip_ifup"
/etc/udev/rules.d/50-udev-default.rules:KERNEL=="modems/mwave*", NAME="%k", GROUP="uucp"
/etc/udev/rules.d/50-udev-default.rules:# 219 /dev/modems/mwave MWave modem firmware upload
/etc/udev/rules.d/50-udev-default.rules:KERNEL=="mwave", NAME="modems/%k"
Within /etc/modprobe.conf files:
/etc/modprobe.conf:# Linux ACP modem (Mwave)
/etc/modprobe.d/blacklist:# ALSA PCI sound/modem modules - should be configured via yast
/etc/modprobe.d/blacklist:blacklist snd-atiixp-modem
/etc/modprobe.d/blacklist:blacklist snd-via82xx-modem
Within any ancient /etc/devfs files:

Within ancient kernel 2.4.n /etc/module.conf files:

--------- end modem support lines --------

io non ci capisco niente... potrebbe essere ke sbaglio driver?

Ritratto di cerbero85
cerbero85
(Newbie)
Offline
Newbie
Iscritto: 15/10/2006
Messaggi: 4

Ho provato a seguire questa guida ke ho trovato QUI

ma arrivo al punto 9 quando dando il comando:
# /sbin/chkconfig slmodemd on
è tutto ok poi dando laltro comando:
# /etc/init.d/slmodemd start
mi da ke non c'è il file functions (vedi foto qui sotto)

Ho dimenticato di installare qualcosa??

Ritratto di Snake664
Snake664
(Junior)
Offline
Junior
Iscritto: 15/02/2008
Messaggi: 18

CIAO...

Forse sono in ritardo, ho risolto dopo una settimana di rompicapo (causa connessione inesistente).

La procedura che fai è corretta fino a:

#modprobe slamr

ESEGUITO SOTTO UNA SHELL SUPER UTENTE

poi per attivare la device, con i driver che hai usato "/dev/slamr0" non esiste proprio!

Io ho linkato a /dev/tty0, che mi da questa risposta:
14 20087
#/usr/sbin/slmodemd --country=ITALY /dev/tty0
Smartlink Soft Modem: version 2.9.11 Apr 14 2008 02:16:59
symbolic link '/dev/ttySL0' -> '/dev/pts/5' created.
modem 'tty0' created. TTY is '/dev/pts/5'
Use '/dev/ttySL0' as modem device, Ctrl+C for termination.

Ora ovviamente se io termino allora non mi funge più il modem, devo ancora capire come si fa a mettere i comandi in automatico... LOL

Ritratto di Snake664
Snake664
(Junior)
Offline
Junior
Iscritto: 15/02/2008
Messaggi: 18

COMUNQUE A ME Adesso se do il comando ATDT per telefonare mi risponde direttamente...

NO CARRIER

Con quel driver, ho provato gli altri più vecchi, ma il risultato non cambia e alcuni non sono capace neanche di compilarli.

Ritratto di giove
giove
(Junior)
Offline
Junior
Iscritto: 14/04/2008
Messaggi: 20

Ciao, anch'io uso quel driver per il modem e l'errore che risulta, ossia /dev/slamr0 not found indica semplicemente che devi creare quel dispositivo con la riga da console:
mknod -m 600 /dev/slamr c 242 0 e poi devi dare il comando slmodemd -c ITALY /dev/slamr0 .
A me funziona, l'unico guaio è che bisogna creare il dispositivo in questione ogni volta...però sto studiando una procedura automatica