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]

 



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