Linux - HOWTO (With Stats)

Status
Not open for further replies.
Hey SideWinder,

What serial ports did your device reg ? Just "tail -f /var/log/message" and see - It should work :)

BTW - Love your greeting

SideWinder said:
Taxx_Tux,

I've just received a pcmcia (EDGE/3G) device that says:

Contains Nokia Type: RX-2
Nokia 12

Can i follow your linux-howto, or should i wait for drivers? I have redhad 9.0 on laptop to play with.
 
Taxx_Tux,

1. I restart pcmcia. Reported that is has re-started.
2. I tailed.
3. I inserted card.
4. Messages looked like this:
Jul 11 03:36:37 cardmgr[1059]: socket 1: Serial or Modem
Jul 11 03:36:37 kernel: cs: memory probe 0xa0000000-0xa0ffffff: clean.
Jul 11 03:36:37 cardmgr[1059]: executing: 'modprobe serial_cs'
Jul 11 03:36:37 cardmgr[1059]: executing: './serial start ttyS1'
Jul 11 03:36:37 kernel: ttyS1 at port 0x02f8 (irq = 3) is a 16C950/954
Jul 11 03:36:37 kernel: Trying to free nonexistent resource <000002f8- 000002ff>
Jul 11 03:36:37 kernel: Trying to free nonexistent resource <000002f8- 000002ff>

Looks like serial1 is being used by the card.

5. modprobe ttyS1 vendor=etc

reply: modprobe: Can't locate module ttyS1

Is this right - i.e can i continue setting up wvdail?

thanks
 
TT,

OK, did that....I just substituted nokia for novatel...

[root@mylinuxbox]# wvdial nokia internet 3gonly 384k
--> WvDial: Internet dialer version 1.53
--> Initializing modem.
--> Sending: ATZ

--> Sending: ATQ0

--> Re-Sending: ATZ

--> Modem not responding.

So, somethings wrong..with ttyS1,

How can i test ttyS1 manually?
 
Howzit,

Look into minicom...

Laterz !!!

SideWinder said:
TT,

OK, did that....I just substituted nokia for novatel...

[root@mylinuxbox]# wvdial nokia internet 3gonly 384k
--> WvDial: Internet dialer version 1.53
--> Initializing modem.
--> Sending: ATZ

--> Sending: ATQ0

--> Re-Sending: ATZ

--> Modem not responding.

So, somethings wrong..with ttyS1,

How can i test ttyS1 manually?
 
TT,
I've removed (stopped) and re-inserted the card again, now messages looks cleaner:

Jul 11 04:11:46 cardmgr[1059]: executing: './serial stop ttyS1'
Jul 11 04:11:46 cardmgr[1059]: executing: 'modprobe -r serial_cs'
Jul 11 04:35:12 cardmgr[1059]: socket 1: Serial or Modem
Jul 11 04:35:12 cardmgr[1059]: executing: 'modprobe serial_cs'
Jul 11 04:35:13 cardmgr[1059]: executing: './serial start ttyS1'

command wvdail nokia internet 3gonly 384k yields:

--> WvDial: Internet dialer version 1.53
--> Initializing modem.
--> Sending: ATZ

--> Sending: ATQ0

--> Re-Sending: ATZ

--> Modem not responding.

Mmmmm. When i install modem in Windoze, it works no problemo

BTW, running CLI as I don't want(need) GUI stuff.
 
TT,

>inicom ttyS1 yuilds welcomeing message, and a prompt that looks garbage:

ó.."."^!n¡.:7.²d

cntl a shows 38400 Should this not be different, in that the modem is talking at higher speeds.

I have regular sim with no pin, will get Usim later - as windoze connected me at 260 kb/s this weekend.
 
And setserial ???

SideWinder said:
TT,

>inicom ttyS1 yuilds welcomeing message, and a prompt that looks garbage:

ó.."."^!n¡.:7.²d

cntl a shows 38400 Should this not be different, in that the modem is talking at higher speeds.

I have regular sim with no pin, will get Usim later - as windoze connected me at 260 kb/s this weekend.
 
Hi Tazz_Tux

I formally admit defeat, what am I not doing that I should be doing?

