[PLUTO-help] Driver modem

Claudio Tushanka-Uitko a libero.it
Sab 7 Gen 2006 19:32:25 CET


Ho reinstallato i driver modem, dopo aver re-installato so (slackware)
Mi sembra di aver fatto tutto a modino, non ci dovrebbero essere errori, 
solo qualche warning
perņ non funziona: modem occupato. Qualcuno puņ dare un'occhiata e dirmi 
cosa ne pensa?

claudio a PLINUX:~$ gzip -dc slmodem-2.9.10.tar.gz | tar xf -

claudio a PLINUX:~$ cd slmodem-2.9.10

claudio a PLINUX:~/slmodem-2.9.10$ make KERNEL_DIR=/lib/modules/2.4.31/build

make -C modem all

make[1]: Entering directory `/home/claudio/slmodem-2.9.10/modem'

rebuild profile...

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_main.o -c modem_main.c

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_cmdline.o -c 
modem_cmdline.c

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem.o -c modem.c

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_datafile.o -c 
modem_datafile.c

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_at.o -c modem_at.c

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_timer.o -c modem_timer.c

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_pack.o -c modem_pack.c

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_ec.o -c modem_ec.c

modem_ec.c:689: warning: `t403_timeout' defined but not used

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_comp.o -c modem_comp.c

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_param.o -c modem_param.c

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_debug.o -c modem_debug.c

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o homolog_data.o -c 
homolog_data.c

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o dp_sinus.o -c dp_sinus.c

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o dp_dummy.o -c dp_dummy.c

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o sysdep_common.o -c 
sysdep_common.c

gcc -o slmodemd modem_main.o modem_cmdline.o modem.o modem_datafile.o 
modem_at.o modem_timer.o modem_pack.o modem_ec.o modem_comp.o 
modem_param.o modem_debug.o homolog_data.o dp_sinus.o dp_dummy.o 
dsplibs.o sysdep_common.o

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_test.o -c modem_test.c

gcc -o modem_test modem_test.o modem_cmdline.o modem.o modem_datafile.o 
modem_at.o modem_timer.o modem_pack.o modem_ec.o modem_comp.o 
modem_param.o modem_debug.o homolog_data.o dp_sinus.o dp_dummy.o 
dsplibs.o sysdep_common.o

make[1]: Leaving directory `/home/claudio/slmodem-2.9.10/modem'

claudio a PLINUX:~/slmodem-2.9.10$ make

make -C modem all

make[1]: Entering directory `/home/claudio/slmodem-2.9.10/modem'

make[1]: Leaving directory `/home/claudio/slmodem-2.9.10/modem'

claudio a PLINUX:~/slmodem-2.9.10$ su

Password:

root a PLINUX:/home/claudio/slmodem-2.9.10# make install

make -C modem all

make[1]: Entering directory `/home/claudio/slmodem-2.9.10/modem'

make[1]: Leaving directory `/home/claudio/slmodem-2.9.10/modem'

make -C drivers KERNEL_DIR=/lib/modules/2.4.31/build

make[1]: Entering directory `/home/claudio/slmodem-2.9.10/drivers'

cc -I/lib/modules/2.4.31/build/include -o kernel-ver kernel-ver.c

make all KERNEL_VER=2.4.31

make[2]: Entering directory `/home/claudio/slmodem-2.9.10/drivers'

cc -Wall -pipe -O3 -fomit-frame-pointer -D__KERNEL__ -DMODULE 
-DEXPORT_SYMTAB -DMODVERSIONS --include 
/lib/modules/2.4.31/build/include/linux/modversions.h 
-I/lib/modules/2.4.31/build/include -I. -I./../modem  -o amrmo_init.o -c 
amrmo_init.c

In file included from /lib/modules/2.4.31/build/include/linux/spinlock.h:6,

                 from /lib/modules/2.4.31/build/include/linux/module.h:12,

                 from amrmo_init.c:47:

/lib/modules/2.4.31/build/include/asm/system.h: In function 
`__set_64bit_var':

/lib/modules/2.4.31/build/include/asm/system.h:190: warning: 
dereferencing type-punned pointer will break strict-aliasing rules

