PPRuNe Forums - View Single Post - Linux Corner
Thread: Linux Corner
View Single Post
Old 15th Oct 2009, 20:18
  #195 (permalink)  
rgbrock1
 
Join Date: Aug 2000
Location: Patterson, NY
Age: 66
Posts: 436
Likes: 0
Received 0 Likes on 0 Posts
NRU:

You need to download the new wvdial.conf for the HSDPA stuff to work !!!

I use Gentoo Linux which compiles everything from source. As a result of things might be a bit different but we can work around it. Firstly, we need to get Linux to detect your card, start your PCMCIA services - normally this can be done using (most distros do this for you):

Code:
/etc/init.d/pcmcia start
Before you insert your card, open a console/switch to an open console and as root run the following

Code:
tail -f /var/log/messages
This will allow you to "see" what Linux is doing

Right, now insert your card and you should see some stuff happening. I have included log traces of what the two cards "look" like under /var/log/messages in the attachment section.

If you see only the option_insert_nousb.txt messages using an option card run the following command:

Code:
modprobe usbserial vendor=0x0af0 product=0x5000
If you had to run the above command, you will need to save the vmc_g file attached into /etc/modules.d

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

Code:
find /dev/ | grep ttyS
Should show /dev/ttyS0 or /dev/ttyS1 for a Novatel Card.

Code:
find /dev/ | grep ttyUSB
Should show /dev/ttyUSB0 and USB1 and USB2 for an Option Card. (or /dev/tts/ttyUSB0-2 for udev)

Once we found that, we need to change /etc/wvdial.conf to match your settings, attached is my working wvdial.conf. Now we can start dialing up

For Novatel:

Code:
wvdial novatel internet 3gonly 384k
For Option:

Code:
wvdial option internet 3gonly 384k
If you need to send your PIN, add "pin" infront of all the commands, e.g.

Code:
wvdial pin novatel internet 3gonly 384k
Once your connection is up - surf away Now you can setup things like KPPP and Gnome's Modem Lights to do your dialing for you.

Extra Steps for the HSDPA card:

Download the kernel module from the link below. Extract it to a directory somewhere safe. If you are *still* running the 2.4 series of kernels, you need to change the Makefile to reflect this.

Compile the driver using the following commands:

Code:
make clean && make
Once this is done, run the following command to insert the module into the kernel

Code:
insmod nozomi.ko (2.6 Kernel)
insmod nozomi.o (2.4 Kernel)
Once you have done that, use the following command to setup the connection:

Code:
wvdial hsdpa
Extra steps for the Novatel U740 Card

Until I get time to update the files etc. our Novatel Linux Users out there can just type this command before using the normal dialing command:

Code:
modprobe usbserial vendor=0x1410 product=0x1400
OR

Code:
modprobe usbserial vendor=0x1410 product=0x1410
Using lsusb will show you the Vendor and Product ID's or cat /proc/bus/usb/devices will do the same.I will still add them into the FAQ but atleast this should help for now

This will add the USB's like the 3G Option did - am I seeing a swap here ? - so just dial /dev/ttyUSB0 or so - check the logs

Extra Steps for the Huawei Cards:

None really - just make sure usbserial is loaded and the card will come up on /dev/ttyUSB0 - check the logs again to confirm

If the card doesn't come up, unload usbserial and reload with the following command:

Code:
rmmod usbserial && modprobe usbserial vendor=0x12d1 product=0x1001
I am still trying to work on the USB only card, so at the moment, I don't know if it will work under Linux.

Huawei E220:

I have found that this modem will only work with the short cable supplied...not the long one with two plugs...*shrug*

Same as the E620, except use the following modprobe command: Code:
rmmod usb-storage
modprobe usbserial vendor=0x12d1 product=0x1003 (Some have reported an ID of 0x1001 - use lsusb to confirm)
After that, you will notice only one USB serial coming up, then, remove the device and re-attach it, you shouldn't need to re-insert usbserial.

Notes:

I have only seen 3G speeds on this device, but I think it is because of my RF conditions and location. More on this to follow...
rgbrock1 is offline