A couple of things, I'm using Ubuntu 5.04, and there was no /etc/modules.d, that is until I created one & copied vmc_3g there, which made no difference, so I copied it into /etc/modprobe.d which also didn't get it going but did give errors on booting - so I deleted it from there, I also copied vmc_3g into /etc/modutils but that also has not made any difference...:confused:...yes I know I like hammering square pegs into round holes - it's how I learn not to do that again...[post=219998]
Tazz_Tux said:
...
Now we need to find out where your card is - you will see in the messages where the card is - /dev/ttyS? for novatel or /dev/ttyUSB? for option
...
[/post]Not sure what I was supposed to do there, but I kinda didn't do anything, which I'm sure is why I'm experiencing some challenging moments...

The problem is highlighted at the end of the code block [below] - basically when I run wvdial...
Code:
root@ic-notebook-0:/ # /etc/init.d/pcmcia start
 * Starting PCMCIA services...

Jul 11 21:39:02 localhost kernel: PCI: Enabling device 0000:02:00.0 (0000 -> 0002)
Jul 11 21:39:02 localhost kernel: ohci_hcd 0000:02:00.0: OPTi Inc. 82C861
Jul 11 21:39:02 localhost kernel: ohci_hcd 0000:02:00.0: irq 11, pci mem 0x10800000
Jul 11 21:39:02 localhost kernel: ohci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 2
Jul 11 21:39:02 localhost kernel: ohci_hcd 0000:02:00.0: WARNING: OPTi workarounds unavailable
Jul 11 21:39:02 localhost kernel: hub 2-0:1.0: USB hub found
Jul 11 21:39:02 localhost kernel: hub 2-0:1.0: 2 ports detected
Jul 11 21:39:02 localhost pci.agent[6471]:      ohci-hcd: loaded successfully
Jul 11 21:39:02 localhost usb.agent[6547]:      usbcore: already loaded
Jul 11 21:39:11 localhost kernel: usb 2-1: new full speed USB device using ohci_hcd and address 2

root@ic-notebook-0:/ # modprobe usbserial vendor=0x0af0 product=0x5000

Jul 11 21:44:31 localhost kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic
Jul 11 21:44:31 localhost kernel: usbserial_generic 2-1:1.0: Generic converter detected
Jul 11 21:44:31 localhost kernel: usb 2-1: Generic converter now attached to ttyUSB0
Jul 11 21:44:31 localhost kernel: usbserial_generic 2-1:1.1: Generic converter detected
Jul 11 21:44:31 localhost kernel: usb 2-1: Generic converter now attached to ttyUSB1
Jul 11 21:44:31 localhost kernel: usbserial_generic 2-1:1.2: Generic converter detected
Jul 11 21:44:31 localhost kernel: usb 2-1: Generic converter now attached to ttyUSB2
Jul 11 21:44:31 localhost kernel: usbcore: registered new driver usbserial_generic
Jul 11 21:44:31 localhost kernel: usbcore: registered new driver usbserial
Jul 11 21:44:31 localhost kernel: drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0

root@ic-notebook-0:/ # wvdial option internet 3gonly 384k
[b]--> WvDial: Internet dialer version 1.54.0
[color=red]--> Cannot open /dev/tts/USB0: No such file or directory
--> Cannot open /dev/tts/USB0: No such file or directory
--> Cannot open /dev/tts/USB0: No such file or directory[/color][/b]
root@ic-notebook-0:/ #
 
Last edited:
Hey IC,

By the looks of it it registers the card in the "old" way - under /dev look for ttyUSB0,1,2 - they should be under /dev/ttyUSB0,1,2 - just change the wvdial.conf to match :D

Laterz !
 
Tazz_Tux said:
Hey IC,

By the looks of it it registers the card in the "old" way - under /dev look for ttyUSB0,1,2 - they should be under /dev/ttyUSB0,1,2 - just change the wvdial.conf to match :D

Laterz !
Ok :cool: will let you know what happens.

PS: I had forgotten that I'd formatted my flash drive for NTFS...explains that mystery - great that Linux can read from NTFS :) pitty it doesn't want to write to NTFS...how difficult can it be...:confused:
 
It can - but that is "beta" code :D - works 100% on my machines....

ic said:
Ok :cool: will let you know what happens.

PS: I had forgotten that I'd formatted my flash drive for NTFS...explains that mystery - great that Linux can read from NTFS :) pitty it doesn't want to write to NTFS...how difficult can it be...:confused:
 
Tazz_Tux said:
Hey IC,

By the looks of it it registers the card in the "old" way - under /dev look for ttyUSB0,1,2 - they should be under /dev/ttyUSB0,1,2 - just change the wvdial.conf to match :D

