Comment 0 for bug 103072

Revision history for this message
bleuvoss (bleuvoss-deactivatedaccount) wrote : [Feisty] sl-modem doesn't work

Modem: SGS Thomson Microelectronics|56k SoftModem [Communications] (vendor:0483 device:7554)

When I plugin it, nothing happens: no /dev/slusb0 created, no /dev/ttySL0 created, nothing. On edgy I was able to run this modem using debian debs for sl-modem and editing
 - /etc/default/sl-modem-daemon. Editing:
SLMODEMD_DEVICE=slusb0
SLMODEMD_COUNTRY=SPAIN

 - /etc/modprobe.d/sl-modem-daemon.modutils. Adding:
install slusb modprobe --ignore-install ungrab-winmodem ; modprobe --ignore-install slusb; test -e /dev/slusb0 || (/bin/mknod -m 660 /dev/slusb0 c 243 0 2>/dev/null && chgrp dialout /dev/slusb0)

 - /etc/udev/sl-modem-daemon.rules. Adding:
BUS=="usb", SYSFS{idVendor}=="0483", SYSFS{idProduct}=="7554", GROUP="dialout", ACTION=="add", RUN+="/etc/init.d/slmodem-usb restart"

 - And, evidently, creating my own /etc/init.d/slmodem-usb (borrowed from Debian):
#!/bin/sh
#
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
test -x /usr/sbin/slmodemd || exit 0

start() {
/sbin/modprobe slusb
if ! [ -e /dev/slusb0 ]; then
mknod /dev/slusb0 c 243 0
fi
echo -n "Starting SmartLink Modem driver for: slusb0"
/sbin/start-stop-daemon --start --pidfile /var/run/slmodemd.pid
--exec /usr/sbin/slmodemd --make-pidfile --background --quiet -- -c SPAIN /dev/slusb0
RETVAL=$?
if [ "$RETVAL" = 0 ] ; then
echo "Creating /dev/modem symlink, pointing to: /dev/ttySL0."
ln -sf /dev/ttySL0 /dev/modem
fi
}

stop() {
echo -n "Shutting down SmartLink Modem driver normally"
RETVAL=0
if [ "`pidof slmodemd`" ] ; then
if /sbin/start-stop-daemon --stop --quiet --pidfile
/var/run/slmodemd.pid --exec /usr/sbin/slmodemd --retry 1 ; then
echo .
else
echo " probably failed."
echo "Trying it the hard way (send SIGKILL all slmodemd
processes): "
/usr/bin/killall -KILL slmodemd || RETVAL=1
fi
else
echo " ... no slmodemd daemon running."
fi
if [ "$RETVAL" = 0 ] ; then
rm -f "/var/run/slmodemd.pid"
rm -f /dev/modem
rm -f /dev/slusb0
echo -n "Unloading modem driver from kernel ... "
msg="none found."
if grep -l -q slusb /proc/modules ; then
/sbin/modprobe -r slusb 2>/dev/null && msg="slusb." || msg="failed."
fi
echo $msg
fi
}

status() {
echo -n "Status of SmartLink modem daemon: "
if [ ! -r "/var/run/slmodemd.pid" ]; then
echo "slmodemd is not running."
exit 3
fi
if read pid < "/var/run/slmodemd.pid" && ps -p "$pid" > /dev/null 2>&1; then
echo "slmodemd is running."
exit 0
else
echo "slmodemd is not running but /var/run/slmodemd.pid exists."
exit 1
fi
}

# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
status)
status
;;
*)
echo "Usage: /etc/init.d/slmodem-usb {start|stop|restart|status}"
exit 1
esac
===================================================

But with feisty nothing works.

If I try "sudo module-assistant auto-install sl-modem" (from https://help.ubuntu.com/community/DialupModemHowto/Smartlink) I get this error:
make[2]: se ingresa al directorio `/usr/src/modules/sl-modem/drivers'
gcc-4.1 -I/lib/modules/2.6.20-13-generic/build/include -o kernel-ver
kernel-ver.c
kernel-ver.c: En la función ‘main’:
kernel-ver.c:11: error: ‘UTS_RELEASE’ no se declaró aquí (primer uso en esta función)
kernel-ver.c:11: error: (Cada identificador no declarado solamente se reporta una vez
kernel-ver.c:11: error: ara cada funcion en la que aparece.)
make[2]: *** [kernel-ver] Error 1
make[2]: se sale del directorio `/usr/src/modules/sl-modem/drivers'
make[1]: *** [binary-modules] Error 2
make[1]: se sale del directorio `/usr/src/modules/sl-modem'
make: *** [kdist_build] Error 2

In Edgy I made module-assistant serveral times and I didn't get errors, so it's possible that sl-modem and kernel 2.6.20 aren't compatible?

Thanks and sorry my poor English