Re: Error setting up dialup in Ubuntu 10.10 kernel 2.6.35.22

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

 



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
> <olivares14031@xxxxxxxxx> 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 <yawder@xxxxxxxxxxx> 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
> >>
> >>
> >





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

  Powered by Linux