/lib/modules/2.4.31/build/include/asm/system.h:190: warning: 
dereferencing type-punned pointer will break strict-aliasing rules

cc -Wall -pipe -O3 -fomit-frame-pointer -D__KERNEL__ -DMODULE 
-DEXPORT_SYMTAB -DMODVERSIONS --include 
/lib/modules/2.4.31/build/include/linux/modversions.h 
-I/lib/modules/2.4.31/build/include -I. -I./../modem  -o sysdep_amr.o -c 
sysdep_amr.c

In file included from /lib/modules/2.4.31/build/include/linux/spinlock.h:6,

                 from /lib/modules/2.4.31/build/include/linux/module.h:12,

                 from sysdep_amr.c:49:

/lib/modules/2.4.31/build/include/asm/system.h: In function 
`__set_64bit_var':

/lib/modules/2.4.31/build/include/asm/system.h:190: warning: 
dereferencing type-punned pointer will break strict-aliasing rules

/lib/modules/2.4.31/build/include/asm/system.h:190: warning: 
dereferencing type-punned pointer will break strict-aliasing rules

ld -r -o slamr.o amrmo_init.o sysdep_amr.o amrlibs.o

cc -Wall -pipe -O3 -fomit-frame-pointer -D__KERNEL__ -DMODULE 
-DEXPORT_SYMTAB -DMODVERSIONS --include 
/lib/modules/2.4.31/build/include/linux/modversions.h 
-I/lib/modules/2.4.31/build/include -I. -I./../modem  -o old_st7554.o -c 
old_st7554.c

In file included from /lib/modules/2.4.31/build/include/linux/spinlock.h:6,

                 from /lib/modules/2.4.31/build/include/linux/module.h:12,

                 from old_st7554.c:48:

/lib/modules/2.4.31/build/include/asm/system.h: In function 
`__set_64bit_var':

/lib/modules/2.4.31/build/include/asm/system.h:190: warning: 
dereferencing type-punned pointer will break strict-aliasing rules

/lib/modules/2.4.31/build/include/asm/system.h:190: warning: 
dereferencing type-punned pointer will break strict-aliasing rules

ld -r -o slusb.o old_st7554.o

make[2]: Leaving directory `/home/claudio/slmodem-2.9.10/drivers'

make[1]: Leaving directory `/home/claudio/slmodem-2.9.10/drivers'

make install -C drivers KERNEL_DIR=/lib/modules/2.4.31/build

make[1]: Entering directory `/home/claudio/slmodem-2.9.10/drivers'

cc -I/lib/modules/2.4.31/build/include -o kernel-ver kernel-ver.c

mkdir -p /dev

mknod -m 600 /dev/slamr0 c 212 0 ;   mknod -m 600 /dev/slamr1 c 212 1 
;   mknod -m 600 /dev/slamr2 c 212 2 ;   mknod -m 600 /dev/slamr3 c 212 
3 ;  echo -n

mknod -m 600 /dev/slusb0 c 213 0 ;   mknod -m 600 /dev/slusb1 c 213 1 
;   mknod -m 600 /dev/slusb2 c 213 2 ;   mknod -m 600 /dev/slusb3 c 213 
3 ;  echo -n

make install KERNEL_VER=2.4.31

make[2]: Entering directory `/home/claudio/slmodem-2.9.10/drivers'

rm -f /lib/modules/2.4.31/misc/slmdm.o \

              /lib/modules/2.4.31/misc/slfax.o \

              /lib/modules/2.4.31/misc/slusb.o \

              /lib/modules/2.4.31/misc/slamrmo.o \

              /lib/modules/2.4.31/misc/slmodem.o  # remove old 2.7,2.8 
version

install -D -m 644 slamr.o /lib/modules/2.4.31/misc/slamr.o

install -D -m 644 slusb.o /lib/modules/2.4.31/misc/slusb.o

cp /etc/modules.conf /etc/modules.conf.slamr && \

    echo 'alias char-major-212 slamr' >> /etc/modules.conf && \

    echo 'alias char-major-213 slusb' >> /etc/modules.conf

/sbin/depmod -a

