Linux - HOWTO (With Stats)

Status
Not open for further replies.
Yep, a very big thank you to Taxx_Tux - I wouldn't have been able to do it without your help :).

When I get a chance I will attempt to research the difference between /dev and /.dev in Ubuntu Linux - all I can say for now is that /dev does not have ttyUSB? in it, whereas /.dev does have ttyUSB? in it...:confused:

There is one final step to complete the journey - I need to automate this step:
Code:
modprobe usbserial vendor=0xaf0 product=0x5000
I think that's what Tazz_Tux's vmc_3g file is for, but Ubuntu is somewhat otherwise & does not by default have /etc/modules.d, and when I created that folder & cp'd vmc_3g into it there was no difference...

Just to recap, if you have an Option data card and you're using it in Ubuntu 5.04, then follow all of Tazz_Tux's instructions in the first post of this thread, but edit wvdial.conf, in the [Dialer option] section, change to:
Code:
Modem = /.dev/ttyUSB0
It should work, and if it doesn't then let the forum know by posting in this thread :).
 
Hey ic,

Well, there you go :) Welcome to Linux :D

I know there was talk of getting rid of /dev and replacing it with /sys and uhm something else :) - When my brain has woken up I will change the HOWTO to match the info given here.

BTW -
Code:
route del default gw
will remove the current gateway and allow ppp to install the 3G one, or under /etc/ppp/options add the defaultgateway option (or something like that), which will allow you to override the current gateway setting :)

Thanks !!!
 
Option Data Card Crashed [alternating Blue & Green leds]

As an extension to the Linux How2 thread, I was thinking it might be useful to have some crash debug tips - the basic steps to follow when a data card crashes - what log files to look at, root terminal commands to issue, etc...

@forumites what advice do you have, what logs/files should I look at?

Here's an extract from /var/log/messages:
Code:
Jul 21 04:18:12 localhost -- MARK --
Jul 21 04:38:12 localhost -- MARK --
Jul 21 04:58:12 localhost -- MARK --
Jul 21 05:18:13 localhost -- MARK --
[b]Jul 21 05:18:24 localhost pppd[7541]: No response to 4 echo-requests
Jul 21 05:18:24 localhost pppd[7541]: Serial link appears to be disconnected.
Jul 21 05:18:24 localhost pppd[7541]: Connect time 1849.0 minutes.
Jul 21 05:18:24 localhost pppd[7541]: Sent 3678803 bytes, received 9951122 bytes .
Jul 21 05:18:29 localhost pppd[7541]: Connection terminated.[/b]
Jul 21 05:38:13 localhost -- MARK --
Jul 21 05:58:13 localhost -- MARK --
Jul 21 06:18:13 localhost -- MARK --
Jul 21 06:38:13 localhost -- MARK --
Jul 21 06:58:13 localhost -- MARK --
Jul 21 07:18:13 localhost -- MARK --
Jul 21 07:36:38 localhost exiting on signal 15
Jul 21 07:36:40 localhost syslogd 1.4.1#16ubuntu6: restart.
A bit more about the Option data card crash itself, I got to my notebook this morning to find the blue and green leds blinking alternately, which indicates [post=159968]an Option data card crash[/post], from a root terminal I stopped pcmcia:
Code:
/etc/init.d/pcmcia stop
I was expecting the data card to stop blinking, however the leds continued to blink, so I restarted pcmcia:
Code:
/etc/init.d/pcmcia start
however the leds continued to flash, then I did a shutdown, and whilst shutdown removed the card to see if it was hot - it was not - just warmish [in my notebook the Option data card seems to be relatively cool compared to other PCMCIA cards that I have used in the past], I reinserted the data card, switched the machine on & logged in, then reconnected without further problems :).
 
Hey, i've a question about the Novatel u630 3G/GPRS.
Is it always connected to the web or must we use a dialer ?
Cause I have 8Hours/month so do I need to unplug the card ?
 
Hey Halbundyh,

Nope - you still need to use a dialer :)

Laterz !!!

Halbundyh said:
Hey, i've a question about the Novatel u630 3G/GPRS.
Is it always connected to the web or must we use a dialer ?
Cause I have 8Hours/month so do I need to unplug the card ?
 
