Re: Ken Jones, USA, Ubuntu 8.04, Kernel 2.6.24-18-386 - Problem: Reconnecting

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

 



Ken,
We are aware of the problem, per below.  The bypass is to shut downthe modem and unload slamr , then restart.
If you are using the sl-modem-daemon scripts, just$ sudo /etc/init.d/sl-modem-daemon restart
If notCtrl-C to kill slmodemd$ sudo modprobe -r slamrunloading the driver.  Reload$ sudo modprobe slamrand restart$ sudo slmodemd -c USA /dev/slamr0
MarvS

	from	Gustavo Fernando Padovan <gfpadovan@xxxxxxxxx>to	discuss@xxxxxxxxxxxxxxxxx	Fri, May 30, 2008 at 11:26 AMsubject	modem on kernel >=2.6.24	hide details May 30 (7 days ago)		Reply		Hello,
I'm testing a modem motorola 1057:3052 with kernel >=2.6.24 and I hada problem, the modem connects just once, in the second try the modemdoesn't respond and I need to unload the slamr module and load itagain. (I reported this here recently).
Has anybody here this problem??
I found out why this happen. This changes on kernel 2.6.24 make themodem stop to work correctly:http://lkml.org/lkml/2007/11/2/100http://lkml.org/lkml/2007/11/2/131

------------------------------------------------Gustavo Fernando PadovanEngenharia de Computação 2006LAS - Laboratório de Administração e Segurança de SistemasInstituto de Computação - UNICAMP
gfpadovan@xxxxxxxxxxxxxxxxx@students.ic.unicamp.brpao@xxxxxxxxxx
On Thu, Jun 5, 2008 at 6:43 PM, Keneth W Jones <kjones@xxxxxxxxx> wrote:> After starting Ubuntu, connecting to the Internet, then disconnecting> from Internet, I'm unable to reconnect to the Internet using wvdial.> The following is displayed in terminal:>> hjones@hjones-desktop:~/Desktop$ wvdial> --> WvDial: Internet dialer version 1.60> --> Cannot open /dev/ttySL0: Device or resource busy> --> Cannot open /dev/ttySL0: Device or resource busy> --> Cannot open /dev/ttySL0: Device or resource busy>> If I close Ubuntu, and restart Ubuntu I'm able to connect to the> Internet once again.>> Another workaround (without closing down and restarting Ubuntu) is to do> the following in terminal:>> hjones@hjones-desktop:~/Desktop$ sudo modprobe ungrab-winmodem> [sudo] password for hjones:>> hjones@hjones-desktop:~/Desktop$ sudo modprobe slamr>> hjones@hjones-desktop:~/Desktop$ sudo /etc/init.d/sl-modem-daemon> restart> Shutting down SmartLink Modem driver normally.> Unloading modem driver from kernel ... slamr.> Starting SmartLink Modem driver for: slamr0.> Creating /dev/modem symlink, pointing to: /dev/ttySL0.>> hjones@hjones-desktop:~/Desktop$ wvdial> --> WvDial: Internet dialer version 1.60> --> Cannot get information for serial port.> --> Initializing modem.> --> Sending: ATZ> ATZ> OK> --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0> ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0> OK> --> Modem initialized.> --> Sending: ATDT427-4638> --> Waiting for carrier.> ATDT427-4638> CONNECT 24000> --> Carrier detected.  Waiting for prompt.> Welcome to SCRTC> Username:> --> Looks like a login prompt.> --> Sending: kjones> kjones> Password:> --> Looks like a password prompt.> --> Sending: (password)>    Entering PPP Session.>    IP address is 66.38.32.140>    MTU is 1524.> --> Looks like a welcome message.> --> Starting pppd at Thu Jun  5 16:45:26 2008> --> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied> --> --> PAP (Password Authentication Protocol) may be flaky.> --> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied> --> --> CHAP (Challenge Handshake) may be flaky.> --> Pid of pppd: 13099> --> Using interface ppp0> --> pppd: Ч[06][08]��[06][08]> --> pppd: Ч[06][08]��[06][08]> --> pppd: Ч[06][08]��[06][08]> --> local  IP address 66.38.32.140> --> pppd: Ч[06][08]��[06][08]> --> remote IP address 66.38.2.135> --> pppd: Ч[06][08]��[06][08]> --> primary   DNS address 66.38.0.240> --> pppd: Ч[06][08]��[06][08]> --> secondary DNS address 66.38.0.241> --> pppd: Ч[06][08]��[06][08]>>> I tried compiling the modules/drivers using the packages recommended in> ModemData.txt and was able to compile ungrab-winmodem-20070505.tar.gz,> but not slmodem-2.9.11-20080126.tar.gz.>> I receive the following while trying to compile> slmodem-2.9.11-20080126.tar.gz:>> hjones@hjones-desktop:~/slamr3/slmodem-2.9.11-20080126$ make clean> make -C modem clean &&  make -C drivers clean &&  echo "done."> make[1]: Entering directory> `/home/hjones/slamr3/slmodem-2.9.11-20080126/modem'> rm -f slmodemd modem_test modem_main.o modem_cmdline.o modem_test.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 sysdep_common.o> rm -f *~ *.orig *.rej> make[1]: Leaving directory> `/home/hjones/slamr3/slmodem-2.9.11-20080126/modem'> make[1]: Entering directory> `/home/hjones/slamr3/slmodem-2.9.11-20080126/drivers'> rm -f kernel-ver slamr.o slusb.o slamr.ko slusb.ko *st7554.o> amrmo_init.o sysdep_amr.o *.mod.* .*.cmd *~> rm -f -r .tmp_versions> make[1]: Leaving directory> `/home/hjones/slamr3/slmodem-2.9.11-20080126/drivers'> done.>> hjones@hjones-desktop:~/slamr3/slmodem-2.9.11-20080126$ make> make -C modem all> make[1]: Entering directory> `/home/hjones/slamr3/slmodem-2.9.11-20080126/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> modem_pack.c: In function 'modem_async_get_bits':> modem_pack.c:100: warning: pointer targets in passing argument 2 of> 'm->get_chars' differ in signedness> modem_pack.c: In function 'modem_async_put_bits':> modem_pack.c:148: warning: pointer targets in passing argument 2 of> 'm->put_chars' differ in signedness> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_ec.o -c modem_ec.c> modem_ec.c: In function 'tx_info':> modem_ec.c:723: warning: pointer targets in passing argument 2 of> 'l->modem->get_chars' differ in signedness> modem_ec.c: In function 'push_rest_data':> modem_ec.c:811: warning: pointer targets in passing argument 2 of> 'l->modem->put_chars' differ in signedness> modem_ec.c: In function 'rx_info':> modem_ec.c:860: warning: pointer targets in passing argument 2 of> 'l->modem->put_chars' differ in signedness> 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/hjones/slamr3/slmodem-2.9.11-20080126/modem'> make -C drivers KERNEL_DIR=/lib/modules/2.6.24-18-386/build> make[1]: Entering directory> `/home/hjones/slamr3/slmodem-2.9.11-20080126/drivers'> cc -I/lib/modules/2.6.24-18-386/build/include -o kernel-ver kernel-ver.c> make all KERNEL_VER=2.6.24-18-386> make[2]: Entering directory> `/home/hjones/slamr3/slmodem-2.9.11-20080126/drivers'> make modules -C /lib/modules/2.6.24-18-386/build> SUBDIRS=/home/hjones/slamr3/slmodem-2.9.11-20080126/drivers> make[3]: Entering directory `/usr/src/linux-headers-2.6.24-18-386'>  CC> [M]  /home/hjones/slamr3/slmodem-2.9.11-20080126/drivers/amrmo_init.o> /home/hjones/slamr3/slmodem-2.9.11-20080126/drivers/amrmo_init.c: In> function 'amrmo_pci_probe':> /home/hjones/slamr3/slmodem-2.9.11-20080126/drivers/amrmo_init.c:612:> error: 'SA_SHIRQ' undeclared (first use in this function)> /home/hjones/slamr3/slmodem-2.9.11-20080126/drivers/amrmo_init.c:612:> error: (Each undeclared identifier is reported only once> /home/hjones/slamr3/slmodem-2.9.11-20080126/drivers/amrmo_init.c:612:> error: for each function it appears in.)> make[4]: ***> [/home/hjones/slamr3/slmodem-2.9.11-20080126/drivers/amrmo_init.o] Error> 1> make[3]: ***> [_module_/home/hjones/slamr3/slmodem-2.9.11-20080126/drivers] Error 2> make[3]: Leaving directory `/usr/src/linux-headers-2.6.24-18-386'> make[2]: *** [all] Error 2> make[2]: Leaving directory> `/home/hjones/slamr3/slmodem-2.9.11-20080126/drivers'> make[1]: *** [all] Error 2> make[1]: Leaving directory> `/home/hjones/slamr3/slmodem-2.9.11-20080126/drivers'> make: *** [drivers] Error 2> hjones@hjones-desktop:~/slamr3/slmodem-2.9.11-20080126$>> Afterwards, I tried compiling the latest packages for the> modules/drivers:>> ungrab-winmodem-20080126.tar.gz> slmodem-2.9.11-20080417.tar.gz>> And, I did not receive any warnings or errors during compiling -> successful compiles.>> I also installed the latest Ubuntu package in the Ubuntu repository for> the sl-modem daemon:>> sl-modem-daemon_2.9.10+2.9.9d+e-pre2-5ubuntu4_i386.deb>> I did use some files from the slamr-2.6.24-16-generic.tar.gz package to> do my installation (sudo ./setup) after replacing the slamr.ko,> slusb.ko, and ungrab-winmodem.ko with my new compiles.  Perhaps, that> was my mistake.  But, I'm somewhat of a Linux newbie, and I couldn't> figure out how else to install the modules/drivers and sl-modem daemon> successfully.>> Any assistance or guidance would be appreciated.>> Thanks!>>>>>

[Index of Archives]     [Linux Media Development]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Xfree86]     [Fedora Women]     [Linux USB]

  Powered by Linux