make[2]: Leaving directory `/home/claudio/slmodem-2.9.10/drivers'

make[1]: Leaving directory `/home/claudio/slmodem-2.9.10/drivers'

install -D -m 755 modem/slmodemd /usr/sbin/slmodemd

rm -f -rf /var/lib/slmodem

install -d -D -m 755 /var/lib/slmodem

root a PLINUX:/home/claudio/slmodem-2.9.10# slmodemd --countrylist

59: ITALY

root a PLINUX:/home/claudio/slmodem-2.9.10# modprobe slamr

Warning: loading /lib/modules/2.4.31/misc/slamr.o will taint the kernel: 
non-GPL license - Smart Link Ltd.

  See http://www.tux.org/lkml/#export-tainted for information about 
tainted modules

Module slamr loaded, with warnings

root a PLINUX:/home/claudio/slmodem-2.9.10# /usr/sbin/slmodemd --help

Usage: /usr/sbin/slmodemd [option...] <device>

Where 'device' is name of modem device (default `/dev/slamr0')

  and 'option' may be:

  -h, --help            this usage

  -u, --usage           this usage

  -v, --version         show version and exit

  -c, --country=VAL     default modem country name (default `USA')

      --countrylist     show list of supported countries

  -a, --alsa            ALSA mode (see README for howto)

  -g, --group=VAL       Modem TTY group (default `uucp')

  -p, --perm=VAL        Modem TTY permission (default `0660')

  -r, --ringdetector    with internal ring detector (software)

  -n, --nortpriority    run with regular priority

  -d, --debug=VAL       debug level (default `0')

  -l, --log=VAL         logging mode (default `5')

root a PLINUX:/home/claudio/slmodem-2.9.10# /usr/sbin/slmodemd 
--country=ITALY /dev/slamr0

SmartLink Soft Modem: version 2.9.10 Jan  6 2006 05:59:22

symbolic link `/dev/ttySL0' -> `/dev/pts/3' created.

modem `slamr0' created. TTY is `/dev/pts/3'

Use `/dev/ttySL0' as modem device, Ctrl+C for termination.

root a PLINUX:/home/claudio/slmodem-2.9.10# ln -s /dev/ttySL0 /dev/modem

ln: `/dev/modem': File exists

root a PLINUX:/home/claudio/slmodem-2.9.10#

    Siccome non funzionava, dopo riavvio, ho fatto anche questo, come da
    file readme

root a PLINUX:/home/claudio/slmodem-2.9.10/modem# make SUPPORT_ALSA=1

rebuild profile...

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o 
modem_main.o -c modem_main.c

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o 
modem_cmdline.o -c modem_cmdline.c

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o modem.o 
-c modem.c

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o 
modem_datafile.o -c modem_datafile.c

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o 
modem_at.o -c modem_at.c

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o 
modem_timer.o -c modem_timer.c

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o 
modem_pack.o -c modem_pack.c

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o 
modem_ec.o -c modem_ec.c

modem_ec.c:689: warning: `t403_timeout' defined but not used

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o 
modem_comp.o -c modem_comp.c

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o 
modem_param.o -c modem_param.c

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o 
modem_debug.o -c modem_debug.c

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o 
homolog_data.o -c homolog_data.c

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o 
dp_sinus.o -c dp_sinus.c

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o 
dp_dummy.o -c dp_dummy.c

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o 
sysdep_common.o -c sysdep_common.c

gcc -o slmodemd modem_main.o modem_cmdline.o modem.o modem_datafile.o 
modem_at.o modem_timer.o modem_pack.o modem_ec.o modem_comp.o 
modem_param.o modem_debug.o homolog_data.o dp_sinus.o dp_dummy.o 
dsplibs.o sysdep_common.o /usr/lib/libasound.so

gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o 
modem_test.o -c modem_test.c

gcc -o modem_test modem_test.o modem_cmdline.o modem.o modem_datafile.o 
modem_at.o modem_timer.o modem_pack.o modem_ec.o modem_comp.o 
modem_param.o modem_debug.o homolog_data.o dp_sinus.o dp_dummy.o 
dsplibs.o sysdep_common.o

    Qualcuno si raccapezza?
    Grazie per l'aiuto
    Claudio





More information about the pluto-help mailing list