How to get this modem working: SOLVED

Chadley Wilson chadley at pinteq.co.za
Tue Feb 15 11:06:22 UTC 2005


On Monday 14 February 2005 18:33, Antonio Olivares wrote:
> --- Chadley Wilson <chadley at pinteq.co.za> wrote:
> > Greetings
> >
> > If there is a bug in the slmodemd drivers how do we
> > work around it?
> >
> > I have slmodem-2.9.9 and slmodem-2.9.10, suprise,
> > suprise,
> >
> > If I could get an older version of slmodem maybe,
> > but smlink only has 2.9.10.
> >
> > I can use the intel snd_intel8x0 module it doesn't
> > like the via chipset I am
> > running on.
> >
> > The bug is filed at
>
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=144056
>
> > TIA
> >
> > --
> > --
> > Chadley Wilson
> > Redhat Certified Technician
> > Cert Number: 603004708291270
> > Pinnacle Micro
> > Manufacturers of Proline Computers
> > Proudly South African
> > ISO9001:2000 Certified Production Line
> > =======================================
> > LINUX - becuase I can do it my way.
> > ========================================
> >
> > --
> > fedora-list mailing list
> > fedora-list at redhat.com
> > To unsubscribe:
> > http://www.redhat.com/mailman/listinfo/fedora-list
>
> Chadley,
>    Which modem are you talking about.  Is it a modem
> with a smartlink chipset?  or a modem that could be
> supported by slmodem-2.9.X.  Please check
> http://www.linmodems.org/.  Download scanModem.gz if
> you have not done so.
> # gunzip scanModem.gz
> # chmod +x scanModem
> # ./scanModem
> This will generate some files.  Send ModemData.txt as
> an attachment to discuss at linmodems.org.  They will
> provide feedback as if your modem will work in Linux.
>
>
> Hope this helps,
> Antonio
>
Tnx Antonio

It is a smartlink, but as I said check the bugzilla you will learn that the 
2.9.10 driver taints the kernel and won't be fixed.


Simple solution after two hours of googling was on the same page that took me 
to the bugzilla 
Goto linmodems.com or search google for slmodem-2.9.9a
tar xzvf slmodem-2.9.9a.tar.gz
cd slmodem-2.9.9a
make && make install 
vi /etc/rc.modules and insert modprobe slamr ( or slusb) 
modprobe slamr (or slusb) for immediate use
cp scripts/slmodemd  /etc/init.d/
chkconfig --add slmodemd
chkconfig slmodemd on
service slmodemd start

Thats it, 

For alsa support you will need to do a test:
lsmod |grep snd_intel8x0m

If it find s the module you can try the 2.9.10 driver I have only had luck 
with it on my laptop, but we have vuild 1000s of these laptops and only mine 
works.

Here is how:

tar xzvf slmodem-2.9.9a.tar.gz
cd slmodem-2.9.9a/modem 
make SUPPORT_ALSA=1
cd ../
back to the slmodem-2.9.9a dir
make install SUPPORT_ALSA=1

you will need the modified slmodemd script which I have attached below:

cp modified/alsa/slmodemd/script /etc/init.d/slmodemd
vi /etc/rc.modules and insert modprobe slamr ( or slusb) 
modprobe slamr (or slusb) for immediate use
cp scripts/slmodemd  /etc/init.d/
chkconfig --add slmodemd
chkconfig slmodemd on
service slmodemd start


#!/bin/sh
#
# slmodemd:    Starts the SmartLink Modem Daemon
#
# chkconfig: 345 90 10
# description: This is the user space part of the SmartLink Modem driver
# processname: slmodemd
# config: /etc/sysconfig/slmodem

# Source function library.
. /etc/init.d/functions

prog=slmodemd
RETVAL=0

# Default configuration
SLMODEMD_DEVICE=slamr0
SLMODEMD_COUNTRY=SOUTHAFRICA

# Source configuration
CONFIG=/etc/sysconfig/$prog
if [ -f $CONFIG ]; then
        . $CONFIG
        # override default group and permissions if defined in $CONFIG;
        # other valid options also can be put into SLMODEMD_OPTS variable
        [ "$GROUP" ] && SLMODEMD_OPTS="$SLMODEMD_OPTS --group=$GROUP"
        [ "$PERMS" ] && SLMODEMD_OPTS="$SLMODEMD_OPTS --perm=$PERMS"
fi

# uncomment this if you want this feature (if necessary edit module pattern):
# do not try to start on a kernel which does not support it
# grep -q 'slamr\..*o' /lib/modules/`uname -r`/modules.dep || exit 0

start() {
        echo -n "Starting SmartLink Modem driver for $SLMODEMD_DEVICE: "
        $prog </dev/null >/dev/null 2>/dev/null \
           --alsa --country=$SLMODEMD_COUNTRY $SLMODEMD_OPTS &
        RETVAL=$?
        [ $RETVAL -eq 0 ] && success $"$prog startup" || failure $"$prog 
startup"
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
        return $RETVAL
}

stop() {
        echo -n "Shutting down SmartLink Modem driver: "
        killproc $prog
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
        return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  status)
        status $prog
        RETVAL=$?
        ;;
  restart|reload)
        stop
        start
        RETVAL=$?
        ;;
  condrestart)
        if [ -f /var/lock/subsys/$prog ]; then
                stop
                start
                RETVAL=$?
        fi
        ;;
  *)
        echo "*** Usage: $prog {start|stop|status|restart|condrestart}"
        exit 1
esac

exit $RETVAL

Just copy this text and paste into a text file called slmodemd which you may 
need to create

then ake sure it is executable
chmod +x slmodemd
chown root slmodemd; chgrp root slmodemd

or just make sure the perms look lik his


-rwxr-xr-x   1 root root  1782 Feb 10 12:40 slmodemd


for testing you can run slmodemd --alsa

and do a 
[root at chadlap chadley]# ls -la /dev/|grep ttySL
lrwxrwxrwx   1 root    root       10 Feb 15 08:32 ttySL0 -> /dev/pts/1
[root at chadlap chadley]#     

But becareful when creating a link to /dev/modem as udev will remove it.

I have not yet figured out how to get  udev to create the link, but will post 
a solution as soon as I or someone else figure that out.

It got something to with make an entry in 
/etc/udev/rules.d/50-udev.rules

and the syntax for that file is whats got to be figured, I have not the time 
today but will get around to it.


Happy modeming

Cheers





-- 
--
Chadley Wilson
Redhat Certified Technician
Cert Number: 603004708291270
Pinnacle Micro
Manufacturers of Proline Computers
Proudly South African
ISO9001:2000 Certified Production Line
=======================================
LINUX - becuase I can do it my way.
========================================




More information about the fedora-list mailing list