Just upgraded from suse 9.2 to suse 9.3. I had 3g working on 9.2 (with Tazz_Tux's instructions) but since the upgrade I just can't get it to work. Here's what I get when I insert the card

Aug 10 21:03:16 linux kernel: hub 3-0:1.0: USB hub found
Aug 10 21:03:16 linux kernel: hub 3-0:1.0: 2 ports detected
Aug 10 21:03:24 linux kernel: usb 3-1: new full speed USB device using ohci_hcd and address 2
Aug 10 21:03:24 linux kernel: usbserial_generic 3-1:1.0: Generic converter detec ted
Aug 10 21:03:24 linux kernel: usb 3-1: Generic converter now attached to ttyUSB0
Aug 10 21:03:24 linux kernel: usbserial_generic 3-1:1.1: Generic converter detec ted
Aug 10 21:03:24 linux kernel: usb 3-1: Generic converter now attached to ttyUSB1
Aug 10 21:03:24 linux kernel: usbserial_generic 3-1:1.2: Generic converter detec ted
Aug 10 21:03:24 linux kernel: usb 3-1: Generic converter now attached to ttyUSB2
Aug 10 21:03:42 linux /etc/hotplug.d/ttyUSB0/50-visor.hotplug[14631]: add tty de vice /class/tty/ttyUSB0

An suggestions?
 
Hey Agentpt,

Can you post uname -a and the option section of /etc/wvdial.conf please. I have a feeling they changed from /dev/ttyUSB? to /dev/usb/tts/?

You can check that aswell, by running:

ls /dev/usb/tts -la

and if 0,1 and 2 show up then point your option section in wvdial.conf to that.

Laterz !!!

agentpt said:
Just upgraded from suse 9.2 to suse 9.3. I had 3g working on 9.2 (with Tazz_Tux's instructions) but since the upgrade I just can't get it to work. Here's what I get when I insert the card

Aug 10 21:03:16 linux kernel: hub 3-0:1.0: USB hub found
Aug 10 21:03:16 linux kernel: hub 3-0:1.0: 2 ports detected
Aug 10 21:03:24 linux kernel: usb 3-1: new full speed USB device using ohci_hcd and address 2
Aug 10 21:03:24 linux kernel: usbserial_generic 3-1:1.0: Generic converter detec ted
Aug 10 21:03:24 linux kernel: usb 3-1: Generic converter now attached to ttyUSB0
Aug 10 21:03:24 linux kernel: usbserial_generic 3-1:1.1: Generic converter detec ted
Aug 10 21:03:24 linux kernel: usb 3-1: Generic converter now attached to ttyUSB1
Aug 10 21:03:24 linux kernel: usbserial_generic 3-1:1.2: Generic converter detec ted
Aug 10 21:03:24 linux kernel: usb 3-1: Generic converter now attached to ttyUSB2
Aug 10 21:03:42 linux /etc/hotplug.d/ttyUSB0/50-visor.hotplug[14631]: add tty de vice /class/tty/ttyUSB0

An suggestions?
 
Results for uname -a:
Linux linux 2.6.11.4-20a-default #1 Wed Mar 23 21:52:37 UTC 2005 i686 i686 i386 GNU/Linux

Results for find /dev/ | grep ttyUSB:

/dev/usb/ttyUSB10
/dev/usb/ttyUSB11
/dev/usb/ttyUSB12
/dev/usb/ttyUSB13
/dev/usb/ttyUSB14
/dev/usb/ttyUSB15
/dev/usb/ttyUSB0
/dev/usb/ttyUSB1
/dev/usb/ttyUSB2
/dev/usb/ttyUSB3
/dev/usb/ttyUSB4
/dev/usb/ttyUSB5
/dev/usb/ttyUSB6
/dev/usb/ttyUSB7
/dev/usb/ttyUSB8
/dev/usb/ttyUSB9
/dev/.udevdb/class@tty@ttyUSB0
/dev/.udevdb/class@tty@ttyUSB1
/dev/.udevdb/class@tty@ttyUSB2
/dev/ttyUSB0
/dev/ttyUSB1
/dev/ttyUSB2
/dev/ttyUSB3

I pointed the option section to /dev/ttyUSB0 and ran the script: wvdial pin option internet 3gonly 384k. I tried pointing it to /dev/usb/ttyUSB0 with the same Results of not being able to get info for the serial port:

WvDial: Internet dialer version 1.54.0
--> Cannot open /dev/ttyUSB0: Cannot get information for serial port.
--> Cannot open /dev/ttyUSB0: Cannot get information for serial port.
--> Cannot open /dev/ttyUSB0: Cannot get information for serial port.

I can see the line ''usbserial vendor=0xaf0 product=0x5000 " in /etc/modprobe.conf.local

I can also see the Vodafone USB device with: cat /proc/bus/usb/devices

Hmmm? :confused: ??

There is another mention of problems with Suse 9.3 and wvdial on this thread http://www.cl.cam.ac.uk/users/dnc25/vodafone3g.html. I tried their script but to no avail...as most of the time being Noobie and all, I probably did it wrong
 
Last edited:
Ouch !!!

I have approched the devs for that and the fix is submitted - keep an eye out for the new usb stuff and keep the machine up-2-date - it is fixed on the latest version of gentoo :)

Laterz !!!

agentpt said:
Yes there is... A character device file called "null"
 
I don't understand...What do you mean the fix is submitted? Is there a fix somewhere on the Suse site I should look for ? as I can't keep my machine updated without the 3g connection..I'm using someone else's machine to get on the web at the moment. Once again thanx for all the help as usual...
 
Hey agentpt,

Yip, keep an eye on Suse's site, esp. for Kernel and usb updates (can't remember which one they package it with) or google it in the mean time :D

