Re: Error setting up dialup in Ubuntu 10.10 kernel 2.6.35.22
Derek <[email protected]>
| Newsgroups | gmane.linux.linmodem |
|---|---|
| Message-ID | <1298773006.1810.27.camel@derek-desktop> |
Hi Marvin
Thanks for your latest reply - first a comment:
Logging in as root I have exactly the same response so I don't think
this is an ownership problem.
I have included the terminal output on Ubuntu 9.10 for sudo
wvdialconf which shows found modem on /dev/ttySM0 and Modem
configuration written to wvtest.
First is the terminal output on ubuntu 10.10 for your latest
suggestion of deletion of modprobe martian_dev and martian_modem
from /etc/rc.local then reboot.
NOTE AFTER "martian: info: Your port is /dev/ttySM0" THERE IS NO RETURN
TO TERMINAL PROMPT "derek@derek-desktop:~$" AND control/c is required
------- 10.10 terminal output
derek@derek-desktop:~$ sudo modprobe martian_dev
[sudo] password for derek:
derek@derek-desktop:~$ sudo martian_modem
martian: info: Your port is /dev/ttySM0
^Cmartian: info: Bye.
derek@derek-desktop:~$ sudo wvdialconf
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S2 S3
Sorry, no modem was detected! Is it in use by another program?
Did you configure it properly with setserial?
Please read the FAQ at http://open.nit.ca/wiki/?WvDial
If you still have problems, send mail to <[email protected]>.
derek@derek-desktop:~$
-------------
FOR YOUR INFORMATION THIS IS THE CONTINUING TERMINAL OUTPUT AFTER
Modem Port Scan<*1>: S2 S3 FOR THE SAME MODEM IN UBUNTU 9.10
WvModem<*1>: Cannot get information for serial port.
ttySM0<*1>: ATQ0 V1 E1 -- OK
ttySM0<*1>: ATQ0 V1 E1 Z -- OK
ttySM0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttySM0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttySM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttySM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttySM0<*1>: Modem Identifier: ATI -- LT V.92 Data+Fax Modem Version 8.30
ttySM0<*1>: Speed 4800: AT -- OK
ttySM0<*1>: Speed 9600: AT -- OK
ttySM0<*1>: Speed 19200: AT -- OK
ttySM0<*1>: Speed 38400: AT -- OK
ttySM0<*1>: Speed 57600: AT -- OK
ttySM0<*1>: Speed 115200: AT -- OK
ttySM0<*1>: Speed 230400: AT -- OK
ttySM0<*1>: Speed 460800: AT -- OK
ttySM0<*1>: Max speed is 460800; that should be safe.
ttySM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
Found a modem on /dev/ttySM0.
wvtest<Warn>: Can't open 'wvtest' for reading: No such file or directory
wvtest<Warn>: ...starting with blank configuration.
Modem configuration written to wvtest.
ttySM0<Info>: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
derek@derek-desktop:~$
---------------------------------------------------------------
On Sat, 2011-02-19 at 20:38 -0500, Marvin Stodolsky wrote:
> Derek,
>
> The root ownership of
> 1 root root 10 2011-02-19 12:27 /dev/ttySM0 -> /dev/pts/1>
> may be your problem. Try not using the bootup activation and do it
> manually after bootup
> $ sudo modprobe martian_dev
> $ sudo martian_modem
> $ sudo wvdialconf
>
> MarvS
>
>
> On Sat, Feb 19, 2011 at 8:13 PM, Derek <[email protected]> wrote:
> > Hi Marvin
> >
> > This is the terminal listing after following your instructions
> > immediately after boot:
> >
> > derek@derek-desktop:~$ sudo ls -l /dev/ttySM0 /dev/pts/*
> > crw--w---- 1 derek tty 136, 0 2011-02-19 12:58 /dev/pts/0
> > crw--w---- 1 root tty 136, 1 2011-02-19 12:27 /dev/pts/1
> > c--------- 1 root root 5, 2 2011-02-19 22:56 /dev/pts/ptmx
> > lrwxrwxrwx
> 1 root root 10 2011-02-19 12:27 /dev/ttySM0 -> /dev/pts/1>
> > derek@derek-desktop:~$ sudo wvdial
> > --> WvDial: Internet dialer version 1.60
> > --> Cannot get information for serial port.
> > --> Cannot open /dev/ttySM0: Input/output error
> > --> Cannot open /dev/ttySM0: No such file or directory
> > --> Cannot open /dev/ttySM0: No such file or directory
> > derek@derek-desktop:~$
> >
> > I then checked /dev/ttySM0 and link to /dev/pts/1 is not broken
> >
> > Regards Derek
> > -----------------------------------------------------------------
> >
> > On Wed, 2011-02-16 at 23:27 -0500, Marvin Stodolsky wrote:
> >> Do
> >>
> >> $ sudo ls -l /dev/ttySM0 /dev/pts/*
> >> because if all is well, the true port is a /dev/pts/Number and
> >> /dev/ttySM0 --> /dev/pts/3 (say)
> >> a symbolic link to it.
> >>
> >> MarvS
> >>
> >> On Wed, Feb 16, 2011 at 8:33 PM, Antonio Olivares
> >> <[email protected]> wrote:
> >> > Derek,
> >> >
> >> > You have set autoloading of martian modem via rc.local script. Then
> >> > if this was working correctly, you should just do a
> >> > $ sudo wvdial
> >> > but before check to see that the port exists, i.e, output of
> >> > $ sudo ls /dev/ttySM0
> >> >
> >> > don't do this:
> >> >
> >> > derek@derek-desktop:~$ sudo martian_modem
> >> > martian: error: open: Device or resource busy
> >> > martian: info: martian is already running.
> >> >
> >> > instead just do:
> >> > derek@derek-desktop:~$ sudo wvdial
> >> > --> WvDial: Internet dialer version 1.60
> >> > --> Cannot open /dev/ttySM0: No such file or directory
> >> >
> >> > if this fails let us know.
> >> >
> >> > Regards,
> >> >
> >> > Antonio
> >> > On Wed, Feb 16, 2011 at 7:19 PM, Derek <[email protected]> wrote:
> >> >> Hi Martin
> >> >>
> >> >> You wrote:
> >> >>
> >> >> You may have to manually load the driver
> >> >> $ sudo modprobe martian_dev
> >> >> before the
> >> >> $ sudo martian_modem
> >> >>
> >> >> This was done correctly as you can see from the terminal outputs below
> >> >> when I installed Agere modem software. This may help you find out why
> >> >> ttySM0 link points to a non-existent file - "/dev/pts/1"
> >> >>
> >> >> Terminal output for 'martian-full-20100123'
> >> >>
> >> >> derek@derek-desktop:~$ cd '/home/derek/Desktop/martian-full-20100123'
> >> >>
> >> >> derek@derek-desktop:~/Desktop/martian-full-20100123$ make all
> >> >> make -C kmodule/ modules
> >> >> make[1]: Entering directory
> >> >> `/home/derek/Desktop/martian-full-20100123/kmodule'
> >> >> make -C /lib/modules/2.6.35-22-generic/build
> >> >> M="/home/derek/Desktop/martian-full-20100123/kmodule" modules
> >> >> make[2]: Entering directory `/usr/src/linux-headers-2.6.35-22-generic'
> >> >> CC [M] /home/derek/Desktop/martian-full-20100123/kmodule/martian.o
> >> >> /home/derek/Desktop/martian-full-20100123/kmodule/martian.c: In function
> >> >> ‘martian_isr’:
> >> >> /home/derek/Desktop/martian-full-20100123/kmodule/martian.c:135:
> >> >> warning: value computed is not used
> >> >> CC [M] /home/derek/Desktop/martian-full-20100123/kmodule/marsio.o
> >> >> /home/derek/Desktop/martian-full-20100123/kmodule/marsio.c:358: warning:
> >> >> ‘mars_read_register_rem’ defined but not used
> >> >> /home/derek/Desktop/martian-full-20100123/kmodule/marsio.c:371: warning:
> >> >> ‘mars_write_register_rem’ defined but not used
> >> >> In file included
> >> >> from /usr/src/linux-headers-2.6.35-22-generic/arch/x86/include/asm/uaccess.h:571,
> >> >>
> >> >> from /home/derek/Desktop/martian-full-20100123/kmodule/marsio.c:2:
> >> >> In function ‘copy_from_user’,
> >> >> inlined from ‘mars_download_dsp_user’
> >> >> at /home/derek/Desktop/martian-full-20100123/kmodule/marsio.c:767:
> >> >> /usr/src/linux-headers-2.6.35-22-generic/arch/x86/include/asm/uaccess_32.h:212: warning: call to ‘copy_from_user_overflow’ declared with attribute warning: copy_from_user() buffer size is not provably correct
> >> >> CC [M] /home/derek/Desktop/martian-full-20100123/kmodule/mfifo.o
> >> >> LD
> >> >> [M] /home/derek/Desktop/martian-full-20100123/kmodule/martian_dev.o
> >> >> Building modules, stage 2.
> >> >> MODPOST 1 modules
> >> >>
> >> >> CC /home/derek/Desktop/martian-full-20100123/kmodule/martian_dev.mod.o
> >> >> LD
> >> >> [M] /home/derek/Desktop/martian-full-20100123/kmodule/martian_dev.ko
> >> >> make[2]: Leaving directory `/usr/src/linux-headers-2.6.35-22-generic'
> >> >> make[1]: Leaving directory
> >> >> `/home/derek/Desktop/martian-full-20100123/kmodule'
> >> >> make -C modem/ all
> >> >> make[1]: Entering directory
> >> >> `/home/derek/Desktop/martian-full-20100123/modem'
> >> >> CC main.o
> >> >> CC dumpers.o
> >> >> CC log.o
> >> >> CC session.o
> >> >> CC mport.o
> >> >> CC pty.o
> >> >> CC sysdep.o
> >> >> CC isr.o
> >> >> CC smp.o
> >> >> CC core_if.o
> >> >> CC coresubst.o
> >> >> CC link.o
> >> >> CC tweakrelocsdynamic.o
> >> >> CC coreadd.o
> >> >> CC elf386tweakrelocs
> >> >> LD marscore.o
> >> >> TWEAK marscore.o
> >> >> LD martian_modem
> >> >> make[1]: Leaving directory
> >> >> `/home/derek/Desktop/martian-full-20100123/modem'
> >> >>
> >> >> derek@derek-desktop:~/Desktop/martian-full-20100123$ sudo make install
> >> >> [sudo] password for derek:
> >> >> make -C kmodule/ install
> >> >> make[1]: Entering directory
> >> >> `/home/derek/Desktop/martian-full-20100123/kmodule'
> >> >> make -C /lib/modules/2.6.35-22-generic/build
> >> >> M="/home/derek/Desktop/martian-full-20100123/kmodule" modules_install
> >> >> make[2]: Entering directory `/usr/src/linux-headers-2.6.35-22-generic'
> >> >>
> >> >> INSTALL /home/derek/Desktop/martian-full-20100123/kmodule/martian_dev.ko
> >> >> DEPMOD 2.6.35-22-generic
> >> >> make[2]: Leaving directory `/usr/src/linux-headers-2.6.35-22-generic'
> >> >> if ! /sbin/modprobe -nq martian_dev ; then /sbin/depmod -a; fi
> >> >> make[1]: Leaving directory
> >> >> `/home/derek/Desktop/martian-full-20100123/kmodule'
> >> >> make -C modem/ install
> >> >> make[1]: Entering directory
> >> >> `/home/derek/Desktop/martian-full-20100123/modem'
> >> >> LD martian_modem.debug
> >> >> STRIP martian_modem.debug
> >> >> STRIP martian_modem.stripped
> >> >> INSTALL /usr/sbin/martian_modem
> >> >> INSTALL /usr/lib/debug/usr/sbin/martian_modem.debug
> >> >> make[1]: Leaving directory
> >> >> `/home/derek/Desktop/martian-full-20100123/modem'
> >> >>
> >> >> derek@derek-desktop:~/Desktop/martian-full-20100123$ sudo modprobe
> >> >> martian_dev
> >> >> derek@derek-desktop:~/Desktop/martian-full-20100123$ sudo martian_modem
> >> >> martian: info: Your port is /dev/ttySM0
> >> >>
> >> >> #!/bin/sh -e
> >> >> #
> >> >> # rc.local
> >> >> #
> >> >> # This script is executed at the end of each multiuser runlevel.
> >> >> # Make sure that the script will "exit 0" on success or any other
> >> >> # value on error.
> >> >> #
> >> >> # In order to enable or disable this script just change the execution
> >> >> # bits.
> >> >> #
> >> >> # By default this script does nothing.
> >> >>
> >> >> /sbin/modprobe martian_dev
> >> >> martian_modem
> >> >>
> >> >>
> >> >> exit 0
> >> >> ---------------------------------
> >> >> Computer restart - enter at terminal
> >> >>
> >> >> derek@derek-desktop:~$ sudo martian_modem
> >> >> martian: error: open: Device or resource busy
> >> >> martian: info: martian is already running.
> >> >> derek@derek-desktop:~$ sudo wvdial
> >> >> --> WvDial: Internet dialer version 1.60
> >> >> --> Cannot open /dev/ttySM0: No such file or directory
> >> >> --> Cannot open /dev/ttySM0: No such file or directory
> >> >> --> Cannot open /dev/ttySM0: No such file or directory
> >> >> derek@derek-desktop:~$ sudo martian_modem
> >> >> martian: info: Your port is /dev/ttySM0
> >> >>
> >> >>
> >> >
> >
> >
> >