Laterz !
Just got back to trying this now - been a tad preoccupied with other stuff...

Sadly this Unbuntu/Linux has thrown me another curve-ball, and under /dev there are no ttyU* [i.e. no ttyUSB*], there is ttyu0..ttyuf, but definitely no ttyU*

There is also /dev/ttys0..ttysf, and /dev/ttyS0..ttyS53

I assume that perhaps I need to try one of the ttyS* bcos the group for all ttyS* is 'dialout', if that assumption is correct, then which of the ttyS* do I try?

Apologies for being such a Linux n00b...:D

<added>
Ok, I decided to have another look at the GUI Device Manager in Ubuntu, and after drilling down into the tree that it displays - in the "advanced tab", and scrolling waaaay off to the right, at the very end there is mention of ttyUSB0..ttyUSB2, this is in several strings - the 1st of which has the key "linux.sysfs_path" and the value:
/sys/devices/pci0000:00/0000:00:04.0/0000:02:00.0/usb2/2-1/2-1:1.0/ttyUSB0
/sys/devices/pci0000:00/0000:00:04.0/0000:02:00.0/usb2/2-1/2-1:1.1/ttyUSB1
/sys/devices/pci0000:00/0000:00:04.0/0000:02:00.0/usb2/2-1/2-1:1.2/ttyUSB2
Ok, assuming that helps instead of hindering, what should I have in wvdial.conf?​
</added>
 
Hey ic,

I reacon the best thing for me to do is install/run Unbuntu and see if I can get it working - seems they are using udev or something like that... What version are you running ?

Laterz !
 
Hi Tazz_Tux, it's the latest version of Ubuntu Linux v5.04 codenamed "Hoary Hedgehog", kernel 2.6.10-5-386...

Should I not just edit wvdial.conf to use:
/sys/devices/pci0000:00/0000:00:04.0/0000:02:00.0/usb2/2-1/2-1:1.0/ttyUSB0

?

There is also a kernel update available [2.6.10-34.3] for download from Ubuntu, not sure if it will make any difference, but I will give it a try sometime today...[post=204112]
Tazz_Tux said:
...
Otherwise, ubuntu has fallen prey to the <NULL> bug, which I have pointed out to the dev's and awaiting a fix.
...
[/post]About that bug you mentioned, is it possibly the reason for all this?

Another idea, I have Debian lying about somewhere [all 7 CDs that I downloaded months ago], should I rather install that & give it a try?
 
Hey ic,

Uhm, try it :)

What bug was that again? the <NULL>0 one ? If so, that has been solved...

later !

ic said:
Should I not just edit wvdial.conf to use:
/sys/devices/pci0000:00/0000:00:04.0/0000:02:00.0/usb2/2-1/2-1:1.0/ttyUSB0

?

About that bug you mentioned, is it possibly the reason for all this?

Another idea, I have Debian lying about somewhere [all 7 CDs that I downloaded months ago], should I rather install that & give it a try?
 
Tazz_Tux said:
Hey ic,

Uhm, try it :)

What bug was that again? the <NULL>0 one ? If so, that has been solved...

later !
Hiya Tazz_tux

That kernel image update has not made any difference...

You mentioned 'udev', and some other stuff that sounded a bit like alternative file-systems, I chose the default when I installed Ubuntu, but I did create a separate swapfile partition using something like swapfs, and another partition for user data with /home as its mountpoint - I forget what I type I made that - I think same as the partition that I had Ubuntu install onto/into...

I have not had time to try installing Debian yet - not even sure if it will run on the hunk 'o junk notebook I have...:D
 
Ok, good news, I have managed to get the Option data card to connect to /.dev/ttyUSB0 in Ubuntu 5.04...

Now I have another small challenge, how do I manually set the default gateway in Linux [from a root terminal]? The reason I ask is that I'm connected via 3G [blue light] and I have an IP address, but cannot get a route out to the net...it seems to want to try using the ethernet connection [which I unplugged]...

<added>
Ok, I decided to find out if ifconfig would do it, apparently not according to "man ifconfig", so I tried "man route", and then did this:
Code:
route add default gw 10.a.b.c
where 10.a.b.c is the remote IP address, and it works & I am using 3G to type this...

Now I just need to get me one of those Matrix downloads to reprogram my brain for Linux...:D
</added>
 
Last edited:
Status
Not open for further replies.
Top
Sign up to the MyBroadband newsletter
X