Laterz !!!

agentpt said:
I don't understand...What do you mean the fix is submitted? Is there a fix somewhere on the Suse site I should look for ? as I can't keep my machine updated without the 3g connection..I'm using someone else's machine to get on the web at the moment. Once again thanx for all the help as usual...
 
Thanks Tazz. Does the bug or security issue have a name which I can search for?
 
Hey Tazz, I updated everything using YAST. Got their latest new kernel which is 2.6.11.4-21.8. Couldn't find a 2.6.12 anywhere as a rpm. Still get the "Cannot open /dev/ttyUSB0: Cannot get information for serial port." Is there a contact you know of or somewhere where I can find this patch for the ''null' issue?
 
Hey agentpt,

That is a real bummer. I am not sure which version they fixed it in either. A suggestion might be to roll your own kernel and see, or maybe to report it as a bug to Suse - which might force them to release a 2.6.12 kernel. If you wanna roll your own kernel, contact me via PM and we can chat.

Laterz !

agentpt said:
Hey Tazz, I updated everything using YAST. Got their latest new kernel which is 2.6.11.4-21.8. Couldn't find a 2.6.12 anywhere as a rpm. Still get the "Cannot open /dev/ttyUSB0: Cannot get information for serial port." Is there a contact you know of or somewhere where I can find this patch for the ''null' issue?
 
Tazz_Tux said:
Hey agentpt,

That is a real bummer. I am not sure which version they fixed it in either. A suggestion might be to roll your own kernel and see, or maybe to report it as a bug to Suse - which might force them to release a 2.6.12 kernel. If you wanna roll your own kernel, contact me via PM and we can chat.

Laterz !

Hey Tazz,

Tried everything and eventually gave up, saved /home and installed Kubuntu again, the updates chowed most of my bandwith, can't get my old emails back somehow :( , but got 3G up again using you and ic's thread. Phew :) Thanks again for all your help. Hey V3G, I hope Vodafone is paying or rewarding Tazz_Tux for helping out the Linux users ;)

PS. One thing I haven't solved, I still have to modprobe usbserial...etc. each time I login, Ubuntu doesn't have a /etc/modules.d folder to save the vmc_g file to. Tazz, Do you know where it should go?
 
Last edited:
agentpt said:
...
PS. One thing I haven't solved, I still have to modprobe usbserial...etc. each time I login, Ubuntu doesn't have a /etc/modules.d folder to save the vmc_g file to. Tazz, Do you know where it should go?
Yeah, I have the same problem, and my 'pigeon'-Linux-skills have not yet extended to writing a script to run the modprobe thing at startup...
 
Sup agent,

LOL Vodafone can pay me - I don't mind pounds :D

Check for something called local.start or something along those lines - Under gentoo it is /etc/conf.d/local.start

Slap in there modprobe usbserial

-or-

In /etc/modules.autoload.d/kernel-2.6 slap in usbserial :)

Try and let me know...

Laterz !!!

agentpt said:
Hey Tazz,

Tried everything and eventually gave up, saved /home and installed Kubuntu again, the updates chowed most of my bandwith, can't get my old emails back somehow :( , but got 3G up again using you and ic's thread. Phew Thanks again for all your help. Hey V3G, I hope Vodafone is paying or rewarding Tazz_Tux for helping out the Linux users ;)

PS. One thing I haven't solved, I still have to modprobe usbserial...etc. each time I login, Ubuntu doesn't have a /etc/modules.d folder to save the vmc_g file to. Tazz, Do you know where it should go?
 
Last edited:
Status
Not open for further replies.
Top
Sign up to the MyBroadband newsletter
X