LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Firefox OS, Sailfish OS, Maemo, MeeGo, Ubuntu Mobile, WebOS, Open Mobile Alliance and other similar projects and products.
A reminder that LQ now has a dedicated Android sister site: AndroidQuestions.org

Notices



Reply
 
Search this Thread
Old 06-03-2009, 08:01 AM   #1
Tom6
Member
 
Registered: May 2009
Posts: 114

Rep: Reputation: 16
Vodaphone Huawei K3520 wireless broadband driver download for Ubuntu?


Hi

I'm having real trouble trying to get this device working in Jaunty 9.04. With 8.04 and 8.10 it was fine but since then Vodaphone seem to have deleted their linux drivers off their website!! Shockingly i have also lost the download on one of my drives

Can anyone give a list of all the packages and dependencies i will need to get while i'm using this machine so that i can copy everything i need onto cd or usb stick or something.

I also don't quite understand how to make sure i get all the updates that the laptop system will need onto a cd to make deployment easier. At the moment each machine has to separately download all it's own updates and that's beginning to be a bit of a pain, especially when laptops have limited download access and 'on-time' (due to batteries).

Thanks in advance, regards from
Tom

PS sorry if this post is doubled, i don't knnow how to make a link to it in another folder in linuxquestions yet, sorry i'm too new

PPS the other thread is at
http://www.linuxquestions.org/questi...4/#post3561559
but hopefully this will be the main thread that people write lots of helpful answers too

Last edited by Tom6; 06-03-2009 at 08:11 AM.
 
Old 06-04-2009, 05:35 AM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Hi, I use a vodafone usb hsdpa modem(3G), a hauwei e220.

It uses the "option" usb kernel module and may require the wvdial package to set it up.

I hope this gives you a starting place, I am not familiar with the 'butus.

Or even if your modem is similar.

regards Glenn
 
Old 06-04-2009, 05:40 AM   #3
Tom6
Member
 
Registered: May 2009
Posts: 114

Original Poster
Rep: Reputation: 16
I managed to get wvdial and it's dependencies by rebooting into Windows to download and then going back into Ubuntu in order to get a message about some other dependency not being installed. Eventually by bouncing back and forth i managed to get wvdial installed.

I'm not sure what to do next though and the internet connection still isn't happening

Thanks for your post there btw, wvdial definitely sees a step in the right direction. I'm not sure about the ""option" usb kernel module"? Any chance of clarifying what i need to download for it? I'm not sure but i think the differences between our modems is slight enough that both can use the same 'drivers' and stuff in linux.

Thanks and regards from Tom

Last edited by Tom6; 06-04-2009 at 05:43 AM.
 
Old 06-04-2009, 05:48 AM   #4
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Hi, the option module is already there in the kernel, afaik.

Type lsusb to see if the modem is listed.

Type lsmod and scan the list to see if "option" is loaded and what it is being used by.

lsmod | grep option
Code:
option                 24004  2
usbserial              34528  5 option
usbcore               189264  12 usblp,snd_usb_audio,gspca_spca561,gspca_main,snd_usb_lib,usbhid,option,usbserial,ohci_hcd,ehci_hcd,usb_storage
lsusb | grep E220
Code:
Bus 002 Device 002: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem
If it's there, you may need to reboot to reset your network, (something about domainnames)

or try this first....

service network restart

see how you go.

Also, LQ has a fantastic search function and with over 3 million posts, it's possible that the question has been answered.

Cheers, Glenn
 
Old 06-04-2009, 06:16 AM   #5
Tom6
Member
 
Registered: May 2009
Posts: 114

Original Poster
Rep: Reputation: 16
Ahhh, brilliant. I can restart the network by using something like "sudo /etc/init.d/networking restart" or rebooting. Thanks for lsusb and lsmod, i've not used them before

I have posted this question in a few other forums and seem to have built up some useful stuff but i'm still not sure i'll be able to get it working this trip. At least i will be able to get some good feedback though

Thanks and regards from
Tom

Last edited by Tom6; 06-04-2009 at 07:24 AM.
 
Old 06-04-2009, 09:24 AM   #6
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Hi, you may also need binfmt_misc kernel module.

Not sure why, but it's loaded and in use. On my box.

I set my modem up in a similar fashion to what you are doing, only 18 months ago.

Any how, good luck with it.

Depending on how similar they are, yours and mine, I may be able to help further with the config files.

I only used the vodafone app once, the gui would not appear correctly on this box. I found it useless. And kppp(kde) insisted on a password, where there was none. I have it configured through the Mandriva network settings, then copy the config files back to their respectful directories from a backup.

Cheers, Glenn
 
Old 06-04-2009, 10:00 AM   #7
Tom6
Member
 
Registered: May 2009
Posts: 114

Original Poster
Rep: Reputation: 16
|Oh no. I've never used kernel modules. I don't even know where to get them. Is this going to need me to re-compile the kernel?
 
Old 06-04-2009, 02:19 PM   #8
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,038

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
Quote:
Is this going to need me to re-compile the kernel?
Probably not

Kernel modules are like "drivers", and, unlike windows, they are usually already waiting on your machine, ready to be used. But sometimes they don't automatically know they should be loaded so they don't work.

Eg: "Hardware xxx works if module yyy is loaded."
I have hardware xxx. So lsmod | grep yyy will tell me if the yyy module is loaded.
If it is not listed, you can (probably) load it with (as root)
modprobe yyy
Then try again, or read what the error messages say, unlike windows, they'll tell you something useful.

You aren't giving us much information. We'd like to know the output of lsusb that refers to your modem, like GlennsPref posted in #4:
Code:
Bus 002 Device 002: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem
What does your modem list as?
Then we will be able to look up what it is and maybe be able to help you to make it work.
 
Old 06-04-2009, 09:11 PM   #9
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Kernel modules? Like Tredegar said.

Please post us some info from your machine.

When posting code, you can paste the text in a code box
[open square bracket] code [close square bracket]
paste here......
[open square bracket] /code [close square bracket] to end section.

quote is used the same way as code. code, I believe leaves the spacing, quote tidies the spacing up.


Oh yeah, The modem is sometimes loaded as a storage device using "usb_storage" module. usually this occurs on first boot of the modem, because M$win downloads the drivers from the device, then switches to serial mode, using "usbserial" module. The modem does this with its own firmware and may become difficult to diagnose because of it.

I have a line in /etc/modprobe.conf and modprobe.preload that loads the correct module for the device at boot. Ubuntu may differ.

Cheers Glenn

Last edited by GlennsPref; 06-04-2009 at 09:26 PM. Reason: Manually loading Modules
 
Old 06-05-2009, 01:27 PM   #10
Tom6
Member
 
Registered: May 2009
Posts: 114

Original Poster
Rep: Reputation: 16
Ok, i'm on the boat and using Windows to connect to the internet using the device. I can download some small files but can't spend long on-line because the boat batteries don't store much charge. Here's lsusb and lsmod, i go the whole thing of each because filtering it through grep didn't give me much

Quote:
user@Rosy:~$ lsusb
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 004: ID 046d:c016 Logitech, Inc. M-UV69a/HP M-UV96 Optical Wheel Mouse
Bus 001 Device 003: ID 12d1:1001 Huawei Technologies Co., Ltd. E620 USB Modem
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
user@Rosy:~$ lsmod
Module Size Used by
nls_iso8859_1 12032 1
nls_cp437 13696 1
vfat 18816 1
fat 58272 1 vfat
binfmt_misc 16776 1
radeon 342816 2
drm 96296 3 radeon
bridge 56340 0
stp 10500 1 bridge
bnep 20224 2
input_polldev 11912 0
lp 17156 0
joydev 18368 0
pcmcia 44748 0
ppdev 15620 0
snd_ali5451 27276 3
snd_ac97_codec 112292 1 snd_ali5451
ac97_bus 9856 1 snd_ac97_codec
snd_pcm_oss 46336 0
snd_mixer_oss 22656 1 snd_pcm_oss
snd_pcm 82948 3 snd_ali5451,snd_ac97_codec,snd_pcm_oss
snd_seq_dummy 10756 0
snd_seq_oss 37760 0
snd_seq_midi 14336 0
snd_rawmidi 29696 1 snd_seq_midi
snd_seq_midi_event 15104 2 snd_seq_oss,snd_seq_midi
snd_seq 56880 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer 29704 2 snd_pcm,snd_seq
snd_seq_device 14988 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
psmouse 61972 0
pcspkr 10496 0
yenta_socket 32396 2
rsrc_nonstatic 19328 1 yenta_socket
serio_raw 13316 0
i2c_ali15x3 14724 0
i2c_ali1535 14212 0
pcmcia_core 43540 3 pcmcia,yenta_socket,rsrc_nonstatic
snd 62628 16 snd_ali5451,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_tim er,snd_seq_device
soundcore 15200 1 snd
snd_page_alloc 16904 1 snd_pcm
option 28036 0
shpchp 40212 0
parport_pc 40100 1
parport 42220 3 lp,ppdev,parport_pc
video 25360 0
output 11008 1 video
ati_agp 14988 1
agpgart 42696 2 drm,ati_agp
usbhid 42336 0
natsemi 35552 0
usb_storage 82880 0
floppy 64324 0
fbcon 46112 0
tileblit 10752 1 fbcon
font 16384 1 fbcon
bitblit 13824 1 fbcon
softcursor 9984 1 bitblit
user@Rosy:~$
I had a look at wvdial.conf and nticed that Username and password don't seem to have been set. Does anyone know how i can find these ou fom the Windows equivalents that are surrently working automatically?

Thanks and regards from
Tom )
 
Old 06-05-2009, 06:55 PM   #11
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
I had the same "login" problem.

See what happens if you leave it blank, you probably tried that....

This is where I used my old config files and restore them instead.

Oh, also it's the program that wants the password, not the device, so just put a space in there, or something.

The good part about this is the related packages are installed when trying to setup this way(in Mandriva, anyway).

The files are kept in various places, see my next post about resolv.conf and the rest.....

Quote:
option 28036 0
usbhid 42336 0
usb_storage 82880 0
binfmt_misc 16776 1

Bus 001 Device 003: ID 12d1:1001 Huawei Technologies Co., Ltd. E620 USB Modem
Hi, usbserial is missing.

If this causes a problem....

Try this....

Unplug the modem from the cable,

type ....
lsmod | grep usbserial

If it (usbserial) is not loaded then...

modprobe usbserial

wait one, replug it(the modem) in.

type lsusb to check it is re-instated,

lsusb | grep E620

lsmod | grep option

and

lsmod | grep usbserial

The name may be different with ubuntu, But the kernel is the kernel, right....

see if that helps.
 
Old 06-05-2009, 07:24 PM   #12
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
File needed for modem setup....(Mandriva)

/etc/sysconfig/network-scripts/chat-ppp0
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-ppp0
/etc/sysconfig/network
/etc/ppp/peers/ppp0
/etc/ifplugd/ifplugd.conf
/etc/resolv.conf

Resolv.conf has the dns addresses, resolve will attempt to get these from the modem, in my experience it gets "wins" addresses like 10.11.12.13 instead of ip's that linux recognises, like
Code:
nameserver 203.2.193.67 #dns1
nameserver 202.135.30.4 #dns2
nameserver 192.168.0.2 # this is my local connection
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
search vfinternet.au #vodafone Australia network
In this instance, if I allow the resolv service to run at boot, it will overwrite these addresses with 10.x.x.x wins addresses, The modem will not connect. I don't know how to divert this, so I turn the resolv service off in the service manager.

You should be able to get the correct addresses from your windows setup., also the gateway address, 10.64.64.64, on mine.

a side point, my modem appears as pots, rather than HSDPA/G3 modem. But has no problems.

chat-ppp0
Code:
ABORT BUSY
ABORT ERROR
ABORT 'NO CARRIER'
ABORT 'NO DIALTONE'
ABORT 'Invalid Login'
ABORT 'Login incorrect'
ABORT VOICE
ABORT 'NO ANSWER'
ABORT DELAYED
ABORT 'SIM PIN'
'' ATZ
OK-AT-OK 'AT+CPIN?'
OK-AT-OK 'AT+CMEE=2'
OK-AT-OK 'AT+CGDCONT=3,"IP","vfinternet.au"'
OK-AT-OK 'AT+CGATT?'
OK 'ATDT*99***2#'
TIMEOUT 120
CONNECT ''
TIMEOUT 5
'~--' ''
ifcfg-eth0 This helps to redirect the local network, may not be required on your system....
Code:
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.0.2
NETMASK=255.255.255.0
GATEWAY=10.64.64.64
ONBOOT=yes
METRIC=10
MII_NOT_SUPPORTED=no
USERCTL=yes
DNS1=203.2.193.67
DNS2=202.135.30.4
DOMAIN=vfinternet.au
RESOLV_MODS=no
LINK_DETECTION_DELAY=6
IPV6INIT=no
IPV6TO4INIT=no
ifcfg-ppp0
Code:
DEVICE=ppp0
ONBOOT=yes
METRIC=40
USERCTL=yes
LINESPEED=115200
MODEMPORT=/dev/ttyUSB0
DEBUG=yes
PERSIST=yes
DEFROUTE=yes
CELLULAR_CID=3
/etc/sysconfig/network
Code:
NETWORKING=yes
GATEWAYDEV=ppp0
HOSTNAME=GamesBox.GlennsPref.net
FORWARD_IPV4=true
/etc/ppp/peers/ppp0
Code:
connect "/usr/sbin/chat -v -f /etc/sysconfig/network-scripts/chat-ppp0"
/etc/ifplugd/ifplugd.conf
Code:
INTERFACES="ppp0 eth0"

# Additional parameters for ifplugd.
# (Run "ifplugd -h" for further information.)
ARGS="-fwI -u0 -d10"
OK, after all of that, it may not harm your system to try a few of these, and see the differences.

Bit of "white-hat" HACKING, see how you go.

regards Glenn
 
Old 06-06-2009, 09:34 PM   #13
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
you may also need...comgt, but it may be installed already.
Quote:
comgt - GPRS/EDGE/3G/HSDPA datacard control tool​ 
comgt is a datacard control tool for Option GlobeTrotter GPRS/EDGE/3G/HSDPA and Vodafone 3G/GPRS.

It is a scripting language interpreter useful for establishing communications on serial lines and through PCMCIA modems as well as GPRS and 3G datacards.

comgt has some features that are rarely found in other utilities of the same type.
Also from M$windows type ipconfig to get info on your modem.

Like gateway, dns servers and dhcp too, maybe.

Hope this helps. Glenn
 
Old 06-07-2009, 10:50 AM   #14
Tom6
Member
 
Registered: May 2009
Posts: 114

Original Poster
Rep: Reputation: 16
I found gnome-ppp but couldn't find most of the rest. ipconfig was inspired, it help with ip addresses & stuff but i'm still stuck on vodafone passwords i guess.

Thanks & regards so far from
Tom
 
Old 06-07-2009, 02:45 PM   #15
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
OK, I had to put in a few letters, sorry I forgot to say.

In fact I don't really need to login to the modem, but the software is a bit quirky, like a 56k modem setup.

I used 4 letters-numbers. it has never asked me to confirm and the modem does not ask for it, it is all stored on the card in the modem, like a mobile phone.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu automatically download a generic driver for dell inspiron wireless card batlep1 Linux - Newbie 1 04-22-2009 05:32 PM
Trying to download the z35 driver on ubuntu 8.10 belladivediva Linux - Software 5 02-08-2009 05:31 PM
how to use the wireless modem huawei e220 on ubuntu? J-xToF Linux - Hardware 2 08-26-2008 08:35 PM
Huawei Wireless Modem AtinLango Linux - General 0 02-19-2006 05:22 AM
dont know how to download wireless driver gustallafer Linux - Wireless Networking 4 01-05-2006 07:41 AM


All times are GMT -5. The time now is 01:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration