Fwd: martian modem not working with kernel-2.6.22.1-41.fc7, wvdial says modem not responding

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

 



Thanks to the patch from Alexei, the modem now works in all the fedora kernels

kernel-2.6.22.1-27.fc7,
kernel-2.6.22.1-33.fc7, and
kernel-2.6.22.1-41.fc7,

The only trick here, is that we need to restart martian service.

[root@localhost ~]# service martian restart
Shutting down martian_modem: Done
Starting martian_modem: Done

After this wvdial dials out and works as it should.  Sorry for the
noise, and thanks Alexei for sending the patch.  Now I can connect to
the net with martian again without going back to an earlier kernel.

Regards,

Antonio

---------- Forwarded message ----------
From: Antonio Olivares <olivares14031@xxxxxxxxx>
Date: Aug 7, 2007 9:18 AM
Subject: Re: martian modem not working with kernel-2.6.22.1-41.fc7,
wvdial says modem not responding
To: "A. Chentsov" <chentsov@xxxxxxx>
Cc: Marvin Stodolsky <marvin.stodolsky@xxxxxxxxx>


Alexei,

I tried applying the patch with your instructions and it did not work,
both as regular user, and as root.

[olivares@localhost martian]$ patch -p1 < nvrm.diff
bash: nvrm.diff: No such file or directory
[olivares@localhost martian]$ ls
ChangeLog  INSTALL  Makefile   modem      README
Concept    kmodule  martian.h  nrvm.diff  scripts
[olivares@localhost martian]$ patch -p1 < nvrm.diff
bash: nvrm.diff: No such file or directory
[olivares@localhost martian]$ cat nrvm.diff
diff -u --recursive -N martian.base/kmodule/martian.c martian/kmodule/martian.c
--- martian.base/kmodule/martian.c      2006-12-02 21:14:50.000000000 +0200
+++ martian/kmodule/martian.c   2007-08-07 09:08:52.000000000 +0300
@@ -523,12 +523,14 @@
                return -EAGAIN;
        }

+#if   LINUX_VERSION_CODE  <  KERNEL_VERSION (2, 6, 15)
        if (test_bit (KMSETTING_DEBUG, &mdev->state)) {
                vma->vm_flags &= ~VM_IO;
-#ifdef VM_PFNMAP
+# ifdef VM_PFNMAP
                vma->vm_flags &= ~VM_PFNMAP;
-#endif
+# endif
        }
+#endif

        return 0;
 }
diff -u --recursive -N martian.base/modem/mport.c martian/modem/mport.c
--- martian.base/modem/mport.c  2006-12-01 04:13:01.000000000 +0200
+++ martian/modem/mport.c       2007-01-20 11:11:25.000000000 +0200
@@ -536,6 +536,7 @@
        ASSERT (! port->pulse, port->pulse = 0);

        vxdPortOpen();
+       port->ready     = mport_ready(); /*port*/

        UART_dtr_on();
        UART_rts_on();
[olivares@localhost martian]$
[olivares@localhost martian]$ su -
Password:
[root@localhost ~]# cd /home/olivares/Documents/1-33/martian
[root@localhost martian]# patch -p1 < nvrm.diff
-bash: nvrm.diff: No such file or directory
[root@localhost martian]# ls
ChangeLog  INSTALL  Makefile   modem      README
Concept    kmodule  martian.h  nrvm.diff  scripts
[root@localhost martian]#

However, I made the changes to the files martian.c and mport.c stopped
the martian service and reinstalled the martian code and this is what
happened

[olivares@localhost ~]$ uname -a
Linux localhost.localdomain 2.6.22.1-41.fc7 #1 SMP Fri Jul 27 18:10:34
EDT 2007 i686 i686 i386 GNU/Linux

[olivares@localhost martian]$ su -
Password:
[root@localhost ~]# service martian start
kernel module is not loaded!
[root@localhost ~]# modprobe martian_dev
[root@localhost ~]# service martian start
Starting martian_modem: Done
[root@localhost ~]#

[root@localhost ~]# wvdial
--> WvDial: Internet dialer version 1.54.0
--> 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: ATDT7072000
--> Waiting for carrier.
ATDT7072000
NO DIALTONE
--> No dial tone.
--> Disconnecting at Tue Aug  7 09:04:26 2007
[root@localhost ~]# wvdial
--> WvDial: Internet dialer version 1.54.0
--> 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: ATDT7072000
--> Waiting for carrier.
ATDT7072000
NO DIALTONE
--> No dial tone.
--> Disconnecting at Tue Aug  7 09:04:49 2007
[root@localhost ~]# wvdial
--> WvDial: Internet dialer version 1.54.0
--> 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: ATDT7072000
--> Waiting for carrier.
ATDT7072000
NO DIALTONE
--> No dial tone.
--> Disconnecting at Tue Aug  7 09:05:20 2007
[root@localhost ~]# service martian restart
Shutting down martian_modem: Done
Starting martian_modem: Done
[root@localhost ~]# wvdial
--> WvDial: Internet dialer version 1.54.0
--> 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: ATDT7072000
--> Waiting for carrier.
ATDT7072000
CONNECT 45333 V44
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Tue Aug  7 09:06:33 2007
--> pid of pppd: 4181
--> Using interface ppp0
--> Authentication (PAP) started
--> Authentication (PAP) successful
--> local  IP address 66.201.8.126
--> remote IP address 66.201.8.6
--> primary   DNS address 66.201.0.203
--> secondary DNS address 12.176.80.9
--> Script /etc/ppp/ip-up run successful
--> Default route Ok.
--> Nameserver (DNS) Ok.
--> Connected... Press Ctrl-C to disconnect


It is working now.  Thank you very much for your help.

Regards,

Antonio

On 8/7/07, A.Chentsov <chentsov@xxxxxxx> wrote:
> Hello Antonio.
>
> In some settings device doesn't initialize from the first try. Apply patch
> $ cd martian
> $ patch -p1 < nvrm.diff
>
> Try connect. It may fail with 'NO DIALTONE' status. Cancel dialing. Then
> restart martian
> # /etc/init.d/martian restart
> Try connecting again.
>
> Regards,
> Alexei.
>
>

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

  Powered by Linux