[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: LT Winmodem module (ltmodem.o)



On my Compaq Armada 1500c with integral LTmodem,
the ltmodem.o  binary worked fine with kernels up to 2.2.14,
but support is at least temporarily broken with kernels
compiled from 2.2.15 source.

My kernels are compiled with choices
#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y

Because forcing (insmod -f) is generally considered not a
good practive,
I do NOT install the module during boot.
Rather it is inserted only for communcations use and then
removed afterward with the scripts below.

MarvS
-----------------------------------------------------
#!/bin/sh
# connect to IP with LTmodem
# made executable with 
#  chmod u+x /usr/local/bin/Modemup
echo "  "
echo Inserting Winmodem Lucent Tech  ltmodem.o  driver
/sbin/insmod -f ltmodem
#which returns the complaint:
# Warning: kernel-module version mismatch
#  /lib/modules/2.2.14/misc/ltmodem.o was compiled for
kernel version 2.2.12-20
# while this kernel is version 2.2.14
/sbin/lsmod
#  just to display current modules
# the following three lines are just informational
if [ -f /var/run/stab ]; then
  cat /var/run/stab &
fi
# starting pppd with pon or wvdial
pon $1
# wvdial
tail -f /var/log/syslog
# which will be terminated with Ctrl-c after connection is
completed.
-----------------------------------
#! /bin/sh
# /usr/local/bin/Modown ends a pppd session and does
cleanup.
#  made executable with chmod u+x usr/local/bin/Modown
# During the pppd session, the related modules are:
#   ppp_deflate            39108   1  (autoclean)
#   bsd_comp                3664   0  (autoclean)
#   ppp                    19916   2  (autoclean)
[ppp_deflate bsd_comp]
#   slhc                    4200   1  (autoclean) [ppp]
#   ltmodem               452936   1 
# NOTE THAT ltmodem did NOT acquire autoclean status
poff
# starts the pppd shutdown
sleep 2
# is a pause to let the poff process to terminate, after
which
/sbin/rmmod ltmodem
# seems necessary because of the initial forcing " insmod -f
ltmodem "
#  and consequent lack of kernel module "autoclean"
capability. 
/sbin/rmmod -a
# then suffices to remove the other unnecessary pppd related
modules
# but doesn't remove the sound related modules called up.
Thus
if [ -f /proc/sound ]; then
  /sbin/rmmod sound
fi  
/sbin/rmmod -a
# removes the sound modules
echo " "
echo Remaining modules in kernel-`uname -r` are:
/sbin/lsmod
# displays remaining modules
echo " "



Reply to: