[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

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.

# 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
#  just to display current modules
# the following three lines are just informational
if [ -f /var/run/stab ]; then
  cat /var/run/stab &
# starting pppd with pon or wvdial
pon $1
# wvdial
tail -f /var/log/syslog
# which will be terminated with Ctrl-c after connection is
#! /bin/sh
# /usr/local/bin/Modown ends a pppd session and does
#  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
# starts the pppd shutdown
sleep 2
# is a pause to let the poff process to terminate, after
/sbin/rmmod ltmodem
# seems necessary because of the initial forcing " insmod -f
ltmodem "
#  and consequent lack of kernel module "autoclean"
/sbin/rmmod -a
# then suffices to remove the other unnecessary pppd related
# but doesn't remove the sound related modules called up.
if [ -f /proc/sound ]; then
  /sbin/rmmod sound
/sbin/rmmod -a
# removes the sound modules
echo " "
echo Remaining modules in kernel-`uname -r` are:
# displays remaining modules
echo " "

Reply to: